/// <summary> /// 删除已经删除的信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public static bool DelMessageDropbyID(int id) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("V_DroppedMessage", "ltrim(rtrim(id))"); cl_h_info.AddRecord(id); cl_h_info.DeletedIntoLogs(BLL.CommonClass.ChangeCategory.company22, id.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype10); return(MessageSendDAL.DelMessageDropbyID(id)); }
/// <summary> /// 根据id删除收件箱信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelMessageReceive(int id, string optr, int OperatorType) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("MessageReceive", "ltrim(rtrim(id))"); cl_h_info.AddRecord(id); cl_h_info.DeletedIntoLogs(BLL.CommonClass.ChangeCategory.company20, id.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype10); return(MessageReceiveDAL.DelMessageReceive(id, optr, OperatorType)); }
// <summary> /// 根据ID删除物流公司 /// </summary> /// <param name="id"></param> /// <returns></returns> public Boolean DelThirdLogistics(int id) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("Logistics", "ltrim(rtrim(id))"); cl_h_info.AddRecord(id); cl_h_info.DeletedIntoLogs(BLL.CommonClass.ChangeCategory.company9, id.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype8); return(thirdLogisticsDAL.DelThirdLogistics(id) == 0 ? false : true); }
/// <summary> /// 根据id删除发件箱的信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public static bool DelMessageSendById(int id, string optr, int OperatorType) { //MessageSendDAL dao = new MessageSendDAL(); BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("MessageSend", "ltrim(rtrim(id))"); cl_h_info.AddRecord(id); cl_h_info.DeletedIntoLogs(BLL.CommonClass.ChangeCategory.company21, id.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype10); return(MessageSendDAL.DelMessageSendById(id, optr, OperatorType)); }
/// <summary> /// 删除文件 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelResurces(int id) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("Resources", "ltrim(rtrim(ResID))"); cl_h_info.AddRecord(id); cl_h_info.DeletedIntoLogs(BLL.CommonClass.ChangeCategory.company18, id.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype10); ResourcesDAL dao = new ResourcesDAL(); return(dao.DelResurces(id)); }
/// <summary> /// 根据ID修改物流公司 /// </summary> /// <param name="item"></param> /// /// <returns></returns> public Boolean UpdateThirdLogistics(LogisticsModel logisticsModel, int id) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("Logistics", "ltrim(rtrim(id))"); cl_h_info.AddRecord(id); bool bb = thirdLogisticsDAL.UpdateThirdLogistics(logisticsModel, id) == 0 ? false : true; cl_h_info.AddRecord(id); cl_h_info.ModifiedIntoLogs(BLL.CommonClass.ChangeCategory.company9, id.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype8); return(bb); }
/// <summary> /// 修改上传资料 /// </summary> /// <param name="resource"></param> /// <returns></returns> public bool UpdateResource(ResourceModel resource) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("Resources", "ltrim(rtrim(ResID))"); cl_h_info.AddRecord(resource.ResID); ResourcesDAL dao = new ResourcesDAL(); bool boo = dao.UpdateResource(resource); cl_h_info.AddRecord(resource.ResID); cl_h_info.ModifiedIntoLogs(BLL.CommonClass.ChangeCategory.company18, resource.ResID.ToString(), BLL.CommonClass.ENUM_USERTYPE.objecttype10); return(boo); }
/// <summary> /// 修改会员基本信息 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool Updmemberbasic(MemberInfoModel info) { BLL.CommonClass.ChangeLogs cl_h_info = new BLL.CommonClass.ChangeLogs("memberinfo", "number");//申明日志对象 using (SqlConnection conn = new SqlConnection(DBHelper.connString)) { conn.Open(); SqlTransaction tran = conn.BeginTransaction(); try { if (!MemberInfoDAL.Updmemberbasic(tran, info)) { tran.Rollback(); return(false); } //添加日志 cl_h_info.AddRecordtran(tran, info.Number); if (System.Web.HttpContext.Current.Session["Company"] != null) { cl_h_info.ModifiedIntoLogstran(tran, CommonClass.ChangeCategory.Order, info.Number, BLL.CommonClass.ENUM_USERTYPE.Company); } else if (System.Web.HttpContext.Current.Session["Store"] != null) { cl_h_info.ModifiedIntoLogstran(tran, CommonClass.ChangeCategory.Order, info.Number, BLL.CommonClass.ENUM_USERTYPE.Store); } tran.Commit(); return(true); } catch { tran.Rollback(); return(false); } finally { conn.Close(); } } }