2
schangxiang@126.com
2024-08-16 b47c50a2a514def7374b32d7194b2c599cba5625
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleContent.aspx.cs" Inherits="iWareWms.View.RBAC.RoleContent.RoleContent" %>
 
<!DOCTYPE html>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="sourcefiles" content="~/UserControl/SelectParentControl.ascx" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server"></f:PageManager>
        <f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Regions>
                <f:Region ID="Region1" ShowBorder="false" ShowHeader="false" Width="200px" Position="Left" Layout="Fit" BodyPadding="5px" runat="server">
                    <Items>
                        <f:Grid ID="GridRole" runat="server" ShowBorder="true" ShowHeader="false" EnableCheckBoxSelect="false" DataKeyNames="Id,RoleName" AllowSorting="false"
                         AllowPaging="false" EnableMultiSelect="false" OnRowClick="GridRole_RowClick" EnableTextSelection ="true"
                            EnableRowClickEvent="true" KeepCurrentSelection="true">
                            <Columns>
                                <f:RowNumberField HeaderText="" TextAlign="Left" MinWidth="24px"></f:RowNumberField>
                                <f:BoundField DataField="RoleName" SortField="Name" ExpandUnusedSpace="true" HeaderText="角色名称"></f:BoundField>
                            </Columns>
                        </f:Grid>
                    </Items>
                </f:Region>
                <f:Region ID="Region2" ShowBorder="false" ShowHeader="false" Position="Center" Layout="Fit" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BodyPadding="5px 5px 5px 0" runat="server">
                    <Items>
                        <f:TabStrip ID="TabStrip1" runat="server" ActiveTabIndex="0" ShowBorder="True"  AutoPostBack="true">
                            <Tabs>
                                <f:Tab ID="Tab2" runat="server" Title="权限管理" Layout="Fit">
                                    <Items>
                                        <f:Grid ID="GridMenu" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
                                          DataKeyNames="Id,Name,ParentId" ExpandAllTreeNodes="true" EnableCheckBoxSelect="True" EnableMultiSelect="true"
                                          EnableTree="true" TreeColumn="Name" DataIDField="Id" DataParentIDField="ParentId" ForceFit="true" KeepCurrentSelection="true"
                                          EnableRowClickEvent="true" OnRowClick="GridMenu_RowClick" EnableTextSelection ="true" >
                                            <Toolbars>
                                                <f:Toolbar ID="Toolbar1" Position="Top" runat="server">
                                                    <Items>
                                                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                                                                                    runat="server" Text="保存修改">
                                                        </f:Button>
                                                    </Items>
                                                </f:Toolbar>
                                            </Toolbars>
 
                                            <Columns>
                                                <f:BoundField  ColumnID="Name" ExpandUnusedSpace="true" DataField="Name" HeaderText="菜单标题" Width="100px" />
                                                <f:TemplateField Width="70px" HeaderText="类型" SortField="Type">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Type" runat="server" Text='<%# GetContentType(Eval("Type")) %>'></asp:Label>
                                                    </ItemTemplate>
                                                </f:TemplateField> 
                                                <f:BoundField DataField="ParentId" HeaderText="父菜单" Hidden="true" Width="100px" />
                                                <f:BoundField DataField="Remark" HeaderText="备注" ExpandUnusedSpace="true" Width="100px" />
                                            </Columns>
                                        </f:Grid>
                                       
                                    </Items>
                                </f:Tab>
                            </Tabs>
                        </f:TabStrip>
                    </Items>
                </f:Region>
            </Regions>
        </f:RegionPanel>
    </form>
</body>
</html>