Commit 7d762c43 authored by panhong18943's avatar panhong18943

五级分类工作流优化

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