<%@ Page CodeBehind="PostChange.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Affairs.PostChange"
    Async="true" Title="教务管理-异动办理" %>

<%@ Import Namespace="SWTraining" %>
<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Register Src="../UserCol/Remark.ascx" TagName="Remark" 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 id="Head1" runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        function StudentBox() {
            window.showModelessDialog('../Tools/StudentBox.aspx', window, 'dialogWidth=750px;dialogHeight=500px');
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 626px;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="divpanel">
        <table class="table" runat="server" cellspacing="0">
            <tr>
                <th colspan="3">
                    异动处理记录
                </th>
            </tr>
            <tr>
                <td style="width: 90px">
                    学号：
                </td>
                <td>
                    <asp:TextBox ID="tbxStudentID" runat="server" AutoPostBack="True" OnTextChanged="tbxStudentID_TextChanged"></asp:TextBox>
                </td>
                <td rowspan="12" style="vertical-align: top" class="style1">
                    <asp:FormView ID="fvClass" runat="server" Width="100%">
                        <ItemTemplate>
                            <table class="smallgridview" cellspacing="0">
                                <tr>
                                    <th colspan="3" style="text-align: center">
                                        班级信息
                                    </th>
                                </tr>
                                <tr>
                                    <td>
                                        学号：
                                    </td>
                                    <td>
                                        <%#Eval("StudentID")%>
                                    </td>
                                    <td rowspan="2">
                                        <asp:Image ID="imgPhoto" runat="server" Height="50" ImageUrl='<%#string.Format("../GetStudentPhoto.aspx?StudentID={0}",Eval("StudentID")) %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        姓名：
                                    </td>
                                    <td>
                                        <%#Eval("StudentName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        班级名称：
                                    </td>
                                    <td colspan="2">
                                        <%#Eval("ClassName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        开课时间：
                                    </td>
                                    <td colspan="2">
                                        <%#Eval("StartDate", "{0:d}") + " -- " + Eval("EndDate", "{0:d}")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        上课规律：
                                    </td>
                                    <td colspan="2">
                                        <%#Eval("TimeRule")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        主讲老师：
                                    </td>
                                    <td colspan="2">
                                        <%#Eval("TeacherName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        教室：
                                    </td>
                                    <td colspan="2">
                                        <%#Eval("ClassroomName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        招生比例：
                                    </td>
                                    <td colspan="2">
                                        <uc1:Progress ID="Progress1" runat="server" Text="人" MaxNum='<%#Eval("PlanCount") %>'
                                            MinNum='<%#Eval("StuCount") %>' Width="100px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        课时进度：
                                    </td>
                                    <td colspan="2">
                                        <uc1:Progress ID="Progress2" runat="server" Text="课时" MaxNum='<%#Eval("Lessons") %>'
                                            MinNum='<%#Eval("CourseProgress") %>' Width="100px" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:FormView>
                </td>
            </tr>
            <tr>
                <td>
                    姓名：
                </td>
                <td class="style1">
                    <asp:TextBox ID="tbxStudentName" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    班级：
                </td>
                <td class="style1">
                    <asp:DropDownList ID="ddlStuClass" runat="server" OnSelectedIndexChanged="ddlStuClass_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    类型：
                </td>
                <td class="style1">
                    <asp:RadioButtonList ID="ddlChangeType" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                        OnSelectedIndexChanged="ChangeType_SelectedIndexChanged">
                        <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:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    退课时：
                </td>
                <td class="style1">
                    <div style="float: left; width: 58px">
                        <asp:TextBox ID="tbxLessons" runat="server" Width="51px" AutoPostBack="True" OnTextChanged="tbxLessons_TextChanged"></asp:TextBox>
                    </div>
                    <div style="float: left; width: 200px">
                        <uc1:Progress ID="myCourseProgress" runat="server" Width="60px" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    退户金额：
                </td>
                <td class="style1">
                    <asp:TextBox ID="tbxIntoAccount" runat="server" AutoPostBack="True" OnTextChanged="tbxIntoAccount_TextChanged"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    退费提示：
                </td>
                <td class="style1">
                    <asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    时间：
                </td>
                <td class="style1">
                    <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                    <span style="color: #ff0000">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    原因：
                </td>
                <td class="style1">
                    <asp:TextBox ID="tbxRemark" runat="server" Height="90px" Width="359px" TextMode="MultiLine"></asp:TextBox>
                    <span style="color: #ff0000">*</span>
                </td>
            </tr>
            <tr id="trGetDate" runat="server">
                <td>
                    休学至：
                </td>
                <td class="style1">
                    <asp:TextBox ID="tbxGetDateTime" runat="server" onfocus="javascript:return showCalendar(this);"></asp:TextBox>设置休学到期日期。
                </td>
            </tr>
            <tr id="trNewClass" runat="server">
                <td>
                    新选班级：
                </td>
                <td class="style1">
                    <asp:DropDownList ID="ddlNewStuClass" runat="server">
                    </asp:DropDownList>
                    (可选项，可异动手续办理后，并已加入新班再补充此数据)
                </td>
            </tr>
            <tr>
                <td>
                    录入员：
                </td>
                <td class="style1">
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <span style="color: #ff0000">*</span>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <label class="lab_buttom">
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click"></asp:Button>
                    </label>
                    <label class="lab_buttom">
                        <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" /></label>
                </td>
            </tr>
        </table>
    </div>
    <uc2:Remark ID="imgBig" runat="server" />
    </form>
</body>
</html>
