Commit a5ce913e authored by 38823's avatar 38823

对销项发票反冲流程添加附件上传功能

parent 916d7750
......@@ -20,6 +20,7 @@
<a:link id="acr620_invoice_reverse_save_link" model="acr.ACR610.acr_invoice_apply_query" modelaction="update"/>
<a:link id="acr514_update_for_save_id"
url="${/request/@context_path}/modules/acr/ACR512/acr_invoice_update_for_submit.lsc"/>
<a:link id="attach_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<script><![CDATA[
function lock_current_detail_window() {
Leaf.Masker.mask($('${/parameter/@winId}').wrap, '${l:HLS.EXECUTING}');
......@@ -267,6 +268,23 @@
}
}
function attachment_renderer(value, record, name) {
debugger;
return '<a href="javascript:open_attachment_window(\'' + record.get('invoice_hd_id') + '\',\'' + record.ds.id + '\')">' + '附件' + '</a>';
}
function open_attachment_window(record) {
debugger;
var url = $('attach_uploadFile_id').getUrl() + '?table_name=ACR_INVOICE_REVERSE&header_id=' + record;
var win = new Leaf.Window({
url: url,
title: '附件',
id: 'acr_invoice_id',
width: 850,
height: 400
});
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSets>
......@@ -344,6 +362,7 @@
width="95"/>
<a:column name="claim_status_n" prompt="认领状态" width="85" align="center"/>
<a:column name="reversed_flag_n" prompt="反冲标志" align="center" width="80"/>
<a:column name="file_name" prompt="附件" renderer="attachment_renderer" align="center" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
......
......@@ -11,6 +11,8 @@
<a:link id="acr620_invoice_reverse_detail_link" url="${/request/@context_path}/modules/acr/ACR610/acr_invoice_detail_readonly.lview"/>
<a:link id="acr620_detail_submit_link" model="acr.ACR620.acr_invoice_reverse_apply_detail" modelaction="execute"/>
<a:link id="acr620_invoice_reverse_save_link" model="acr.ACR610.acr_invoice_apply_query" modelaction="update"/>
<a:link id="attach_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<script><![CDATA[
function lock_current_detail_window() {
......@@ -110,6 +112,11 @@
}
}
function attachment_renderer(value, record, name) {
debugger;
return '<a href="javascript:open_attachment_window(\'' + record.get('invoice_hd_id') + '\',\'' + record.ds.id + '\')">' + '附件' + '</a>';
}
function acr620_detail_formatMoney(value, record, name) {
return Leaf.formatNumber(value);
}
......@@ -122,6 +129,17 @@
ds.data[0].getField('reverse_method_n').setReadOnly(true);
}
}
function open_attachment_window(record) {
debugger;
var url = $('attach_uploadFile_id').getUrl() + '?table_name=ACR_INVOICE_REVERSE&header_id=' + record;
var win = new Leaf.Window({
url: url,
title: '附件',
id: 'acr_invoice_id',
width: 850,
height: 400
});
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSets>
......@@ -184,6 +202,7 @@
<a:column name="accounting_date" prompt="记账日期" renderer="Leaf.formatDate" align="center" width="100"/>
<a:column name="claim_status_n" prompt="认领状态" width="85" align="center"/>
<a:column name="reversed_flag_n" prompt="反冲标志" align="center" width="80"/>
<a:column name="file_name" prompt="附件" renderer="attachment_renderer" align="center" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
......
......@@ -10,6 +10,7 @@
<a:link id="acr_invoice_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="acr620_invoice_reverse_detail_link" url="${/request/@context_path}/modules/acr/ACR610/acr_invoice_detail_readonly.lview"/>
<a:link id="acr620_detail_submit_link" model="acr.ACR620.acr_invoice_reverse_apply_detail" modelaction="batch_update"/>
<a:link id="attach_downFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<script><![CDATA[
function lock_current_window() {
......@@ -43,6 +44,23 @@
}
}
function attachment_renderer(value, record, name) {
debugger;
return '<a href="javascript:open_attachment_window(\'' + record.get('invoice_hd_id') + '\',\'' + record.ds.id + '\')">' + '附件' + '</a>';
}
function open_attachment_window(record) {
debugger;
var url = $('attach_downFile_id').getUrl() + '?table_name=ACR_INVOICE_REVERSE&header_id=' + record;
var win = new Leaf.Window({
url: url,
title: '附件',
id: 'acr_invoice_id',
width: 850,
height: 400
});
}
function acr620_detail_formatMoney(value, record, name) {
return Leaf.formatNumber(value);
}
......@@ -180,6 +198,7 @@
<a:column name="accounting_date" prompt="记账日期" renderer="Leaf.formatDate" align="center" width="100"/>
<a:column name="claim_status_n" prompt="认领状态" width="85" align="center"/>
<a:column name="reversed_flag_n" prompt="反冲标志" align="center" width="80"/>
<a:column name="file_name" prompt="附件" renderer="attachment_renderer" align="center" width="80"/>
</a:columns>
</a:grid>
</a:case>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment