<%
    //-----------------------------------------------------------
    // 文件名称: Tool_AdminRole_Manage.aspx
    // 页面名称: 分配权限组
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-05-19
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Tool_AdminRole_Manage, V5Shop.Shop.Tool" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server"/>
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px;
                    border-bottom: #f7f7f7 4px solid">
                    &nbsp;&nbsp;
                    <!-- 操作员姓名 -->
                    <asp:Label ID="lblAdminName" runat="server" Text="操作员姓名:" meta:resourcekey="lblAdminNameResource"></asp:Label>
                    <asp:TextBox ID="txtTrueName" runat="server"></asp:TextBox>&nbsp;&nbsp;
                    <!-- 权限组 -->
                    <asp:Label ID="lblDept" runat="server" Text="权限组:" meta:resourcekey="lblDeptResource"></asp:Label>
                    <asp:DropDownList ID="ddlRole" runat="server" meta:resourcekey="ddlDeptResource">
                        <asp:ListItem Value="-1">全部</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;&nbsp;
                    <!-- 查询按钮 -->
                    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查  询" meta:resourcekey="btnSearchResource" CausesValidation="False" CssClass="button" />
                </div>
            </div>
            <!-- 明细数据 -->
            <div id="content">
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" PageSize="12">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:BoundField HeaderText="用户名" DataField="Name" SortExpression="Name">
                                <itemstyle width="33%" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="真实姓名" DataField="TrueName" SortExpression="TrueName">
                                <itemstyle width="33%" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="权限组名称" DataField="RoleName" SortExpression="RoleName">
                                <itemstyle width="33%" />
                            </asp:BoundField>
                        </Columns>
                        <HeaderStyle CssClass="category" />
                    </cc1:V5ShopGridView>
                </div>
                <asp:Panel runat="server" ID="PanelShow" HorizontalAlign="Center" Width="100%">
                   <div align="center" style="background: #f1f1f1">
                    <table align="center" cellpadding="0" cellspacing="0" style="width: 550px;">
                        <!-- 部门 -->
                        <tr>
                            <td align="right" style="height: 30px">
                          <asp:Label ID="lblOldDept" runat="server" Text="部门：" Width="100px">                            </asp:Label>                            </td>
                            <td align="left">
                            <asp:DropDownList ID="ddlDept" runat="server" Width="144px" AutoPostBack="True" OnSelectedIndexChanged="ddlDept_SelectedIndexChanged">
                                <asp:ListItem Value="-1" Selected="True">请选择                                </asp:ListItem>
                            </asp:DropDownList>
                            <asp:CustomValidator ID="cvDept" runat="server" ControlToValidate="ddlDept" Display="Dynamic" ErrorMessage="必须选择." OnServerValidate="ValidateDropDownList" ValidateEmptyText="True">                            </asp:CustomValidator>
                          <span class="NeedMsg">*</span></td>
                        </tr>
                        <!-- 操作员姓名 -->
                        <tr>
                            <td align="right" style=" height:30px">&nbsp;
                            <asp:Label ID="Label3" runat="server" Text="操作员姓名：" Width="100px">                            </asp:Label>                            </td>
                            <td align="left">
                            <asp:DropDownList ID="ddlTrueName" runat="server" Width="144px" AutoPostBack="True" OnSelectedIndexChanged="ddlTrueName_SelectedIndexChanged">
                                <asp:ListItem Selected="True" Value="-1">请选择                                </asp:ListItem>
                            </asp:DropDownList>
                            <asp:CustomValidator ID="cvTrueName" runat="server" ControlToValidate="ddlTrueName" Display="Dynamic" ErrorMessage="必须选择." OnServerValidate="ValidateDropDownList" ValidateEmptyText="True">                            </asp:CustomValidator>
                            <span class="NeedMsg">*</span></td>
                        </tr>
                        <!-- 操作员权限组 -->
                        <tr>
                          <td align="right" style="height: 30px;">
                            <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="所属权限组" HideSelects="False" ImageURL="images/help.gif" Text="操作员所属的权限组,属于这个权限组就拥有了这个权限组的权限。" />
                            <asp:Label ID="Label1" runat="server" Text="所属权限组：" Width="80px"></asp:Label></td>
                            <td align="left">
                            <asp:CheckBoxList ID="chkRoleList" runat="server" RepeatColumns="5" CssClass="input2">                            </asp:CheckBoxList>                            </td>
                        </tr>
                        <!-- 确定/更新/重置 -->
                        <tr>
                            <td align="center" style="height:36px;" colspan="2">
                            <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" />&nbsp;
                            <input id="iptReset" runat="server" type="reset" value="重置" /></td>
                        </tr>
                    </table>
                  </div>
                </asp:Panel>
            </div>
            <div id="hiddenfield" style="display:none"><asp:HiddenField ID="PageIndex" runat="server" Value="0" /><asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" /><uc1:HiddenField ID="Alert" runat="server" /></div>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
    </form>
</body>
</html>
