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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: Feng
$Date: 2014-5-26 下午6:02:31
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:view>
<a:link id="acp_invoice_attachment_uploadFile_id" url="${/request/@context_path}/check_uploadFile.lview"/>
<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>
<script type="text/javascript"><![CDATA[
Ext.ux.Lightbox.register('a[ref=img]', true);
function acp512_invoice_close()
{
$('acp_invoice_check_window').close();
}
function detail_upload_window(record_id) {
var url = $('acp_invoice_attachment_uploadFile_id').getUrl() + '?table_name=ACP_INVOICE_LN&header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'insurance_records_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function() {
});
}
function attachment_upload(val,rec,name) {
return '<a href=javascript:detail_upload_window('+rec.get('cashflow_id')+')>附件查看</a>';
}
]]></script>
<a:dataSets>
<a:dataSet id="acp310_invoice_hd_ds" model="acp.ACP310.acp_invoice_hd_for_query">
<a:fields><![CDATA[
]]></a:fields>
</a:dataSet>
<a:dataSet id="acp310_invoice_ln_ds" model="acp.ACP310.acp_invoice_ln_for_query"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:toolbarButton click="acp512_invoice_close" text="HLS.CLOSE"/>
</a:screenTopToolbar>
<a:form column="4" marginWidth="30" title="应付发票维护">
<a:textField name="invoice_number" bindTarget="acp310_invoice_hd_ds" prompt="发票号" readOnly="true"/>
<a:textField name="document_number" bindTarget="acp310_invoice_hd_ds" prompt="单据编号" readOnly="true"/>
<a:textField name="contract_number" bindTarget="acp310_invoice_hd_ds" prompt="合同编号" readOnly="true"/>
<a:textField name="contract_name" bindTarget="acp310_invoice_hd_ds" prompt="合同名称" readOnly="true"/>
<a:numberField name="total_amount" bindTarget="acp310_invoice_hd_ds" prompt="价税合计" readOnly="true"/>
<a:numberField name="tax_amount" bindTarget="acp310_invoice_hd_ds" prompt="税额" readOnly="true"/>
<a:textField name="invoice_status_desc" bindTarget="acp310_invoice_hd_ds" prompt="发票状态" readOnly="true"/>
<a:datePicker name="invoice_date" bindTarget="acp310_invoice_hd_ds" prompt="发票日期" readOnly="true"/>
<a:datePicker name="accounting_date" bindTarget="acp310_invoice_hd_ds" prompt="记账日期" readOnly="true"/>
<a:textField name="invoice_title" bindTarget="acp310_invoice_hd_ds" prompt="发票抬头" readOnly="true"/>
<a:textField name="created_by_name" bindTarget="acp310_invoice_hd_ds" prompt="开票人" readOnly="true"/>
<!-- <a:textField name="confirmed_by_name" bindTarget="acp310_invoice_hd_ds" prompt="复核人" readOnly="true"/> -->
</a:form>
<a:grid id="cashflowDs_grid" bindTarget="acp310_invoice_ln_ds" marginHeight="230" marginWidth="30">
<a:columns>
<a:column name="times" align="right" lock="true" prompt="期数" width="60"/>
<a:column name="cf_item_desc" lock="true" prompt="应付项目" width="120"/>
<a:column name="due_date" prompt="到期日" renderer="Leaf.formatDate"/>
<a:column name="due_amount" align="right" prompt="应付金额" renderer="Leaf.formatMoney"/>
<a:column name="received_amount" align="right" prompt="已付金额" renderer="Leaf.formatMoney"/>
<a:column name="billing_amount" align="right" prompt="总开票金额" renderer="Leaf.formatMoney"/>
<a:column name="last_received_date" prompt="付款日期" renderer="Leaf.formatDate"/>
<a:column name="total_amount" align="right" prompt="本次开票金额" renderer="Leaf.formatMoney"/>
<a:column name="tax_amount" align="right" prompt="本次开票税金" renderer="Leaf.formatMoney"/>
<a:column align="center" prompt="附件查看" renderer="attachment_upload" width="80"/>
<!--<a:column name="currency_desc" width="60"/>
<a:column name="exchange_rate" align="right" width="80"/>
<a:column name="exchange_rate_type_desc" width="100"/>-->
</a:columns>
</a:grid>
</a:screenBody>
<script type="text/javascript"><![CDATA[
Leaf.onReady(init);
function init() {
$('acp310_invoice_hd_ds').setQueryParameter('invoice_hd_id', '${/parameter/@invoice_hd_id}');
$('acp310_invoice_hd_ds').query();
$('acp310_invoice_ln_ds').setQueryParameter('invoice_hd_id', '${/parameter/@invoice_hd_id}');
$('acp310_invoice_ln_ds').query();
}
]]></script>
</a:view>
</a:screen>