Commit d97cf052 authored by taoruidan18083's avatar taoruidan18083

I-22993【建机运维】农行导入数据删除问题

parent 94c2f7f0
......@@ -23,7 +23,7 @@
<bm:update-sql><![CDATA[
begin
csh_abc_import_pkg.delete_import_bank(
p_receipt_no=>${@receipt_no}
p_import_itfc_id=>${@import_itfc_id}
);
end;
]]></bm:update-sql>
......
......@@ -52,7 +52,6 @@
}
function batch_delete(){
debugger;
var ds_id = 'AbcBankDs';
var ds = $(ds_id);
var records = ds.getSelected();
......@@ -64,7 +63,7 @@
var post_data = [];
for (var i = 0; i < records.length; i++) {
post_data.push({
'receipt_no': records[i].get('receipt_no'),
'import_itfc_id': records[i].get('import_itfc_id'),
'_status': 'delete'
});
}
......@@ -73,17 +72,8 @@
url: $('csh1400_delete_link_id').getUrl(),
para: post_data,
success: function () {
var allRecords = ds.getAll();
if(records.length == allRecords.length) {
ds.removeAll();
}else{
for (var i=records.length-1;i>=0;i--)
{
ds.removeLocal(records[i]);
}
ds.query();
}
}, failure: function () {
ds.query();
}, failure: function () {
},
error: function () {
},
......@@ -532,8 +522,7 @@
</a:mapping>
</a:field>
<a:field name="bp_code"/>
</a:fields>
</a:fields>
<a:events>
<a:event name="update" handler="update_import_data"/>
</a:events>
......@@ -618,7 +607,7 @@
<a:column name="bp_code" prompt="代理店简称code" hidden="true"/>
<a:column name="guarantor_name_duty_desc" prompt="担保人履行担保义务" width="145"
align="center"/>
</a:columns>
</a:columns>
<a:editors>
<a:textField id="txt"/>
<a:comboBox id="grid_cb"/>
......
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