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

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Register Src="../UserCol/Remark.ascx" TagName="Remark" TagPrefix="uc2" %>
<%@ Register Src="../UserCol/QuantifiedCol.ascx" TagName="QuantifiedCol" 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 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" cellspacing="0">
                <tr>
                    <th colspan="3">异动处理记录
                    </th>
                </tr>
                <tr>
                    <td style="width: 90px">学号：
                    </td>
                    <td class="required">
                        <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">
                                    <thead>
                                        <tr>
                                            <th colspan="3" style="text-align: center">班级信息
                                            </th>
                                        </tr>
                                    </thead>
                                    <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="required">
                        <asp:TextBox ID="tbxStudentName" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>班级：
                    </td>
                    <td class="required">
                        <asp:DropDownList ID="ddlStuClass" runat="server" OnSelectedIndexChanged="ddlStuClass_SelectedIndexChanged"
                            AutoPostBack="True">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>类型：
                    </td>
                    <td class="required">
                        <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>&nbsp;</td>
                    <td>
                        <div style="background-color: #ffffff; border: 1px solid #ECEB7F; border-radius: 5px; width: auto; padding: 4px; background-color: #FEFDC1">
                            <div id="setContent" style="float: left;">
                                <uc3:QuantifiedCol ID="QuantifiedCol1" runat="server" />

                            </div>
                            <div style="clear: both; height: 0px; font-size: 0px">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>退户金额：</td>
                    <td class="required">
                        <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="required">
                        <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>原因：
                    </td>
                    <td class="required">
                        <asp:TextBox ID="tbxRemark" runat="server" Height="90px" Width="359px" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trGetDate" runat="server">
                    <td>休学至：
                    </td>
                    <td class="required">
                        <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="required">
                        <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2">
                        <label class="lab_button">
                            <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click"></asp:Button>
                        </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>
        <uc2:Remark ID="imgBig" runat="server" />
    </form>
</body>
</html>
