| | |
| | | OA_CarManageBll bll_OA_CarManageBll = null; |
| | | OA_PropertyCateBLL bll_OA_PropertyCateBLL = null; |
| | | OA_PropertyManageBLL bll_OA_PropertyManageBLL = null; |
| | | OA_ShebeiManageBLL bll_OA_ShebeiManageBLL = null; |
| | | OA_StaffPostBLL bll_OA_StaffPostBLL = null; |
| | | OA_StaffResumeBLL bll_OA_StaffResumeBLL = null; |
| | | OA_StaffPostLogBLL bll_OA_StaffPostLogBLL = null; |
| | |
| | | bll_OA_CarManageBll = new OA_CarManageBll(); |
| | | bll_OA_PropertyCateBLL = new OA_PropertyCateBLL(); |
| | | bll_OA_PropertyManageBLL = new OA_PropertyManageBLL(); |
| | | bll_OA_ShebeiManageBLL = new OA_ShebeiManageBLL(); |
| | | bll_OA_StaffPostBLL = new OA_StaffPostBLL(); |
| | | bll_OA_StaffResumeBLL = new OA_StaffResumeBLL(); |
| | | bll_OA_StaffPostLogBLL = new OA_StaffPostLogBLL(); |
| | |
| | | else if (Request["dateType"] == "propertyNamecheckname") |
| | | { |
| | | Response.Write(IsExitsPropertyNameCateName(Request["name"], Request["keyid"])); |
| | | } |
| | | else if (Request["dateType"] == "shebeiNamecheckname") |
| | | { |
| | | Response.Write(IsExitsShebeiNameCateName(Request["name"], Request["keyid"])); |
| | | } |
| | | else if (Request["dateType"] == "resumeCateChange") |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | if (CurrentUser.MemberType == "管理员") |
| | | if (CurrentUser.MemberType == "管理员" || !CurrentUser.StaffId.HasValue || CurrentUser.StaffId.Value == 0) |
| | | { |
| | | return ""; |
| | | } |
| | | else |
| | | { |
| | | Sys_Permissions_UserRoleRelation m_Sys_Permissions_UserRoleRelation = bll_Sys_Permissions_RoleBLL.SelectSys_Permissions_UserRoleRelation(CurrentUser.MemberId); |
| | | return JsonHelper.GetJsonStringByObject(bll_Sys_Permissions_UserCaseBLL.GetNoExitCaseList(MenuPath, m_Sys_Permissions_UserRoleRelation.RoleId)); |
| | | Sys_Permissions_UserRoleRelation m_Sys_Permissions_UserRoleRelation = bll_Sys_Permissions_RoleBLL.SelectSys_Permissions_UserRoleRelation(CurrentUser.MemberId); |
| | | MenuPath = MenuPath.Replace("..", ""); |
| | | var sss = bll_Sys_Permissions_UserCaseBLL.GetNoExitCaseList(MenuPath, m_Sys_Permissions_UserRoleRelation.RoleId); |
| | | |
| | | //sss = sss.Where(x => x.Keyid == 12121212121); |
| | | if (sss != null && sss.Count() > 0) |
| | | { |
| | | var aaaa = sss.FirstOrDefault(); |
| | | var roleRel = bll_OA_FirmRoleBLL.SelectOA_StaffRoleRel(CurrentUser.StaffId); |
| | | if (roleRel != null) |
| | | { |
| | | var m_OA_FirmRolePermissionsRelList = bll_OA_FirmRoleBLL.SelectListByRoleId(roleRel.RoleId).Where(x=>x.MenuIdThree == aaaa.MenuId); |
| | | if (m_OA_FirmRolePermissionsRelList != null) |
| | | { |
| | | List<int?> Menus = new List<int?>(); |
| | | foreach (var m_Sys_Permissions_Menu in m_OA_FirmRolePermissionsRelList) |
| | | { |
| | | // Menus.Add(m_Sys_Permissions_Menu.MenuIdOne + "-" + m_Sys_Permissions_Menu.MenuIdTwo + "-" + m_Sys_Permissions_Menu.MenuIdThree + "+" + "0"); |
| | | string[] fucns = m_Sys_Permissions_Menu.FuncGroup.Split(','); |
| | | foreach (var item in fucns) |
| | | { |
| | | Menus.Add(item.ToInt32()); |
| | | } |
| | | } |
| | | sss = sss.Where(x => !Menus.Contains(x.Keyid)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return JsonHelper.GetJsonStringByObject(sss); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 检测行政物品是否重复 |
| | | |
| | | /// <summary> |
| | | /// 检测行政物品是否重复 |
| | | /// </summary> |
| | | /// <param name="Name"></param> |
| | | /// <param name="Keyid"></param> |
| | | /// <returns></returns> |
| | | public int IsExitsShebeiNameCateName(string Name, string Keyid) |
| | | { |
| | | return bll_OA_ShebeiManageBLL.IsExitsName(Name, CurrentUser.MemberId, Keyid); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 根据职位类别获取全部职位 |
| | | |
| | | public string GetPostListByCateId(int? cateId, int? Num) |