<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LessonTeacherTable.aspx.cs"
    Inherits="MTCUN.Mobile.Tools.LessonTeacherTable" Title="工具箱-课程总表(周)" %>

<%@ Register src="../../UserCol/SimpleCode.ascx" tagname="SimpleCode" 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">
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        function GetUrl() {
            location = 'LessonTable.aspx?DateAndTime=' + document.getElementById("tbxDateAndTime").value;
        }
    </script>
    <style type="text/css">
        .showrowtext
        {
            width: 40px;
            overflow: auto;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="tool_ControlPanel">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    校区：
                </td>
                <td>
                    <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                </td>
                <td>
                    日期：
                </td>
                <td>
                    <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                </td>
                <td>
                    老师：</td>
                <td>
                    <asp:DropDownList ID="ddlTeacher" runat="server" DataTextField="TrueName" 
                        DataValueField="UserID">
                    </asp:DropDownList>
                </td>
                <td>
                    <uc1:SimpleCode ID="SimpleCode1" runat="server" CodeType="Users" 
                        UsersControlID="ddlTeacher" />
                </td>
                <td>
                    <label class="lab_button">
                        <asp:Button ID="btnShow" runat="server" OnClick="btnShow_Click" Text="查看本周" />
                    </label>
                    <label class="lab_button">
                        <asp:Button ID="btnUp" runat="server" OnClick="btnUp_Click" Text="上周" />
                    </label>
                    <label class="lab_button">
                        <asp:Button ID="btnDown" runat="server" OnClick="btnDown_Click" Text="下周" />
                    &nbsp;</label><label class="lab_button"><asp:Button ID="btnExportExcel" runat="server" OnClick="btnExportExcel_Click" Text="导出EXCEL" />
                    </label>
                    一周第一天：
                    <asp:DropDownList ID="ddlWeekStart" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlWeekStart_SelectedIndexChanged">
                        <asp:ListItem Value="1">周日</asp:ListItem>
                        <asp:ListItem Value="2">周一</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    <div class="both">
    </div>
    <div class="divpanel" style="overflow: auto; padding-bottom: 40px">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridview"
            OnRowDataBound="GridView1_RowDataBound">
            <HeaderStyle Wrap="false" />
            <Columns>
                <asp:BoundField DataField="TeacherName" HeaderText="老师" />
                <asp:BoundField DataField="Sunday" HeaderText="周日" HtmlEncode="false" />
                <asp:BoundField DataField="Monday" HeaderText="周一" HtmlEncode="false" />
                <asp:BoundField DataField="Tuesday" HeaderText="周二" HtmlEncode="false" />
                <asp:BoundField DataField="Wednesday" HeaderText="周三" HtmlEncode="false" />
                <asp:BoundField DataField="Thursday" HeaderText="周四" HtmlEncode="false" />
                <asp:BoundField DataField="Friday" HeaderText="周五" HtmlEncode="false" />
                <asp:BoundField DataField="Saturday" HeaderText="周六" HtmlEncode="false" />
            </Columns>
        </asp:GridView>
    </div>
    <div class="divremark">
        <b>注意事项：</b><br />
        1、红色标注的时间段，表示老师时间安排上发生冲突。<br />
        2、点击日期进入学员考勤。</div>
    </form>
</body>
</html>
