<%@ Import Namespace="SWTraining" %>

<%@ Page Language="c#" CodeBehind="StuLeave.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Student.StuLeave"
    Title="查询请假信息" %>

<!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" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="tool_Search">
        <label class="lab_buttom">
            <input id="btnAdd" causesvalidation="false" type="button" onclick="window.location='PostLeave.aspx'"
                value="我要请假" />
        </label>
    </div>
    <div class="both">
    </div>
    <div class="divpanel">
        <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
            DataKeyNames="LeaveID" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField DataField="StudentID" ReadOnly="true" HeaderText="学号" />
                <asp:TemplateField HeaderText="学员">
                    <ItemTemplate>
                        <%#Eval("StudentName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DateAndTime" ReadOnly="true" HeaderText="办理时间" />
                <asp:TemplateField HeaderText="开始时间">
                    <ItemTemplate>
                        <asp:Label ID="labStartDate" runat="server" Text='<%# ClearZone(Eval("StartDate")) %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="结束时间">
                    <ItemTemplate>
                        <asp:Label ID="labEndDate" runat="server" Text='<%# ClearZone(Eval("EndDate")) %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="TrueName" ReadOnly="true" HeaderText="录入员" />
                <asp:TemplateField HeaderText="浏览">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkShow" runat="server" Text="浏览" NavigateUrl='<%# string.Format("LeaveShow.aspx?LeaveID={0}",Eval("LeaveID")) %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="backpanel">
        <label class="lab_buttom">
            <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back()"
                value="返回" />
        </label>
    </div>
    </form>
</body>
</html>
