contractInvoiceList.jsp 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. $('#addContractInvoiceBtn').linkbutton({
  5. iconCls: 'icon-add'
  6. });
  7. $('#delContractInvoiceBtn').linkbutton({
  8. iconCls: 'icon-remove'
  9. });
  10. $('#addContractInvoiceBtn').bind('click', function(){
  11. var tr = $("#add_contractInvoice_table_template tr").clone();
  12. $("#add_contractInvoice_table").append(tr);
  13. resetTrNum('add_contractInvoice_table');
  14. return false;
  15. });
  16. $('#delContractInvoiceBtn').bind('click', function(){
  17. $("#add_contractInvoice_table").find("input:checked").parent().parent().remove();
  18. resetTrNum('add_contractInvoice_table');
  19. return false;
  20. });
  21. $(document).ready(function(){
  22. $(".datagrid-toolbar").parent().css("width","auto");
  23. resetTrNum('add_contractInvoice_table');
  24. if(location.href.indexOf("load=detail")!=-1|| ($("#viewFlag").val() != null && $("#viewFlag").val() == '1')){
  25. $(":input").attr("disabled","true");
  26. $(".datagrid-toolbar").hide();
  27. }
  28. });
  29. </script>
  30. <div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
  31. <a id="addContractInvoiceBtn" href="#">添加</a> <a id="delContractInvoiceBtn" href="#">删除</a>
  32. </div>
  33. <table border="0" cellpadding="2" cellspacing="0" id="contractInvoice_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. </tr>
  47. <tbody id="add_contractInvoice_table">
  48. <%-- <c:if test="${fn:length(contractInvoiceList) <= 0 }">
  49. <tr>
  50. <td align="center"><div style="width: 25px;" name="xh">1</div></td>
  51. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  52. <input name="contractInvoiceList[0].id" type="hidden"/>
  53. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.contractid }"/>
  54. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.paymentid }"/>
  55. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.createBy }"/>
  56. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.createDate }"/>
  57. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.createName }"/>
  58. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.updateName }"/>
  59. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.updateBy }"/>
  60. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.updateDate }"/>
  61. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.type }"/>
  62. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.bpmStatus }"/>
  63. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.auditdate }"/>
  64. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.partnerid }"/>
  65. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.projectid }"/>
  66. <input name="contractInvoiceList[0].id" type="hidden" value="${poVal.paymentamount }"/>
  67. <td align="left">
  68. <input name="contractInvoiceList[0].invoiceno" maxlength="128" 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="contractInvoiceList[0].invoiceamount" maxlength="14" type="text" class="inputxt" style="width:120px;"
  73. datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" >
  74. <label class="Validform_label" style="display: none;">本次开票金额</label>
  75. </td>
  76. <td align="left">
  77. <input name="contractInvoiceList[0].invoicedate" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()" style="width:120px;" ignore="ignore" >
  78. <label class="Validform_label" style="display: none;">开票日期</label>
  79. </td>
  80. </tr>
  81. </c:if> --%>
  82. <c:if test="${fn:length(contractInvoiceList) > 0 }">
  83. <c:forEach items="${contractInvoiceList}" var="poVal" varStatus="stuts">
  84. <tr>
  85. <td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
  86. <td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
  87. <input name="contractInvoiceList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
  88. <input name="contractInvoiceList[${stuts.index }].contractid" type="hidden" value="${poVal.contractid }"/>
  89. <input name="contractInvoiceList[${stuts.index }].paymentid" type="hidden" value="${poVal.paymentid }"/>
  90. <input name="contractInvoiceList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
  91. <input name="contractInvoiceList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
  92. <input name="contractInvoiceList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
  93. <input name="contractInvoiceList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
  94. <input name="contractInvoiceList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
  95. <input name="contractInvoiceList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
  96. <input name="contractInvoiceList[${stuts.index }].type" type="hidden" value="${poVal.type }"/>
  97. <input name="contractInvoiceList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
  98. <input name="contractInvoiceList[${stuts.index }].auditdate" type="hidden" value="${poVal.auditdate }"/>
  99. <input name="contractInvoiceList[${stuts.index }].partnerid" type="hidden" value="${poVal.partnerid }"/>
  100. <input name="contractInvoiceList[${stuts.index }].projectid" type="hidden" value="${poVal.projectid }"/>
  101. <input name="contractInvoiceList[${stuts.index }].paymentamount" type="hidden" value="${poVal.paymentamount }"/>
  102. <td align="left">
  103. <input name="contractInvoiceList[${stuts.index }].invoiceno" maxlength="128" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.invoiceno }"/>
  104. <label class="Validform_label" style="display: none;">发票号</label>
  105. </td>
  106. <td align="left">
  107. <input name="contractInvoiceList[${stuts.index }].invoiceamount" maxlength="14" type="text" class="inputxt" style="width:120px;"
  108. datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" value="${poVal.invoiceamount }"/>
  109. <label class="Validform_label" style="display: none;">本次开票金额</label>
  110. </td>
  111. <td align="left">
  112. <input name="contractInvoiceList[${stuts.index }].invoicedate" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()" style="width:120px;" ignore="ignore" value="<fmt:formatDate value='${poVal.invoicedate}' type="date" pattern="yyyy-MM-dd"/>"/>
  113. <label class="Validform_label" style="display: none;">开票日期</label>
  114. </td>
  115. </tr>
  116. </c:forEach>
  117. </c:if>
  118. </tbody>
  119. </table>