Commit 8b0798de authored by 25484's avatar 25484

[fix]商业伙伴创建主角色修改

parent 4e5b1a51
......@@ -80,6 +80,29 @@
}
});
//删除角色按钮
window['${/parameter/@layout_code}_G_ROLE_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
var records = $(ds_id).getSelected();
if (!records.length) {
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录');
return false;
}
//else{
// Leaf.showMessage('${l:PROMPT}', '是否删除角色?');
//}
//alert(records.length);
for (var i = 0; i < records.length; i++) {
var primary_flag = records[i].get('primary_flag');
if(primary_flag == 'Y'){
Leaf.showMessage('${l:PROMPT}', '主角色无法被删除!');
continue;
}else{
$(ds_id).remove(records[i]);
}
}
};
//保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res, bp_seq) {
......
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