<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostOneClass.aspx.cs" Inherits="MTCUN.Mobile.Register.PostOneClass"
    Title="安排一对一课-客服" %>

<%@ 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" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc4" %>
<%@ Register Src="../User_Col/col_StuControlPanel.ascx" TagName="col_StuControlPanel" TagPrefix="uc5" %>
<!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="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
</head>
<body onload="showURL()">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <uc4:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">
                <uc5:col_StuControlPanel ID="col_StuControlPanel1" runat="server" />
                <uc3:Ann ID="Ann1" runat="server" />
                <div class="kuai_show">
                    <table class="table_simple_kuan" cellspacing="0" runat="server" id="tabPost">
                        <tr>
                            <th colspan="2">开设一对一个人班
                            </th>
                        </tr>
                        <tr>
                            <td style="width: 85px">班级编号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxClassID" runat="server" Width="173px" Enabled="False"></asp:TextBox>
                                <span style="color: Red">* </span>
                                <asp:CheckBox ID="cbxAutoID" runat="server" AutoPostBack="True" Checked="True" OnCheckedChanged="cbxAutoID_CheckedChanged"
                                    Text="自动" />
                            </td>
                        </tr>
                        <tr class="required">
                            <td>班级名称：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxClassName" runat="server" Width="173px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>课程：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCourse" runat="server" DataTextField="CourseName" DataValueField="CourseID"
                                    AutoPostBack="True" Enabled="False">
                                </asp:DropDownList>
                                <uc1:SimpleCode ID="SimpleCode2" runat="server" UsersControlID="ddlCourse" CodeType="Course" />
                            </td>
                        </tr>
                        <tr class="required">
                            <td>开课日期：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxStartDate" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>结束日期：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxEndDate" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>主讲老师：
                            </td>
                            <td>
                                <span class="inline_block">
                                    <asp:DropDownList ID="ddlTeacher" runat="server" DataTextField="TrueName" DataValueField="UserID">
                                    </asp:DropDownList>
                                </span>
                                <span class="inline_block">
                                    <uc1:SimpleCode ID="SimpleCode1" runat="server" UsersControlID="ddlTeacher" />
                                    <script type="text/javascript">
                                        var tid = 0;
                                        function GetTID(_tid) {
                                            tid = _tid;
                                            document.getElementById("showURL").innerHTML = "<a href='../Tools/LessonTeacherTable.aspx?TeacherID=" + tid + "' target='_blank'>【检测冲突】</a>";
                                        }

                                        function showURL() {

                                            var obj = document.getElementById('ddlTeacher');
                                            var index = obj.selectedIndex; //序号，取当前选中选项的序号
                                            var val = obj.options[index].value;

                                            tid = val;
                                            document.getElementById("showURL").innerHTML = "<a href='../Tools/LessonTeacherTable.aspx?TeacherID=" + tid + "' target='_blank'>【检测冲突】</a>";
                                        }

                                    </script>
                                    <span id="showURL"></span>
                                </span>
                            </td>
                        </tr>
                        <tr id="trHeadTeacher" runat="server">
                            <td>助教：
                            </td>
                            <td>
                                <span class="inline_block">
                                    <asp:DropDownList ID="ddlHeadTeacher" runat="server" DataTextField="TrueName" DataValueField="UserID">
                                    </asp:DropDownList>
                                </span>
                                <span class="inline_block">
                                    <uc1:SimpleCode ID="SimpleCode3" runat="server" UsersControlID="ddlHeadTeacher" />
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td>上课规律：
                            </td>
                            <td class="required">
                                <asp:TextBox ID="tbxTimeRule" runat="server" Width="280px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>上课地点：
                            </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>教室：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlClassroom" runat="server" DataTextField="ClassroomName"
                                    DataValueField="ClassroomID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>每课时：
                            </td>
                            <td>
                                <span class="inline_block">
                                    <asp:TextBox ID="tbxLessonMinute" runat="server"></asp:TextBox></span><span class="inline_block">分钟</span>
                            </td>
                        </tr>
                        <tr>
                            <td>每课时提成：
                            </td>
                            <td class="inline_block">
                                <asp:TextBox ID="tbxLessonCommission" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="c1">
                            <td>
                                <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>
                                <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>
                                <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>
                                <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>
                                <asp:Label ID="labCustom5" runat="server"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCustom5" runat="server"></asp:TextBox>
                            </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="setControl" onclick="if(setContent.style.display == 'none'){setContent.style.display = 'block';setControl.innerHTML='-';} else {setContent.style.display = 'none';setControl.innerHTML='+';}"
                                        style="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="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>上课前<asp:TextBox ID="tbxUpStart" runat="server" Width="35px"></asp:TextBox>
                                                    分钟</td>
                                                <td><span style="color: #009933">－－</span></td>
                                                <td>下课前<asp:TextBox ID="tbxUpEndAndDownStart"
                                                    runat="server" Width="35px"></asp:TextBox>分钟</td>
                                            </tr>
                                            <tr>
                                                <td>签退时间：</td>
                                                <td align="right">签到终止</td>
                                                <td><span style="color: #009933">－－</span></td>
                                                <td>下课后<asp:TextBox ID="tbxDownEnd" runat="server"
                                                    Width="35px"></asp:TextBox>分钟</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></td>
                                                <td>&nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th colspan="2" style="height: 3px; font-size: 1pt"></th>
                        </tr>
                        <tr>
                            <td>课时：
                            </td>
                            <td class="inline_block">
                                <asp:TextBox ID="tbxLessons" runat="server" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>课时有效期：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxExpiryDate" runat="server" AutoPostBack="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>选班日期：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>类型：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlContinueReg" runat="server">
                                    <asp:ListItem Value="0">试听</asp:ListItem>
                                    <asp:ListItem Value="1" Selected="True">新增</asp:ListItem>
                                    <asp:ListItem Value="2">续报</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>报名点：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlPostSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>录入员：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>短信通知：
                            </td>
                            <td>
                                <asp:CheckBox ID="cbxSMS" runat="server" Checked="True" />
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;
                            </td>
                            <td></td>
                        </tr>
                    </table>
                    <label class="lab_button">
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" />
                    </label>
                    <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                        <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                    </label>

                </div>


                <!------usercol ajax-------->
                <asp:UpdatePanel ID="up" runat="server">
                    <ContentTemplate>
                        <uc2:Dictionary ID="Dictionary1" runat="server" />
                    </ContentTemplate>
                </asp:UpdatePanel>
                <!-------usercol ajax------->
            </div>
        </div>
    </form>
</body>
</html>
