Index: vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml =================================================================== diff -u -r74204 -r74213 --- vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml (.../Test.cls.xml) (revision 74204) +++ vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml (.../Test.cls.xml) (revision 74213) @@ -85,7 +85,10 @@ #dim ToeleveringStub As vhTest.Mock.DOM.AKP.Toelevering = ..GeefToeleveringStub(..#DummyToeleveringId, ToeleveringLijnStub) #dim ProductMock As vhTest.Mock.DOM.PM.MaatwerkProduct = ..GeefProductMock(..#DummyProductId, ..#DummyKorttekst, ..#DummyLangtekst, ..#DummyDossierCode, ..#DummyFscClaim, ..LbxKenmerken) Set HalffabItemsBoomMock = ##class(vhTest.Mock.DOM.PM.Maatwerk.Calc.HF.HalffabItemsBoom).%New() - Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$True) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$True) + Do HalffabItemsBoomMock.VerwachtMethodCall("GeefHalffabItem", "TiponBlumotionSynchronisatieStang").DanReturn(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%New("", "Dummy", "")) + Do HalffabItemsBoomMock.VerwachtMethodCall("GeefHalffabItem", "Zijstabilisering").DanReturn(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%New("", "Dummy", "")) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() @@ -101,7 +104,7 @@ Set Generator = ##class(APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.OptieGenerator.ProductOptiesGenerator).%New(ProductApiMock, DnaCodeServiceMock, IngegevenKenmerkenSpaceStepHelperMock, , HoutCertificaatServiceMock) #dim Resultaat As %ListOfObjects = Generator.GenereerOptiesVoorLade(ToeleveringStub, ..UitvoeringInfo) - Do $$$AssertEquals(Resultaat.Size, 10) + Do $$$AssertEquals(Resultaat.Size, 11) Do ..AssertOptie(Resultaat.GetAt(1), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-PIN", ..#DummyDnaCode) Do ..AssertOptie(Resultaat.GetAt(2), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-SHORTPIN", "ode") Do ..AssertOptie(Resultaat.GetAt(3), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-Inventtransid", ..#DummyInventTransId) @@ -111,7 +114,8 @@ Do ..AssertOptie(Resultaat.GetAt(7), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-Dossiercode", ..#DummyDossierCode) Do ..AssertOptie(Resultaat.GetAt(8), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-FSC-claim", "null") Do ..AssertOptie(Resultaat.GetAt(9), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-Vhoss-info", "null") - Do ..AssertOptie(Resultaat.GetAt(10), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-TOBSynchroLinkageLength", 0) + Do ..AssertOptie(Resultaat.GetAt(10), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-TOBSynchroLinkageLength", "null") + Do ..AssertOptie(Resultaat.GetAt(11), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-SideStabiliserLength", "null") Do ProductMock.Verifieer() Do ProductApiMock.Verifieer() @@ -133,6 +137,7 @@ #dim ProductMock As vhTest.Mock.DOM.PM.MaatwerkProduct = ..GeefProductMock(..#DummyProductId, ..#DummyKorttekst, ..#DummyLangtekst, ..#DummyDossierCode, ..#DummyFscClaim, ..LbxKenmerken) Set HalffabItemsBoomMock = ##class(vhTest.Mock.DOM.PM.Maatwerk.Calc.HF.HalffabItemsBoom).%New() Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$False) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() @@ -144,7 +149,7 @@ Set Generator = ##class(APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.OptieGenerator.ProductOptiesGenerator).%New(ProductApiMock, DnaCodeServiceMock, IngegevenKenmerkenSpaceStepHelperMock) #dim Resultaat As %ListOfObjects = Generator.GenereerOptiesVoorLade(ToeleveringStub, ..UitvoeringInfo) - Do $$$AssertEquals(Resultaat.Size, 10) + Do $$$AssertEquals(Resultaat.Size, 9) Do ..AssertOptie(Resultaat.GetAt(9), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-Vhoss-info", "123.A.789") Do ProductMock.Verifieer() @@ -163,6 +168,7 @@ #dim ProductMock As vhTest.Mock.DOM.PM.MaatwerkProduct = ..GeefProductMock(..#DummyProductId, ..#DummyKorttekst, ..#DummyLangtekst, ..#DummyDossierCode, ..#DummyFscClaim, ..LbxKenmerken) Set HalffabItemsBoomMock = ##class(vhTest.Mock.DOM.PM.Maatwerk.Calc.HF.HalffabItemsBoom).%New() Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$False) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() @@ -180,7 +186,7 @@ Set Generator = ##class(APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.OptieGenerator.ProductOptiesGenerator).%New(ProductApiMock, DnaCodeServiceMock, IngegevenKenmerkenSpaceStepHelperMock) #dim Resultaat As %ListOfObjects = Generator.GenereerOptiesVoorLade(ToeleveringStub, ..UitvoeringInfo) - Do $$$AssertEquals(Resultaat.Size, 11) + Do $$$AssertEquals(Resultaat.Size, 10) Do ..AssertOptie(Resultaat.GetAt(3), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-DNA-code-SST", DnaCodeSst) Do ProductMock.Verifieer() @@ -199,6 +205,7 @@ #dim ProductMock As vhTest.Mock.DOM.PM.MaatwerkProduct = ..GeefProductMock(..#DummyProductId, ..#DummyKorttekst, ..#DummyLangtekst, ..#DummyDossierCode, ..#DummyFscClaim, ..LbxKenmerken) Set HalffabItemsBoomMock = ##class(vhTest.Mock.DOM.PM.Maatwerk.Calc.HF.HalffabItemsBoom).%New() Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$False) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator.cls.xml =================================================================== diff -u -r74202 -r74213 --- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator.cls.xml (.../OptieGenerator.cls.xml) (revision 74202) +++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator.cls.xml (.../OptieGenerator.cls.xml) (revision 74213) @@ -76,8 +76,6 @@ #dim HuidigeMesFase As %Integer = ##class(TECH.Config.ConfigMgr).Instance().GeefString("APPS.Halux.PPS.Document.impl.BatchNaarObjective_MESFase") #dim NieuweLiReLogicaLiveVanafFase As %Integer = 2 - #dim NieuweTOBLogicaLiveVanafFase As %Integer = 2 - #dim NieuweMattenLogicaLiveVanafFase As %Integer = 2 If (##class(TECH.StringUtils).Equals(RolNaam, "Links", "Rechts") && (HuidigeMesFase >= NieuweLiReLogicaLiveVanafFase)) { Set Halffab = HalffabItem.GeefHalffab() @@ -87,17 +85,11 @@ } } - If (##class(TECH.StringUtils).Equals(RolNaam, "TiponBlumotionSynchronisatieStang") && (HuidigeMesFase >= NieuweTOBLogicaLiveVanafFase)) { - If HalffabItem.%Extends(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%ClassName(1)) { - Set RolNaam = "TOBSynchroLinkage.Processed" - } Else { - Set RolNaam = "TOBSynchroLinkage.Standard" - } - } + Set RolNaam = ..GeefStandaardOfBewerkteRolnaam(RolNaam, HalffabItem) #dim LowerCaseRol = ##class(TECH.StringUtils).ToLower(RolNaam) - If (##class(TECH.StringUtils).Equals(RolNaam, "Mat", "MatX", "MatY", "MatZ") && (HuidigeMesFase >= NieuweMattenLogicaLiveVanafFase)) { + If (##class(TECH.StringUtils).Equals(RolNaam, "Mat", "MatX", "MatY", "MatZ") && (HuidigeMesFase >= 2)) { If HalffabItem.%Extends(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%ClassName(1)) { Set RolNaam = RolNaam_".Processed" } Else { @@ -133,6 +125,31 @@ Quit GeconverteerdeWaarde ]]> + + +RolNaam:%String,HalffabItem:DOM.PM.Maatwerk.Calc.HF.IHalffabItem += 2)) { + If HalffabItem.%Extends(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%ClassName(1)) { + Set RolNaam = "TOBSynchroLinkage.Processed" + } Else { + Set RolNaam = "TOBSynchroLinkage.Standard" + } + } + + If (##class(TECH.StringUtils).Equals(RolNaam, "Zijstabilisering") && (HuidigeMesFase >= 2)) { + If HalffabItem.%Extends(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%ClassName(1)) { + Set RolNaam = "SideStabiliser.Processed" + } Else { + Set RolNaam = "SideStabiliser.Standard" + } + } + + Quit RolNaam +]]> + Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml =================================================================== diff -u -r74200 -r74213 --- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml (.../ProductOptiesGenerator.cls.xml) (revision 74200) +++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml (.../ProductOptiesGenerator.cls.xml) (revision 74213) @@ -57,6 +57,8 @@ @@ -195,25 +204,24 @@ ]]> - -UitvoeringInfo:APPS.Halux.PPS.Activiteit.impl.common.dto.BatchNaarObjectiveUitvoeringInfo + +UitvoeringInfo:APPS.Halux.PPS.Activiteit.impl.common.dto.BatchNaarObjectiveUitvoeringInfo,Rol:%String %String