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
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: weiwuzhen
$Date: 2016-6-20 下午3:51:10
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query model="tre.tre511.tre_reservation_confirm_details" rootPath="tre_funds_path"/>
</a:init-procedure>
<a:view>
<a:link id="tre510_detail_attach_download_link" url="${/request/@context_path}/downloadFile.lview"/>
<script type="text/javascript"><![CDATA[
function winOpen_downloadDetailInfo() {
var ds=$('tre_funds_reservation_wfl_ds');
var reservation_id=ds.getAt(0).get('reservation_id');
var url = $('tre510_detail_attach_download_link').getUrl() + '?table_name=TRE_FUNDS_RESERVATION&header_id=' + reservation_id;
new Leaf.Window({
url: url,
title: '附件查看',
width: 850,
height: 400
});
}
]]></script>
<a:dataSets>
<a:dataSet id="tre_funds_reservation_wfl_ds" autoCreate="true">
<a:datas dataSource="/model/tre_funds_path"/>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form marginWidth="100" title="基本信息">
<a:hBox labelWidth="120">
<a:textField name="unit_name" bindTarget="tre_funds_reservation_wfl_ds" prompt="申请部门" readOnly="true"/>
<a:textField name="creation_date" bindTarget="tre_funds_reservation_wfl_ds" prompt="申请日期" readOnly="true"/>
<a:textField name="document_number" bindTarget="tre_funds_reservation_wfl_ds" prompt="单据编号" readOnly="true"/>
<a:numberField name="finance_amount" bindTarget="tre_funds_reservation_wfl_ds" prompt="合同金额" readOnly="true" renderer="Leaf.formatMoney"/>
</a:hBox>
<a:hBox labelWidth="120">
<a:textField name="document_name" bindTarget="tre_funds_reservation_wfl_ds" prompt="单据名称" readOnly="true" width="427"/>
<a:textField name="bp_name" bindTarget="tre_funds_reservation_wfl_ds" prompt="收款单位" readOnly="true" width="427"/>
</a:hBox>
<a:hBox labelWidth="120">
<a:textField name="paid_date" bindTarget="tre_funds_reservation_wfl_ds" prompt="用款日期" readOnly="true"/>
<a:numberField name="reserve_amount" bindTarget="tre_funds_reservation_wfl_ds" prompt="用款金额" readOnly="true" renderer="Leaf.formatMoney"/>
<a href="javascript:winOpen_downloadDetailInfo();" style="margin-left:120px;text-decoration:underline"><![CDATA[<font color="red">附件查看</font>]]></a>
</a:hBox>
<a:hBox labelWidth="120">
<a:textArea name="reserve_note" bindTarget="tre_funds_reservation_wfl_ds" prompt="用款事由" readOnly="true" width="985"/>
</a:hBox>
<a:hBox labelWidth="120">
<a:textArea name="description" bindTarget="tre_funds_reservation_wfl_ds" prompt="说明" readOnly="true" width="985"/>
</a:hBox>
</a:form>
</a:screenBody>
</a:view>
</a:screen>