📄 doapproveovertime.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DoApproveOverTime.aspx.cs" Inherits="DoApproveOverTime" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Panel ID="pnlEmploeePurview" runat="server" Height="25px" Width="95%">
<asp:Label ID="lblEmploeePurview" runat="server"
Text="对不起,该网页属经理专用,请退出!" Width="80%" Height="25px"></asp:Label>
</asp:Panel>
<asp:Label ID="lblOverTimeCause" runat="server" Height="25px" Text="" Width="95%"></asp:Label>
<asp:Panel ID="pnlManagerPurview" runat="server" Height="30px" Width="95%">
<asp:Label ID="lblVetoReason" runat="server" Height="25px" Text="否决理由:" Width="81px"></asp:Label>
<asp:TextBox ID="tbxVetoReason" runat="server" Height="20px" Width="250px" TextMode="SingleLine"></asp:TextBox>
<asp:Button ID="btnConfirm" runat="server" Text="确定" OnClick="btnConfirm_Click" />
<asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" />
</asp:Panel>
<asp:Panel ID="pnlOverTimeApply" runat="server" Height="50%" Width="95%">
<asp:GridView ID="gdvEmployeeApply" runat="server" AutoGenerateColumns="False"
OnRowCommand = "gdvEmployeeApply_RowCommand">
<Columns>
<asp:BoundField DataField = "EmployeeName" HeaderText = "员工姓名" />
<asp:BoundField DataField = "StartTime" HeaderText = "开始时间" />
<asp:BoundField DataField = "EndTime" HeaderText = "结束时间" />
<asp:BoundField DataField = "SubmitTime" HeaderText = "提交时间" />
<asp:BoundField DataField = "Description" HeaderText = "类型" />
<asp:BoundField DataField = "Hours" HeaderText = "小时数" />
<asp:TemplateField>
<ItemTemplate><!--CommandArgument将该格子与DataView该栏的主键"OvertimeID"绑定在一起-->
<asp:LinkButton ID="ShowMore" runat="server" CommandName="ShowMore" Width="80"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,"OvertimeID")%>'>详细情况…</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate><!--CommandArgument将该格子与DataView该栏的主键"OvertimeID"绑定在一起-->
<asp:Button ID="Approve" runat="server" CommandName="Approve" Text="批准"
OnClientClick= "return confirm( '确定要批准吗? ') "
CommandArgument='<%#DataBinder.Eval(Container.DataItem,"OvertimeID")%>'></asp:Button><!--一个弹出确认窗口的JavaScript-->
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate><!--CommandArgument将该格子与DataView该栏的主键"OvertimeID"绑定在一起-->
<asp:Button ID="Overrule" runat="server" CommandName="Overrule" Text="否决"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,"OvertimeID")%>'></asp:Button><!--一个弹出确认窗口的JavaScript-->
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</asp:Panel>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -