Index: APPS/Halux/Planning/impl/BatchService.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/Planning/impl/BatchService.cls.xml (.../BatchService.cls.xml) (revision 29059) +++ APPS/Halux/Planning/impl/BatchService.cls.xml (.../BatchService.cls.xml) (revision 30702) @@ -181,32 +181,19 @@ Set ProductieService = ##class(APPS.Halux.common.ProductieService).%New() #dim Categorie As APPS.Halux.common.enu.Categorie = ProductieService.GeefCategorieVoorToelevering(Toelevering) #dim Lijnen As list of %String = ..GeefProductieLijnNamen(Categorie) - If (Lijnen.Count() = 1) - { + If (Lijnen.Count() = 1) { Set Lijn = Lijnen.GetAt(1) - } - ElseIf ( - (Categorie = ##class(APPS.Halux.common.enu.Categorie).Tandembox()) - || (Categorie = ##class(APPS.Halux.common.enu.Categorie).Legrabox()) - || (Categorie = ##class(APPS.Halux.common.enu.Categorie).TAORbox()) - ) - { + } ElseIf ##class(TECH.StringUtils).Equals(Categorie,##class(APPS.Halux.common.enu.Categorie).Tandembox(),##class(APPS.Halux.common.enu.Categorie).Legrabox(),##class(APPS.Halux.common.enu.Categorie).TAORbox()) { #dim ProductLijn As DOM.AKP.ProductToeleveringLijn = Toelevering.GeefTypeToeleveringLijnIterator(##class(DOM.AKP.enu.ToeleveringLijnType).Product()).Next() #dim ProductieGroep As APPS.Halux.common.enu.ProductieGroep = ProductieService.GeefProductieGroep(Toelevering.GeefKlantID(), ProductLijn.GeefProductID()) - - If ( - (ProductieGroep = ##class(APPS.Halux.common.enu.ProductieGroep).Stuk()) - || (ProductieGroep = ##class(APPS.Halux.common.enu.ProductieGroep).Kast()) - ) - { + If ##class(TECH.StringUtils).Equals(ProductieGroep,##class(APPS.Halux.common.enu.ProductieGroep).Stuk(),##class(APPS.Halux.common.enu.ProductieGroep).Kast()) { Set Lijn = ##class(APPS.Halux.common.enu.ProductieLijn).Een() - } - Else - { + } Else { Set Lijn = ##class(APPS.Halux.common.enu.ProductieLijn).Twee() } } - Quit Lijn + + quit Lijn ]]> Index: APPS/Halux/common/impl/ProductieGroepBepalerKAD.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/common/impl/ProductieGroepBepalerKAD.cls.xml (.../ProductieGroepBepalerKAD.cls.xml) (revision 29059) +++ APPS/Halux/common/impl/ProductieGroepBepalerKAD.cls.xml (.../ProductieGroepBepalerKAD.cls.xml) (revision 30702) @@ -4,9 +4,10 @@ APPS.Halux.common.impl.ProductieGroepBepaler +KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String APPS.Halux.common.enu.ProductieGroep -APPS.Halux.common.impl.ProductieGroepBepaler +APPS.Halux.common.impl.ProductieGroepBepaler,DOM.PM.enu.TAORVerpakkingType.Verwerker + +APPS.Halux.common.enu.ProductieGroep +1 + + +KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String APPS.Halux.common.enu.ProductieGroep + - quit ProductieGroep + +1 + + + +1 + + + + +1 + + + + +1 + + + + +1 + + Index: APPS/Halux/common/impl/ProductieGroepBepalerLBX.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/common/impl/ProductieGroepBepalerLBX.cls.xml (.../ProductieGroepBepalerLBX.cls.xml) (revision 29059) +++ APPS/Halux/common/impl/ProductieGroepBepalerLBX.cls.xml (.../ProductieGroepBepalerLBX.cls.xml) (revision 30702) @@ -4,15 +4,16 @@ APPS.Halux.common.impl.ProductieGroepBepaler +KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String APPS.Halux.common.enu.ProductieGroep + + + +Deze klasse werd automatisch gegenereerd en onderhouden - lokale aanpassingen zijn niet nodig. +Een hercompilatie van de Enumeratie - met een correct werkende studiohook ( v2.20 ++ ) - zorgt ervoor dat deze klasse aangepast wordt +De enumeratie Eigenschapn moeten als type de enumeratieklasse zelf terug geven. De enumeratieklasse moet afleiden van TECH.Enumeration +serial +1 +%SerialObject + + +APPS.Halux.common.enu.ProductieGroep +"TAX-BOG" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"TAX-FP" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-VUL-VUL" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-P05-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PB9-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PBA-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PBG-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PBK-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PBR-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSA-CR" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSA-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSA-IL" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSS-WE" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSV-EV" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSV-IL" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"KAD-PSV-WE" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"A" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"LBX-SPOELBAK" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"LBX-SPOELBAK-VHOSS" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"TAX-LC" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"P" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"+" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"X" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"Special" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"SpecialPM" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"Std" +1 +1 + + + +APPS.Halux.common.enu.ProductieGroep +"S" +1 +1 + + + + + Index: vhUnitTest/APPS/Halux/common/impl/ProductieGroepBepalerLBX/GeefProductieGroep/Test.cls.xml =================================================================== diff -u -r29059 -r30702 --- vhUnitTest/APPS/Halux/common/impl/ProductieGroepBepalerLBX/GeefProductieGroep/Test.cls.xml (.../Test.cls.xml) (revision 29059) +++ vhUnitTest/APPS/Halux/common/impl/ProductieGroepBepalerLBX/GeefProductieGroep/Test.cls.xml (.../Test.cls.xml) (revision 30702) @@ -61,8 +61,8 @@ Index: vhUnitTest/APPS/Halux/common/impl/ProductieGroepBepalerTBX/GeefProductieGroep/Test.cls.xml =================================================================== diff -u -r29059 -r30702 --- vhUnitTest/APPS/Halux/common/impl/ProductieGroepBepalerTBX/GeefProductieGroep/Test.cls.xml (.../Test.cls.xml) (revision 29059) +++ vhUnitTest/APPS/Halux/common/impl/ProductieGroepBepalerTBX/GeefProductieGroep/Test.cls.xml (.../Test.cls.xml) (revision 30702) @@ -84,13 +84,13 @@ // Assign #dim DummyKlantID As DOM.VKP.VanHoeckeKlantID = $$$DummyString #dim MockProductID As %String = ..#ProductID - Set ProductieGroepBepaler = ##class(APPS.Halux.common.impl.ProductieGroepBepalerTBX).%New(DummyKlantID,MockProductID) - #dim ProductTypeAPI As vhTest.Mock.DOM.PM.ProductTypeAPI = ##class(vhTest.Mock.DOM.PM.ProductTypeAPI).MockInstance() + Set ProductieGroepBepaler = ##class(APPS.Halux.common.impl.ProductieGroepBepalerTBX).%New(ProductTypeAPI) + Do ProductTypeAPI.IndienMethodCall("GeefTandemboxProduct",MockProductID).DanReturn(TBXLade) // Act - #dim ProductieGroep As APPS.Halux.common.enu.ProductieGroep = ProductieGroepBepaler.GeefProductieGroep() + #dim ProductieGroep As APPS.Halux.common.enu.ProductieGroep = ProductieGroepBepaler.GeefProductieGroep(DummyKlantID,MockProductID) // Assert Do $$$AssertEquals(ProductieGroep,VerwachteProductieGroep) Index: APPS/Halux/common/impl/ProductieGroepBepaler.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/common/impl/ProductieGroepBepaler.cls.xml (.../ProductieGroepBepaler.cls.xml) (revision 29059) +++ APPS/Halux/common/impl/ProductieGroepBepaler.cls.xml (.../ProductieGroepBepaler.cls.xml) (revision 30702) @@ -1,32 +1,26 @@ -%RegisteredObject +TECH.RegisteredObject - -%String + +DOM.PM.ProductTypeAPI 1 - -%String -1 - - -KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String 1 1 %Status 1 +KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String APPS.Halux.common.enu.ProductieGroep Index: APPS/Halux/common/enu/ProductieGroep.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/common/enu/ProductieGroep.cls.xml (.../ProductieGroep.cls.xml) (revision 29059) +++ APPS/Halux/common/enu/ProductieGroep.cls.xml (.../ProductieGroep.cls.xml) (revision 30702) @@ -6,7 +6,7 @@ TECH.Enumeration -,P,A,S,+,X,Std,Special,SpecialPM,KAD-PSV-EV,KAD-PSV-IL,KAD-PSS-WE,KAD-PSA-EV,KAD-PSA-CR,KAD-PSA-IL,KAD-PSG-EV,KAD-PBG-EV,KAD-PBA-EV,KAD-PBR-EV,KAD-PBK-EV,KAD-PB9-EV,KAD-P05-EV,KAD-PSS-WE,KAD-VUL-VUL,LBX-SPOELBAK,LBX-SPOELBAK-VHOSS +,P,A,S,+,X,Std,Special,SpecialPM,KAD-PSV-EV,KAD-PSV-IL,KAD-PSS-WE,KAD-PSA-EV,KAD-PSA-CR,KAD-PSA-IL,KAD-PSG-EV,KAD-PBG-EV,KAD-PBA-EV,KAD-PBR-EV,KAD-PBK-EV,KAD-PB9-EV,KAD-P05-EV,KAD-PSS-WE,KAD-VUL-VUL,LBX-SPOELBAK,LBX-SPOELBAK-VHOSS,TAX-LC,TAX-FP,TAX-BOG @@ -48,6 +48,27 @@ ]]> + +1 +APPS.Halux.common.enu.ProductieGroep + + + + +1 +APPS.Halux.common.enu.ProductieGroep + + + + +1 +APPS.Halux.common.enu.ProductieGroep + + + 1 APPS.Halux.common.enu.ProductieGroep Index: APPS/Halux/common/ProductieService.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/common/ProductieService.cls.xml (.../ProductieService.cls.xml) (revision 29059) +++ APPS/Halux/common/ProductieService.cls.xml (.../ProductieService.cls.xml) (revision 30702) @@ -9,27 +9,28 @@ KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String APPS.Halux.common.enu.ProductieGroep -KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String +ProductID:%String 1 +APPS.Halux.common.impl.ProductieGroepBepaler Index: APPS/Halux/common/enu/ProductieGroep/Verwerker.cls.xml =================================================================== diff -u --- APPS/Halux/common/enu/ProductieGroep/Verwerker.cls.xml (revision 0) +++ APPS/Halux/common/enu/ProductieGroep/Verwerker.cls.xml (revision 30702) @@ -0,0 +1,240 @@ + + + + +Deze klasse werd automatisch gegenereerd en onderhouden - lokale aanpassingen zijn niet nodig. +Een hercompilatie van de Enumeratie - met een correct werkende studiohook ( v2.20 ++ ) - zorgt ervoor dat deze klasse aangepast wordt +De enumeratie methoden moeten als type de enumeratieklasse zelf terug geven. De enumeratieklasse moet afleiden van TECH.Enumeration +1 +1 + + +1 +ProductieGroep:APPS.Halux.common.enu.ProductieGroep + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + +1 +1 + + + + + + Index: APPS/Halux/common/impl/ProductieGroepBepalerTBX.cls.xml =================================================================== diff -u -r29059 -r30702 --- APPS/Halux/common/impl/ProductieGroepBepalerTBX.cls.xml (.../ProductieGroepBepalerTBX.cls.xml) (revision 29059) +++ APPS/Halux/common/impl/ProductieGroepBepalerTBX.cls.xml (.../ProductieGroepBepalerTBX.cls.xml) (revision 30702) @@ -4,11 +4,12 @@ APPS.Halux.common.impl.ProductieGroepBepaler +KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String APPS.Halux.common.enu.ProductieGroep +KlantID:%String 1 %Boolean Index: vhTest/Mock/APPS/Halux/common/ProductieService.cls.xml =================================================================== diff -u -r29059 -r30702 --- vhTest/Mock/APPS/Halux/common/ProductieService.cls.xml (.../ProductieService.cls.xml) (revision 29059) +++ vhTest/Mock/APPS/Halux/common/ProductieService.cls.xml (.../ProductieService.cls.xml) (revision 30702) @@ -8,13 +8,6 @@ 1 APPS.Halux.common.ProductieService,Tools.Mock.MockClassBase - -Toelevering:DOM.AKP.Toelevering -%String - - - ProductID:DOM.common.ProductID APPS.Halux.common.enu.Categorie @@ -29,27 +22,13 @@ ]]> - -Toelevering:DOM.AKP.Toelevering -%String - - - Toelevering:DOM.AKP.Toelevering %String - -Toelevering:DOM.AKP.Toelevering -%String - - - Toelevering:DOM.AKP.Toelevering %ListOfObjects @@ -78,24 +57,12 @@ ]]> - -KlantID:DOM.VKP.VanHoeckeKlantID,ProductID:%String - - - ProductieGroep:APPS.Halux.common.enu.ProductieGroep %ListOfObjects - - -String:%String,List:%ListOfDataTypes - -