<bm:query-fieldfield="bp_id_agent_desc"queryExpression="bp_id_agent_desc like upper('%'||${@bp_id_agent_desc}||'%')"/>
</bm:query-fields>
<bm:data-filters>
<bm:fieldname="is_terminate"expression="(SELECT ccc.write_off_flag from con_contract_cashflow ccc WHERE ccc.contract_id=t1.contract_id AND ccc.cf_item=8 AND ccc.cf_status='RELEASE')='FULL'"/>
<bm:fieldname="is_terminate"expression="((t1.contract_status not in('REPURING') and (SELECT ccc.write_off_flag from con_contract_cashflow ccc WHERE ccc.contract_id=t1.contract_id AND ccc.cf_item=8 AND ccc.cf_status='RELEASE')='FULL')or(t1.contract_status='REPURING'))"/>
<bm:data-filterenforceOperations="query"expression="t1.contract_status in ('INCEPT','ETING','REPURING','TERMINATING') "/>
<!-- <bm:data-filter enforceOperations="query" expression=" not exists (select 1 from con_contract_cashflow ccw where ccw.contract_id = t1.contract_id and ccw.cf_item=1 and ccw.cf_status='RELEASE' and nvl(ccw.output_tax_create_je_flag,'N')='N')"/>-->
<bm:data-filterenforceOperations="query"expression=" not exists (select 1 from con_contract_cashflow ccw , con_unearned_finance_income cf where ccw.contract_id = t1.contract_id and ccw.cf_item=1 and cf.cashflow_id(+)=ccw.cashflow_id and ccw.cf_status='RELEASE' and nvl(cf.create_je_flag,'N')='N' and nvl(ccw.output_tax_create_je_flag,'N')='N')"/>
<!--<bm:data-filter enforceOperations="query" expression=" NOT EXISTS (SELECT 1 FROM con_contract_cashflow WHERE contract_id = t1.contract_id AND cf_item IN (1,8,52) AND (write_off_flag IN ('PARTIAL', 'NOT') OR received_amount != due_amount))"/>-->
<!--<bm:data-filter enforceOperations="query" expression="exists (select 1 from con_contract where contract_id = t1.contract_id and created_by = ${/session/@user_id})"/>-->
} else if (name == 'bp_id' || name == 'bp_id_n' || name == 'bp_bank_account_id' || name == 'bp_bank_account_id_n' || name == 'bp_bank_account_num' || name == 'bp_bank_account_name' || name == 'bp_name' || name == 'bp_category' || name == 'bp_category_desc') {
for (var j = 0; j < lineRecords.length; j++) {
var lineRecord = lineRecords[j];
if (name == 'bp_id' && first_load_flag == 'N') {
lineRecord.set('bp_bank_account_id', null);
lineRecord.set('bp_bank_account_id_n', null);
lineRecord.set('bp_bank_account_num', null);
lineRecord.set('bp_bank_account_name', null);
}
lineRecord.set(name, record.get(name));
}
first_load_flag = 'N';
if (value > due_amount) {
$L.showErrorMessage("提示", '所填金额不能大于应付金额!');
setTimeout(function () {
record.set(name, null);
}, 5);
}
if (name == 'compensatory_flag') {
var compensatory_flag = record.get('compensatory_flag');