Commit 242f2d64 authored by 21471731's avatar 21471731

租赁物导入调整10

parent af6c7120
......@@ -69,6 +69,7 @@
var records = record.getSelected();
var datas= record.getAll();
var len = records.length;
var lens = datas.length;
if (len == 0) {
Leaf.showMessage('${l:PROMPT}','请选择一条记录!');
return;
......@@ -89,12 +90,12 @@
msg: '操作成功',
duration: 2000
});
if(datas.length==1){
$(ds_id).query();
var count=(lens-len);
if(count==0){
success_delete_after(count);
}else{
success_delete_after();
success_delete_after(count);
}
},
error: function() {
},
......@@ -104,15 +105,13 @@
});
};
function success_delete_after(){
function success_delete_after(count){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item_list');
var record = $(ds_id);
var data= record.getAt(0);
if(data!=null){
Leaf.request({
url: $('prj501N_lease_item_list_delete_link').getUrl(),
para:{
project_lease_item_id:'${/parameter/@project_lease_item_id}'
project_lease_item_id:'${/parameter/@project_lease_item_id}',
count:count
},
success: function() {
$(ds_id).query();
......@@ -122,7 +121,7 @@
failure: function() {},
scope: this
});
}
}
//保存
......
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