Commit 3cd446b7 authored by 陆正友's avatar 陆正友

佣金付款申请逾期高亮显示

parent 777c8eb0
......@@ -106,10 +106,26 @@
qpara['payment_bp_id'] = '${/parameter/@payment_bp_id}';
}
function setListInterval(record, grid_id) {
var btnListInterval = setTimeout(function() {
var field_color = null;
btnListInterval = null;
var overdue_max_days = record.get('overdue_max_days') ;
if (overdue_max_days>0) {
field_color = '#FF9965';
}else{
field_color = '';
}
if (Ext.get(grid_id) ) {
Ext.get(grid_id).select('tr[_row=' + record.id + ']').setStyle({
backgroundColor: field_color
});
}
}, 200);
}
//grid加载
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, line_record) {
var lnds_id_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
if(lnds_id_ds_id == ds.id &&lnds_id_ds_id){
if ('${/parameter/@source_type}' != 'WFL_ACCT') {
......@@ -118,6 +134,20 @@
$(gridId).hideColumn('journal_date');
}
}
var ds_length = $(lnds_id_ds_id).getAll().length;
var dsId = ds.id;
var grid_id = dsId.replace('ds', 'layout_grid_id');
if (!Ext.isEmpty(line_record)) {
for (i=0;i< ds_length ;i++) {
var overdue_max_days = $(lnds_id_ds_id).getAll()[i].get('overdue_max_days');
if (overdue_max_days != 'undefined' && overdue_max_days != null && overdue_max_days != '') {
if (overdue_max_days > 0) {
setListInterval(line_record, grid_id);
}
}
}
}
}
var dirty_flag = 'N';
......
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