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
<?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>