Commit 7d762c43 authored by panhong18943's avatar panhong18943

五级分类工作流优化

parent 9bc05f46
...@@ -70,32 +70,51 @@ ...@@ -70,32 +70,51 @@
} }
//加载时调用(grid,table,gridBox) //加载时调用(grid,table,gridBox)
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, record, config_records, bp_seq) {
if ('${/model/wolkflow_path/record/@current_seq}' == '30') { if ('${/parameter/@button_flag}' == 'Y'){
if (document.getElementById("RSC_FIVE_CLASS_WFL_query")){ if ('${/model/wolkflow_path/record/@current_seq}' == '30') {
document.getElementById("RSC_FIVE_CLASS_WFL_query").style.display = "none"; if (document.getElementById("${/parameter/@layout_code}_query")){
document.getElementById("${/parameter/@layout_code}_query").style.display = "none";
}
if (document.getElementById("${/parameter/@layout_code}_user_button1")){
document.getElementById("${/parameter/@layout_code}_user_button1").style.display = "none";
}
if (document.getElementById("${/parameter/@layout_code}_user_button2")){
document.getElementById("${/parameter/@layout_code}_user_button2").style.display = "none";
}
} }
if (document.getElementById("RSC_FIVE_CLASS_WFL_user_button1")){ if('${/model/wolkflow_path/record/@current_seq}' == '20'){
document.getElementById("RSC_FIVE_CLASS_WFL_user_button1").style.display = "none"; if (document.getElementById("${/parameter/@layout_code}_user_button1")){
document.getElementById("${/parameter/@layout_code}_user_button1").style.display = "none";
}
if (document.getElementById("${/parameter/@layout_code}_user_button2")){
document.getElementById("${/parameter/@layout_code}_user_button2").style.display = "none";
}
if (document.getElementById("${/parameter/@layout_code}_RESULT_SAVE_layout_dynamic_button_id")){
document.getElementById("${/parameter/@layout_code}_RESULT_SAVE_layout_dynamic_button_id").style.display = "none";
}
if (document.getElementById("${/parameter/@layout_code}_RESULT_ADD_layout_dynamic_button_id")){
document.getElementById("${/parameter/@layout_code}_RESULT_ADD_layout_dynamic_button_id").style.display = "none";
}
} }
if (document.getElementById("RSC_FIVE_CLASS_WFL_user_button2")){ }else{
document.getElementById("RSC_FIVE_CLASS_WFL_user_button2").style.display = "none"; if (document.getElementById("${/parameter/@layout_code}_query")){
document.getElementById("${/parameter/@layout_code}_query").style.display = "none";
} }
} if (document.getElementById("${/parameter/@layout_code}_user_button1")){
if('${/model/wolkflow_path/record/@current_seq}' == '20'){ document.getElementById("${/parameter/@layout_code}_user_button1").style.display = "none";
if (document.getElementById("RSC_FIVE_CLASS_WFL_user_button1")){
document.getElementById("RSC_FIVE_CLASS_WFL_user_button1").style.display = "none";
} }
if (document.getElementById("RSC_FIVE_CLASS_WFL_user_button2")){ if (document.getElementById("${/parameter/@layout_code}_user_button2")){
document.getElementById("RSC_FIVE_CLASS_WFL_user_button2").style.display = "none"; document.getElementById("${/parameter/@layout_code}_user_button2").style.display = "none";
} }
if (document.getElementById("RSC_FIVE_CLASS_WFL_RESULT_SAVE_layout_dynamic_button_id")){ if (document.getElementById("${/parameter/@layout_code}_RESULT_SAVE_layout_dynamic_button_id")){
document.getElementById("RSC_FIVE_CLASS_WFL_RESULT_SAVE_layout_dynamic_button_id").style.display = "none"; document.getElementById("${/parameter/@layout_code}_RESULT_SAVE_layout_dynamic_button_id").style.display = "none";
} }
if (document.getElementById("RSC_FIVE_CLASS_WFL_RESULT_ADD_layout_dynamic_button_id")){ if (document.getElementById("${/parameter/@layout_code}_RESULT_ADD_layout_dynamic_button_id")){
document.getElementById("RSC_FIVE_CLASS_WFL_RESULT_ADD_layout_dynamic_button_id").style.display = "none"; document.getElementById("${/parameter/@layout_code}_RESULT_ADD_layout_dynamic_button_id").style.display = "none";
} }
} }
var estimate_num = '${/parameter/@estimate_num}'; var estimate_num = '${/parameter/@estimate_num}';
if('${/model/wolkflow_path/record/@current_seq}' == '10'){ if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
...@@ -107,9 +126,9 @@ ...@@ -107,9 +126,9 @@
}else{ }else{
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var ds_id_s=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT_SAME', 'con_five_classification'); var ds_id_s=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT_SAME', 'con_five_classification');
var records = $(ds_id).getAll();
var records_s = $(ds_id_s).getAll();
if (ds_id){
var records = $(ds_id).getAll();
for (var i = 0;i < records.length;i++) { for (var i = 0;i < records.length;i++) {
records[i].getField('contract_number').setReadOnly(true); records[i].getField('contract_number').setReadOnly(true);
records[i].getField('contract_number_n').setReadOnly(true); records[i].getField('contract_number_n').setReadOnly(true);
...@@ -117,6 +136,9 @@ ...@@ -117,6 +136,9 @@
records[i].getField('final_sort').setReadOnly(true); records[i].getField('final_sort').setReadOnly(true);
records[i].getField('final_sort_n').setReadOnly(true); records[i].getField('final_sort_n').setReadOnly(true);
} }
}
if (ds_id_s){
var records_s = $(ds_id_s).getAll();
for (var i = 0;i < records_s.length;i++) { for (var i = 0;i < records_s.length;i++) {
records_s[i].getField('contract_number').setReadOnly(true); records_s[i].getField('contract_number').setReadOnly(true);
records_s[i].getField('contract_number_n').setReadOnly(true); records_s[i].getField('contract_number_n').setReadOnly(true);
...@@ -125,6 +147,7 @@ ...@@ -125,6 +147,7 @@
records_s[i].getField('final_sort_n').setReadOnly(true); records_s[i].getField('final_sort_n').setReadOnly(true);
} }
} }
}
} }
......
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