editSalayInsuranceCountDetail.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript">
  16. function closeWin() {
  17. window.parent.dialog.close();
  18. }
  19. function checkForm() {
  20. var rs = $.validate({
  21. name : "insurance_project_id",
  22. model : [ {
  23. type : "require",
  24. msg : "项目名称不能为空!"
  25. } ]
  26. });
  27. rs = $.validate({
  28. name : "base_number",
  29. model : [ {
  30. type : "require",
  31. msg : "基数不能为空!"
  32. }, {
  33. type : 'isNumber',
  34. msg : '请输入数字'
  35. } ]
  36. }) && rs;
  37. rs = $.validate({
  38. name : "unit_pay",
  39. model : [ {
  40. type : "require",
  41. msg : "单位缴费不能为空!",
  42. // msgBox : "unit_pay_method",
  43. msgBox : "msgbox1"
  44. }, {
  45. type : 'isNumber',
  46. msg : '请输入数字'
  47. } ]
  48. }) && rs;
  49. rs = $.validate({
  50. name : "person_pay",
  51. model : [ {
  52. type : "require",
  53. msg : "个人缴费不能为空!",
  54. msgBox : "msgbox2"
  55. }, {
  56. type : 'isNumber',
  57. msg : '请输入数字'
  58. } ]
  59. }) && rs;
  60. return rs;
  61. }
  62. function f_select() {
  63. var countDetail = [ {
  64. insurance_project_id : $("#insurance_project_id").val(),
  65. insurance_project_name : $("#insurance_project_id").find(
  66. "option:selected").text(),
  67. base_number : $("#base_number").val(),
  68. unit_pay : $("#unit_pay").val(),
  69. unit_pay_method : $("#unit_pay_method").val(),
  70. person_pay : $("#person_pay").val(),
  71. person_pay_method : $("#person_pay_method").val(),
  72. optype : $("#optype").val()
  73. } ];
  74. return countDetail;
  75. }
  76. </script>
  77. </head>
  78. <body style="overflow: hidden;">
  79. <!-- <div id="title" class="form-button"> -->
  80. <!-- <input id="salaryInsuranceCountDetail_save" name="salaryInsuranceCountDetail_save" type="button" class="l-button" value="保存" onClick="btnSaveIn();" /> -->
  81. <!-- <input type="button" value="关闭" class="l-button" onClick="closeWin();" /> -->
  82. <!-- </div> -->
  83. <!-- <div class="container-layout"> -->
  84. <div class="forum-container">
  85. <table class="l-table-edit line">
  86. <tr>
  87. <th colspan="2">帐套项目</th>
  88. </tr>
  89. <tr>
  90. <td class="l-table-edit-text" >项目名称<FONT COLOR="red">*</FONT>:
  91. </td>
  92. <td class="l-table-edit-td" ><select id="insurance_project_id" name="insurance_project_id">
  93. <option value="">请选择</option>
  94. <c:forEach items="${sipList }" var="sip">
  95. <option value="${sip.universalid }" <c:if test="${sip.universalid == salaryInsuranceCountDetail.insurance_project_id }">selected="selected"</c:if>>${sip.project_name }</option>
  96. </c:forEach>
  97. </select></td>
  98. </tr>
  99. <tr>
  100. <td class="l-table-edit-text">基数 <FONT COLOR="red">*</FONT>:
  101. </td>
  102. <td class="l-table-edit-td"><input type="text" id="base_number" name="base_number" value="${requestScope.salaryInsuranceCountDetail.base_number }"></td>
  103. </tr>
  104. <tr>
  105. <td class="l-table-edit-text">单位缴费 <FONT COLOR="red">*</FONT>:
  106. </td>
  107. <td class="l-table-edit-td"><input type="text" id="unit_pay" name="unit_pay" value="${requestScope.salaryInsuranceCountDetail.unit_pay }"> <select id="unit_pay_method"
  108. name="unit_pay_method">
  109. <option value="0" <c:if test="${0 == salaryInsuranceCountDetail.unit_pay }">selected="selected"</c:if>>百分比</option>
  110. <option value="1" <c:if test="${1 == salaryInsuranceCountDetail.unit_pay }">selected="selected"</c:if>>定额</option>
  111. </select><span id="msgbox1" style="float: right;"></span>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td class="l-table-edit-text">个人缴费 <FONT COLOR="red">*</FONT>:
  116. </td>
  117. <td class="l-table-edit-td"><input type="text" id="person_pay" name="person_pay" value="${requestScope.salaryInsuranceCountDetail.person_pay }"> <select id="person_pay_method"
  118. name="person_pay_method">
  119. <option value="0" <c:if test="${0 == salaryInsuranceCountDetail.person_pay }">selected="selected"</c:if>>百分比</option>
  120. <option value="1" <c:if test="${1 == salaryInsuranceCountDetail.person_pay }">selected="selected"</c:if>>定额</option>
  121. </select><span id="msgbox2" style="float: right;"></span>
  122. </td>
  123. </tr>
  124. </table>
  125. <input type="hidden" id="universalid" name="universalid" value="${salaryInsuranceCountDetail.universalid }">
  126. <input type="hidden" id="optype" name="optype" value="${param.optype }">
  127. <input type="hidden" id="jsonData" name="jsonData" value="${param.jsonData }">
  128. <input type="hidden" id="insurance_count_id" name="insurance_count_id" value="${salaryInsuranceCountDetail.insurance_count_id }">
  129. </div>
  130. <!-- </div> -->
  131. </body>
  132. </html>