<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClassInfo.aspx.cs" Inherits="SWTraining.MSChart.ClassInfo" %>
<%@ 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" />
    <style type="text/css">
        .style1
        {
            width: 252px;
        }
        .style2
        {
            color: #990033;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 802px; margin-left: auto; margin-right: auto; margin-top: 10px;
        margin-bottom: 400px">
        <div style="padding: 0px">
            <div class="bgc6 borderc1" style="padding: 5px; border-width:1px; background-color: #ffffff">
                <br />
                <asp:FormView ID="fvClassInfo" runat="server" Width="100%" CellSpacing="0">
                    <ItemTemplate>
                        <table cellspacing="5" cellpadding="3">
                            <tr>
                                <td colspan="2">
                                    <strong>班级信息概况 </strong>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    班级编号：
                                </td>
                                <td>
                                    <%# Eval("ClassID") %>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    班级名称：
                                </td>
                                <td>
                                    <%# Eval("ClassName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    班级模式：
                                </td>
                                <td>
                                    <%# GetClassMode((int)Eval("UnitID"), (int)Eval("ClassType"))%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    主讲老师：
                                </td>
                                <td>
                                    <%# Eval("TeacherName") %>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    课程进度：
                                </td>
                                <td>
                                    <uc1:progress ID="CourseProgress" runat="server" MaxNum='<%# Eval("Lessons") %>'
                                        MinNum='<%# Eval("CourseProgress") %>' Text="课时" Width="150px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    招生比例：
                                </td>
                                <td>
                                    <uc1:progress ID="PlanProgress" runat="server" MaxNum='<%# Eval("PlanCount") %>'
                                        MinNum='<%# Eval("StuCount") %>' Text="人" Width="150px" />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:FormView>
                <br />
                <table style="width: 100%" cellpadding="2">
                    <tr>
                        <td colspan="3">
                            <strong>班级评估报告</strong>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 60px">
                            招生率：
                        </td>
                        <td class="style1">
                            <uc1:progress ID="progress1" runat="server" Width="150px" />
                        </td>
                        <td>
                            计划招生人数÷实际招生人数，此值越大越好。
                        </td>
                    </tr>
                    <tr>
                        <td>
                            出勤率：
                        </td>
                        <td class="style1">
                            <uc1:progress ID="progress2" runat="server" Width="150px" />
                        </td>
                        <td>
                            每课次出勤人数总和÷应出勤人数总和，此值越大越好。
                        </td>
                    </tr>
                    <tr>
                        <td>
                            买课率：
                        </td>
                        <td class="style1">
                            <uc1:progress ID="progress3" runat="server" Width="150px" />
                        </td>
                        <td>
                            学员购买课时÷班级总课时，此值越大越好。
                        </td>
                    </tr>
                    <tr>
                        <td>
                            异动率：
                        </td>
                        <td class="style1">
                            <uc1:progress ID="progress4" runat="server" Width="150px" />
                        </td>
                        <td>
                            转班、休学、退学等总和÷班级总人数，此值越小越好。
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            综合评分：<asp:Label ID="labScore" runat="server" Font-Bold="True" Font-Names="微软雅黑" Font-Size="15px"></asp:Label>
                            分
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td class="style1">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <table style="width: 100%" cellpadding="2" runat="server" id="tbProfit">
                    <tr>
                        <td colspan="3">
                            <strong>利润评估报告</strong>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 60px">
                            预收总额：
                        </td>
                        <td class="style1">
                            <asp:Label ID="labAllFee" runat="server"></asp:Label>
                        </td>
                        <td>
                            收取学员课时、课程费用总金额，不含教材等杂费。
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 60px">
                            实时消费：
                        </td>
                        <td class="style1">
                            <asp:Label ID="labAttendPrice" runat="server"></asp:Label>
                        </td>
                        <td>
                            根据考勤计算学员课时消耗金额，<span class="style2">课时制模式，没开启高精度计算，误差较大</span>。
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 60px">
                            实时薪资：
                        </td>
                        <td class="style1">
                            <asp:Label ID="labTeacherLessonFee" runat="server"></asp:Label>
                        </td>
                        <td>
                            根据考勤计算老师课时薪金，班级“每课时提成”未设置时，执行老师“课时费”。
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 60px">
                            实时利润：
                        </td>
                        <td class="style1">
                            <asp:Label ID="labCProfit" runat="server"></asp:Label>
                        </td>
                        <td>
                            学员考勤消费金额 - 老师课时费。
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 60px">
                            总利润：
                        </td>
                        <td class="style1">
                            <asp:Label ID="labAllProfit" runat="server"></asp:Label>
                        </td>
                        <td>
                            班级学费总额 - 老师课时费。
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            综合评分：<asp:Label ID="labScore2" runat="server" Font-Bold="True" Font-Names="微软雅黑"
                                Font-Size="15px"></asp:Label>
                            分
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="padding: 5px">
            日期：<asp:TextBox ID="tbxStartDate" runat="server" Width="99px"></asp:TextBox>
            -<asp:TextBox ID="tbxEndDate" runat="server" Width="99px"></asp:TextBox>
            <label class="lab_buttom">
<asp:Button ID="btnSee" runat="server" Text="查看" OnClick="btnSee_Click"></asp:Button>
</label>
            <label class="lab_buttom">
<asp:Button ID="btnPrevMonth" runat="server" OnClick="btnPrevMonth_Click" Text="上月" />
</label>
            <label class="lab_buttom">
<asp:Button ID="btnNextMonth" runat="server" OnClick="btnNextMonth_Click" Text="下月" />
</label>
            <label class="lab_buttom">
<asp:Button ID="btnCMonth" runat="server" OnClick="btnCMonth_Click" Text="本月" />
</label>
            <label class="lab_buttom">
<asp:Button ID="btnAll" runat="server" OnClick="btnAll_Click" Text="全部" />
</label>
            &nbsp;</div>
        <asp:Chart ID="Chart1" runat="server" Height="396px" Width="800px"
            ImageType="Png" BorderlineDashStyle="Solid"
            Palette="BrightPastel" BackSecondaryColor="White" BackGradientStyle="TopBottom" CssClass="bgc6 borderc1"
            BorderWidth="1">
            <Series>
                <asp:Series Name="Series1">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" BackColor="White">
                    <Area3DStyle Enable3D="True" />
                    <AxisY LineColor="64, 64, 64, 64">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 64, 64" />
                    </AxisY>
                    <AxisX LineColor="64, 64, 64, 64">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 64, 64" />
                    </AxisX>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <br />
        <br />
        <asp:Chart ID="Chart2" runat="server" Height="220px" Width="800px"
            ImageType="Png" BackColor="WhiteSmoke" BorderlineDashStyle="Solid"
            BackSecondaryColor="White"  CssClass="bgc6 borderc1">
            <Legends>
                <asp:Legend IsEquallySpacedItems="True">
                </asp:Legend>
            </Legends>
            <Series>
                <asp:Series  Name="Series1">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" BackColor="White">
                    <AxisY LineColor="64, 64, 64, 64">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 64, 64" />
                    </AxisY>
                    <AxisX LineColor="64, 64, 64, 64">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 64, 64" />
                    </AxisX>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
    </div>
    </form>
</body>
</html>
