<%@ Page Language="c#" CodeBehind="PostStuClass.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Register.PostStuClass"
    Title="报名管理-选班办理" %>

<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Import Namespace="SWTraining" %>
<%@ Register Src="../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<%@ Register Src="../UserCol/Ann.ascx" TagName="Ann" TagPrefix="uc2" %>
<!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>
    <form id="Form1" method="post" runat="server">
    <div class="divpanel">
        <uc2:Ann ID="Ann1" runat="server" />
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="3">
                    学员选班表
                </th>
            </tr>
            <tr>
                <td style="width: 10%">
                    上课校区：
                </td>
                <td style="width: 40%">
                    <asp:DropDownList ID="ddlSchool" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSchool_SelectedIndexChanged"
                        DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
                <td align="center" rowspan="8" valign="top" style="width: 40%">
                    <asp:FormView ID="fvClass" runat="server" Width="100%">
                        <ItemTemplate>
                            <table class="smallgridview" cellspacing="0" style="width: 98%">
                                <tr>
                                    <th colspan="2" style="text-align: center">
                                        班级预览
                                    </th>
                                </tr>
                                <tr>
                                    <td>
                                        班级名称：
                                    </td>
                                    <td>
                                        <%#Eval("ClassName")%>
                                        (<%#Eval("ClassID")%>)
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        开课时间：
                                    </td>
                                    <td>
                                        <%#Eval("StartDate", "{0:d}") + " -- " + Eval("EndDate", "{0:d}")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        上课规律：
                                    </td>
                                    <td>
                                        <%#Eval("TimeRule")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        主讲老师：
                                    </td>
                                    <td>
                                        <%#Eval("TeacherName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        教室：
                                    </td>
                                    <td>
                                        <%#Eval("ClassroomName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        招生比例：
                                    </td>
                                    <td>
                                        <uc1:Progress ID="Progress1" runat="server" Text="人" MaxNum='<%#Eval("PlanCount") %>'
                                            MinNum='<%#Eval("StuCount") %>' Width="60px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        课时进度：
                                    </td>
                                    <td>
                                        <uc1:Progress ID="Progress2" runat="server" Text="课时" MaxNum='<%#Eval("Lessons") %>'
                                            MinNum='<%#Eval("CourseProgress") %>' Width="60px" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:FormView>
                </td>
            </tr>
            <tr>
                <td>
                    班级筛选：
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                状态：
                            </td>
                            <td>
                                <asp:RadioButtonList ID="rblDateFilter" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                                    OnSelectedIndexChanged="rblDateFilter_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="未开课"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="开课中"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="已结束"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                讲师：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlTeacher" runat="server" DataTextField="TrueName" DataValueField="UserID"
                                    OnSelectedIndexChanged="ddlTeacher_SelectedIndexChanged" AutoPostBack="True">
                                </asp:DropDownList>
                                <uc1:SimpleCode ID="SimpleCode1" runat="server" UsersControlID="ddlTeacher" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    班级编号：
                </td>
                <td>
                    <asp:DropDownList ID="ddlClass" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlClass_SelectedIndexChanged">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                    <asp:HyperLink ID="hlkTimeConflict" runat="server" Target="_blank">[检测排课冲突]</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    我的课时：
                </td>
                <td>
                    <div style="float: left; width: 58px">
                        <asp:DropDownList ID="ddlLessons" runat="server">
                        </asp:DropDownList>
                    </div>
                    <div style="float: left; width: 200px">
                        <uc1:Progress ID="myCourseProgress" runat="server" Width="60px" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    状态：
                </td>
                <td>
                    <asp:DropDownList ID="ddlScState" runat="server" Enabled="False">
                        <asp:ListItem Value="1" Text="正常"></asp:ListItem>
                        <%--                          <asp:ListItem Value="2" Text="插班"></asp:ListItem>--%>
                        <asp:ListItem Value="3" Text="转班"></asp:ListItem>
                        <asp:ListItem Value="4" Text="休学"></asp:ListItem>
                        <asp:ListItem Value="5" Text="退学"></asp:ListItem>
                        <asp:ListItem Value="6" Text="弃学"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    选班日期：
                </td>
                <td>
                    <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    类型：
                </td>
                <td align="left" valign="top">
                    <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>
                <td>
                    备注：
                </td>
                <td align="left" rowspan="1" valign="top">
                    <asp:TextBox ID="tbxRemark" runat="server" Width="50%" TextMode="MultiLine" 
                        Height="51px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    报名点：
                </td>
                <td colspan="2">
                    <asp:DropDownList ID="ddlPostSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    录入员：
                </td>
                <td colspan="2">
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    短信通知：
                </td>
                <td width="823" colspan="2">
                    <asp:CheckBox ID="cbxSMS" runat="server" Checked="True" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td width="823" colspan="2">
                    <label class="lab_buttom">
<asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click"></asp:Button>
</label>&nbsp;<label class="lab_buttom">
<input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
</label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
