📄 individual.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Individual.aspx.cs" Inherits="web_CheckOvertime_Individual" %>
<%@ Register Src="left.ascx" TagName="left" TagPrefix="uc2" %>
<%@ Register Src="../Common/header.ascx" TagName="header" TagPrefix="uc1" %>
<!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>
<font face="宋体" size="small">
<table id="Table1" border="0" cellpadding="0" cellspacing="0" height="100%" style="z-index: 101;
left: 8px; position: absolute; top: 8px" width="100%">
<tr height="100" valign="top">
<td colspan="2">
<uc1:header ID="Header1" runat="server" />
</td>
</tr>
<tr valign="top">
<td align="left" width="130" bgcolor="#b0bccf">
<uc2:left ID="Left1" runat="server" />
</td>
<td align="center" valign="top">
<asp:Panel ID="pnlBody" runat="server" Height="10px" HorizontalAlign="Left" Width="700px">
<br />
<asp:Panel ID="pnlHeader" runat="server">
<asp:Panel ID="pnlChooseDept" runat="server" BorderWidth="0px" Height="32px" Width="750px">
<asp:Label ID="lblDept" runat="server">选择要查看的部门:</asp:Label>
<asp:DropDownList ID="cmbDeptList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged">
</asp:DropDownList>
<asp:Label ID="lblDeptID" runat="server" Visible="False"></asp:Label>
</asp:Panel>
<asp:Panel ID="pnlChooseEmp" runat="server" BorderWidth="0px" Height="24px" Width="750px">
<asp:Label ID="Label4" runat="server">选择要查看的员工:</asp:Label>
<asp:DropDownList ID="cmbEmpList" runat="server" OnSelectedIndexChanged="cmbEmpList_SelectedIndexChanged">
</asp:DropDownList>
</asp:Panel>
<p>
<asp:Label ID="Label1" runat="server">开始时间:</asp:Label>
<asp:TextBox ID="txtStartTime" runat="server" Width="80px"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtStartTime"
Display="Dynamic" ErrorMessage="请输入正确的日期格式:(YYYY/MM/DD)" Font-Size="X-Small"
Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
Display="Dynamic" ErrorMessage="该项不能为空!" Font-Size="X-Small"></asp:RequiredFieldValidator>
<asp:Label ID="Label2" runat="server">结束时间:</asp:Label>
<asp:TextBox ID="txtEndTime" runat="server" Width="80px"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtEndTime"
Display="Dynamic" ErrorMessage="请输入正确的日期格式:(YYYY/MM/DD)" Font-Size="X-Small"
Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
Display="Dynamic" ErrorMessage="该项不能为空!" Font-Size="X-Small"></asp:RequiredFieldValidator></p>
<asp:RadioButtonList ID="rdoOptionList" runat="server" Height="52px" Width="352px">
<asp:ListItem Selected="True" Value="0">显示全部</asp:ListItem>
<asp:ListItem Value="1">只显示折算成年假的记录</asp:ListItem>
<asp:ListItem Value="2">只显示折算成津贴的记录</asp:ListItem>
</asp:RadioButtonList>
<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" Width="96px" />
</asp:Panel>
<asp:Label ID="lblEmpID" runat="server" Visible="False"></asp:Label>
<asp:Panel ID="pnlDetail" runat="server" Height="50px" Width="750px">
<br />
<asp:Label ID="Label3" runat="server" Font-Size="Small">审批者:</asp:Label>
<asp:Label ID="lblApproverName" runat="server" Font-Size="Small"></asp:Label>
<br />
<asp:Label ID="Label5" runat="server" Font-Size="Small">加班事由:</asp:Label>
<asp:Label ID="lblReason" runat="server" Font-Size="Small" Height="8px" Width="664px"></asp:Label>
<br />
<asp:Label ID="lblDeny" runat="server" Font-Size="Small" Visible="False">
否决理由:</asp:Label>
<asp:Label ID="lblDenyReason" runat="server" Font-Size="Small" Height="6px" Visible="False"
Width="672px"></asp:Label>
</asp:Panel>
<br />
<asp:Label ID="lblMessage" runat="server"></asp:Label>
<asp:DataGrid ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Size="X-Small"
Width="750px">
<SelectedItemStyle BackColor="LemonChiffon" Font-Bold="True" />
<ItemStyle ForeColor="#000066" Wrap="False" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
<FooterStyle BackColor="White" ForeColor="#000066" />
<Columns>
<asp:BoundColumn DataField="OvertimeID" HeaderText="ID" Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="StartTime" DataFormatString="{0:yyyy-MM-dd HH:mm}" HeaderText="开始时间">
<ItemStyle Wrap="False" />
</asp:BoundColumn>
<asp:BoundColumn DataField="EndTime" DataFormatString="{0:yyyy-MM-dd HH:mm}" HeaderText="结束时间">
<ItemStyle Wrap="False" />
</asp:BoundColumn>
<asp:BoundColumn DataField="SubmitTime" DataFormatString="{0:yyyy-MM-dd HH:mm}" HeaderText="提交时间">
<ItemStyle Wrap="False" />
</asp:BoundColumn>
<asp:BoundColumn DataField="TypeName" HeaderText="类型"></asp:BoundColumn>
<asp:BoundColumn DataField="Status" HeaderText="状态"></asp:BoundColumn>
<asp:BoundColumn DataField="Hours" HeaderText="小时数"></asp:BoundColumn>
<asp:ButtonColumn CommandName="Detail" Text="详细情况..."></asp:ButtonColumn>
<asp:BoundColumn DataField="ApproverName" HeaderText="审批者" Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="Reason" HeaderText="请假事由" Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="DenyReason" HeaderText="否决理由" Visible="False"></asp:BoundColumn>
</Columns>
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
</asp:DataGrid>
<asp:Panel ID="pnlBack" runat="server">
<br>
<input onclick="window.history.go(-1)" style="width: 96px; height: 24px" type="button"
value="后退"></asp:Panel>
</asp:Panel>
</td>
</tr>
</table>
</font>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -