Index: APPS/Halux/AAP/DnaCodeService/DnaCodeServiceHelper.cls.xml =================================================================== diff -u -r66816 -r66821 --- APPS/Halux/AAP/DnaCodeService/DnaCodeServiceHelper.cls.xml (.../DnaCodeServiceHelper.cls.xml) (revision 66816) +++ APPS/Halux/AAP/DnaCodeService/DnaCodeServiceHelper.cls.xml (.../DnaCodeServiceHelper.cls.xml) (revision 66821) @@ -15,7 +15,7 @@ DOM.PM.impl.ProductTypeAPIimpl - + DOM.PM.ProductAPI 1 @@ -37,7 +37,7 @@ Set ..DnaCodeGenerator = $$$Inject(DnaCodeGenerator, ##class(APPS.Halux.AAP.DnaCodeGenerator).%New()) Set ..DnaCodeRepository = $$$Inject(DnaCodeRepository, ##class(DOM.Halux.AAP.DnaCodeRepository).%New()) Set ..ProductTypeAPI = $$$Inject(ProductTypeAPI, ##class(DOM.PM.impl.ProductTypeAPIimpl).%New()) - Set ..ProductApi = $$$Inject(ProductAPI, ##class(DOM.PM.impl.ProductAPI).%New()) + Set ..ProductAPI = $$$Inject(ProductAPI, ##class(DOM.PM.impl.ProductAPI).%New()) Set ..ConfiguratorService = $$$Inject(ConfiguratorService,##class(APPS.VKP.Maatwerk.impl.ConfiguratorService).%New()) Set ..IngegevenKenmerkenSpaceStepHelper = $$$Inject(IngegevenKenmerkenSpaceStepHelper, ##class(DOM.PM.Maatwerk.Calc.Common.impl.IngegevenKenmerkenSpaceStepHelper).%New()) @@ -52,10 +52,10 @@ #dim ProductID As %String = ToeleveringLijn.GeefProductID() #dim Toelevering As DOM.AKP.Toelevering= ToeleveringLijn.GeefToelevering() #dim DnaCode As DOM.Halux.AAP.DnaCode = ..MaakGeneriekeDnaCodeVoorToeleveringLijn(ToeleveringLijn, Batch) - #dim Product As DOM.PM.Product = ..ProductApi.GeefProduct(ProductID) + #dim Product As DOM.PM.Product = ..ProductAPI.GeefProduct(ProductID) If (Product.%Extends("DOM.PM.MaatwerkProduct")) { - Set DnaCode.LadeCode = ..ProductApi.GeefProduct(ProductID).GeefDottedDossierCode() + Set DnaCode.LadeCode = ..ProductAPI.GeefProduct(ProductID).GeefDottedDossierCode() Do ..MaakEnBewaarExtraDnaCodesIndienNodig(ToeleveringLijn, Batch) } @@ -108,7 +108,7 @@ @@ -152,16 +152,16 @@ 1 @@ -208,7 +208,7 @@ #dim Resultaat As %Boolean = $$$False If ##class(TECH.StringUtils).StartsWith(DnaCode.DnaCode,"H") { - #dim Product As DOM.PM.Product = ..ProductApi.GeefProduct(DnaCode.ProductNummer) + #dim Product As DOM.PM.Product = ..ProductAPI.GeefProduct(DnaCode.ProductNummer) #dim IngegevenKenmerkenAPI As DOM.PM.IngegevenKenmerkenAPI = ##class(DOM.DomeinContext).Instance().GeefIngegevenKenmerkenAPI() #dim IngegevenKenmerken As APPS.PM.Maatwerk.dto.TAORKenmerken = ..ConfiguratorService.GeefOnverwerkteKenmerkenVanProduct(Product.GeefID()) Index: vhTest/Mock/APPS/Halux/AAP/DnaCodeService.cls.xml =================================================================== diff -u -r66819 -r66821 --- vhTest/Mock/APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 66819) +++ vhTest/Mock/APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 66821) @@ -9,7 +9,7 @@ right -DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",ProductTypeAPI:DOM.PM.impl.ProductTypeAPIimpl="",DnaCodeGenerator:APPS.Halux.AAP.DnaCodeGenerator="",ProjectSettingsApi:DOM.common.ProjectSettingsAPI="",ProductApi:DOM.PM.ProductAPI="",SequentieService:APPS.Halux.common.SequentieService="",Logger:vhLib.Logger="",ConfiguratorService:APPS.VKP.Maatwerk.impl.ConfiguratorService="",IngegevenKenmerkenSpaceStepHelper:DOM.PM.Maatwerk.Calc.Common.impl.IngegevenKenmerkenSpaceStepHelper="",DnaCodeServiceHelper:APPS.Halux.AAP.DnaCodeService.DnaCodeServiceHelper +DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",ProductTypeAPI:DOM.PM.impl.ProductTypeAPIimpl="",DnaCodeGenerator:APPS.Halux.AAP.DnaCodeGenerator="",ProjectSettingsAPI:DOM.common.ProjectSettingsAPI="",ProductAPI:DOM.PM.ProductAPI="",SequentieService:APPS.Halux.common.SequentieService="",Logger:vhLib.Logger="",ConfiguratorService:APPS.VKP.Maatwerk.impl.ConfiguratorService="",IngegevenKenmerkenSpaceStepHelper:DOM.PM.Maatwerk.Calc.Common.impl.IngegevenKenmerkenSpaceStepHelper="",DnaCodeServiceHelper:APPS.Halux.AAP.DnaCodeService.DnaCodeServiceHelper %Status Index: APPS/Halux/AAP/DnaCodeService.cls.xml =================================================================== diff -u -r66819 -r66821 --- APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 66819) +++ APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 66821) @@ -15,17 +15,17 @@ APPS.Halux.AAP.DnaCodeGenerator - + DOM.common.ProjectSettingsAPI 1 - + TECH.DateTime.DateTimeAPI 1 - + DOM.PM.ProductAPI 1 @@ -56,7 +56,7 @@ -DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",ProductTypeAPI:DOM.PM.impl.ProductTypeAPIimpl="",DnaCodeGenerator:APPS.Halux.AAP.DnaCodeGenerator="",ProjectSettingsApi:DOM.common.ProjectSettingsAPI="",ProductApi:DOM.PM.ProductAPI="",SequentieService:APPS.Halux.common.SequentieService="",Logger:vhLib.Logger="",ConfiguratorService:APPS.VKP.Maatwerk.impl.ConfiguratorService="",IngegevenKenmerkenSpaceStepHelper:DOM.PM.Maatwerk.Calc.Common.impl.IngegevenKenmerkenSpaceStepHelper="",DnaCodeServiceHelper:APPS.Halux.AAP.DnaCodeService.DnaCodeServiceHelper +DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",ProductTypeAPI:DOM.PM.impl.ProductTypeAPIimpl="",DnaCodeGenerator:APPS.Halux.AAP.DnaCodeGenerator="",ProjectSettingsAPI:DOM.common.ProjectSettingsAPI="",ProductAPI:DOM.PM.ProductAPI="",SequentieService:APPS.Halux.common.SequentieService="",Logger:vhLib.Logger="",ConfiguratorService:APPS.VKP.Maatwerk.impl.ConfiguratorService="",IngegevenKenmerkenSpaceStepHelper:DOM.PM.Maatwerk.Calc.Common.impl.IngegevenKenmerkenSpaceStepHelper="",DnaCodeServiceHelper:APPS.Halux.AAP.DnaCodeService.DnaCodeServiceHelper 1 1 %Status @@ -65,14 +65,14 @@ Set ..DnaCodeRepository = $$$Inject(DnaCodeRepository, ##class(DOM.Halux.AAP.DnaCodeRepository).%New()) Set ..ProductTypeAPI = $$$Inject(ProductTypeAPI, ##class(DOM.PM.impl.ProductTypeAPIimpl).%New()) Set ..DnaCodeGenerator = $$$Inject(DnaCodeGenerator, ##class(APPS.Halux.AAP.DnaCodeGenerator).%New()) - Set ..ProjectSettingsApi = $$$Inject(ProjectSettingsApi, ##class(DOM.common.impl.ProjectSettingsAPI).%New()) - Set ..DateTimeApi = ##class(TECH.Context).Instance().GeefDateTimeAPI() - Set ..ProductApi = $$$Inject(ProductApi, ##class(DOM.PM.impl.ProductAPI).%New()) + Set ..ProjectSettingsAPI = $$$Inject(ProjectSettingsAPI, ##class(DOM.common.impl.ProjectSettingsAPI).%New()) + Set ..DateTimeAPI = ##class(TECH.Context).Instance().GeefDateTimeAPI() + Set ..ProductAPI = $$$Inject(ProductAPI, ##class(DOM.PM.impl.ProductAPI).%New()) Set ..SequentieService = $$$Inject(SequentieService, ##class(APPS.Halux.common.impl.SequentieService).%New()) Set ..Logger = $$$Inject(Logger, ##class(vhLib.Logger).%New()) Set ..ConfiguratorService = $$$Inject(ConfiguratorService,##class(APPS.VKP.Maatwerk.impl.ConfiguratorService).%New()) Set ..IngegevenKenmerkenSpaceStepHelper = $$$Inject(IngegevenKenmerkenSpaceStepHelper, ##class(DOM.PM.Maatwerk.Calc.Common.impl.IngegevenKenmerkenSpaceStepHelper).%New()) - Set ..DnaCodeServiceHelper = $$$Inject(DnaCodeServiceHelper, ##class(APPS.Halux.AAP.DnaCodeService.DnaCodeServiceHelper).%New()) + Set ..DnaCodeServiceHelper = $$$Inject(DnaCodeServiceHelper, ##class(APPS.Halux.AAP.DnaCodeService.DnaCodeServiceHelper).%New(DnaCodeGenerator, DnaCodeRepository, ProductTypeAPI, ProductAPI, ConfiguratorService, IngegevenKenmerkenSpaceStepHelper)) Quit $$$OK ]]> @@ -99,7 +99,7 @@ #dim Teller As %Integer = 1 While Teller <= ToeleveringLijn.GeefAantal() { - Set DnaCode = ..MaakDnaCodeVoorToeleveringLijn(ToeleveringLijn, Batch) + Set DnaCode = ..DnaCodeServiceHelper.MaakDnaCodeVoorToeleveringLijn(ToeleveringLijn, Batch) If ParentCodeVoorToeleveringLijn = "" { Set ParentCodeVoorToeleveringLijn = ..BepaalParentDnaCode(DnaCode, Batch) } @@ -152,7 +152,7 @@ } } While DnaCodeTeller < ToeleveringLijn.GeefAantal() { - Do ..DnaCodeRepository.Bewaar(..MaakDnaCodeVoorToeleveringLijn(ToeleveringLijn)) + Do ..DnaCodeRepository.Bewaar(..DnaCodeServiceHelper.MaakDnaCodeVoorToeleveringLijn(ToeleveringLijn)) Set DnaCodeTeller = DnaCodeTeller + 1 } ]]> @@ -185,41 +185,6 @@ ]]> - -ToeleveringLijn:DOM.AKP.ProductToeleveringLijn,Batch:APPS.Halux.common.impl.BatchImpl="" -1 -DOM.Halux.AAP.DnaCode - - - ToeleveringLijn:DOM.AKP.ProductToeleveringLijn,Batch:APPS.Halux.common.impl.BatchImpl="" 1 @@ -247,8 +212,8 @@ Set DnaCode.OrderId = ToeleveringLijn.GeefOrderID() Set DnaCode.OrderlijnId = ToeleveringLijn.GeefOrderLijnID() Set DnaCode.AanmaakTijdstip = ##class(TECH.Context).Instance().GeefDateTimeAPI().CurrentHorolog() - #dim Product As DOM.PM.Product = ..ProductApi.GeefProduct(ProductID) - Set DnaCode.LadeCode = ..ProductApi.GeefProduct(ProductID).GeefDottedDossierCode() + #dim Product As DOM.PM.Product = ..ProductAPI.GeefProduct(ProductID) + Set DnaCode.LadeCode = ..ProductAPI.GeefProduct(ProductID).GeefDottedDossierCode() If $IsObject(Batch) { Set DnaCode.BatchId = Batch.GeefID() @@ -283,7 +248,7 @@ #dim Resultaat As %Boolean = $$$False If ##class(TECH.StringUtils).StartsWith(DnaCode.DnaCode,"H") { - #dim Product As DOM.PM.Product = ..ProductApi.GeefProduct(DnaCode.ProductNummer) + #dim Product As DOM.PM.Product = ..ProductAPI.GeefProduct(DnaCode.ProductNummer) #dim IngegevenKenmerkenAPI As DOM.PM.IngegevenKenmerkenAPI = ##class(DOM.DomeinContext).Instance().GeefIngegevenKenmerkenAPI() #dim IngegevenKenmerken As APPS.PM.Maatwerk.dto.TAORKenmerken = ..ConfiguratorService.GeefOnverwerkteKenmerkenVanProduct(Product.GeefID()) @@ -301,7 +266,7 @@ ToeleveringID:%String,ProductID:%String,SequentieNummer:%String="",Herafdruk:%Boolean=$$$False,BatchId:%String="",IsKlantEtiketSpaceStep:%Boolean=$$$False %String