📄 departmentrecordgather.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DepartmentRecordGather.aspx.cs" Inherits="DepartmentRecordGather" %>
<!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>
<asp:Label ID="lblEmploeePurview" runat="server"
Text="对不起,该网页属经理专用,请退出!" Width="80%" Height="25px"></asp:Label>
<asp:Panel ID="pnlSelectItem" runat="server" Height="90px" Width="60%">
开始时间:<asp:TextBox ID="tbxStartTiem" runat="server" Height="20px" Width="25%"></asp:TextBox>
结束时间:<asp:TextBox ID="tbxEndTime" runat="Server" Height="20px" Width="25%"></asp:TextBox><br />
<br />
<asp:RadioButton ID="rbnShowAll" runat="Server" GroupName="gnSelect" Checked="true" Text="显示全部" TextAlign="right" /><br />
<asp:RadioButton ID="rbnOnlyShowType1" runat="server" GroupName="gnSelect" Text="只显示折算成年假的记录" TextAlign="right" /><br />
<asp:RadioButton ID="rbnOnlyShowType2" runat="server" GroupName="gnSelect" Text="只显示折算成津贴的记录" TextAlign="right" />
</asp:Panel>
<asp:Panel ID="pnlSelectDepartment" runat="server" Height="25px" Width="60%">
<br />
选择要查看的部门:<asp:DropDownList ID="ddlSelectDepartment" runat="server">
</asp:DropDownList>
</asp:Panel>
<br />
<asp:Button ID="btnSearch" runat="Server" Text="搜索" Width="100px" OnClick="btnSearch_Click" />
<asp:GridView ID="gvwGatherResult" runat="Server" AutoGenerateColumns="false" OnRowCommand="gvwGatherResult_RowCommand" >
<Columns>
<asp:BoundField DataField="EmployeeName" HeaderText="员工姓名" />
<asp:BoundField DataField="OvertimeNum" HeaderText="加班次数" />
<asp:BoundField DataField="WholeHours" HeaderText="总小时数" />
<asp:TemplateField HeaderText="详细情况...">
<ItemTemplate>
<asp:LinkButton ID="lbnEnter" runat="Server" CommandName="Enter"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,"EmployeeID")%>'>进入</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Panel ID="pnlApprover" runat="server" Width="60%" >
<br />
<asp:Label ID="lblApprover" runat="server" Text=""></asp:Label>
</asp:Panel>
<asp:Panel ID="pnlReason" runat="server" Width="60%" >
<br />
<asp:Label ID="lblReason" runat="server" Text=""></asp:Label>
</asp:Panel>
<asp:Panel ID="pnlDenyReason" runat="server" Width="60%" >
<br />
<asp:Label ID="lblDenyReason" runat="server" Text=""></asp:Label>
</asp:Panel>
<asp:GridView ID="gvwDetails" runat="server" AutoGenerateColumns="false" OnRowCommand="gvwDetails_RowCommand" >
<Columns>
<asp:BoundField DataField="StartTime" HeaderText="开始时间" />
<asp:BoundField DataField="EndTime" HeaderText="结束时间" />
<asp:BoundField DataField="SubmitTime" HeaderText="提交时间" />
<asp:BoundField DataField="Description" HeaderText="类型" />
<asp:BoundField DataField="Status" HeaderText="状态" />
<asp:BoundField DataField="Hours" HeaderText="小时数" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lbnDetails" runat="server" CommandName="Details"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,"OvertimeID")%>'>详细情况...</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Button ID="btnBack" runat="server" Text="后退" Width="100px" OnClick="btnBack_Click" />
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -