csh_payment_info_print.lview 3.46 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" cache="false" default-dispatch="${/model/url/@URL}" dispatch-style="redirect" trace="true">
    <a:init-procedure>
        <a:model-query model="csh.CSH501.csh_payment_req_info" rootPath="payment_req_path"/>
    </a:init-procedure>
    <a:view>
        <style media="print"><![CDATA[
        .PageNext
        {
            page-break-after: always;
        }
]]></style>
        <style type="text/css"><![CDATA[
table
{
border-collapse:collapse;
border:none;
};
td{
    height:50px;
}
    ]]></style>
        <script type="text/javascript"><![CDATA[

    ]]></script>
        <ajax-init/>
        <a:freeMarker><![CDATA[
        <#if  model.getObject('/model/payment_req_path').getChilds()??>
		<#list  model.getObject("/model/payment_req_path").getChilds() as payment_req_rec>
		 <#if (payment_req_rec.getString('rk')!'')!='1'> 
		    <div class="PageNext">
            </div>
         </#if>
		 <P align="center">
            <B>
                <FONT face="楷体" size="7" style="border-bottom:4px double black;">请款单</FONT>
                <br/>
            </B>
        </P>
       <table border="1" width="1000"  style="margin-left:80px;"  >
            <tr>
             <td width="10%">合同编号</td>
             <td width="15%">${payment_req_rec.getString('contract_number')!''}</td> 
             <td width="10%">车架号</td>
             <td width="15%">${payment_req_rec.getString('item_frame_number')!''}</td> 
             <td width="10%">申请日期</td>
             <td width="15%">${payment_req_rec.getString('req_date')!''}</td> 
             <td width="10%">币种</td>
             <td width="15%">人民币</td>  
           </tr>
		    <tr>
             <td >对象名称</td>
             <td colspan="3">${payment_req_rec.getString('bp_name')!''}</td> 
             <td >承租人</td>
             <td colspan="3">${payment_req_rec.getString('bp_tenant_name')!''}</td> 
           </tr>
      </table>
      <p/>
      <table border="1" width="1000"  style="margin-left:80px;">
         <tr>
           <td width="20%" style="text-align:center;">应付项目</td>
           <td width="15%" style="text-align:center;">本次申请金额</td>
           <td width="15%" style="text-align:center;">应付金额</td>
           <td width="15%" style="text-align:center;">剩余未付金额</td>
           <td width="10%" style="text-align:center;">申请付款日期</td>
           <td width="15%" style="text-align:center;">已申请支付金额</td>
           <td width="10%" style="text-align:center;">计划付款日期</td>
         </tr>
		       <tr>
		       <td>${payment_req_rec.getString('cf_description')!''}</td>
		       <td style="text-align:right;">${payment_req_rec.getString('amount')!''}</td>
		       <td style="text-align:right;">${payment_req_rec.getString('due_amount')!''}</td>
		       <td style="text-align:right;">${payment_req_rec.getString('residual_amount')!''}</td>
		       <td style="text-align:center;">${payment_req_rec.getString('req_date')!''}</td>
		       <td style="text-align:right;">${payment_req_rec.getString('applied_pay_amount')!''}</td>
		       <td style="text-align:center;">${payment_req_rec.getString('due_date')!''}</td>
		       </tr>
		     </table>
		     <p/>
		  </#list>
		  </#if>
		 ]]></a:freeMarker>
        <script type="text/javascript"><![CDATA[
            window.onload = window.print();
        ]]></script>
    </a:view>
</a:screen>