📄 manualsignsearch.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManualSignSearch.aspx.cs"
Inherits="ManualSign_ManualSignSearch" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div align="center" style="width: 700px; font-size: 12px; margin-left: auto; margin-right: auto">
<div style="text-align: center">
<b>员 工 考 勤 历 史 记 录 查 询</b></div>
<table class="GBText" cellspacing="0" cellpadding="0" style="width: 74%">
<tr>
<td colspan="2" style="width: 704px">
<table>
<tbody>
<tr>
<td style="width: 103px; height: 39px" align="center">
输入时间段:</td>
<td style="height: 39px; width: 768px;">
开始时间:
<asp:TextBox ID="txtBeginTime" runat="server" Width="117px"></asp:TextBox> <asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBeginTime"
ErrorMessage="开始时间不能为空">*</asp:RequiredFieldValidator>----- 结束时间:
<asp:TextBox ID="txtEndTime" runat="server" Width="127px"></asp:TextBox>
<asp:CompareValidator ID="cvTime" runat="server" ControlToCompare="txtBeginTime"
ErrorMessage="结束时间不应小于开始时间" Operator="GreaterThanEqual" ControlToValidate="txtEndTime"
Display="Dynamic">*</asp:CompareValidator>
<asp:RadioButton ID="rdoThisDay" runat="server" GroupName="quickdate" Text="本日"></asp:RadioButton>
<asp:RadioButton ID="rdoThisWeek" runat="server" GroupName="quickdate" Text="本周"></asp:RadioButton>
<asp:RadioButton ID="rdoThisMonth" runat="server" GroupName="quickdate" Text="本月"></asp:RadioButton></td>
</tr>
<tr>
<td valign="middle" align="center" colspan="2" height="5">
<hr width="95%" size="1" />
</td>
</tr>
<tr>
<td style="width: 103px; height: 49px;" valign="middle" align="right">
<asp:Image ID="img1" runat="server" ImageUrl="~/images/search2.gif"></asp:Image>查找范围:</td>
<td valign="middle" align="left" style="height: 49px; width: 768px;">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
ShowSummary="False" />
<asp:CheckBoxList ID="chklstSelect" runat="server" AutoPostBack="True" OnSelectedIndexChanged="chklstSelect_SelectedIndexChanged"
RepeatColumns="5" Style="position: relative" Width="296px">
<asp:ListItem Value="branch">按机构</asp:ListItem>
<asp:ListItem Value="depart">按部门</asp:ListItem>
<asp:ListItem Value="userid">按员工号</asp:ListItem>
<asp:ListItem Value="username">按姓名</asp:ListItem>
</asp:CheckBoxList></td>
</tr>
<tr>
<td align="center" colspan="2" height="5">
<hr width="95%" size="1" />
</td>
</tr>
<tr>
<td colspan="2" style="height: 159px">
机构:
<asp:DropDownList ID="ddlBranchs" runat="server" Width="126px" CssClass="ddlCss"
AutoPostBack="True" DataSourceID="objBranch" DataTextField="BranchName" DataValueField="BranchId">
</asp:DropDownList><asp:ObjectDataSource ID="objBranch" runat="server" SelectMethod="GetAllModels"
TypeName="BLL.BranchInfoManager"></asp:ObjectDataSource>
部门:
<asp:DropDownList ID="ddlDeparts" runat="server" Width="128px" CssClass="ddlCss"
DataSourceID="Objedepart" DataTextField="DepartName" DataValueField="DepartId">
</asp:DropDownList><asp:ObjectDataSource ID="Objedepart" runat="server" SelectMethod="GetAllModels"
TypeName="BLL.DepartInfoManager"></asp:ObjectDataSource>
员工号:
<asp:TextBox ID="txtUserId" runat="server" Width="48px" Enabled="False" CssClass="inputCss"
Columns="10"></asp:TextBox>
姓名:
<asp:TextBox ID="txtUserName" runat="server" Width="64px" Enabled="False" CssClass="inputCss"
Columns="10"></asp:TextBox>(模糊查找 eg:李)<br />
<br />
<asp:ImageButton ID="imgbtnSearch" OnClick="imgbtnSearch_Click" runat="server" Height="21px"
Width="100px" ImageUrl="~/images/search.gif"></asp:ImageButton></td>
</tr>
<tr>
<td style="height: 100%" valign="top" align="center" width="90%" colspan="2">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<asp:GridView ID="gvUserSignInfo" runat="server" Width="77%" OnRowDataBound="gvUserSignInfo_RowDataBound"
CellPadding="4" BorderWidth="1px" BorderColor="#66CCFF" AutoGenerateColumns="False"
DataKeyNames="SignId" PageSize="6" DataSourceID="Objedepart">
<Columns>
<asp:BoundField DataField="userid" HeaderText="签到员工"></asp:BoundField>
<asp:BoundField DataField="signtime" HeaderText="签卡时间"></asp:BoundField>
<asp:BoundField DataField="signtag" HeaderText="签卡标记"></asp:BoundField>
<asp:BoundField DataField="signdesc" HeaderText="签卡备注"></asp:BoundField>
<asp:BoundField DataField="userid" HeaderText="所属部门"></asp:BoundField>
<asp:BoundField DataField="userid" HeaderText="所属机构"></asp:BoundField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllModels" TypeName="BLL.DepartInfoManager"></asp:ObjectDataSource>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -