Index: APPS/Halux/common/impl/BatchImpl.cls.xml =================================================================== diff -u -r954 -r994 --- APPS/Halux/common/impl/BatchImpl.cls.xml (.../BatchImpl.cls.xml) (revision 954) +++ APPS/Halux/common/impl/BatchImpl.cls.xml (.../BatchImpl.cls.xml) (revision 994) @@ -1,78 +1,112 @@ - + +persistent 1 -%RegisteredObject,APPS.Halux.common.Batch -62174,60304.400541 +%Persistent,APPS.Halux.common.Batch +62189,54458.271185 0 - -DS.PPS.TBX.Batch + +APPS.Halux.common.enu.ProductieLijn 1 + +%TimeStamp +1 + + + +APPS.Halux.common.enu.ProductieGroep +1 + + + +%Integer +array +1 + + + +%Boolean +1 +1 + Set {*}=##class(APPS.Halux.common.impl.BatchImpl).%OpenId({ID}).IsActief() +1 + + + +;1000;5023;1213;3814;1390;1387;1966;4073;1949;4451;6780;3044;2523;4533;6261;11620;3670;3814; + + -BatchID:%Integer="" +Lijn:APPS.Halux.common.enu.ProductieLijn="" 1 1 %Status + +%TimeStamp + + + %Integer - - -%String - +ProductieLijn:APPS.Halux.common.enu.ProductieLijn + + +TECH.Iterator + + + -APPS.Halux.enu.ProductieGroep -APPS.Halux.common.enu.ProductieGroep + - -%Status - +APPS.Halux.common.enu.ProductieLijn + Toelevering:DOM.LEV.Toelevering -%Status 0) && '..IsGeldigeProductieGroep(ProductieGroep)) { Do Errors.Insert("De productiegroep van de toelevering is verschillend van de productiegroep van de batch") } + If (..IsAanwezigInAndereBatch(Toelevering)) { Do Errors.Insert("De toelevering zit reeds in een andere batch") } + If (..Toeleveringen.IsDefined(Toelevering.GeefToeNr())) { Do Errors.Insert("De toelevering zit reeds in deze batch") } + If ((ProductieGroep = ##class(APPS.Halux.common.enu.ProductieGroep).Kast()) && ('..IsGeldigAfleverAdres(Toelevering))) { Do Errors.Insert("Het afleveradres van deze toelevering is anders dan de vorige") } + + If (Errors.Count() > 0) { - Set ..Batch.NbrDrawers = ..Batch.NbrDrawers + Aantal - Set ..Batch.NbrTipOn = ..Batch.NbrTipOn + TipOn - Set ..Batch.NbrSink = ..Batch.NbrSink + SpoelbakSifon - Set ..Batch.NbrWood = ..Batch.NbrWood + Baliko + Set MaakBatchError = ##class(APPS.Halux.common.impl.BatchError).%New() + Set MaakBatchError.ToeleveringNummer = Toelevering.GeefToeNr() + Set MaakBatchError.Boodschappen = Errors + Set MaakBatchErrorLijst = ##class(%ListOfObjects).%New() + Do ##class(TECH.ExceptionHandler).Throw(##class(APPS.Halux.common.impl.ToeleveringException).%New(MaakBatchError)) + } + + Do ..Toeleveringen.SetAt(1,Toelevering.GeefToeNr()) + Set ..ProductieGroep = ProductieGroep +]]> + + + +Toelevering:DOM.LEV.Toelevering +%Boolean + + + + + + + + +1 + + + + +Toelevering:DOM.LEV.Toelevering +1 +%Boolean + + +Order:DOM.OV.Order +1 +%String + + + ProductieGroep:%String 1 %Boolean - @@ -134,32 +232,70 @@ Toelevering:DOM.LEV.Toelevering,TBXLade:DOM.PM.TBXProduct.TBXLade 1 -APPS.Halux.enu.ProductieGroep +APPS.Halux.common.enu.ProductieGroep + + +%Boolean + + + + +%Library.CacheStorage +^APPS.Halux.common7FB.BatchImplD +BatchImplDefaultData +^APPS.Halux.common7FB.BatchImplD +^APPS.Halux.common7FB.BatchImplI +^APPS.Halux.common7FB.BatchImplS + + +%%CLASSNAME + + +AanmaakTijdstip + + +Lijn + + +ProductieGroep + + + +Toeleveringen +subnode +"Toeleveringen" + + - +