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
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:view>
<a:link id="wfl_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="csh538_income_stat_link" model="csh.CSH538.income_stat" modelaction="execute"/>
<script type="text/javascript"><![CDATA[
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var date_from = $('INCOME_STAT_QUERY__ds').getCurrentRecord().get('date_from');
var date_to = $('INCOME_STAT_QUERY__ds').getCurrentRecord().get('date_to');
if(!date_from||!date_to){
Leaf.showMessage('提示','日期从到不能为空!');
return;
}else if(date_from > date_to){
Leaf.showMessage('提示','日期从不能大于日期到!');
return;
}
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('csh538_income_stat_link').getUrl(),
para: {
date_from: date_from,
date_to: date_to
},
success: function() {
$('INCOME_STAT_RESULT_csh_write_off_ds').query();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
};
Leaf.onReady(function(){
//Leaf.center('loginForm');
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']();
});
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
$('INCOME_STAT_RESULT_csh_write_off_layout_grid_id')._export('xls','月度收入统计报表');
};
window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function (ds, qpara, bp_seq) {
//异步打印
ds.setQueryParameter('__async__', 'Y');
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>