<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuAllot.aspx.cs" Inherits="MTCUN.ConsultManage.StuAllot"
    Title="批量重分配-顾问管理" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<!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 id="Head1" runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" runat="server" method="post">
    <div class="divpanel">
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2">
                    顾问数据批量重分配
                </th>
            </tr>
            <tr>
                <td>
                    潜在学员信息分配：
                </td>
                <td>
                    将顾问：<asp:DropDownList ID="ddlUser1" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <uc1:SimpleCode ID="SimpleCode1" runat="server" UsersControlID="ddlUser1" />
                    数据转移给顾问：<asp:DropDownList ID="ddlUser2" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <uc1:SimpleCode ID="SimpleCode2" runat="server" UsersControlID="ddlUser2" />
                    <label class="lab_button">
                        <asp:Button ID="btnPost1" runat="server" OnClick="btnPost1_Click" OnClientClick="return confirm('您确定要转移潜在学员信息吗？一旦执行将不能撤销。');"
                            Text="转移&gt;&gt;" /></label>
                </td>
            </tr>
            <tr>
                <td>
                    正式学员信息分配：
                </td>
                <td>
                    将顾问：<asp:DropDownList ID="ddlUser3" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <uc1:SimpleCode ID="SimpleCode3" runat="server" UsersControlID="ddlUser3" />
                    数据转移给顾问：<asp:DropDownList ID="ddlUser4" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <uc1:SimpleCode ID="SimpleCode4" runat="server" UsersControlID="ddlUser4" />
                    <label class="lab_button">
                        <asp:Button ID="btnPost2" runat="server" OnClick="btnPost2_Click" OnClientClick="return confirm('您确定要转移正式学员信息吗？一旦执行将不能撤销。');"
                            Text="转移&gt;&gt;" /></label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <th colspan="2">
                    顾问管理员智能分配
                </th>
            </tr>
            <tr>
                <td>
                    开始日期：
                </td>
                <td>
                    <asp:TextBox ID="tbxStartDate" runat="server" ReadOnly="True" Width="127px"></asp:TextBox>
                    <label class="lab_button">
                        <asp:Button ID="btnUpMonth" runat="server" OnClick="btnUpMonth_Click" Text="前30天" />
                    </label>
                    <label class="lab_button">
                        <asp:Button ID="btnDownMonth" runat="server" OnClick="btnDownMonth_Click" Text="后30天" />
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    数据源：
                </td>
                <td>
                    <asp:DropDownList ID="ddlUser5" runat="server" DataTextField="TrueName" DataValueField="UserID"
                        AutoPostBack="True" OnSelectedIndexChanged="ddlUser5_SelectedIndexChanged">
                    </asp:DropDownList>
                    <uc1:SimpleCode ID="SimpleCode5" runat="server" UsersControlID="ddlUser5" />
                    <asp:Label ID="labCount" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <label class="lab_button">
                        <asp:Button ID="btnFp" runat="server" Text="开始分配" OnClick="btnFp_Click" />
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    顾问成员：
                </td>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="smallgridview"
                        EnableModelValidation="True" Width="60%">
                        <Columns>
                            <asp:BoundField DataField="UserID" HeaderText="工号" />
                            <asp:BoundField DataField="TrueName" HeaderText="姓名" />
                            <asp:BoundField DataField="ServiceNum" HeaderText="潜在学员数" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <div class="divremark">
        <b>注意事项：</b><br />
        1、如果“顾问成员”这里什么也不显示，请联系系统管理员将自定义的顾问组绑定系统内置角色:顾问。(位置：系统-用户组-{自定义的顾问组}-权限-系统角色：顾问)<br />
        2、“开始日期”表示在此日期之后录入的所有符合条件的数据。<br />
        3、点击“开始分配”后，系统将均匀的把数据分配给顾问成员，注意一次操作数据不宜太多。<br />
    </div>
    </form>
</body>
</html>
