Commit 2c9bdf7f authored by lizhe's avatar lizhe

收款核销自动匹配

parent cdb5f133
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
-- Call the procedure
csh_transaction_interface_pkg.auto_assign_write_off(p_transaction_id =>${/parameter/@transaction_id},
p_company_id =>${/session/@company_id},
p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -382,6 +382,15 @@
}
}
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: '${/request/@context_path}/autocrud/csh.CSH531N.auto_assign_write_off/execute',
para: {
transaction_id: record.get('transaction_id')
},
success: function(res) {
Leaf.Masker.unmask(Ext.getBody());
var win = new Leaf.Window({
id: 'csh_write_off_window',
params: {
......@@ -408,9 +417,23 @@
fullScreen: true
});
win.on('close', function () {
ds.query(ds.currentPage);
});
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
function csh531n_detail_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