<%@ Page Language="c#" CodeBehind="Affairs_Class.aspx.cs" AutoEventWireup="True"
    Inherits="SWTraining.Chart.Affairs_Class" Title="教务-班级管理-班级报表" %>

<%@ Import Namespace="SWTraining" %>
<%@ 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 id="Head1" runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        #ifReport
        {
            width: 601px;
            height: 395px;
        }
        #ifReport1
        {
            width: 601px;
            height: 395px;
        }
        #ifReport2
        {
            width: 601px;
            height: 395px;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div id="sw_content">
        <div class="divpanel" style="text-align: center; width: 650px">
            <asp:FormView ID="fvClassInfo" runat="server" Width="100%">
                <ItemTemplate>
                    <table cellspacing="0" class="table">
                        <tr>
                            <th colspan="2">
                                班级统计
                            </th>
                        </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>
                            <td>
                                续报率：
                            </td>
                            <td>
                                <uc1:Progress ID="ContinueRegProgress" runat="server" Text="%" Width="80%" />
                            </td>
                        </tr>
                        <tr runat=server id="trClassFee">
                            <td>
                                学费收入：
                            </td>
                            <td>
                                 <asp:Label ID="labFee" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:FormView>
        </div>
        <div class="divpanel" style="text-align: center; background-color: White; border: 1px solid #3D6992;
            width: 601px; margin-bottom: 0px; padding-top: 4px; padding-bottom: 4px; border-bottom-width: 0px">
            数据来源：<asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                <asp:ListItem Value="0" Text="选班"></asp:ListItem>
                <asp:ListItem Value="1" Text="消费单"></asp:ListItem>
            </asp:DropDownList>
            图表类型：<asp:DropDownList ID="ddlChart" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlChart_SelectedIndexChanged">
                <asp:ListItem Value="3">进度图</asp:ListItem>
                <asp:ListItem Value="2">饼图</asp:ListItem>
                <asp:ListItem Value="0" Selected="True">柱图</asp:ListItem>
            </asp:DropDownList>
        </div>
        <div class="divpanel" style="text-align: center; margin-top: 0px; border-top-width: 0px">
            <iframe runat="server" id="ifReport" scrolling="no" frameborder="0" style="border: 1px solid #3D6992;
                clear: both"></iframe>
        </div>
        <br />
        <div class="divpanel" style="text-align: center; background-color: White; border: 1px solid #3D6992;
            width: 601px; margin-bottom: 0px; padding-top: 4px; padding-bottom: 4px; border-bottom-width: 0px">
            图表类型：<asp:DropDownList ID="ddlChart2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlChart_SelectedIndexChanged">
                <asp:ListItem Value="3">进度图</asp:ListItem>
                <asp:ListItem Value="2" Selected="True">饼图</asp:ListItem>
                <asp:ListItem Value="0">柱图</asp:ListItem>
            </asp:DropDownList>
        </div>
        <div class="divpanel" style="text-align: center; margin-top: 0px; border-top-width: 0px">
            <iframe runat="server" id="ifReport1" scrolling="no" frameborder="0" style="border: 1px solid #3D6992;
                clear: both"></iframe>
        </div>
        <br />
        <div class="divpanel" style="text-align: center; margin-top: 0px; border-top-width: 0px">
            <iframe runat="server" id="ifReport2" scrolling="no" frameborder="0" style="border: 1px solid #3D6992;
                clear: both"></iframe>
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
        </div>
    </div>
    </form>
</body>
</html>
