📄 mattendance.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MAttendance.aspx.cs" Inherits="MAttendance" %>
<!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">
<title>无标题页</title>
<link href="css.css" type="text/css" rel="Stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
考勤信息管理</td>
</tr>
<tr>
<td align="center" style="height: 25px">
员工编号:<asp:TextBox ID="t_id" runat="server" Width="121px"></asp:TextBox>
<asp:DropDownList ID="dropmonth" runat="server">
<asp:ListItem Value="1">1月</asp:ListItem>
<asp:ListItem Value="2">2月</asp:ListItem>
<asp:ListItem Value="3">3月</asp:ListItem>
<asp:ListItem Value="4">4月</asp:ListItem>
<asp:ListItem Value="5">5月</asp:ListItem>
<asp:ListItem Value="6">6月</asp:ListItem>
<asp:ListItem Value="7">7月</asp:ListItem>
<asp:ListItem Value="8">8月</asp:ListItem>
<asp:ListItem Value="9">9月</asp:ListItem>
<asp:ListItem Value="10">10月</asp:ListItem>
<asp:ListItem Value="11">11月</asp:ListItem>
<asp:ListItem Value="12">12月</asp:ListItem>
</asp:DropDownList><asp:Button ID="btnsearch" runat="server" Text="搜索" OnClick="btnsearch_Click" /></td>
</tr>
<tr>
<td>
<asp:Label ID="lablater" runat="server" ></asp:Label>
<asp:Label ID="labearly" runat="server" ></asp:Label> <asp:Label ID="labnowork" runat="server" ></asp:Label></td>
</tr>
<tr>
<td style=" font-size: 15px">
<asp:GridView ID="gridattendance" Width="100%" runat="server" AutoGenerateColumns="False"
BorderWidth="1px" CellPadding="3" HorizontalAlign="Center" AllowPaging="True" OnRowDataBound="gridattendance_RowDataBound" PageSize="10" OnPageIndexChanging="gridattendance_PageIndexChanging" BorderStyle="Groove">
<Columns>
<asp:BoundField DataField="s_id" HeaderText="员工编号">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="workDate" HeaderText="日期" DataFormatString="{0:d}"
HtmlEncode="False">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="ondudydate" HeaderText="上班时间">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label runat="server" ID="labstatus1" Text='<%# DataBinder.Eval(Container.DataItem,"ondutyStatus") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
上班状态</HeaderTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="offdudydate" HeaderText="下班时间">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label runat="server" ID="labstatus2" Text='<%# DataBinder.Eval(Container.DataItem,"offdutyStatus") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
下班状态</HeaderTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="Red" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<HeaderStyle BackColor="#D6DFF7" Font-Bold="True" ForeColor="#657E33" />
</asp:GridView>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -