Index: CHUI/Flow/ConfiguratorHelper.cls.xml =================================================================== diff -u -r1733 -r2150 --- CHUI/Flow/ConfiguratorHelper.cls.xml (.../ConfiguratorHelper.cls.xml) (revision 1733) +++ CHUI/Flow/ConfiguratorHelper.cls.xml (.../ConfiguratorHelper.cls.xml) (revision 2150) @@ -9,6 +9,10 @@ %RegisteredObject 0 + +Interne_Configurator + + 1 @@ -22,7 +26,11 @@ Set Familie = Product.GeefFamilie() Set Variant = Product.GeefVariant() } - Set Parameters = ##class(APPS.VKP.Maatwerk.impl.ProductWijzigenParameters).%New(DocumentType,DocumentId,KlantNr,##class(TECH.Context.RuntimeContext).Instance().GeefGebruikerInitialen(),Familie,Variant,PRNr,LijnNr) + Set Applicatie = ##class(APPS.common.dto.Applicatie).%New() + Set Applicatie.Type = ##class(APPS.common.enu.ApplicatieType).Intern() + Set Applicatie.Naam = ..#ApplicatieID + Set WinkelkarID = ##class(APPS.EC.Winkelkar.WinkelkarService).%New().MaakWinkelkar(Applicatie, KlantNr).WinkelkarID + Set Parameters = ##class(APPS.VKP.Maatwerk.impl.ProductWijzigenParameters).%New(KlantNr,##class(TECH.Context.RuntimeContext).Instance().GeefGebruikerInitialen(),WinkelkarID,DocumentType,DocumentId,Familie,Variant,PRNr,LijnNr) Set Status = Parameters.%Save() Quit Parameters ]]> @@ -34,7 +42,12 @@ 1 APPS.VKP.Maatwerk.impl.ConfiguratorParameters @@ -63,26 +76,52 @@ 1 -DocumentType:APPS.VKP.Maatwerk.enu.DocumentType,DocumentId:%Integer +DocumentType:APPS.VKP.Maatwerk.enu.DocumentType,DocumentID:%Integer APPS.VKP.Maatwerk.impl.BesteldeProducten 3) Set Puntjes = "" Do DISPONLY^vhTXTPOP("Invoeren van product met configurator "_Puntjes_$Justify("",3-$Length(Puntjes)),"Bezig met ...",1) - Set BesteldeProducten = ConfiguratorService.GeefBesteldeProducten(DocumentType,DocumentId) + If (Key '= 45) // Karakter '-' + { + Set BesteldeProducten = ConfiguratorService.GeefBesteldeProducten(DocumentType,DocumentID) + } + Else + { + Set IsGeannuleerd = 1 + Set BesteldeProducten = ##class(APPS.VKP.Maatwerk.impl.BesteldeProducten).%New(DocumentType,DocumentID) + } } Do REFRESH^vhTERMINA(1,24) Quit BesteldeProducten ]]> + + +1 +DocumentType:APPS.VKP.Maatwerk.enu.DocumentType,DocumentID:%Integer +APPS.VKP.Maatwerk.impl.AdminSessieParameters + +