/// <summary> /// 修改部门提成 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool UpdateInputDepatmentRoyalty(InputDepatmentRoyaltyModel model) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //登陆日志 try { bool succ = false; LogInfoModel logModel = InitLogInfo(model.DeptID); logModel.Element = ConstUtil.LOG_PROCESS_UPDATE; succ = InputDepatmentRoyaltyDBHelper.UpdateInputDepatmentRoyalty(model); if (!succ) { logModel.Remark = ConstUtil.LOG_PROCESS_FAILED; } else { logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS; } LogDBHelper.InsertLog(logModel); return(succ); } catch (Exception) { return(false); throw; } }
public static DataTable SearchPersonTaxInfo(string DeptID, string StartDate, string EndDate, int pageIndex, int pageCount, string ord, ref int totalCount) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //执行查询 return(InputDepatmentRoyaltyDBHelper.SearchPersonTaxInfo(userInfo.CompanyCD, DeptID, StartDate, EndDate, pageIndex, pageCount, ord, ref totalCount)); }
/// <summary> /// 根据时间查询 /// </summary> /// <param name="companyCD"></param> /// <param name="DeptID"></param> /// <param name="StartDate"></param> /// <param name="EndDate"></param> /// <returns></returns> public static DataTable SearchInsuPersonalTaxInfo(string DeptID, string StartDate, string EndDate) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //执行查询 return(InputDepatmentRoyaltyDBHelper.SearchInsuPersonalTaxInfo(userInfo.CompanyCD, DeptID, StartDate, EndDate)); }
/// <summary> /// 删除部门提成 /// </summary> /// <param name="TypeFlag"></param> /// <param name="CompanyCD"></param> /// <returns></returns> public static bool DeleteInputDepatmentRoyalty(string ID) { if (string.IsNullOrEmpty(ID)) { return(false); } UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //string CompanyCD = "AAAAAA"; bool isSucc = InputDepatmentRoyaltyDBHelper.DeleteInputDepatmentRoyalty(ID); //定义变量 string remark; //成功时 if (isSucc) { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_SUCCESS; } else { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_FAILED; } //获取删除的编号列表 string[] noList = ID.Split(','); //遍历所有编号,登陆操作日志 for (int i = 0; i < noList.Length; i++) { //获取编号 string no = noList[i]; //替换两边的 ' no = no.Replace("'", string.Empty); //操作日志 LogInfoModel logModel = InitLogInfo("ID:" + no); //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空 logModel.Element = ConstUtil.LOG_PROCESS_DELETE; //设置操作成功标识 logModel.Remark = remark; //登陆日志 LogDBHelper.InsertLog(logModel); } return(isSucc); }