Commit 96960e7e authored by 25484's avatar 25484

Merge branch 'refs/heads/feature/prj_project_create_entrance' into develop

parents d7f1420f a5df6f0c
......@@ -445,22 +445,22 @@
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds_id == ds.id) {
if (record.get('taxpayer_type') == 'Y') {
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account_id').setRequired(true);
} else {
record.getField('tax_registry_num').setRequired(false);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_title').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account_id').setRequired(false);
}
// if (ds_id == ds.id) {
// if (record.get('taxpayer_type') == 'Y') {
// record.getField('tax_registry_num').setRequired(true);
// record.getField('invoice_bp_address').setRequired(true);
// record.getField('invoice_title').setRequired(true);
// record.getField('invoice_bp_phone_num').setRequired(true);
// record.getField('invoice_bp_bank').setRequired(true);
// record.getField('invoice_bp_bank_account_id').setRequired(true);
// } else {
// record.getField('tax_registry_num').setRequired(false);
// record.getField('invoice_bp_address').setRequired(false);
// record.getField('invoice_title').setRequired(false);
// record.getField('invoice_bp_phone_num').setRequired(false);
// record.getField('invoice_bp_bank').setRequired(false);
// record.getField('invoice_bp_bank_account_id').setRequired(false);
// }
}
};
......
......@@ -74,23 +74,23 @@
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds_id == ds.id) {
if (record.get('taxpayer_type') == 'Y') {
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account_id').setRequired(true);
} else {
record.getField('tax_registry_num').setRequired(false);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_title').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account_id').setRequired(false);
}
}
// if (ds_id == ds.id) {
// if (record.get('taxpayer_type') == 'Y') {
// record.getField('tax_registry_num').setRequired(true);
// record.getField('invoice_bp_address').setRequired(true);
// record.getField('invoice_title').setRequired(true);
// record.getField('invoice_bp_phone_num').setRequired(true);
// record.getField('invoice_bp_bank').setRequired(true);
// record.getField('invoice_bp_bank_account_id').setRequired(true);
// } else {
// record.getField('tax_registry_num').setRequired(false);
// record.getField('invoice_bp_address').setRequired(false);
// record.getField('invoice_title').setRequired(false);
// record.getField('invoice_bp_phone_num').setRequired(false);
// record.getField('invoice_bp_bank').setRequired(false);
// record.getField('invoice_bp_bank_account_id').setRequired(false);
// }
// }
var role_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
if (role_ds == ds.id) {
......
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