Example #1
0
        //所有系统角色信息
        public List<T_SYS_ROLE> GetSysRoleInfosPagingByCompanyIDs(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo, string[] CompanyIDs)
        {
            
            using (SysRoleBLL RoleBll = new SysRoleBLL())
            {
                //SysUserBLL userBLL = new SysUserBLL();
                //List<FlowUserInfo> aa = userBLL.GetFlowUserInfoByRoleID("7edfe203-68f3-4900-bc0d-8d557b3894f7");
                //SysUserBLL userbll = new SysUserBLL();
                //SysUserBLL userbll = new SysUserBLL();
                //string companyids = "";
                //string departids = "";
                //string postids = "";
                //userbll.GetUserMenuPermsByUserPermisionBllCommon("T_OA_APPROVALINFO", "2ec631ed-0fc0-4b7f-a86c-28581eeab068", ref companyids, ref departids, ref postids);
                IQueryable<T_SYS_ROLE> SysRoleInfosList = RoleBll.GetAllSysRoleInfosWithPagingByCompanyIDs(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, CompanyIDs);
                //GetSysLeftMenuFilterPermissionToNewFrame("543e0360-6e27-4f8a-82cb-6df1f9ea6a8d");//85b414ab-87b3-4740-aef4-1d89f3f380cc
                //GetSysLeftMenuFilterPermissionToNewFrame("85b414ab-87b3-4740-aef4-1d89f3f380cc");
                //GetUserByEmployeeID("940d667e-4c04-425a-b347-b82719f39c71");
                
                if (SysRoleInfosList == null)
                {
                    return null;
                }
                else
                {
                    return SysRoleInfosList.ToList();
                }
            }

        }