createSalayStaffInsuranceHistory.jsp 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>生成社保缴费记录</title>
  8. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
  14. <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
  15. <script type="text/javascript" src="/shares/js/constant.js"></script>
  16. <script type="text/javascript" src="/shares/js/common.js"></script>
  17. <script type="text/javascript">
  18. var dialog = frameElement.dialog;
  19. $(function() {
  20. loadTypeTree("userButton", {
  21. type : "user",
  22. backId : "staff_ids",
  23. backName : "staff_names",
  24. tab : "1"
  25. });
  26. showSuccessMsg("${requestScope.msgEvent}");
  27. });
  28. function checkForm() {
  29. var rs = $.validate({
  30. name : "staff_names",
  31. model : [ {
  32. type : "require",
  33. msg : "对象不能为空!"
  34. } ]
  35. });
  36. rs = $.validate({
  37. name : "insurance_month",
  38. model : [ {
  39. type : "require",
  40. msg : "社保月份不能为空!"
  41. } ]
  42. }) && rs;
  43. rs = $.validate({
  44. name : "insurance_charged_month",
  45. model : [ {
  46. type : "require",
  47. msg : "社保扣费月不能为空!"
  48. } ]
  49. }) && rs;
  50. if (rs) {
  51. return true;
  52. }
  53. return false;
  54. }
  55. function CloseWin() {
  56. // window.parent.dialog.close();
  57. window.parent.frames[stripscriptback('${param.tabid }')].closeODialog();
  58. }
  59. function refresh() {
  60. window.parent.initSalaryInsuranceHistoryList();
  61. window.parent.dialog.close();
  62. }
  63. function stripscriptback(s) {
  64. var pattern = new RegExp("[_]");
  65. var rs = "";
  66. for (var i = 0; i < s.length; i++) {
  67. rs = rs + s.substr(i, 1).replace(pattern, '&');
  68. }
  69. return rs;
  70. }
  71. //保存
  72. function btnSave() {
  73. if (checkForm()) {
  74. // $("#salInsCount_save").attr('disabled', true);
  75. $("#salaryInsuranceHistoryForm").submit();
  76. }
  77. }
  78. function showSuccessMsg(isSucc) {
  79. if (isSucc) {
  80. $.ligerDialog.success('新增成功!', "提示", onBtnClick);
  81. // refresh();
  82. }
  83. }
  84. function onBtnClick() {
  85. // refresh();
  86. window.parent.f_selectTab("${param.tabid }");
  87. window.parent.f_reloadTab("${param.tabid }");
  88. // alert(window.top.frames["hrSalaryStaffInsuranceHistoryAction.do?task=toList"].f_btnCancel());
  89. CloseWin();
  90. }
  91. </script>
  92. <style type="text/css">
  93. .file-style {
  94. width: 550px;
  95. }
  96. .file-style input[type='file'] {
  97. width: 300px;
  98. height: 24px;
  99. line-height: 22px;
  100. vertical-align: bottom;
  101. background-color: #fff;
  102. border: 1px solid #cccccc;
  103. margin-top: 2px;
  104. margin-bottom: 2px;
  105. }
  106. </style>
  107. </head>
  108. <body>
  109. <form id="salaryInsuranceHistoryForm" action="hrSalaryStaffInsuranceHistoryAction.do?task=doCreateSalayInsuranceHistory" method="post">
  110. <!-- <div id="title" class="form-button"> -->
  111. <!-- <input id="btnSave" type="button" class="l-button" value="保存" onclick="btnSave();" /> -->
  112. <!-- <input type="button" value="关闭" class="l-button" onclick="CloseWin();" /> -->
  113. <!-- </div> -->
  114. <!-- <div class="container-layout"> -->
  115. <div class="forum-container">
  116. <center>
  117. <table class="l-table-edit line">
  118. <tr>
  119. <th colspan="4">生成月报表</th>
  120. </tr>
  121. <tr>
  122. <td class="l-table-edit-text">选择对象<FONT COLOR="red">*</FONT>:
  123. </td>
  124. <td class="l-table-edit-td" colspan="3"><textarea name="staff_names" id="staff_names" rows="5" cols="50" readonly="readonly"></textarea> <input type="hidden" name="staff_ids" id="staff_ids"></input>
  125. <input type="button" class="l-button" value="选择" id="userButton"></input></td>
  126. </tr>
  127. <tr>
  128. <td class="l-table-edit-text" width="20%">社保月份<FONT COLOR="red">*</FONT>:
  129. </td>
  130. <td class="l-table-edit-td" width="30%"><input type="text" class="Wdate" name="salaryInsuranceHistory.insurance_month" id="insurance_month"
  131. onclick="WdatePicker({dateFmt:'yyyy-MM'})" value="${salaryInsuranceHistory.insurance_month }"></td>
  132. </td>
  133. <td class="l-table-edit-text" width="20%">社保扣费月<FONT COLOR="red">*</FONT>:
  134. </td>
  135. <td class="l-table-edit-td" width="30%"><input type="text" class="Wdate" name="salaryInsuranceHistory.insurance_charged_month" id="insurance_charged_month"
  136. onclick="WdatePicker({dateFmt:'yyyy-MM'})" value="${salaryInsuranceHistory.insurance_charged_month }"></td>
  137. </tr>
  138. <tr>
  139. <td colspan="4">
  140. <div style="margin-top: 5px">
  141. <font color=red>温馨提示:</font>
  142. </div>
  143. <div style="margin-top: 5px">1、社保月份是需交社保的月份,如果已经生成报表,再进行重新生成时,将会覆盖该月份原来的数据。</div>
  144. <div>2、社保扣费月,是将会在哪个月份进行扣取社保费用。</div>
  145. <div>3、如果所选对象没有社保帐套,则不会生成数据。</div>
  146. </td>
  147. </tr>
  148. </table>
  149. <input type="hidden" id="universalid" name="universalid" value="${salaryStaffInsurance.universalid }">
  150. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  151. </center>
  152. </div>
  153. <!-- </div> -->
  154. </form>
  155. </body>
  156. </html>