<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Attendance_List.aspx.cs" Inherits="TotCms.Web.Office.Staff.Attendance_List" %>
<!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></title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
      .style1
      {
        width: 100%;
      }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">考勤明细<asp:Label ID="lbTitle" runat="server" Text=" "></asp:Label>
    </div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td class="topic">
          <img src="../images/plus.png" width="14" height="14" /><a href="Attendance.aspx">考勤登记</a></td>
        <td class="topic">
          <asp:DropDownList ID="ddYear" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddYear_SelectedIndexChanged">
          </asp:DropDownList>
          年<asp:DropDownList ID="ddMonth" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddMonth_SelectedIndexChanged">
            <asp:ListItem Value="1">一</asp:ListItem>
            <asp:ListItem Value="2">二</asp:ListItem>
            <asp:ListItem Value="3">三</asp:ListItem>
            <asp:ListItem Value="4">四</asp:ListItem>
            <asp:ListItem Value="5">五</asp:ListItem>
            <asp:ListItem Value="6">六</asp:ListItem>
            <asp:ListItem Value="7">七</asp:ListItem>
            <asp:ListItem Value="8">八</asp:ListItem>
            <asp:ListItem Value="9">九</asp:ListItem>
            <asp:ListItem Value="10">十</asp:ListItem>
            <asp:ListItem Value="11">十一</asp:ListItem>
            <asp:ListItem Value="12">十二</asp:ListItem>
          </asp:DropDownList>
          月</td>
      </tr>   
    </table>

    <table cellpadding="0" cellspacing="0" class="style1">
      <tr>
        <td valign="top">

    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        DataKeyNames="id" OnItemCommand="lvList_ItemCommand">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>姓名</td>
              <td width="16%">日期</td>
              <td width="16%">上班时间</td>
              <td width="16%">下班时间</td>             
              <td width="16%">迟到</td> 
              <td width="16%">早退</td> 
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">            
            <td><%# Eval("UserName")%></td>
            <td><%# FormatDate(Eval("DateStart"))%></td>
            <td><%# TotCms.FrameWork.Util.DateUtil.GetFormat(Eval("DateStart").ToString(), "{0:HH:mm:ss}")%></td>
            <td><%# TotCms.FrameWork.Util.DateUtil.GetFormat(Eval("DateEnd").ToString(), "{0:HH:mm:ss}")%></td>           
            <td><%# Convert.ToInt32(Eval("Late")) == 1 ? "<span class=\"red\">Yes</span>" : "No"%></td>
            <td><%# Convert.ToInt32(Eval("LeaveEarly")) == 1 ? "<span class=\"red\">Yes</span>" : "No"%></td>
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            <div class="info">暂时没有数据.</div>
        </EmptyDataTemplate>       
    </asp:ListView>
        </td>        
      </tr>
    </table>
    <p align="center"><input type="button" value="返回" 
        onclick="location.href='javascript:history.back()'" class="button_gray" /></p>
    </form>
</body>
</html>


