contractPPayruleList.jsp 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <script type="text/javascript">
  4. $('#addContractPayruleBtn').linkbutton({
  5. iconCls: 'icon-add'
  6. });
  7. $('#delContractPayruleBtn').linkbutton({
  8. iconCls: 'icon-remove'
  9. });
  10. $('#addContractPayruleBtn').bind('click', function(){
  11. var tr = $("#add_contractPayrule_table_template tr").clone();
  12. $("#add_contractPayrule_table").append(tr);
  13. resetTrNum('add_contractPayrule_table');
  14. return false;
  15. });
  16. $('#delContractPayruleBtn').bind('click', function(){
  17. $("#add_contractPayrule_table").find("input:checked").parent().parent().remove();
  18. resetTrNum('add_contractPayrule_table');
  19. return false;
  20. });
  21. $(document).ready(function(){
  22. $(".datagrid-toolbar").parent().css("width","auto");
  23. if(location.href.indexOf("load=detail")!=-1 || ($("#viewFlag").val() != null && $("#viewFlag").val() == '1')){
  24. $(":input").attr("disabled","true");
  25. $(".datagrid-toolbar").hide();
  26. }
  27. resetTrNum('add_contractPayrule_table');
  28. });
  29. </script>
  30. <div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
  31. <a id="addContractPayruleBtn" href="#">添加</a> <a id="delContractPayruleBtn" href="#">删除</a>
  32. </div>
  33. <table border="0" cellpadding="2" cellspacing="0" id="contractPayrule_table">
  34. <tr bgcolor="#E6E6E6">
  35. <td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
  36. <td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
  37. <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
  38. 支付期间
  39. </td>
  40. <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
  41. 金额(元)
  42. </td>
  43. <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
  44. 支付比例(%)
  45. </td>
  46. <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
  47. 支付类型
  48. </td>
  49. <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
  50. 备注
  51. </td>
  52. </tr>
  53. <tbody id="add_contractPayrule_table">
  54. <%-- <c:if test="${fn:length(contractPPayruleList) <= 0 }">
  55. <tr>
  56. <td align="center"><div style="width: 25px;" name="xh">1</div></td>
  57. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  58. <input name="contractPPayruleList[0].id" type="hidden"/>
  59. <input name="contractPPayruleList[0].createName" type="hidden"/>
  60. <input name="contractPPayruleList[0].createBy" type="hidden"/>
  61. <input name="contractPPayruleList[0].createDate" type="hidden"/>
  62. <input name="contractPPayruleList[0].updateName" type="hidden"/>
  63. <input name="contractPPayruleList[0].updateBy" type="hidden"/>
  64. <input name="contractPPayruleList[0].updateDate" type="hidden"/>
  65. <input name="contractPPayruleList[0].bpmStatus" type="hidden"/>
  66. <input name="contractPPayruleList[0].contractid" type="hidden"/>
  67. <td align="left">
  68. <input name="contractPPayruleList[0].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
  69. <label class="Validform_label" style="display: none;">支付期间</label>
  70. </td>
  71. <td align="left">
  72. <input name="contractPPayruleList[0].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" >
  73. <label class="Validform_label" style="display: none;">金额</label>
  74. </td>
  75. <td align="left">
  76. <input name="contractPPayruleList[0].percent" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" >
  77. <label class="Validform_label" style="display: none;" >支付比例</label>
  78. </td>
  79. <td align="left">
  80. <t:dictSelect field="contractPPayruleList[0].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  81. typeGroupCode="paytype" hasLabel="false" title="支付类型" datatype="*" defaultVal="transfer"></t:dictSelect>
  82. <!-- <input name="contractPPayruleList[0].paytype" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" > -->
  83. <label class="Validform_label" style="display: none;">支付类型</label>
  84. </td>
  85. <td align="left">
  86. <input name="contractPPayruleList[0].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
  87. <label class="Validform_label" style="display: none;">备注</label>
  88. </td>
  89. </tr>
  90. </c:if> --%>
  91. <c:if test="${fn:length(contractPPayruleList) > 0 }">
  92. <c:forEach items="${contractPPayruleList}" var="poVal" varStatus="stuts">
  93. <tr>
  94. <td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
  95. <td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
  96. <input name="contractPPayruleList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
  97. <input name="contractPPayruleList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
  98. <input name="contractPPayruleList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
  99. <input name="contractPPayruleList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
  100. <input name="contractPPayruleList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
  101. <input name="contractPPayruleList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
  102. <input name="contractPPayruleList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
  103. <input name="contractPPayruleList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
  104. <input name="contractPPayruleList[${stuts.index }].contractid" type="hidden" value="${poVal.contractid }"/>
  105. <td align="left">
  106. <input name="contractPPayruleList[${stuts.index }].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.payperiod }"/>
  107. <label class="Validform_label" style="display: none;">支付期间</label>
  108. </td>
  109. <td align="left">
  110. <input name="contractPPayruleList[${stuts.index }].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" value="${poVal.amount }"/>
  111. <label class="Validform_label" style="display: none;">金额</label>
  112. </td>
  113. <td align="left">
  114. <input name="contractPPayruleList[${stuts.index }].percent" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" value="${poVal.percent }"/>
  115. <label class="Validform_label" style="display: none;">支付比例</label>
  116. </td>
  117. <td align="left">
  118. <t:dictSelect field="contractPPayruleList[${stuts.index }].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  119. typeGroupCode="paytype" defaultVal="${poVal.paytype}" hasLabel="false" title="支付类型" datatype="*"></t:dictSelect>
  120. <label class="Validform_label" style="display: none;">支付类型</label>
  121. </td>
  122. <td align="left">
  123. <input name="contractPPayruleList[${stuts.index }].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.remark }"/>
  124. <label class="Validform_label" style="display: none;">备注</label>
  125. </td>
  126. </tr>
  127. </c:forEach>
  128. </c:if>
  129. </tbody>
  130. </table>