<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostClass.aspx.cs" Inherits="MTCUN.Class.PostClass"
    Title="开设班级-教务" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<%@ Register Src="../UserCol/Dictionary.ascx" TagName="Dictionary" TagPrefix="uc2" %>
<%@ Register Src="../UserCol/Ann.ascx" TagName="Ann" 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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body onload="__mt_addTableLeftCss('tb');">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <uc3:Ann ID="Ann1" runat="server" />
        <div class="divpanel">
            <table border="0" cellspacing="0" class="table" id="tb">
                <tr>
                    <th colspan="2">开设班级
                    </th>
                </tr>
                <tr class="required">
                    <td style="text-align: right" class="table_left_width">班级编号：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxClassID" runat="server" Enabled="False"></asp:TextBox>
                        <asp:CheckBox ID="cbxAutoID" runat="server" AutoPostBack="True"
                            Checked="True" OnCheckedChanged="cbxAutoID_CheckedChanged" Text="自动" />
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">班级名称：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxClassName" runat="server" Width="173px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">课程名称：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCourse" runat="server" DataTextField="CourseName" DataValueField="CourseID"
                            AutoPostBack="True" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddlCourseType" runat="server" DataTextField="CourseTypeName"
                            DataValueField="CourseTypeID" AutoPostBack="True" OnSelectedIndexChanged="ddlCourseType_SelectedIndexChanged">
                        </asp:DropDownList>
                        <uc1:SimpleCode ID="SimpleCode2" runat="server" UsersControlID="ddlCourse" CodeType="Course" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">收费方式：
                    </td>
                    <td>
                        <asp:Label ID="labPayment" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">授课形式：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlClassType" runat="server" Enabled="False" EnableTheming="True">
                            <asp:ListItem Value="0">一对多教学</asp:ListItem>
                            <asp:ListItem Value="1">一对一教学</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">主讲老师：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlTeacher" runat="server" DataTextField="TrueName" DataValueField="UserID">
                        </asp:DropDownList>
                        <uc1:SimpleCode ID="SimpleCode1" runat="server" UsersControlID="ddlTeacher" />
                    </td>
                </tr>
                <tr id="trHeadTeacher" runat="server">
                    <td style="text-align: right">助教 ：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlHeadTeacher" runat="server" DataTextField="TrueName" DataValueField="UserID">
                        </asp:DropDownList>
                        <uc1:SimpleCode ID="SimpleCode3" runat="server" UsersControlID="ddlHeadTeacher" />
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">开课日期：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxStartDate" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">结束日期：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxEndDate" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">上课规律：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxTimeRule" runat="server" Width="280px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">上课地点：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID"
                            AutoPostBack="True" OnSelectedIndexChanged="ddlSchool_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">计划招生数：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxPlanCount" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">教室：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlClassroom" runat="server" DataTextField="ClassroomName"
                            DataValueField="ClassroomID" AutoPostBack="True" OnSelectedIndexChanged="ddlClassroom_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Label ID="labSeatimgMsg" runat="server" EnableViewState="False"
                            ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">总课时：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxLessons" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">每课时：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxLessonMinute" runat="server" Width="70px"></asp:TextBox>
                        分钟
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">每课时提成：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxLessonCommission" runat="server" Width="70px"></asp:TextBox>
                    </td>
                </tr>
                <tr runat="server" id="c1">
                    <td style="text-align: right">
                        <asp:Label ID="labCustom1" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxCustom1" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr runat="server" id="c2">
                    <td style="text-align: right">
                        <asp:Label ID="labCustom2" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxCustom2" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr runat="server" id="c3">
                    <td style="text-align: right">
                        <asp:Label ID="labCustom3" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxCustom3" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr runat="server" id="c4">
                    <td style="text-align: right">
                        <asp:Label ID="labCustom4" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxCustom4" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr runat="server" id="c5">
                    <td style="text-align: right">
                        <asp:Label ID="labCustom5" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxCustom5" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">班级介绍：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxRemark" runat="server" Height="95px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">考勤选项：
                    </td>
                    <td>
                        <div style="background-color: #ffffff; border: 1px solid #ECEB7F; border-radius: 5px; width: 70%; padding: 4px; background-color: #FEFDC1">
                            <div id="setControl" onclick="if(setContent.style.display == 'none'){setContent.style.display = 'block';setControl.innerHTML='-';} else {setContent.style.display = 'none';setControl.innerHTML='+';}"
                                style="float: left; cursor: pointer; font-weight: bold; font-size: 18px; width: 22px; height: 22px; line-height: 22px; vertical-align: middle; text-align: center; background-color: #DAA840; color: #ffffff">
                                +
                            </div>
                            <div id="setContent" style="float: left; display: none">
                                <table runat="server" id="tbSet" style="margin-left: 2px">
                                    <tr>
                                        <td>自动处理旷课请假：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlAutoAbsent" runat="server">
                                                <asp:ListItem Value="-1" Text=" "></asp:ListItem>
                                                <asp:ListItem Value="1">是</asp:ListItem>
                                                <asp:ListItem Value="0">否</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>旷课扣课时：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlAbsentDepleteLesson" runat="server">
                                                <asp:ListItem Value="-1" Text=" "></asp:ListItem>
                                                <asp:ListItem Value="1">是</asp:ListItem>
                                                <asp:ListItem Value="0">否</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>请假扣课时：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlLeaveDepleteLesson" runat="server">
                                                <asp:ListItem Value="-1" Text=" "></asp:ListItem>
                                                <asp:ListItem Value="1">是</asp:ListItem>
                                                <asp:ListItem Value="0">否</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>签到/签退时间：
                                        </td>
                                        <td colspan="2">上课前<asp:TextBox ID="tbxUpStart" runat="server" Width="35px"></asp:TextBox>
                                            分钟<span style="color: #009933">－－(签到)－－</span>下课前<asp:TextBox ID="tbxUpEndAndDownStart"
                                                runat="server" Width="35px"></asp:TextBox>
                                            分钟<span style="color: #CC6600">－－(签退)－－</span>下课后<asp:TextBox ID="tbxDownEnd" runat="server"
                                                Width="35px"></asp:TextBox>
                                            分钟
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>不排课考勤：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlAutoAttendLD" runat="server">
                                                <asp:ListItem Value="-1" Text=" "></asp:ListItem>
                                                <asp:ListItem Value="1">是</asp:ListItem>
                                                <asp:ListItem Value="0">否</asp:ListItem>
                                            </asp:DropDownList>
                                            1次<asp:DropDownList ID="ddlAutoAttendLessons" runat="server">
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                            </asp:DropDownList>
                                            课时
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div style="clear: both; height: 0px; font-size: 0px">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr class="required">
                    <td style="text-align: right">录入员：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;
                    </td>
                    <td>
                        <label class="lab_button">
                            <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="提交" />
                        </label>
                        <label class="lab_button" id="__mt_labBack" runat="server">
                            <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                        </label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="divremark">
            <b>注意事项：</b><br />
            1、开设班级，指开设的班次（班级是滚动的，按时间变化的），不是传统意义上的年级+教室。<br />
            2、此处开班，用于学期制的大班，课时制一对一教学的班级请勿在此开设。<br />
            3、<span class="style1">一对一班级不用提前开设，而是购买课程后，在选班环节进行开设。</span><br />
        </div>
        <!------usercol ajax-------->
        <asp:UpdatePanel ID="up" runat="server">
            <ContentTemplate>
                <uc2:Dictionary ID="Dictionary1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <!-------usercol ajax------->
    </form>
</body>
</html>
