| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <script type="text/javascript">
- $('#addContractPayruleBtn').linkbutton({
- iconCls: 'icon-add'
- });
- $('#delContractPayruleBtn').linkbutton({
- iconCls: 'icon-remove'
- });
- $('#addContractPayruleBtn').bind('click', function(){
- var tr = $("#add_contractPayrule_table_template tr").clone();
- $("#add_contractPayrule_table").append(tr);
- resetTrNum('add_contractPayrule_table');
- return false;
- });
- $('#delContractPayruleBtn').bind('click', function(){
- $("#add_contractPayrule_table").find("input:checked").parent().parent().remove();
- resetTrNum('add_contractPayrule_table');
- return false;
- });
- $(document).ready(function(){
- $(".datagrid-toolbar").parent().css("width","auto");
- if(location.href.indexOf("load=detail")!=-1 || ($("#viewFlag").val() != null && $("#viewFlag").val() == '1')){
- $(":input").attr("disabled","true");
- $(".datagrid-toolbar").hide();
- }
- resetTrNum('add_contractPayrule_table');
- });
- </script>
- <div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
- <a id="addContractPayruleBtn" href="#">添加</a> <a id="delContractPayruleBtn" href="#">删除</a>
- </div>
- <table border="0" cellpadding="2" cellspacing="0" id="contractPayrule_table">
- <tr bgcolor="#E6E6E6">
- <td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
- <td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
- <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
- 支付期间
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
- 金额(元)
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
- 支付比例(%)
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
- 支付类型
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
- 备注
- </td>
- </tr>
- <tbody id="add_contractPayrule_table">
- <%-- <c:if test="${fn:length(contractPPayruleList) <= 0 }">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh">1</div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
- <input name="contractPPayruleList[0].id" type="hidden"/>
- <input name="contractPPayruleList[0].createName" type="hidden"/>
- <input name="contractPPayruleList[0].createBy" type="hidden"/>
- <input name="contractPPayruleList[0].createDate" type="hidden"/>
- <input name="contractPPayruleList[0].updateName" type="hidden"/>
- <input name="contractPPayruleList[0].updateBy" type="hidden"/>
- <input name="contractPPayruleList[0].updateDate" type="hidden"/>
- <input name="contractPPayruleList[0].bpmStatus" type="hidden"/>
- <input name="contractPPayruleList[0].contractid" type="hidden"/>
- <td align="left">
- <input name="contractPPayruleList[0].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
- <label class="Validform_label" style="display: none;">支付期间</label>
- </td>
- <td align="left">
- <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" >
- <label class="Validform_label" style="display: none;">金额</label>
- </td>
- <td align="left">
- <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" >
- <label class="Validform_label" style="display: none;" >支付比例</label>
- </td>
- <td align="left">
- <t:dictSelect field="contractPPayruleList[0].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
- typeGroupCode="paytype" hasLabel="false" title="支付类型" datatype="*" defaultVal="transfer"></t:dictSelect>
- <!-- <input name="contractPPayruleList[0].paytype" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" > -->
- <label class="Validform_label" style="display: none;">支付类型</label>
- </td>
- <td align="left">
- <input name="contractPPayruleList[0].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- </tr>
- </c:if> --%>
- <c:if test="${fn:length(contractPPayruleList) > 0 }">
- <c:forEach items="${contractPPayruleList}" var="poVal" varStatus="stuts">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
- <input name="contractPPayruleList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
- <input name="contractPPayruleList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
- <input name="contractPPayruleList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
- <input name="contractPPayruleList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
- <input name="contractPPayruleList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
- <input name="contractPPayruleList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
- <input name="contractPPayruleList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
- <input name="contractPPayruleList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
- <input name="contractPPayruleList[${stuts.index }].contractid" type="hidden" value="${poVal.contractid }"/>
- <td align="left">
- <input name="contractPPayruleList[${stuts.index }].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.payperiod }"/>
- <label class="Validform_label" style="display: none;">支付期间</label>
- </td>
- <td align="left">
- <input name="contractPPayruleList[${stuts.index }].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" value="${poVal.amount }"/>
- <label class="Validform_label" style="display: none;">金额</label>
- </td>
- <td align="left">
- <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 }"/>
- <label class="Validform_label" style="display: none;">支付比例</label>
- </td>
- <td align="left">
- <t:dictSelect field="contractPPayruleList[${stuts.index }].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
- typeGroupCode="paytype" defaultVal="${poVal.paytype}" hasLabel="false" title="支付类型" datatype="*"></t:dictSelect>
- <label class="Validform_label" style="display: none;">支付类型</label>
- </td>
- <td align="left">
- <input name="contractPPayruleList[${stuts.index }].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.remark }"/>
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- </tr>
- </c:forEach>
- </c:if>
- </tbody>
- </table>
|