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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: ZLF
$Date: 2014-12-31 上午11:20:14
$Revision: 1.0
$Purpose:佣金查询
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<script type="text/javascript"><![CDATA[
function con578_reset() {
$('con578_commission_query_ds').reset();
}
function con578_query() {
$('con578_commission_result_ds').query();
}
function commission_result_renderer_func(value, record, name) {
if(name === 'lease_term'){
return Ext.isEmpty(value)?'':(value + '年');
}
}
]]></script>
<a:dataSets>
<a:dataSet id="con578_unit_name_ds" loadData="true" model="basic.exp_org_unit_name_lov"/>
<a:dataSet id="con505_lease_organization_name_ds" loadData="true" model="basic.hls_lease_organization_for_lov"/>
<a:dataSet id="confirm_ds">
<a:datas>
<a:record name="是" value="Y"/>
<a:record name="否" value="N"/>
</a:datas>
</a:dataSet>
<a:dataSet id="sys_month_ds" lookupCode="SYS_MONTH"/>
<a:dataSet id="con578_commission_query_ds">
<a:fields>
<a:field name="contract_number" autoComplete="true" autoCompleteField="contract_number" lovGridHeight="300" lovHeight="450" lovService="cont.CON578.contract_number_lov" lovWidth="500" title="HLS.CONTRACT_NUMBER">
<a:mapping>
<a:map from="contract_number" to="contract_number"/>
<a:map from="contract_name" to="contract_name"/>
</a:mapping>
</a:field>
<a:field name="commission_confirm_flag" defaultValue="Y"/>
<a:field name="commission_flag_desc" defaultValue="是" displayField="name" options="confirm_ds" returnField="commission_confirm_flag" valueField="value"/>
<a:field name="contract_name"/>
<a:field name="inception_of_lease"/>
<a:field name="unit_name" displayField="unit_name" options="con578_unit_name_ds" returnField="unit_id" valueField="unit_id"/>
<a:field name="unit_id"/>
<a:field name="unit_id_desc"/>
<a:field name="bp_code" autoComplete="true" lovGridHeight="350" lovHeight="500" lovLabelWidth="100" lovService="basic.hls_bp_master_v_for_lov?bp_category=TENANT" lovWidth="550" title="HLS.BP_TITLE">
<a:mapping>
<a:map from="bp_code" to="bp_code"/>
<a:map from="bp_id" to="bp_id_tenant"/>
<a:map from="bp_name" to="bp_name"/>
</a:mapping>
</a:field>
<a:field name="bp_id_tenant"/>
<a:field name="bp_name"/>
<a:field name="lease_organization"/>
<a:field name="lease_organization_desc" displayField="description" options="con505_lease_organization_name_ds" returnField="lease_organization" valueField="lease_organization"/>
<a:field name="other_fee2"/>
<a:field name="rebate_month"/>
<a:field name="rebate_month_n" displayField="code_value_name" options="sys_month_ds" returnField="rebate_month" valueField="code_value"/>
</a:fields>
</a:dataSet>
<a:dataSet id="con578_commission_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON578.con_contract_commission_info" queryDataSet="con578_commission_query_ds">
<a:fields>
<a:field name="rebate_month"/>
<a:field name="rebate_month_n"/>
<a:field name="commission_amount"/>
<a:field name="commission_confirm_flag" checkedValue="Y" uncheckedValue="N"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="con578_query" text="HLS.QUERY"/>
<a:gridButton click="con578_reset" text="HLS.RESET"/>
</a:screenTopToolbar>
<a:form column="3" marginWidth="30" title="查询条件">
<a:lov name="contract_number" bindTarget="con578_commission_query_ds" prompt="合同编号"/>
<a:textField name="contract_name" bindTarget="con578_commission_query_ds" prompt="合同名"/>
<a:datePicker name="inception_of_lease" bindTarget="con578_commission_query_ds" prompt="起租日"/>
<a:lov name="bp_code" bindTarget="con578_commission_query_ds" prompt="HLS.TENANT_CODE"/>
<a:textField name="bp_name" bindTarget="con578_commission_query_ds" prompt="HLS.TENANT_NAME"/>
<a:comboBox name="unit_name" bindTarget="con578_commission_query_ds" prompt="供应商"/>
<a:comboBox name="lease_organization_desc" bindTarget="con578_commission_query_ds" prompt="HLS.LEASE_ORGANIZATION"/>
<a:comboBox name="rebate_month_n" bindTarget="con578_commission_query_ds" prompt="返利月份"/>
<a:comboBox name="commission_flag_desc" bindTarget="con578_commission_query_ds" prompt="是否确认"/>
</a:form>
<a:grid id="commission_result_grid" bindTarget="con578_commission_result_ds" marginHeight="200" marginWidth="30" navBar="true" showRowNumber="true">
<a:toolBar>
<a:button type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="contract_number" lock="true" prompt="合同编号" width="150"/>
<a:column name="contract_name" align="center" prompt="合同名称" showTitle="true" width="150"/>
<a:column name="inception_of_lease" align="center" prompt="起租日" renderer="Leaf.formatDate" width="80"/>
<a:column name="unit_id_desc" prompt="供应商" showTitle="true" width="150"/>
<a:column name="bp_name" prompt="承租人名称" showTitle="true" width="150"/>
<a:column name="employee_name" prompt="融资区域经理" width="100"/>
<a:column name="sale_consultant" prompt="销售顾问" width="100"/>
<a:column name="lease_organization_desc" align="center" prompt="业务部" width="120"/>
<a:column name="sum_amount" align="right" prompt="实际租金概算本金" width="100"/>
<a:column name="lease_term" align="center" prompt="租赁期限" renderer="commission_result_renderer_func" width="60"/>
<a:column name="commission_amount" align="right" prompt="佣金" renderer="Leaf.formatMoney" width="100"/>
<!-- <a:column name="real_commission_amount" align="right" prompt="实际佣金" renderer="Leaf.formatMoney" width="100"/> -->
<a:column name="rebate_month_n" align="center" prompt="返利月份" width="100"/>
<a:column name="commission_confirm_flag" align="center" prompt="是否确认" width="100"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>