_Main/BL/Type_BusinessType/StaticMethod_GetScenarioNamesStr.qbl
ÎļþÃû´Ó _Main/BL/Type_BusinessType/StaticMethod_GetBusinessNameStr.qbl ÐÞ¸Ä @@ -1,6 +1,6 @@ Quintiq file version 2.0 #parent: #root StaticMethod GetBusinessNameStr ( StaticMethod GetScenarioNamesStr ( GlobalOTDTable owner ) as String { @@ -9,18 +9,18 @@ // NBoTk Sep-7-2023 (created) // è·åbusinessType éå result := ""; businessTypeList := construct( structured[String]); scenarioNameList := construct( structured[String]); traverse( owner,BusinessType,b) { businessTypeList.Add( b.BusinessTypeName()); scenarioNameList.Add( b.ScenarioName() ); } // 妿åå¨businessTypeæ°æ® åè¿å : a,b,c if( not isnull( businessTypeList ) ) if( not isnull( scenarioNameList ) ) { result := businessTypeList.Concatenate( ";" ); result := scenarioNameList.Concatenate( ";" ); } // æµè¯æ°æ® _Main/BL/Type_Scenario/Attribute_ScenarioName.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,8 @@ Quintiq file version 2.0 #parent: #root Attribute ScenarioName { #keys: '3[412960.0.288500040][412960.0.288500039][412960.0.288500041]' Description: 'åºæ¯åç§°ï¼å¯¹åºäºä¸é¨&ç»ç»ç¼ç ç»´æ¤ä¸ç»´æ¤çåºæ¯åç§°' ValueType: String } _Main/BL/Type_ScenarioManager/StaticMethod_AvailableScenarioNames.qbl
ÎļþÃû´Ó _Main/BL/Type_ScenarioManager/StaticMethod_AvailableBusinessTypes.qbl ÐÞ¸Ä @@ -1,6 +1,6 @@ Quintiq file version 2.0 #parent: #root StaticMethod AvailableBusinessTypes ( StaticMethod AvailableScenarioNames ( GlobalOTDTable globalOTDTable ) as String { @@ -16,7 +16,7 @@ //} // 使ç¨businessTypeè·åæ°æ® strings := BusinessType::GetBusinessNameStr( globalOTDTable); strings := BusinessType::GetScenarioNamesStr( globalOTDTable); return strings; *] _Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Component_PanelGeneral#549.def
@@ -46,8 +46,8 @@ Properties: [ AllowEmpty: true DataBinding: 'DataHolderDialogData.Data.BusinessType' Label: 'BusinessType' DataBinding: 'DataHolderDialogData.Data.ScenarioName' Label: 'Scenario Name' Taborder: 4 ] } _Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def
@@ -32,6 +32,13 @@ data.Name( versionname ); } // Get Business Type from Scenario Name businesstype := select( globalotdtable, BusinessType, b, b.ScenarioName()=data.ScenarioName() ).BusinessTypeName(); data.BusinessType( businesstype ); // Copy scenario if( isnull( data.WrappedInstance() ) ) { _Main/UI/MacroPlannerWebApp/Component_FormPriorityPolicy/Response_PriorityPolicyBusinessType_OnCreated.def
@@ -9,7 +9,7 @@ { Body: [* strings := BusinessType::GetBusinessNameStr( GlobalOTDTable ); strings := BusinessType::GetScenarioNamesStr( GlobalOTDTable ); this.Strings(strings); list := PriorityPolicy::GetDataByBusinessType( MacroPlan, PriorityPolicyBusinessType.Text()); _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(GlobalOTDTable) ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableScenarioNames( 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(GlobalOTDTable) ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableScenarioNames( 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(GlobalOTDTable) ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableScenarioNames( 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(GlobalOTDTable) ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableScenarioNames( 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(GlobalOTDTable) ); dlg.dropDownStringListGeneral().Strings( ScenarioManager::AvailableScenarioNames( GlobalOTDTable ) ); dlg.checkboxIsKeyProduct().Visible( selection.EnableSync() ); dlg.checkboxCreatePurchaseSupplyProduct().Visible( selection.EnableSync() );