txttimetxt.Value = DateTime.Now.ToString("yyyy-MM-dd");
string times =txttimetxt.Value.Trim();
DataSet ds = UsersLogin.GetDataSet("select a.UserID,RealName,UserType,b.Oid,TraveLine,Sections,c.Gid,c.SystemTime,Category,CarNumber,TrainNumber,Downtime,Repairstime,Renovatetime,Symptom,Effect,Result,c.CreateTime from dbo.Users as a left join dbo.OperationLine as b on a.UserID=b.UserID left join dbo.ProductionGuide as c on a.UserID=c.UserID where a.State=1 and b.State=1 and c.State=1 and c.SystemTime='" + times + "'");
gvSummary.DataSource = ds;
gvSummary.DataBind();
我的绑定数据的代码,麻烦要怎么写呢,拜托噢!
RISEBY
慕仙森
浮云间