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

<%@ 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">
        .gridview1 {
            width: 100%;
            border: 1px solid Gray;
            text-align: left;
        }

        .gridview1 {
            width: 100%;
            border: 1px solid Gray;
            text-align: left;
        }
    </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>
        <div class="both">
        </div>
        <div class="divpanel">
            <table cellpadding="0" cellspacing="0" class="table">
                <tr>
                    <th>考勤信息
                    </th>
                </tr>
                <tr>
                    <td>
                        <br />
                        <b>排课信息：</b><asp:Table ID="tabLD" runat="server">
                        </asp:Table>
                        <br />
                        <b>一对一不排课考勤状态：</b><asp:Label ID="labState" runat="server"></asp:Label>
                        <br />
                        <b>一对一不排课信息：</b><asp:GridView ID="gvStuClass" runat="server" AutoGenerateColumns="False"
                            CssClass="smallgridview" DataKeyNames="StuClassID">
                            <Columns>
                                <asp:BoundField DataField="StuClassID" HeaderText="选班号" ReadOnly="True" />
                                <asp:BoundField DataField="StudentID" HeaderText="学号" ReadOnly="True" />
                                <asp:TemplateField HeaderText="姓名">
                                    <ItemTemplate>
                                        <%#Eval("StudentName")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="班号">
                                    <ItemTemplate>
                                        <asp:Label ID="ClassID" runat="server" Text='<%# Eval("ClassID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="班级名称">
                                    <ItemTemplate>
                                        <asp:Label ID="ClassName" runat="server" Text='<%# Eval("ClassName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课时进度">
                                    <ItemTemplate>
                                        <uc1:progress ID="Progress2" runat="server" MaxNum='<%#Eval("Lessons") %>' MinNum='<%#Eval("CourseProgress") %>'
                                            Width="90%" StartDate='<%#Eval("DateAndTime") %>' ExpiryDate='<%#Eval("ExpiryDate") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <div class="lab_button_sub" id="divDelete1" runat="server">
                                            <asp:LinkButton ID="lbnDelete1" runat="server" CommandName="Select" CommandArgument='<%#Eval("StudentID") +"$"+Eval("StuClassID") %>'
                                                OnClientClick="return confirm('你确定选择的班级是正确的？');" Text="选择"></asp:LinkButton>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
        <div class="divremark">
            <br />
        </div>
    </form>
</body>
</html>
