<%
    //-----------------------------------------------------------
    // 文件名称: Tool_DeptAdmin_Manage.aspx
    // 页面名称: 部门分配
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-05-15
    //-----------------------------------------------------------
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Tool_DeptAdmin_Manage, V5Shop.Shop.Tool" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<!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="css/control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.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="ddlDept" 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" CssClass="button" CausesValidation="False" />
                </div>
            </div>
            <!-- 明细数据 -->
            <div id="content">
                <div class="listborder" style="margin-left:20px">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="12" HeaderStyle-ForeColor="#000000">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:BoundField HeaderText="部门名称" DataField="DeptName" SortExpression="DeptName" ItemStyle-Width="40%" />
                            <asp:BoundField HeaderText="操作员名称" DataField="TrueName" SortExpression="TrueName" ItemStyle-Width="60%" />
                        </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: 400px;">
                            <!-- 现在所在的部门 -->
                            <tr>
                                <td align="right" style="width: 40%; height: 30px;">
                                    <asp:Label ID="lblOldDept" runat="server" Text="现在所在的部门：" Width="100px">
                                    </asp:Label>
                                </td>
                                <td align="left">
                                    <asp:DropDownList ID="ddlOldDept" runat="server" Width="150px" AutoPostBack="True" OnSelectedIndexChanged="ddlOldDept_SelectedIndexChanged">
                                        <asp:ListItem Value="-1" Selected="True">请选择
                                        </asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:CustomValidator ID="cvOldDept" runat="server" ControlToValidate="ddlNewDept" Display="Dynamic" ErrorMessage="必须选择." OnServerValidate="ValidateDropDownList" ValidateEmptyText="True">
                                    </asp:CustomValidator>
                                    <span class="NeedMsg">*</span></td>
                            </tr>
                            <!-- 用户列表 -->
                            <tr>
                                <td height="87" align="right" style="height: 30px">
                                    <asp:Label ID="Label1" runat="server" Text="操作员姓名：" Width="100px"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:CheckBoxList ID="chkUserList" runat="server" Width="140px" CssClass="input2">
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <!-- 新的部门 -->
                            <tr>
                                <td align="right" style="width: 20%; height: 30px;">
                                    &nbsp;
                                    <asp:Label ID="Label3" runat="server" Text="新的部门：" Width="100px">
                                    </asp:Label>
                                </td>
                                <td align="left">
                                    <asp:DropDownList ID="ddlNewDept" runat="server" Width="150px" AutoPostBack="True">
                                        <asp:ListItem Selected="True" Value="-1">请选择
                                        </asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:CustomValidator ID="cvNewDept" runat="server" ControlToValidate="ddlNewDept" Display="Dynamic" ErrorMessage="必须选择." OnServerValidate="ValidateDropDownList" ValidateEmptyText="True">
                                    </asp:CustomValidator>
                                    <span class="NeedMsg">*</span></td>
                            </tr>
                            <!-- 确定/更新/重置 -->
                            <tr>
                                <td style="height: 36px" align="right">
                                </td>
                                <td align="left">
                                    <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" CssClass="button" />&nbsp;
                                    <%--<input id="iptReset" runat="server" type="reset" value="重置" class="button" />--%>
                                     <asp:Button ID="btnReset" runat="server" meta:resourcekey="btnAddResource1"  Text="重置" CssClass="button" OnClick="btnReset_Click" />
                                    </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
