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
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" dynamiccreateenabled="true" trace="true">
<a:view>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id"
model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="confirm_car_link" model="rent.rent200.rent_confirm_car" modelaction="update"/>
<script type="text/javascript"><![CDATA[
//锁屏
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'] = function () {
var detail_mask;
if ('${/parameter/@winid}') {
if (parent.$L.CmpManager.get('${/parameter/@winid}')) {
detail_mask = parent.$('${/parameter/@winid}').wrap;
parent.Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
} else {
detail_mask = $('${/parameter/@winid}').wrap;
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
}
} else {
detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
}
};
//解屏
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'] = function () {
var detail_mask;
if ('${/parameter/@winid}') {
if (parent.$L.CmpManager.get('${/parameter/@winid}')) {
detail_mask = parent.$('${/parameter/@winid}').wrap;
parent.Leaf.Masker.unmask(detail_mask);
} else {
detail_mask = $('${/parameter/@winid}').wrap;
Leaf.Masker.unmask(detail_mask);
}
} else {
detail_mask = Ext.getBody();
Leaf.Masker.unmask(detail_mask);
}
if (Ext.get(document.documentElement)) {
$L.Masker.unmask(Ext.get(document.documentElement));
}
};
//
// //收车确认
// window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_collection');
// var record = $(ds_id).getCurrentRecord();
// var col_id = record.get('col_id');
// Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认收车?', function () {
// Leaf.request({
// url: $('confirm_car_link').getUrl(),
// para: {
// col_id: col_id
// },
// success: function (res) {
// Leaf.SideBar.show({
// msg: '收车确认成功',
// duration: 2000
// });
// $('${/parameter/@winid}').close();
// },
// scope: this
// });
// });
// };
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>