_Main/BL/Type_BusinessType/StaticMethod_GetBusinessNameStr.qbl
@@ -25,7 +25,7 @@ } // 测试数据 result := "集团面板;专业显示事业部;外卖CELL;非显;运动健康;运动健康事业部;手机事业部;特种显示;汽车电子事业部;车载显示事业部;IT事业部"; //result := "集团面板;专业显示事业部;外卖CELL;非显;运动健康;运动健康事业部;手机事业部;特种显示;汽车电子事业部;车载显示事业部;IT事业部"; return result; *] _Main/BL/Type_ScenarioManager/StaticMethod_AvailableBusinessTypes.qbl
@@ -1,17 +1,22 @@ Quintiq file version 2.0 #parent: #root StaticMethod AvailableBusinessTypes () as String StaticMethod AvailableBusinessTypes ( GlobalOTDTable globalOTDTable ) as String { TextBody: [* // yypsybs Aug-23-2023 (created) strings := "集团面板;专业显示事业部;外卖CELL;非显;运动健康;运动健康事业部;手机事业部;特种显示;汽车电子事业部;车载显示事业部;IT事业部;"; //strings := "集团面板;专业显示事业部;外卖CELL;非显;运动健康;运动健康事业部;手机事业部;特种显示;汽车电子事业部;车载显示事业部;IT事业部;"; //table := KB_BusinessTypesTable; // //if( strings.EndsWith( ";" ) ) { // strings := strings.SubString( 0, strings.Length() - 1 ); //} if( strings.EndsWith( ";" ) ) { strings := strings.SubString( 0, strings.Length() - 1 ); } // 使用businessType获取数据 strings := BusinessType::GetBusinessNameStr( globalOTDTable); return strings; *] _Main/UI/MacroPlannerWebApp/Component_FormScenarioManager/Response_ListScenario_MenuCreateScenarioAndDoSync_OnClick#545.def
@@ -16,7 +16,7 @@ dlg := construct( DialogCreateEditScenario ); dlg.checkboxEnableSync().Visible( true ); dlg.dropDownStringListGeneral().Visible( true ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes() ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes(GlobalOTDTable) ); dlg.checkboxIsKeyProduct().Visible( true ); dlg.checkboxCreatePurchaseSupplyProduct().Visible( true ); dlg.NewScenario( ScenarioManager, selection, true ); _Main/UI/MacroPlannerWebApp/Component_FormScenarioManager/Response_ListScenario_MenuCreateScenarioAndDoSync_OnClick.def
@@ -17,7 +17,7 @@ dlg := construct( DialogCreateEditScenario ); dlg.checkboxEnableSync().Visible( true ); dlg.dropDownStringListGeneral().Visible( true ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes() ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes(GlobalOTDTable) ); dlg.checkboxIsKeyProduct().Visible( true ); dlg.checkboxCreatePurchaseSupplyProduct().Visible( true ); parent := selection.Element( 0 ).Parent(); _Main/UI/MacroPlannerWebApp/Component_FormScenarioManager/Response_ListScenario_MenuCreateScenario_OnClick#549.def
@@ -17,7 +17,7 @@ dlg.checkboxEnableSync().Checked( false ); dlg.checkboxEnableSync().Visible( false ); dlg.dropDownStringListGeneral().Visible( false ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes() ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes(GlobalOTDTable) ); dlg.checkboxIsKeyProduct().Visible( false ); dlg.checkboxCreatePurchaseSupplyProduct().Visible( false ); dlg.NewScenario( ScenarioManager, selection ); _Main/UI/MacroPlannerWebApp/Component_FormScenarioManager/Response_ListScenario_MenuCreateScenario_OnClick.def
@@ -18,7 +18,7 @@ dlg.checkboxEnableSync().Checked( false ); dlg.checkboxEnableSync().Visible( false ); dlg.dropDownStringListGeneral().Visible( false ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes() ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes(GlobalOTDTable) ); dlg.checkboxIsKeyProduct().Visible( false ); dlg.checkboxCreatePurchaseSupplyProduct().Visible( false ); parent := selection.Element( 0 ).Parent(); _Main/UI/MacroPlannerWebApp/Component_FormScenarioManager/Response_ListScenario_MenuEdit_OnClick.def
@@ -18,7 +18,7 @@ // Edit scenario dlg := construct( DialogCreateEditScenario ); dlg.dropDownStringListGeneral().Visible( selection.EnableSync() ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes() ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableBusinessTypes(GlobalOTDTable) ); dlg.checkboxIsKeyProduct().Visible( selection.EnableSync() ); dlg.checkboxCreatePurchaseSupplyProduct().Visible( selection.EnableSync() );