Commit 6e77c02b authored by 25484's avatar 25484

Merge branch 'feature/prj_project_create_entrance' into develop

parents 4f6f3e14 d1da5b4f
...@@ -45,6 +45,9 @@ ...@@ -45,6 +45,9 @@
Leaf.onReady(function () { Leaf.onReady(function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var head_record = $(ds_id).getAt(0); var head_record = $(ds_id).getAt(0);
head_record.getField('invoice_agent_id_n').setRequired(true);
var invoice_agent_id = '${/model/user_agent_description/record/@agent_id}';
var invoice_agent_id_n = '${/model/user_agent_description/record/@agent_name}';
head_record.set('unit_id', '${/model/4s_root_path/record/@value_code}'); head_record.set('unit_id', '${/model/4s_root_path/record/@value_code}');
head_record.set('unit_id_n', '${/model/4s_root_path/record/@value_name}'); head_record.set('unit_id_n', '${/model/4s_root_path/record/@value_name}');
...@@ -53,8 +56,17 @@ ...@@ -53,8 +56,17 @@
head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}'); head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}'); // head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// head_record.set('invoice_agent_id_n', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id_n}'); // head_record.set('invoice_agent_id_n', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id_n}');
head_record.set('invoice_agent_id', '${/model/user_agent_description/record/@agent_id}'); head_record.set('invoice_agent_id', invoice_agent_id);
head_record.set('invoice_agent_id_n', '${/model/user_agent_description/record/@agent_name}'); head_record.set('invoice_agent_id_n', invoice_agent_id_n);
if(!invoice_agent_id){
head_record.getField('invoice_agent_id_n').setReadOnly(false);
// head_record.getField('invoice_agent_id_n').setRequired(false);
}
// alert('${/session/@user_id}'); // alert('${/session/@user_id}');
}); });
...@@ -64,25 +76,25 @@ ...@@ -64,25 +76,25 @@
// //
if (name == 'division') { if (name == 'division') {
record.set('bp_class_n', ''); // record.set('bp_class_n', '');
}
// record.set('invoice_agent_id_n', ''); // record.set('invoice_agent_id_n', '');
// record.getField('bp_class_n').setReadOnly(false); record.getField('bp_class_n').setReadOnly(false);
// record.getField('invoice_agent_id_n').setRequired(true); // record.getField('invoice_agent_id_n').setRequired(true);
//
// } else if (name == 'lease_channel') { } else if (name == 'lease_channel') {
// record.set('division', ''); record.set('division', '');
// record.set('division_n', ''); record.set('division_n', '');
// record.set('first_flag', ''); record.set('first_flag', '');
// record.set('first_flag_n', ''); record.set('first_flag_n', '');
// record.set('ka_prj_id', ''); record.set('ka_prj_id', '');
// record.set('ka_prj_id_n', ''); record.set('ka_prj_id_n', '');
//
// record.getField('first_flag_n').setReadOnly(true); record.getField('first_flag_n').setReadOnly(true);
// record.getField('first_flag_n').setRequired(false); record.getField('first_flag_n').setRequired(false);
//
// } }
//
}; };
......
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