<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Class.aspx.cs" Inherits="MTCUN.Teacher.Class"
    Title="班级信息-教师" %>

<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../UserCol/ReportControl.ascx" TagName="ReportControl" TagPrefix="uc2" %>
<%@ Register Src="../UserCol/ReportServer.ascx" TagName="ReportServer" 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 runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <script type="text/javascript">
        function Print(ClassID) {
            var doc = document.getElementById("ddlDoc");

            if (doc.selectedIndex >= 0) {
                var templet = doc.options[doc.selectedIndex].value;
                document.frames.PrintWeb.location = "../Report/Print.aspx?DocType=3&ClassID=" + ClassID + "&Templet=" + templet;
            } else
                alert("请选择需要打印的文档。");
        }
    </script>
    <form id="form1" runat="server">
        <div class="divpanel">
            <asp:FormView ID="fvClassInfo" runat="server" Width="100%">
                <ItemTemplate>
                    <table cellspacing="0" class="table">
                        <tr>
                            <th colspan="2">班级信息
                            </th>
                            <tr>
                                <td>编号：
                                </td>
                                <td>
                                    <%# Eval("ClassID") %>
                                </td>
                            </tr>
                            <tr>
                                <td>班级名称：
                                </td>
                                <td>
                                    <%# Eval("ClassName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>课程：
                                </td>
                                <td>
                                    <%# Eval("CourseName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>主讲老师：
                                </td>
                                <td>
                                    <%# Eval("TeacherName") %>
                                </td>
                            </tr>
                            <tr runat="server" id="trHeadTeacher">
                                <td>班主任：
                                </td>
                                <td>
                                    <%# Eval("HeadTeacherName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>总课时：
                                </td>
                                <td>
                                    <%# Eval("Lessons") %>
                                </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("ClassroomName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>课程进度：
                                </td>
                                <td>
                                    <uc1:Progress ID="CourseProgress" runat="server" MaxNum='<%# Eval("Lessons") %>'
                                        MinNum='<%# Eval("CourseProgress") %>' Text="课时" Width="80%" />
                                </td>
                            </tr>
                            <tr>
                                <td>招生比例：
                                </td>
                                <td>
                                    <uc1:Progress ID="PlanProgress" runat="server" MaxNum='<%# Eval("PlanCount") %>'
                                        MinNum='<%# Eval("StuCount") %>' Text="人" Width="80%" />
                                </td>
                            </tr>
                            <tr>
                                <td>出勤率：
                                </td>
                                <td>
                                    <uc1:Progress ID="AttendanceProgress" runat="server" Text="%" Width="80%" />
                                </td>
                            </tr>
                            <tr runat="server" id="c1">
                                <td>
                                    <asp:Label ID="labCustom1" runat="server"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("Custom1")%>
                                </td>
                            </tr>
                            <tr runat="server" id="c2">
                                <td>
                                    <asp:Label ID="labCustom2" runat="server"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("Custom2")%>
                                </td>
                            </tr>
                            <tr runat="server" id="c3">
                                <td>
                                    <asp:Label ID="labCustom3" runat="server"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("Custom3")%>
                                </td>
                            </tr>
                            <tr runat="server" id="c4">
                                <td>
                                    <asp:Label ID="labCustom4" runat="server"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("Custom4")%>
                                </td>
                            </tr>
                            <tr runat="server" id="c5">
                                <td>
                                    <asp:Label ID="labCustom5" runat="server"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("Custom5")%>
                                </td>
                            </tr>
                            <tr>
                                <td>班级介绍：
                                </td>
                                <td>
                                    <%# Eval("Remark") %>
                                </td>
                            </tr>
                            <tr>
                                <td>上课校区：
                                </td>
                                <td>
                                    <%# Eval("SchoolName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>打印班级：
                                </td>
                                <td>
                                    <uc2:ReportControl ID="ReportControl1" runat="server" />
                                </td>
                            </tr>
                    </table>
                </ItemTemplate>
            </asp:FormView>
        </div>
        <div class="backpanel">

            <label class="lab_button" id="__mt_labBack" runat="server">
                <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back(this)"
                    value="返回" />
            </label>
        </div>

        <uc3:ReportServer ID="ReportServer1" runat="server" />
    </form>
</body>
</html>
