<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="attendance.aspx.cs" Inherits="Web.kq.show.attendance" %>

<!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">
    <title>OA标题页</title>
    <link href="/css/css.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
    <script type="text/javascript" src="/css/popcalendar.js"></script>
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('/css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
      <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	考勤查询
                      	</td>

                </tr>
            </table>
            <div id="main-c-03-right02-main">
            <div >                       
                      起始日期&nbsp;&nbsp; <asp:textbox id="date1" runat="server" Width="100px"  
               onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                      终止日期&nbsp;&nbsp; <asp:textbox id="date2" runat="server" Width="100px"    
               onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
       <asp:Button ID="tijiao" runat="server" onclick="tijiao_Click" Text="提交查询" ValidationGroup="cha"/>
                      &nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                          ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" ForeColor="Red"></asp:RegularExpressionValidator>
                      说明：1、终止日期要大于起始日期；2、日期间隔不大于3年。</div>
            
<!--栏目开始 -->
      <div  class ="lanmubiaoti ">考勤明细记录</div>
            <!--这里添加内容 -->
   <div> 
              <asp:GridView ID="GridView2" runat="server" 
            onrowdatabound="GridView2_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" onrowcreated="GridView2_RowCreated">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
<div style ="text-align :right ">
    <asp:Button ID="btPrintViewAll" runat="server" onclick="btPrintViewAll_Click" 
        Text="打印预览" CausesValidation="False" Visible="False" />
    <asp:Button ID="btexcel" runat="server" Text="导出到EXCEL" 
        onclick="btexcel_Click" CausesValidation="False" Visible="False" /></div>
                    </div>

        <div style ="text-align :left; color :#ff0000; padding-left :10px; padding-top :10px;font-size :14px">
       <asp:Label ID="lbMessage" runat="server" ></asp:Label></div> 

<!--栏目结束 -->
               

                </div>
            </div>
        </form>
    </body>
</html>
