<?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="cont.CON509.con_csh_payment_print" rootPath="payment_req_path"/>
        <!--  <a:model-query model="csh.CSH502.csh_payment_req_ln_upd_query" rootPath="payment_req_ln_path"/>
        <a:model-query model="csh.CSH502.csh_payment_req_approved" rootPath="approved_info_path"/>
        <a:model-execute model="csh.CSH502.update_csh_payment_req_hd_print"/> -->
    </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>
        <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_index+1!=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="300"  style="margin-left:10px;margin-top:-63px;">
            <tr>
             <td width="5%">合同编号</td>
             <td width="3%">${payment_req_rec.getString('contract_number')!''}</td> 
             </tr>
             <tr>
             <td width="5%">档案编号</td>
             <td width="3%">${payment_req_rec.getString('docu_number')!''}</td> 
             </tr>
             <tr>
             <td width="5%">承租人</td>
             <td width="3%">${payment_req_rec.getString('bp_id_tenant_name')!''}</td> 
             </tr>
             <tr>
             <td width="5%">入库日期</td>
             <td width="3%">${payment_req_rec.getString('storage_date')!''}</td> 
             </tr>
             <tr>
             <td width="5%">年份</td>
             <td width="3%">${payment_req_rec.getString('lease_term')!''}</td> 
             </tr>
              <tr>
             <td width="5%">经销商</td>
             <td width="3%">${payment_req_rec.getString('invoice_agent_id_n')!''}</td> 
             </tr>
             <tr>
             <td width="5%">归档人员</td>
             <td width="3%">${payment_req_rec.getString('user_name')!''}</td> 
             </tr>
              <tr>
             <td width="5%">省市</td>
             <td width="3%">${payment_req_rec.getString('city_sp')!''}</td> 
             </tr>
      </table>
		</#list>
		</#if>

		 ]]></a:freeMarker>
        <script type="text/javascript"><![CDATA[
            window.onload = window.print();
        ]]></script>
    </a:view>
</a:screen>
