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; } }
/// <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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
/// <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; } }
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; } }
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; } }
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; } }
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; } }
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; } }