日期:2014-05-17 浏览次数:21126 次
[WebMethod]
public int InsertTSCl(TSCL tl)
{
return TSCLManage.AddTSCL(tl);
}
[XmlInclude(typeof(TSCL))]
[WebMethod]
public TSCL GetTscl()
{
Model.TSCL tl = new Model.TSCL();
return tl;
}
private void button8_Click(object sender, EventArgs e)
{
localhostlogin.loginServiceSoapClient tl = new localhostlogin.loginServiceSoapClient();
tl.GetTscl().BTSD_NAME = txtbtsbm.Text.Trim(); //再调试中都可以得到文本框中的值,得不到tl.GetTscl().BTSD_NAME值,什么原因???
tl.GetTscl().BTSR_NAME = txtbtsr.Text.Trim();
tl.GetTscl().TS_DETAIL = txttitle.Text.Trim();
tl.GetTscl().CFJY = txttsjy.Text.Trim();
tl.GetTscl().LXFS = txtlxfs.Text.Trim();
tl.GetTscl().PUSHDATE = DateTime.Now;
string yy = DateTime.Now.Year.ToString();
string mm = DateTime.Now.Month.ToString();
string dd = DateTime.Now.Day.ToString();
string hh = DateTime.Now.Hour.ToString();
string min = DateTime.Now.Minute.ToString();
string ss = DateTime.Now.Second.ToString();
string datestr = yy + mm + dd + hh + min + ss;