<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: zhuxianfei $Date: 2018年3月19日 下午6:19:10 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true"> <a:init-procedure> <a:model-query fetchAll="true" model="cont.CON780.get_current_date" rootPath="default_date_path"/> </a:init-procedure> <a:view> <script type="text/javascript"><![CDATA[ function con780_query() { $('con_cashflow_received_ds').query(); } function con780_reset() { $('cash_received_query_ds').reset(); } function query_export() { $('con_cashflow_received_ds_id')._export(null, '扣款台账'); } ]]></script> <a:dataSets> <a:dataSet id="month_ds" lookupCode="MONTH"/> <a:dataSet id="cash_received_query_ds"> <a:fields> <!-- <a:field name="current_period" defaultValue="${/model/default_date_path/record/@current_period}" required="true"/> --> <a:field name="year" defaultValue="${/model/default_date_path/record/@year}" required="true"/> <a:field name="month" defaultValue="${/model/default_date_path/record/@current_month}" displayField="code_value_name" options="month_ds" required="true" returnField="month" valueField="code_value"/> <a:field name="__async__" defaultValue="Y" prompt="异步导出"/> </a:fields> </a:dataSet> <a:dataSet id="con_cashflow_received_ds" autoQuery="true" fetchAll="true" loadData="true" model="cont.CON780.con780_cashflow_received" queryDataSet="cash_received_query_ds" queryUrl="${/request/@context_path}/autocrud/cont.CON780.con780_cashflow_received/query?year=2018&month=03" selectable="true"><![CDATA[ ]]> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="con780_query" text="HLS.QUERY"/> <a:gridButton click="con780_reset" text="HLS.RESET"/> </a:screenTopToolbar> <a:form title="HAP_QUERY_TITLE"> <a:hBox width="800"> <a:textField name="year" bindTarget="cash_received_query_ds" prompt="年份"/> <a:comboBox name="month" bindTarget="cash_received_query_ds" prompt="月份"/> <!-- <a:datePicker name="current_period" bindTarget="cash_received_query_ds" prompt="扣款区间"> <a:events> <a:event name="enterdown" handler="con780_query"/> <a:event name="load" handler="FormatDate"/> <a:event name="update" handler="FormatDate"/> </a:events> </a:datePicker> --> </a:hBox> </a:form> <a:grid id="con_cashflow_received_ds_id" bindTarget="con_cashflow_received_ds" marginHeight="240" marginWidth="40" navBar="true"> <a:toolBar> <a:button click="query_export" text="导出" type="excel"/> </a:toolBar> <a:columns> <a:column prompt="122"> <a:column name=" lease_organization_n" Width="130" align="center" prompt="事业部"/> <a:column name="org_unit_description" Width="200" align="center" prompt="省份"/> </a:column> <a:column name="total_received_amount" Width="130" align="center" prompt="实收租金"/> <a:column name="total_due_amount" Width="200" align="center" prompt="应收租金"/> <a:column name="ratio" Width="130" align="center" prompt="回款率"/> </a:columns> </a:grid> </a:screenBody> </a:view> </a:screen>