Index: APPS/Halux/Planning/impl/BatchStarter.cls.xml =================================================================== diff -u -r73385 -r74778 --- APPS/Halux/Planning/impl/BatchStarter.cls.xml (.../BatchStarter.cls.xml) (revision 73385) +++ APPS/Halux/Planning/impl/BatchStarter.cls.xml (.../BatchStarter.cls.xml) (revision 74778) @@ -48,8 +48,13 @@ 1 + +APPS.Halux.PPS.MES.MESService +1 + + -BatchBewaarder:APPS.Halux.Planning.BatchBewaarder,BatchSequentieService:APPS.Halux.common.impl.SequentieService,BatchSequentieVerwijderaar:APPS.Halux.Planning.impl.BatchSequentieVerwijderaar,Logger:vhLib.Logger,DnaCodeService:APPS.Halux.AAP.DnaCodeService,MatService:APPS.Halux.PPS.MatService,DocumentGeneratorService:APPS.Halux.PPS.DocumentGeneratorService,BatchService:APPS.Halux.common.impl.BatchService="",BatchPitchDataExporter:APPS.Halux.Planning.Pitching.impl.BatchPitchDataExporter="" +BatchBewaarder:APPS.Halux.Planning.BatchBewaarder,BatchSequentieService:APPS.Halux.common.impl.SequentieService,BatchSequentieVerwijderaar:APPS.Halux.Planning.impl.BatchSequentieVerwijderaar,Logger:vhLib.Logger,DnaCodeService:APPS.Halux.AAP.DnaCodeService,MatService:APPS.Halux.PPS.MatService,DocumentGeneratorService:APPS.Halux.PPS.DocumentGeneratorService,BatchService:APPS.Halux.common.impl.BatchService="",BatchPitchDataExporter:APPS.Halux.Planning.Pitching.impl.BatchPitchDataExporter="",MESService:APPS.Halux.PPS.MES.MESService="" 1 1 %Status @@ -64,6 +69,7 @@ Set ..DocumentGeneratorService = $$$Inject(DocumentGeneratorService, ##class(APPS.Halux.PPS.DocumentGeneratorService).%New()) Set ..BatchService = $$$Inject(BatchService, ##class(APPS.Halux.common.impl.BatchService).%New()) Set ..BatchPitchDataExporter = $$$Inject(BatchPitchDataExporter, ##class(APPS.Halux.Planning.Pitching.impl.BatchPitchDataExporter).%New()) + Set ..MESService = $$$Inject(MESService, ##class(APPS.Halux.PPS.MES.MESService).%New()) Quit $$$OK ]]> @@ -97,6 +103,8 @@ If (IsTriggerResetBatch) { Do ..ExporteerBatchPitchedDataNaarObjectiveVoorBatch(Batch.GeefID(), IsTriggerResetBatch) + } Else { + Do ..UpdateSalesLineStatusNaarKlaargezet(Batch) } Do Batch.ZetStatus(##class(APPS.Halux.common.enu.BatchStatus).Gestart()) @@ -168,6 +176,38 @@ + + +Batch:APPS.Halux.common.Batch +1 + 1) && $$$Not(..IsTestRunTimeContext())) { + #dim ToeleveringIterator As TECH.Iterator = Batch.GeefToeleveringIterator() + + While ToeleveringIterator.HasNext() + { + #dim Toelevering As DOM.AKP.Toelevering = ToeleveringIterator.Next() + #dim ToeleveringLijnIterator As DOM.AKP.impl.DataM.DataMToeleveringLijnIterator = Toelevering.GeefToeleveringLijnIterator() + + While (ToeleveringLijnIterator.HasNext()) { + #dim ProductToeleveringLijn As DOM.AKP.impl.DataM.DataMProductToeleveringLijn = ToeleveringLijnIterator.Next() + Set ProductToeleveringLijnKlaargezetVoorProductieEventData = ##class(BL.Legacy.HaluxProductieOpvolging.ProductToeleveringLijnKlaargezetVoorProductieEventData).%New(Toelevering.GeefID()_";"_ProductToeleveringLijn.GeefID(), "Klaargezet") + Set ProductToeleveringLijnKlaargezetVoorProductieEvent = ##class(BL.Legacy.HaluxProductieOpvolging.ProductToeleveringLijnKlaargezetVoorProductieEvent).%New(ProductToeleveringLijnKlaargezetVoorProductieEventData) + Do ##class(TECH.Context).Instance().GeefPubSubAPI().GeefEventRaiser().RaiseEventAsync(ProductToeleveringLijnKlaargezetVoorProductieEvent) + } + } + } +]]> + + + +1 +%Boolean + +