<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditStuClass.aspx.cs" Inherits="SWTraining.Register.EditStuClass" Title="报名管理-选择已选班级" %>

<%@ Register Src="../UserCol/Progress.ascx" TagName="progress" TagPrefix="uc1" %>
<!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="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel">
        <table class="table" cellspacing="0" runat="server" id="tabPost">
            <tr>
                <th colspan="2">
                    选择已选班级</th>
            </tr>
            <tr>
                <td>
                    选班：
                </td>
                <td>
                    <span style="color: Red">
                        <asp:DropDownList ID="ddlClass" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlClass_SelectedIndexChanged">
                        </asp:DropDownList>
                        *</span>
                </td>
            </tr>
            <tr>
                <td>
                    课时：
                </td>
                <td>
                    <asp:TextBox ID="tbxLessons" runat="server" Width="71px" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    录入员：
                </td>
                <td>
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" />
                <input causesvalidation="false" type="button" runat="server" onclick="back()"
                            value="返回" /></td>
            </tr>
        </table>
    </div>
    <div class="divpanel">
        <asp:FormView ID="fvClass" runat="server" Width="100%">
            <ItemTemplate>
                <table class="smallgridview" cellspacing="0" style="width: 100%">
                    <tr>
                        <th colspan="2" style="text-align: center">
                            班级预览
                        </th>
                    </tr>
                    <tr>
                        <td>
                            班级名称：
                        </td>
                        <td>
                            <%#Eval("ClassName")%>
                        </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>
    </div>
    </form>
</body>
</html>
