<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeeCount.aspx.cs" Inherits="MTCUN.EasyAnalyzer.FeeCount" %>

<%@ Import Namespace="MTCUN" %>
<!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 id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
    <script type="text/javascript">
        function Checks(checkbox) {
            for (var i = 0; i < document.forms[0].elements.length; i++) {
                var e = document.forms[0].elements[i];
                if (e.type == "checkbox" && e.id.substring(0, 10) == "cblColumn_") {
                    e.checked = checkbox.checked;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel">
        <table class="table" cellpadding="0" cellspacing="0">
            <tr>
                <th colspan="2">
                    按消耗学员的学费计算老师提成
                </th>
            </tr>
            <tr>
                <td>
                    校区：
                </td>
                <td>
                    <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    班级类型：
                </td>
                <td>
                    <asp:DropDownList ID="ddlClassType" runat="server">
                        <asp:ListItem Value="-1" Text=""></asp:ListItem>
                        <asp:ListItem Value="1">一对一</asp:ListItem>
                        <asp:ListItem Value="0">一对多</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    时间范围：
                </td>
                <td>
                    <asp:TextBox ID="tbxStartDate" runat="server"></asp:TextBox>
                    -<asp:TextBox ID="tbxEndDate" runat="server"></asp:TextBox>
                    &nbsp;<label class="lab_button"><asp:Button ID="btnWeek" runat="server" Text="本周"
                        OnClick="btnWeek_Click" /></label>
                    <label class="lab_button">
                        <asp:Button ID="btnMonth" runat="server" Text="本月" OnClick="btnMonth_Click" /></label>
                    <label class="lab_button">
                        <asp:Button ID="btnYear" runat="server" Text="本年" OnClick="btnYear_Click" /></label>
                    &nbsp;
                    <label class="lab_button">
                        <asp:Button ID="btnPrevMonth" runat="server" Text="上月" OnClick="btnPrevMonth_Click" /></label>
                    <label class="lab_button">
                        <asp:Button ID="btnNextMonth" runat="server" Text="下月" OnClick="btnNextMonth_Click" /></label>
                </td>
            </tr>
            <tr>
                <td>
                    字段选择：
                </td>
                <td>
                    <div style="color: #cccccc; float: left; background-color: #5D5D5D">
                        <table border="0">
                            <tr>
                                <td>
                                    <input id="Checkbox1" onclick="Checks(this)" type="checkbox" runat="server" checked="checked">全选
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="float: left">
                        <asp:CheckBoxList ID="cblColumn" runat="server" RepeatDirection="Horizontal" RepeatColumns="6">
                        </asp:CheckBoxList>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    参数与算法：
                </td>
                <td>
                    <div style="background-color: #ffffff; border: 1px solid #ECEB7F; border-radius: 5px;
                        width: 70%; padding: 4px; background-color: #FEFDC1">
                        <div id="setContent" style="float: left;">
                            <table class="style1">
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="RadioButton1" runat="server" GroupName="g1" Checked="True" />
                                    </td>
                                    <td>
                                        按消耗学员学费的<asp:TextBox ID="tbxC" runat="server"
                                            Width="86px"></asp:TextBox>
                                        %提成给老师。
                                    </td>
                                </tr>
                                </table>
                        </div>
                        <div style="clear: both; height: 0px; font-size: 0px">
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <label class="lab_button">
                        <asp:Button ID="Button1" runat="server" Text="计算" OnClick="btnAcc_Click" /></label>
                    <label class="lab_button">
                        <asp:Button ID="btnExportExcel" runat="server" OnClick="btnExportExcel_Click" Text="导出EXCEL"
                            ToolTip="ExportExcel" /></label>
                </td>
            </tr>
        </table>
    </div>
    <div class="divpanel">
        <asp:GridView ID="GridView1" runat="server" CssClass="gridview" OnSorting="GridView1_Sorting"
            AutoGenerateColumns="False" AllowSorting="True">
        </asp:GridView>
    </div>
    </form>
</body>
</html>
