Пример #1
0
 public List <ActionPower> SelectHrAccessList_HrGroupModule(string linkName, int PageNumber)
 {
     try
     {
         return(handler.SelectHrAccessList_HrGroupModule(linkName, PageNumber));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取Module信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in Get information of power.");
         throw exception;
     }
 }
Пример #2
0
 /// <summary>
 /// 获取部门信息 超级管理员获取所有
 /// </summary>
 /// <param name="userNo"></param>
 /// <returns></returns>
 public DataTable GetDeptInfo(string userNo)
 {
     try
     {
         return(handler.GetDeptInfo(userNo));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取部门信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in Get information of deparment.");
         throw exception;
     }
 }
Пример #3
0
 public void AddMenu(string cname, string iname, string createdBy = "admin")
 {
     try
     {
         handler.AddMenu(cname, iname, createdBy);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "添加菜单错误", innerEx);
         logger.Log(Level.Error, exception, "Error in AddMenu.");
         throw exception;
     }
 }
Пример #4
0
 public bool IsOprPower(List <ActionPower> list, string userno, string controller, string action, string btnKey)
 {
     try
     {
         return(handler.IsOprPower(list, userno, controller, action, btnKey));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "判断页面按钮出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred.");
         throw exception;
     }
 }
Пример #5
0
 public List <PurchaseEmplpyee> GetPurchaseEmplpyeeEmail()
 {
     try
     {
         return(handler.GetPurchaseEmplpyeeEmail());
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "GetPurchaseEmplpyeeEmail", innerEx);
         logger.Log(Level.Error, exception, "Error GetPurchaseEmplpyeeEmail.");
         throw exception;
     }
 }
Пример #6
0
 public void SaveBtn(string BtnKey, int BtnType, string sfid)
 {
     try
     {
         powerHandler.SaveBtn(BtnKey, BtnType, sfid);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "新增按钮出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in saving button information.");
         throw exception;
     }
 }
Пример #7
0
 public string GetBtnPowerUsers(int id)
 {
     try
     {
         return(powerHandler.GetBtnPowerUsers(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取步骤表单按钮权限出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in getting button_power information.");
         throw exception;
     }
 }
Пример #8
0
 public List <CAPower> SelectPowerLists(string userNo, bool isSupper, string module)
 {
     try
     {
         return(handler.SelectPowerLists(userNo, isSupper, module));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取权限信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in Get information of power.");
         throw exception;
     }
 }
Пример #9
0
 public string GetWorkPowerUsers(int id)
 {
     try
     {
         return(powerHandler.GetWorkPowerUsers(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取任务权限出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in getting worked users.");
         throw exception;
     }
 }
Пример #10
0
 public DataTable GetModuleGroupID(int moduleid)
 {
     try
     {
         return(handler.GetModuleGroupID(moduleid));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新GetModuleGroupID信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in getting.");
         throw exception;
     }
 }
Пример #11
0
 public void UptWork(string name, string pid, string remark, int id)
 {
     try
     {
         powerHandler.UptWork(name, pid, remark, id);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新工作流信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in updating worked information.");
         throw exception;
     }
 }
Пример #12
0
 public int ChangeDeptModule(int id, string GroupIds)
 {
     try
     {
         return(handler.ChangeDeptModule(id, GroupIds));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新HrGroupModule信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in update HrGroupModule.");
         throw exception;
     }
 }
Пример #13
0
 public int UpdateModuleInf(int id, string xmlData)
 {
     try
     {
         return(handler.UpdateModuleInf(id, xmlData));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新菜单信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in update ModuleInf.");
         throw exception;
     }
 }
Пример #14
0
 public int DeleteModule(int id)
 {
     try
     {
         return(handler.DeleteModule(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "删除Module相关信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in deleting Module.");
         throw exception;
     }
 }
Пример #15
0
 public void DelStepForm(string sfid)
 {
     try
     {
         powerHandler.DelStepForm(sfid);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "删除步骤表单权限出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in deleting steped form.");
         throw exception;
     }
 }
Пример #16
0
 public void SaveStep(string name, string pname, int isend, int workid)
 {
     try
     {
         powerHandler.SaveStep(name, pname, isend, workid);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "保存任务环节出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in saving step.");
         throw exception;
     }
 }
Пример #17
0
 public void UptForm(string fname, string furl, int gno, int formid)
 {
     try
     {
         powerHandler.UptForm(fname, furl, gno, formid);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新表单出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in updating form.");
         throw exception;
     }
 }
Пример #18
0
 public void DelStep(int pkid)
 {
     try
     {
         powerHandler.DelStep(pkid);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "删除任务环节出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in deleting worked step.");
         throw exception;
     }
 }
Пример #19
0
 public void DelBtn(int id)
 {
     try
     {
         powerHandler.DelBtn(id);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "删除步骤表单按钮出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in deleting button information.");
         throw exception;
     }
 }
Пример #20
0
 public void UptStep(string name, string pname, int isend, int id)
 {
     try
     {
         powerHandler.UptStep(name, pname, isend, id);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新任务环节出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in updating worked step.");
         throw exception;
     }
 }
Пример #21
0
 public DataTable GetNewWorkInfo(int id)
 {
     try
     {
         return(powerHandler.GetNewWorkInfo(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取任务出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in getting work information.");
         throw exception;
     }
 }
Пример #22
0
 public string GetStepPowerForms(int id)
 {
     try
     {
         return(powerHandler.GetStepPowerForms(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取任务环节表单权限出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in getting steped forms.");
         throw exception;
     }
 }
Пример #23
0
 public void ModifyRoleNameByID(string rolename, int id)
 {
     try
     {
         handler.ModifyRoleNameByID(rolename, id);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "更新角色名称出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred.");
         throw exception;
     }
 }
Пример #24
0
 public DataTable GetAllForms()
 {
     try
     {
         return(powerHandler.GetAllForms());
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取表单出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in getting forms.");
         throw exception;
     }
 }
Пример #25
0
 /// <summary>
 /// 获取用户的按钮权限
 /// </summary>
 /// <returns></returns>
 public List <ActionPower> GetUserButtonPermission(string controller, string action, string emailAddress)
 {
     try
     {
         return(handler.GetUserButtonPermission(controller, action, emailAddress));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "GetUserButtonPermission", innerEx);
         logger.Log(Level.Error, exception, "Error GetUserButtonPermission.");
         throw exception;
     }
 }
Пример #26
0
 public void saveFormPower(string forms, string keyid, int keytype)
 {
     try
     {
         powerHandler.saveFormPower(forms, keyid, keytype);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "保存表单权限出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in saving form power.");
         throw exception;
     }
 }
Пример #27
0
 public void InsertOrDelMenuRelation(int cid, int aid, int flag)
 {
     try
     {
         handler.InsertOrDelMenuRelation(cid, aid, flag);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "关联或解除关联错误", innerEx);
         logger.Log(Level.Error, exception, "Error in InsertOrDelMenuRelation.");
         throw exception;
     }
 }
Пример #28
0
 public List <CAPower> GetPowerList(string userNo, byte issupper)
 {
     try
     {
         return(handler.GetPowerList(userNo, issupper));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "获取权限信息出错", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in Get information of power.");
         throw exception;
     }
 }
Пример #29
0
 public void AddDefaultEr(string userEmail, string roles)
 {
     try
     {
         handler.AddDefaultEr(userEmail, roles);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "添加用户角色", innerEx);
         logger.Log(Level.Error, exception, "Error in AddDefaultEr.");
         throw exception;
     }
 }
Пример #30
0
 public int AddModuleInf(string xmlData)
 {
     try
     {
         return(handler.AddModuleInf(xmlData));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "插入菜单信息", innerEx);
         logger.Log(Level.Error, exception, "Error occurred in insert ModuleInf.");
         throw exception;
     }
 }