public static int AddTbl_Info(Tbl_Info tbl_info) { WebCommon.Public.WriteLog("添加信息:" + tbl_info.I_Title); int InfoID = new Tbl_InfoService().AddTbl_Info(tbl_info); foreach (var obj in tbl_info.NodeUser.Split(',')) { WebCommon.Public.WriteAlert(obj, "待审信息", tbl_info.I_Title, "views/Info_Detail.aspx?ID=" + InfoID.ToString()); } return(InfoID); }
public static int UpdateTbl_Info(Tbl_Info tbl_info) { WebCommon.Public.WriteLog("修改信息:" + tbl_info.I_Title); tbl_info.DealUser = WebCommon.Public.GetUserName(); tbl_info.DealTime = DateTime.Now; int InfoID = new Tbl_InfoService().UpdateTbl_InfoById(tbl_info); if (tbl_info.Status == "已审核") { foreach (var obj in tbl_info.UserNameTo.Split(',')) { WebCommon.Public.WriteAlert(obj, tbl_info.I_Type, tbl_info.I_Title, "views/Info_Detail.aspx?ID=" + tbl_info.ID.ToString()); } } return(InfoID); }