Index: zTryout/CSC/Try.cls.xml =================================================================== diff -u -r946 -r995 --- zTryout/CSC/Try.cls.xml (.../Try.cls.xml) (revision 946) +++ zTryout/CSC/Try.cls.xml (.../Try.cls.xml) (revision 995) @@ -1,11 +1,11 @@ - + persistent %VHMacro 1 %Persistent -62131,28320.485504 +62189,49138.503153 0 @@ -55,6 +55,93 @@ ]]> + + +Do ##class(zTryout.CSC.Try).Try3() +1 + + + + + +Do ##class(zTryout.CSC.Try).Try4() +1 + 9998) + d ##class(APPS.Halux.common.impl.BatchImpl).%KillExtent() + Set ^PPS.BatchD=9998 + Set ^APPS.Halux.common7FB.BatchImplD=8861 + + + For BatchNr=8862:1:9998 + { + Set Batch = ##class(DS.PPS.TBX.Batch).%OpenId(BatchNr) + Set BatchNieuw = ##class(APPS.Halux.common.BatchService).%New().GeefNieuweBatch(##class(%ListOfObjects).%New()) + If ($IsObject(Batch)) + { + Set ToeleveringIterator = ##class(TECH.ListIterator).%New(Batch.Toeleveringen) + Set ToeleveringLijst = ##class(%ListOfObjects).%New() + While (ToeleveringIterator.HasNext()) + { + Set ToeleveringOld = ToeleveringIterator.Next().Toelevering + w ToeleveringOld,! + Set Toelevering = ##class(DOM.DomeinContext).Instance().GeefToeleveringAPI().GeefToelevering($Piece(ToeleveringOld,"||",2)) + If ($IsObject(Toelevering)) + { + Do ToeleveringLijst.Insert(Toelevering) + } + } + Set BatchNieuw = ##class(APPS.Halux.common.BatchService).%New().GeefNieuweBatch(ToeleveringLijst,Batch.Line) + } + + Do BatchNieuw.%Save() + } +]]> + + + + +Do ##class(zTryout.CSC.Try).Try5() +1 + + + %Library.CacheStorage ^zTryout.CSC.TryD @@ -71,5 +158,5 @@ - +