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

<!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">
                <asp:Panel ID="pl" runat="server">
            <div >                       
                          审核状态：<asp:DropDownList ID="ddlCheck" runat="server">
                 <asp:ListItem Selected="True">未审核</asp:ListItem>
                 <asp:ListItem>已审核</asp:ListItem>
                 <asp:ListItem>所有</asp:ListItem>
             </asp:DropDownList>
             &nbsp;部门：<asp:DropDownList ID="ddlDepartment" runat="server"> </asp:DropDownList>
             &nbsp;人员编号或姓名：<asp:TextBox ID="tbStaff" runat="server"></asp:TextBox>
             &nbsp;&nbsp; 起始日期：<asp:textbox id="date1" runat="server" Width="65px"  onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
             终止日期：<asp:textbox id="date2" runat="server" Width="65px"   onclick="popUpCalendar(this,this,'yyyy-mm-dd')"> </asp:textbox>
       <asp:Button ID="btQuery1" runat="server" onclick="btnQuery_Click" Text="提交查询" ValidationGroup="Inquires" 
                  />
                &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
            ControlToValidate="tbStaff" Display="Dynamic" ErrorMessage="输入的人员编号或姓名不对！" 
            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{0,25}$" 
                 ValidationGroup="Inquires" ForeColor="Red"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                 ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="Inquires" 
                    ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="Inquires" 
                    ForeColor="Red"></asp:RegularExpressionValidator>
            </div>
            
<!--栏目开始 -->
            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                       考核审核
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); text-align :right ">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="tbNum" Display="Dynamic" ErrorMessage="行数不能为空。" 
                                                ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbNum" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="Inquires" ForeColor="Red"></asp:RegularExpressionValidator></td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :164px"> 每页显示行数：<asp:TextBox ID="tbNum" runat="server" 
                    Width="44px" MaxLength="4">100</asp:TextBox></td>
                    <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :76px" ><asp:Button ID="btnQuery" runat="server" onclick="btnQuery_Click" Text="确定" ToolTip="RowNum" 
                                                ValidationGroup="Inquires" /> </td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;"></td>
                </tr>
            </table>
            <!--这里添加内容 -->
            <div>
                <asp:Label ID="lbRowscountview" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                    <asp:GridView ID="GridView1" runat="server" BorderWidth="1px" 
                onrowdatabound="GridView1_RowDataBound" Width="100%" CssClass="gv" 
                        onrowcreated="GridView1_RowCreated" AutoGenerateColumns="False" 
                        onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating">
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" BorderWidth="1px" 
                CssClass="gvrow" />
                <Columns>
                <asp:BoundField DataField="序号" HeaderText="序号" ReadOnly="True" />
                <asp:BoundField DataField="人员编号" HeaderText="人员编号" ReadOnly="True" />
                <asp:BoundField DataField="姓名" HeaderText="姓名" ReadOnly="True" />
                <asp:BoundField DataField="部门" HeaderText="部门" ReadOnly="True" />
                <asp:BoundField DataField="起始日期" HeaderText="日期" ReadOnly="True" />

                <asp:BoundField DataField="摘要" HeaderText="摘要" ReadOnly="True" />
                <asp:BoundField DataField="应到天数" HeaderText="应到天数" ReadOnly="True" />
                <asp:BoundField DataField="实到天数" HeaderText="实到天数" ReadOnly="True" />
                <asp:BoundField DataField="未到天数" HeaderText="未到天数" ReadOnly="True" />
                                    <asp:TemplateField HeaderText="迟到次数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("迟到次数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                ControlToValidate="TextBox2" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[0-9]*$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("迟到次数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="早退次数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("早退次数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                                ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[0-9]*$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("早退次数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="事假天数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("事假天数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                                                ControlToValidate="TextBox4" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("事假天数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="病假天数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("病假天数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                                                ControlToValidate="TextBox5" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                               ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("病假天数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="公出天数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("公出天数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                                ControlToValidate="TextBox6" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("公出天数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="带薪假天数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("带薪假天数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                                                ControlToValidate="TextBox7" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                               ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("带薪假天数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="其他假天数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("其他假天数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                                ControlToValidate="TextBox8" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("其他假天数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="旷工天数">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("旷工天数") %>' Width="40px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("旷工天数") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:CommandField EditText="审核" HeaderText="审核" ShowEditButton="True" 
                                        UpdateText="提交" />

                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
		<table cellpadding="0" cellspacing="0" style ="width :100%">
      <tr><td  >
          <table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  ">
                      <asp:Button ID="btCheck_All" runat="server" Text="批量审核" 
                          onclick="btCheck_All_Click" Visible="False" />
      
                  </td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>

       </tr>
          </table>


<!--栏目结束 -->
    </asp:Panel>
               

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

