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
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2013-12-10 上午09:49:24
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<a:link id="aut_allocation_batch_link" url="${/request/@context_path}/modules/aut/AUT106/aut_owner_user_batch_fix.lview"/>
<script type="text/javascript"><![CDATA[
function aut_allocation_renderer(value, record, name) {
return '<a href="javascript:aut_allocation_win()">' + '分配单据' + '</a>';
}
function aut_allocation_win() {
new Leaf.Window({
id: 'aut_allocation_win',
url: $('aut_allocation_batch_link').getUrl(),
title: '单据信息',
width: 480,
height: 500
});
}
function aut_query() {
$('aut_admin_allocation_ds').query();
}
function aut_reset() {
$('aut_query_ds').reset();
}
]]></script>
<a:dataSets>
<a:dataSet id="aut_query_ds">
<a:fields>
<a:field name="user_id"/>
<a:field name="description" lovGridHeight="300" lovHeight="450" lovService="aut.AUT110.aut_admin_sys_user_lov" lovWidth="500" prompt="用户">
<a:mapping>
<a:map from="user_id" to="user_id"/>
<a:map from="description" to="description"/>
</a:mapping>
</a:field>
</a:fields>
</a:dataSet>
<a:dataSet id="aut_admin_allocation_ds" autoQuery="true" model="aut.AUT110.aut_admin_allocation_document" pageSize="20" queryDataSet="aut_query_ds">
<a:fields>
<a:field name="description"/>
<a:field name="count_num"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="aut_query" text="查询"/>
<a:gridButton click="aut_reset" text="重置"/>
</a:screenTopToolbar>
<a:form Width="600" title="查询条件">
<a:lov name="description" bindTarget="aut_query_ds" prompt="审批用户"/>
</a:form>
<a:grid bindTarget="aut_admin_allocation_ds" marginHeight="300" navBar="true" width="800">
<a:columns>
<a:column name="description" prompt="审批用户" width="300"/>
<a:column name="count_num" prompt="当前代办件数" width="200"/>
<a:column name="allocation" prompt="分配单据" renderer="aut_allocation_renderer" width="120"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>