| | |
| | | //获取遍历结果 |
| | | public void InitialData() |
| | | { |
| | | var youxiao = this.selSPS_Department.Value.ToInt32(); |
| | | var oA_FirmRoles = bll_OA_FirmRoleBLL.SelectList(CurrentUser.MemberId); |
| | | if (youxiao>0) |
| | | { |
| | | if (youxiao == 1) |
| | | { |
| | | oA_FirmRoles = oA_FirmRoles.Where(x => x.IsUsed == true); |
| | | } |
| | | else if (youxiao == 2) |
| | | { |
| | | oA_FirmRoles = oA_FirmRoles.Where(x => x.IsUsed == false); |
| | | } |
| | | } |
| | | |
| | | treeHtml = "{GetMenuRoleId:'0', id: 99999, parentId: 900009, name: '最高权限', open: true },"; |
| | | |
| | | this.RepClientList.DataSource = bll_OA_FirmRoleBLL.SelectList(CurrentUser.MemberId); |
| | | this.RepClientList.DataSource = oA_FirmRoles;// bll_OA_FirmRoleBLL.SelectList(CurrentUser.MemberId); |
| | | this.RepClientList.DataBind(); |
| | | |
| | | Sys_Permissions_UserRoleRelation m_Sys_Permissions_UserRoleRelation = bll_Sys_Permissions_RoleBLL.SelectSys_Permissions_UserRoleRelation(CurrentUser.MemberId); |
| | |
| | | treeHtml = treeHtml.Trim(','); |
| | | } |
| | | |
| | | //查询事件 |
| | | protected void btn_Search_Click(object src, EventArgs e) |
| | | { |
| | | InitialData(); |
| | | } |
| | | |
| | | //保存角色权限 |
| | | protected void btn_SaveRole_Click(object sender, EventArgs e) |
| | | { |