Index: vhUnitTest/WSimpl/Halux/AAP/DnaCodeService/RondAfVhossBatch/Test.cls.xml =================================================================== diff -u -r62606 -r62611 --- vhUnitTest/WSimpl/Halux/AAP/DnaCodeService/RondAfVhossBatch/Test.cls.xml (.../Test.cls.xml) (revision 62606) +++ vhUnitTest/WSimpl/Halux/AAP/DnaCodeService/RondAfVhossBatch/Test.cls.xml (.../Test.cls.xml) (revision 62611) @@ -3,7 +3,7 @@ vhUnitTest.TestCase - + - + - + 1 + +WSimpl.Halux.AAP.DnaCodeService.RondAfVhossKastHelper +1 + + -DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",PalletCodeValidator:WSimpl.Halux.AAP.DnaCodeService.PalletCodeValidator="",InventarisService:APPS.MAG.Inventaris.impl.InventarisService,DocsV1:BL.PPS.TBX.DocsV1="",UGLYPickingWrapper:WSimpl.Halux.AAP.DnaCodeService.UGLYPickingWrapper="",KlantinstellingenRepository:DOM.Halux.AAP.KlantinstellingenRepository="",VerkoopAPI:DOM.VKP.VerkoopAPI="",AantalGescandeVhossSequentieItemsBepaler:WSimpl.Halux.AAP.DnaCodeService.AantalGescandeVhossSequentieItemsBepaler="",DnaCodeInVhossKastBepaler:WSimpl.Halux.AAP.DnaCodeService.DnaCodeInVhossKastBepaler="",SequentieService:APPS.Halux.common.impl.SequentieService="" +DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",PalletCodeValidator:WSimpl.Halux.AAP.DnaCodeService.PalletCodeValidator="",InventarisService:APPS.MAG.Inventaris.impl.InventarisService,DocsV1:BL.PPS.TBX.DocsV1="",UGLYPickingWrapper:WSimpl.Halux.AAP.DnaCodeService.UGLYPickingWrapper="",KlantinstellingenRepository:DOM.Halux.AAP.KlantinstellingenRepository="",VerkoopAPI:DOM.VKP.VerkoopAPI="",AantalGescandeVhossSequentieItemsBepaler:WSimpl.Halux.AAP.DnaCodeService.AantalGescandeVhossSequentieItemsBepaler="",DnaCodeInVhossKastBepaler:WSimpl.Halux.AAP.DnaCodeService.DnaCodeInVhossKastBepaler="",SequentieService:APPS.Halux.common.impl.SequentieService="",RondAfVhossKastHelper:WSimpl.Halux.AAP.DnaCodeService.RondAfVhossKastHelper="" 1 1 %Status @@ -87,6 +92,7 @@ Set ..DnaCodeInVhossKastBepaler = $$$Inject(DnaCodeInVhossKastBepaler,##class(WSimpl.Halux.AAP.DnaCodeService.DnaCodeInVhossKastBepaler).%New()) Set ..VerzendDirectControleur = ##class(BL.MB.UGLYPicking.VerzendDirectControleur).%New() Set ..SequentieService = $$$Inject(SequentieService,##class(APPS.Halux.common.impl.SequentieService).%New()) + Set ..RondAfVhossKastHelper = $$$Inject(RondAfVhossKastHelper,##class(WSimpl.Halux.AAP.DnaCodeService.RondAfVhossKastHelper).%New()) Quit $$$OK ]]> @@ -760,11 +766,10 @@ Set DnaCodeTemp = DnaCodeViaBatchIterator.Next() If ##class(TECH.StringUtils).StartsWith(DnaCodeTemp.DnaCode,"T") { - #dim TbxVhossKastenIterator As TECH.Iterator = ..GeefTbxVhossKastenIterator(RondAfVhossBatchRequest.BatchId) + #dim TbxVhossKastenIterator As TECH.Iterator = ..RondAfVhossKastHelper.GeefTbxVhossKastenIterator(RondAfVhossBatchRequest.BatchId) Set VhossMapper = ##class(TECH.KeyValue.UniqueList).%New() - While TbxVhossKastenIterator.HasNext() { #dim TbxVhossKasten as %CacheString = TbxVhossKastenIterator.Next() Do VhossMapper.Insert(##class(TECH.KeyValuePair).%New(TbxVhossKasten.GetData(1),TbxVhossKasten.GetData(2))) @@ -773,22 +778,20 @@ #dim ProductieSequentie As APPS.Halux.common.ProductieSequentie = ..SequentieService.GeefProductieSequentie(RondAfVhossBatchRequest.BatchId) } - Set DnaCodeViaBatchIterator = ..DnaCodeRepository.ZoekViaBatchId(RondAfVhossBatchRequest.BatchId) While DnaCodeViaBatchIterator.HasNext() { - Do ##class(Tools.Wlip).%New(127).String("in dnatemp iterator") Set DnaCodeTemp = DnaCodeViaBatchIterator.Next() If $$$HasLength(DnaCodeTemp.ScanTijdstip) { Do AantallenGescandPerVhoss.Verhoog(DnaCodeTemp.PalletCode) Do AantallenPerVhoss.Verhoog(DnaCodeTemp.PalletCode) } Else { If ##class(TECH.StringUtils).StartsWith(DnaCodeTemp.DnaCode,"T") { - #dim TbxSequentieIterator as TECH.Iterator = ..GeefTbxSequentieIterator(RondAfVhossBatchRequest.BatchId, DnaCodeTemp.SequentieNummer) - Do AantallenPerVhoss.Verhoog(..ProbeerEchteVhossIdTeBepalenTBX(TbxSequentieIterator, VhossMapper)) + #dim TbxSequentieIterator as TECH.Iterator = ..RondAfVhossKastHelper.GeefTbxSequentieIterator(RondAfVhossBatchRequest.BatchId, DnaCodeTemp.SequentieNummer) + Do AantallenPerVhoss.Verhoog(..RondAfVhossKastHelper.ProbeerEchteVhossIdTeBepalenTBX(TbxSequentieIterator, VhossMapper)) } Else { #dim ProductieItem As APPS.Halux.common.VHOSSProductieSequentieItem = ProductieSequentie.GeefVHOSSProductieSequentieItemViaSequentieNummer(DnaCodeTemp.SequentieNummer) - Do AantallenPerVhoss.Verhoog(..ProbeerEchteVhossIdTeBepalenNietTBX(RondAfVhossBatchRequest.BatchId,DnaCodeTemp.SequentieNummer,ProductieItem.VHOSSID, ProductieSequentie)) + Do AantallenPerVhoss.Verhoog(..RondAfVhossKastHelper.ProbeerEchteVhossIdTeBepalenNietTBX(RondAfVhossBatchRequest.BatchId,ProductieItem.VHOSSID, ProductieSequentie)) } } @@ -830,77 +833,6 @@ ]]> - -BatchId:%String,SequentieNummer:%String -1 -TECH.Iterator - - - - -BatchId:%String -1 -TECH.Iterator - - - - -BatchId:%String,SequentieNummer:%String,InternVhossId:%String,ProductieSequentie:APPS.Halux.common.ProductieSequentie -1 -%String - - - - -BatchId:%String,SequentieNummer:%String,VhossMapper:TECH.KeyValue.UniqueList -1 -%String - - - ZoekViaKlantnummerRequest:WS.Halux.AAP.ZoekViaKlantnummerRequest WS.Halux.AAP.ZoekViaKlantnummerResponse Index: WSimpl/Halux/AAP/DnaCodeService/RondAfVhossKastHelper.cls.xml =================================================================== diff -u -r62608 -r62611 --- WSimpl/Halux/AAP/DnaCodeService/RondAfVhossKastHelper.cls.xml (.../RondAfVhossKastHelper.cls.xml) (revision 62608) +++ WSimpl/Halux/AAP/DnaCodeService/RondAfVhossKastHelper.cls.xml (.../RondAfVhossKastHelper.cls.xml) (revision 62611) @@ -49,22 +49,16 @@ %String