public Boolean NewDataModificationInfo(DataModificationInfo Info) { Boolean Result = false; StringBuilder sql_select = new StringBuilder(); sql_select.Append("select ID,Scts,DataID,ModuleID,TestRoomCode,Segment,CompanyName,TestRoomName,ModuleName,SponsorPerson,SponsorDate,Caption,Reason,ApprovePerson,ApproveDate,State from sys_biz_DataModification where ID='"); sql_select.Append(Info.Index); sql_select.Append("'"); DataTable Data = GetDataTable(sql_select.ToString()); if (Data != null) { DataRow Row = Data.NewRow(); Row["ID"] = Info.Index; Row["Scts"] = DateTime.Now.ToString(); Row["DataID"] = Info.DataID; Row["ModuleID"] = Info.ModuleID; Row["TestRoomCode"] = Info.TestRoomCode; Row["CompanyName"] = Info.CompanyName; Row["TestRoomName"] = Info.TestRoomName; Row["ModuleName"] = Info.ModelName; Row["SponsorPerson"] = Info.SponsorPerson; Row["SponsorDate"] = DateTime.Now.ToString(); Row["Caption"] = Info.Caption; Row["Reason"] = Info.Reason; Row["State"] = Info.State; Row["Segment"] = Info.Segment; Data.Rows.Add(Row); } try { int r = Update(Data); Result = (r == 1); } catch { } return(Result); }
public static Boolean NewDataModificationInfo(DataModificationInfo Info) { return(Convert.ToBoolean(Agent.CallService("Yqun.BO.BusinessManager.dll", "NewDataModificationInfo", new object[] { Info }))); }