/// <summary> /// 修改操作 /// </summary> private void UpdateNewsInfoByID(WSS.Model.Tasks n) { if (new WSS.BLL.Tasks().Update(n) == true) { Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgTitle"], "数据已经修改成功!").Show(); NewsWindow.Hide(); } else { Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgError"], ConfigurationManager.AppSettings["ErrorMessage"]).Show(); } }
private void UpdateNewsInfoByID(WSS.Model.Tasks n)//修改操作 { if (new WSS.BLL.Tasks().Update(n) == true) { WSS.BLL.T_TasksLog TLoglist = new WSS.BLL.T_TasksLog(); TLoglist.F_ID = TList.F_ID; if (n.F_Note.Trim().Length != 0) { TLoglist.F_Note = n.F_Note; } if (n.F_Title != TList.F_Title) { TLoglist.F_Title = n.F_Title; } if (n.F_DateTime != TList.F_DateTime) { TLoglist.F_DateTime = n.F_DateTime; } if (n.F_DutyMan != TList.F_DutyMan) { TLoglist.F_DutyMan = n.F_DutyMan; } TLoglist.F_EditMan = TList.F_EditMan; if (n.F_From != TList.F_From) { TLoglist.F_From = n.F_From; } if (n.F_GameName != TList.F_GameName) { TLoglist.F_GameName = n.F_GameName; } if (n.F_JinjiLevel != TList.F_JinjiLevel) { TLoglist.F_JinjiLevel = n.F_JinjiLevel; } if (n.F_PreDutyMan != TList.F_PreDutyMan) { TLoglist.F_PreDutyMan = n.F_PreDutyMan; } if (n.F_Rowtype != TList.F_Rowtype) { TLoglist.F_Rowtype = n.F_Rowtype; } if (n.F_State != TList.F_State) { TLoglist.F_State = n.F_State; } if (n.F_Telphone != TList.F_Telphone) { TLoglist.F_Telphone = n.F_Telphone; } if (n.F_Type != TList.F_Type) { TLoglist.F_Type = n.F_Type; } TLoglist.Add(); GridPanelNewsList.Reload(); Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgTitle"], "数据已经修改成功!").Show(); NewsWindow.Hide(); } else { Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgError"], ConfigurationManager.AppSettings["ErrorMessage"]).Show(); } }