OvertimeApplicationList.aspx 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OvertimeApplicationList.aspx.cs" Inherits="OA2014.OvertimeApplicationList" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <%@ Register Src="../publicControls/pageControl.ascx" TagName="pageControl" TagPrefix="uc1" %>
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head id="Head1" runat="server">
  6. <title>加班申请</title>
  7. <link href="../css/all.css" rel="stylesheet" type="text/css" />
  8. <%-- <link href="../css/upCard.css" rel="stylesheet" type="text/css" />--%>
  9. <link href="../css/pagination.css" rel="stylesheet" type="text/css" />
  10. <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
  11. </head>
  12. <body style="margin: auto; width: 75%; height: 550px;">
  13. <form id="form1" runat="server">
  14. <div>
  15. <div class="ps">
  16. <table class="ps" cellpadding="0" cellspacing="0" border="0">
  17. <tr>
  18. <td style="width: 75%;">日期:
  19. <asp:TextBox ID="txtStardDate" runat="server"
  20. Width="80" onClick="WdatePicker()" Style="border: 1px solid #b3b3b3;" />
  21. &nbsp;至&nbsp;
  22. <asp:TextBox ID="txtEndDate" runat="server"
  23. Width="80" onClick="WdatePicker()" Style="border: 1px solid #b3b3b3;" />
  24. 人事审核状态:<asp:DropDownList ID="ddlRSAudit" AutoPostBack="true" runat="server"
  25. Width="70" OnSelectedIndexChanged="ddlRSAudit_SelectedIndexChanged">
  26. <asp:ListItem Value="0" Text="未审核" />
  27. <asp:ListItem Value="1" Text="已审核" />
  28. <asp:ListItem Value="2" Text="未通过" />
  29. </asp:DropDownList>
  30. 主管审核状态:<asp:DropDownList ID="ddlZGAudit" AutoPostBack="true" runat="server"
  31. Width="70" OnSelectedIndexChanged="ddlZGAudit_SelectedIndexChanged">
  32. <asp:ListItem Value="0" Text="未审核" />
  33. <asp:ListItem Value="1" Text="已审核" />
  34. <asp:ListItem Value="2" Text="未通过" />
  35. </asp:DropDownList>
  36. 加班类型:<asp:DropDownList runat="server" ID="ddlOvertimeType">
  37. <asp:ListItem Text="全部" Value="0" />
  38. <asp:ListItem Text="公司加班" Value="1" />
  39. <asp:ListItem Text="在家加班" Value="2" />
  40. <asp:ListItem Text="外出加班" Value="3" />
  41. </asp:DropDownList>
  42. <asp:Button ID="Button1" runat="server" Text="查 询" CssClass="btn" Style="line-height: 18px; width: 65px; height: 20px;"
  43. OnClick="Button1_Click" />
  44. </td>
  45. <td class="ps_add" style="width: 25%">
  46. <asp:Button ID="btnAdd" runat="server" Text="新增加班申请" CssClass="btn" Style="line-height: 18px; width: 85px; height: 20px;"
  47. OnClick="btnAdd_Click" />
  48. </td>
  49. </tr>
  50. </table>
  51. </div>
  52. <div class="list">
  53. <table class="list" cellpadding="0" cellspacing="0" border="0">
  54. <tr class="tr_title">
  55. <td style="border: 1px solid #168ec7; width: 100px;">序号
  56. </td>
  57. <td style="border: 1px solid #168ec7; width: 100px;">申请人
  58. </td>
  59. <td style="border: 1px solid #168ec7; width: 100px;">申请日期
  60. </td>
  61. <td style="border: 1px solid #168ec7; width: 100px;">开始时间
  62. </td>
  63. <td style="border: 1px solid #168ec7; width: 100px;">结束时间
  64. </td>
  65. <td style="border: 1px solid #168ec7; width: 100px;">加班类型
  66. </td>
  67. <td style="border: 1px solid #168ec7; width: 100px;">实际加班累计
  68. </td>
  69. <td style="border: 1px solid #168ec7; width: 200px;">新规加班累计
  70. </td>
  71. <td class="td">事由说明
  72. </td>
  73. <td class="td_oper">操 作
  74. </td>
  75. </tr>
  76. <asp:Repeater ID="rpData" runat="server" OnItemDataBound="rpData_ItemDataBound">
  77. <ItemTemplate>
  78. <tr class="tr_content">
  79. <td class="td">
  80. <%# Container.ItemIndex + 1%>
  81. </td>
  82. <td style="border: 1px solid #168ec7; width: 100px;">
  83. <asp:Label runat="server" ID="uName"></asp:Label>
  84. </td>
  85. <td style="border: 1px solid #168ec7; width: 100px;">
  86. <%#Convert.ToDateTime(Eval("OverDate")).ToString("yyyy-MM-dd")%>
  87. </td>
  88. <td style="border: 1px solid #168ec7; width: 100px;">
  89. <%#Eval("StardTime")%>
  90. </td>
  91. <td style="border: 1px solid #168ec7; width: 100px;">
  92. <%#Eval("EndTime")%>
  93. </td>
  94. <td style="border: 1px solid #168ec7; width: 150px;">
  95. <asp:HiddenField runat="server" ID="hdOvertimeType" Value='<%#Eval("OvertimeType")%>' />
  96. <asp:Label runat="server" ID="lbOvertimeType" />
  97. </td>
  98. <td style="border: 1px solid #168ec7; width: 100px;">
  99. <%#Eval("ObjectiveTime")%>
  100. </td>
  101. <td style="border: 1px solid #168ec7; width: 100px;">
  102. <%#Eval("SubjectiveTime")%>
  103. </td>
  104. <td class="td" style="border: 1px solid #168ec7; width: 300px;">
  105. <%#Eval("Reason")%>
  106. </td>
  107. <td style="width: 100px; border: 1px solid #168ec7;">
  108. <asp:Label ID="lblUID" Visible="false" runat="server" Text='<%# Eval("UID") %>'></asp:Label>
  109. <asp:LinkButton ID="lbtnEdit" runat="server" Text="编 辑" OnClick="lbtnEdit_Click"
  110. CommandArgument='<%#Eval("Id")%>' />
  111. |
  112. <asp:LinkButton ID="lbtnDel" runat="server" Text="删 除" OnClick="lbtnDel_Click" OnClientClick='return confirm("温馨提示:确定删除该条数据吗?");'
  113. CommandArgument='<%#Eval("Id")%>' />
  114. </td>
  115. </tr>
  116. </ItemTemplate>
  117. </asp:Repeater>
  118. </table>
  119. <%-- <span style="color: green;">共加班:</span><label runat="server" style="font-size: 20px;" id="lblOverHourse">0</label>小时&nbsp;&nbsp;--%>
  120. <span style="color: green;">共加班(在家加班时间按公司规章统计):</span><label runat="server" style="font-size: 20px;" id="lblOverHourseSub">0</label>小时&nbsp;&nbsp;
  121. <br />
  122. <span style="color: red;">共抵休:</span><label runat="server" style="font-size: 20px;" id="lblLeavelHourse">0</label>小时
  123. </div>
  124. <uc1:pageControl ID="pageControl" runat="server" />
  125. </div>
  126. </form>
  127. </body>
  128. </html>