<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AttendPrice.aspx.cs" Inherits="MTCUN.Admin_Tools.AttendPrice" %>

<%@ Import Namespace="MTCUN" %>
<%@ 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" />
    <script type="text/javascript">
        function StudentBox() {
            window.showModalDialog('../Tools/StudentBox.aspx', window, 'dialogWidth=750px;dialogHeight=500px');
        }
    </script>
    <style type="text/css">
        .style1 {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="tool_Search">
            学号：<asp:TextBox ID="tbxStudentID" runat="server"></asp:TextBox>
            <label class="lab_button">
                <asp:Button ID="btnShow" runat="server" OnClick="btnShow_Click" Text="展开" />
            </label>
            <div class="lab_button">
                <asp:Button ID="btnAdjust" runat="server" Text="批量校准" OnClick="btnAdjust_Click"></asp:Button>
            </div>
        </div>
        <div class="both">
        </div>
        <div class="divpanel">
            <table cellpadding="0" cellspacing="0" class="table">
                <tr>
                    <th>已选班级
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gdvStuClass" runat="server" CssClass="subgridview" AutoGenerateColumns="False"
                            DataKeyNames="StuClassID" OnRowDataBound="gdv_RowDataBound">
                            <SelectedRowStyle CssClass="selected" />
                            <Columns>
                                <asp:TemplateField HeaderText="选班号">
                                    <ItemTemplate>
                                        <%#Eval("StuClassID")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="班号">
                                    <ItemTemplate>
                                        <%#Eval("ClassID")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="班级名称">
                                    <ItemTemplate>
                                        <%#Eval("ClassName")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="上课地点">
                                    <ItemTemplate>
                                        <%#Eval("SchoolName")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="DateAndTime" ReadOnly="True" HeaderText="选班日期" />
                                <asp:TemplateField HeaderText="选班状态">
                                    <ItemTemplate>
                                        <%#Rs.Items.GetScState(Eval("ScStateID"))%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="类型">
                                    <ItemTemplate>
                                        <%#Rs.Items.GetStuClassType(Eval("ContinueReg"))%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课时进度">
                                    <ItemTemplate>
                                        <uc1:progress ID="Progress1" runat="server" MaxNum='<%#Eval("Lessons") %>' MinNum='<%#Eval("CourseProgress") %>'
                                            ProgressWidth="65%" StartDate='<%#Eval("DateAndTime") %>' ExpiryDate='<%#Eval("ExpiryDate") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="PostSchoolName" ReadOnly="True" HeaderText="报名点" />
                                <asp:BoundField DataField="UnitName" HeaderText="单位" />
                                <asp:TemplateField HeaderText="选择" SortExpression="edit">
                                    <ItemTemplate>
                                        <div class="lab_button_sub" id="divedit" runat="server">
                                            <a href="?StudentID=<%#Eval("StudentID")%>&UnitID=<%#Eval("UnitID")%>&StuClassID=<%#Eval("StuClassID")%>">选择</a>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <th>学员出勤产值分析
                    </th>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0" class="style1">
                            <tr>
                                <td>字符串变量：
                                </td>
                                <td>
                                    <asp:Label ID="labLessonPriceArray" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>课时价格数组：
                                </td>
                                <td>
                                    <asp:ListBox ID="lbxLessonPriceArray" runat="server" Width="190px" Height="177px"></asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td>产出匹配分析：
                                </td>
                                <td>
                                    <asp:GridView ID="GridView1" CssClass="smallgridview" Width="280px" runat="server">
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;
                                </td>
                                <td>
                                    <label class="lab_button">
                                        <asp:Button ID="btnRe" runat="server" OnClick="btnRe_Click" Text="重建" />
                                    </label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="divremark">
            <b>注意事项：</b><br />
            1、此功能用于分析学员每课次消耗课时的价值。<br />
        </div>
    </form>
</body>
</html>
