<?xml version="1.0" encoding="UTF-8"?>
<p:procedure xmlns:a="http://www.leaf-framework.org/application" xmlns:w="leaf.plugin.export.word" xmlns:ns1="uncertain.cache.action" xmlns:s="leaf.plugin.script" xmlns:p="uncertain.proc">
		<!--<a:model-insert model="csh.hn_payment_notice_batch" />-->
		<a:model-query fetchAll="true" model="csh.hn_payment_notice_batch" rootPath="batch_path"/>
		<p:echo />
        <batch-apply sourcepath="/model/batch_path">
            <a:model-query fetchAll="true" model="csh.hn_csh_payment_notice_plan" rootPath="contract_info"/>
            <a:model-query fetchAll="true" model="csh.hn_payment_notice_plan_cashflow" rootPath="cashflow_path"/>
            <w:word-export name="租金支付通知书${/model/batch_path/record/@contract_number}第${/model/batch_path/record/@times}期租金.pdf" savePath="D:\u01\hls_attachment" template="leaf.plugin.export.word/hn_csh_payment_notice_pdf.xml" type="pdf">
				<w:replaces><![CDATA[    
				]]></w:replaces>
			</w:word-export>
			<a:model-update model="csh.hn_payment_notice_batch" />
         </batch-apply>
		<!--<a:model-execute model="csh.hn_payment_notice_batch" />-->
     <s:server-script><![CDATA[
     	    /**
             *read me
             *1.bm部分需改为相应系统的逻辑
             *2.session、cookie部分不用修改，如果出现session、cookie方面的问题，可检查此处的session、cookie(如'/session/@session_id'是否有值)
             *3.调试函数:println(Object);会将Object打印在控制台（如应用服务器tomcat的控制台）。例如：println($session.toXML());会将session对象以xml格式打印出来。
             */
           /* var now_date;
            var now_date_bm = new ModelService('rpt.rpt_now_date');
            var now_date_records = now_date_bm.queryAsMap().getChildren();
            now_date = now_date_records[0].now_date;
			var now_year = now_date_records[0].now_year;
			 */
			 var now_date = new Date();
            println('---------------------------');
            println('日期 为 :' + now_date);
			println($ctx.parameter.toXML());
      ]]></s:server-script>
</p:procedure>
