Commit fd4c9432 authored by 王炜's avatar 王炜

【I7392】-保证金退款记录打印

parent 253119a2
......@@ -18,6 +18,15 @@
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
csh_transaction_return_pkg.check_sbo_num(
p_document_id =>${@document_id},
p_user_id =>${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -14,6 +14,8 @@
<a:link id="cus_deposit1060_download_win_link" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="csh_deposit_return_history_print_link_id"
url="${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT106/csh_deposit_return_history_print.lsc"/>
<a:link id="check_csh_transaction_sbo_id" model="csh.CSH501.csh_transaction_return_print"
modelaction="execute"/>
<script type="text/javascript"><![CDATA[
function upload_attachment_win() {
var record = $('csh_transaction_return_wfl_ds').getCurrentRecord();
......@@ -37,9 +39,28 @@
function csh515_return_print() {
var record = $('csh_transaction_return_wfl_ds').getCurrentRecord();
var return_id = record.get('return_id');
var file_name = "保证金退款-" + record.get('bp_agent_name') + "-" + record.get('return_amount') + "元";
var url_l = $('csh_deposit_return_history_print_link_id').getUrl() + '?document_id=' + return_id + '&file_name=' + encodeURI(file_name) + '&document_table=CSH_DEPOSIT_TRANSACTION_RETURN&batch_flag=Y&source_type=common';
window.open(href = url_l, target = "_self");
Leaf.Masker.mask(Ext.getBody(), '检验sbo编号中...');
Leaf.request({
url: $('check_csh_transaction_sbo_id').getUrl(),
para: {
document_id: return_id
},
success: function (res) {
Leaf.Masker.unmask(Ext.getBody());
var file_name = "保证金退款-" + record.get('bp_agent_name') + "-" + record.get('return_amount') + "元";
var url_l = $('csh_deposit_return_history_print_link_id').getUrl() + '?document_id=' + return_id + '&file_name=' + encodeURI(file_name) + '&document_table=CSH_DEPOSIT_TRANSACTION_RETURN&batch_flag=Y&source_type=common';
window.open(href = url_l, target = "_self");
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
function attach_renderer(value, record, name) {
......
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