This commit is contained in:
parent
47581c2dcb
commit
39a8b67c25
|
@ -163,7 +163,8 @@ namespace BLL
|
|||
{
|
||||
if (!string.IsNullOrEmpty(getUser.RoleId))
|
||||
{
|
||||
var power = Funs.DB.Sys_RolePower.FirstOrDefault(x => x.MenuId == menuId && x.RoleId == getUser.RoleId);
|
||||
List<string> roleIdList = getUser.RoleId.Split(',').ToList();
|
||||
var power = Funs.DB.Sys_RolePower.FirstOrDefault(x => x.MenuId == menuId && roleIdList.Contains(x.RoleId));
|
||||
if (power != null)
|
||||
{
|
||||
returnValue = true;
|
||||
|
|
|
@ -27,10 +27,10 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="名称" ID="txtRoleName" EmptyText="输入查询条件"
|
||||
<f:TextBox runat="server" Label="名称" ID="txtRoleName" EmptyText="输入查询条件" LabelAlign="Right"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:RadioButtonList runat="server" ID="rbIsOfficce" Label="类型" LabelWidth="90px"
|
||||
<f:RadioButtonList runat="server" ID="rbIsOfficce" Label="类型" LabelWidth="80px" Width="280px" LabelAlign="Right"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:RadioItem Text="本部角色" Value="1" />
|
||||
<f:RadioItem Text="项目角色" Value="0" Selected ="true"/>
|
||||
|
@ -55,7 +55,7 @@
|
|||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
<f:RadioButtonList ID="rbMenuType" Label="菜单类型" runat="server" LabelWidth="80px"
|
||||
<f:RadioButtonList ID="rbMenuType" Label="菜单类型" runat="server" LabelWidth="80px" Width="280px"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="rbMenuType_SelectedIndexChanged">
|
||||
<f:RadioItem Selected="true" Text="本部菜单" Value="MenuType_S"/>
|
||||
<f:RadioItem Text="项目菜单" Value="MenuType_P"/>
|
||||
|
|
Loading…
Reference in New Issue