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
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="tt.oa_id=${/parameter/@oa_id}" fetchAll="true" model="oth.OTH201.bgfl_oa_auto_submitted_by_query" rootPath="employee_info"/>
</a:init-procedure>
<a:view>
<a:link id="oth201_attach_download_link" url="${/request/@context_path}/downloadFile.lview"/>
<script type="text/javascript"><![CDATA[
function attach_download_renderer(value, record, name) {
if (!Ext.isEmpty(record.get('oa_id'))) {
return '<a href="javascript:attach_download_win(' + record.get('oa_id') + ')">' + '附件查看' + '</a>';
}
}
function attach_download_win(oa_id) {
var url = $('oth201_attach_download_link').getUrl() + '?table_name=BGFL_OA_AUTO&header_id=' + oa_id;
new Leaf.Window({
url: url,
title: '附件查看',
id: 'oth201_attach_download_win_id',
width: 850,
height: 400
});
}
]]></script>
<a:dataSets>
<a:dataSet id="oa_type_ds" lookupCode="OA_TYPE"/>
<a:dataSet id="bgfl_employee_info_ds" autoCreate="true">
<a:fields>
<a:field name="user_name" defaultValue="${/model/employee_info/record/@user_name}" readOnly="true"/>
<a:field name="unit_name" defaultValue="${/model/employee_info/record/@unit_name}" readOnly="true"/>
<a:field name="position_name" defaultValue="${/model/employee_info/record/@position_name}" readOnly="true"/>
</a:fields>
</a:dataSet>
<a:dataSet id="oth201_other_list_ds" autoPageSize="true" autoQuery="true" model="oth.OTH201.bgfl_oa_auto_query_wfl" queryUrl="${/request/@context_path}/autocrud/oth.OTH201.bgfl_oa_auto_query_wfl/query?oa_id=${/parameter/@oa_id}" selectable="true" selectionModel="single">
<a:fields>
<a:field name="description" readOnly="true"/>
<a:field name="reason" readOnly="true"/>
<a:field name="oa_type_n" displayField="code_value_name" options="oa_type_ds" required="true" returnField="oa_type" valueField="code_value"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
</a:screenTopToolbar>
<a:form column="3" height="100" labelSeparator=" " title="提交者信息" width="800">
<a:textField name="user_name" bindTarget="bgfl_employee_info_ds" prompt="提交者"/>
<a:textField name="unit_name" bindTarget="bgfl_employee_info_ds" prompt="部门"/>
<a:textField name="position_name" bindTarget="bgfl_employee_info_ds" prompt="岗位"/>
</a:form>
<a:grid id="oth201_other_grid" bindTarget="oth201_other_list_ds" marginHeight="400" marginWidth="35" navBar="true">
<a:columns>
<a:column name="oa_type_n" lock="true" prompt="事项分类" width="120"/>
<a:column name="description" editor="editor_ta" lock="true" prompt="申请事项" width="400"/>
<a:column name="reason" editor="editor_ta" prompt="申请原因" width="400"/>
<a:column name="attach_download" prompt="附件查看" renderer="attach_download_renderer"/>
</a:columns>
<a:editors>
<a:textArea id="editor_ta"/>
</a:editors>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>