Index: APPS/Halux/PPS/Activiteit/impl/common/SequentieGebaseerdeUitvoeringInfoDefaultAanvuller.cls.xml =================================================================== diff -u -r31988 -r31991 --- APPS/Halux/PPS/Activiteit/impl/common/SequentieGebaseerdeUitvoeringInfoDefaultAanvuller.cls.xml (.../SequentieGebaseerdeUitvoeringInfoDefaultAanvuller.cls.xml) (revision 31988) +++ APPS/Halux/PPS/Activiteit/impl/common/SequentieGebaseerdeUitvoeringInfoDefaultAanvuller.cls.xml (.../SequentieGebaseerdeUitvoeringInfoDefaultAanvuller.cls.xml) (revision 31991) @@ -26,8 +26,9 @@ 1 @@ -36,25 +37,22 @@ Index: APPS/Halux/common/impl/ProductieSequentieRepository.cls.xml =================================================================== diff -u -r29059 -r31991 --- APPS/Halux/common/impl/ProductieSequentieRepository.cls.xml (.../ProductieSequentieRepository.cls.xml) (revision 29059) +++ APPS/Halux/common/impl/ProductieSequentieRepository.cls.xml (.../ProductieSequentieRepository.cls.xml) (revision 31991) @@ -8,39 +8,43 @@ TECH.ResultSet BatchID:%String,DossierCode:%String,AantalStuks:%String %ListOfDataTypes + +ItemID:TECH.String +DS.PPS.TBX.Queue + + + BatchID:%String,DossierCode:%String,AantalStuks:%String 1 TECH.ResultSet - - -ItemID:TECH.String -DS.PPS.TBX.Queue - - Index: APPS/Halux/common/ProductieSequentieItem.cls.xml =================================================================== diff -u -r31988 -r31991 --- APPS/Halux/common/ProductieSequentieItem.cls.xml (.../ProductieSequentieItem.cls.xml) (revision 31988) +++ APPS/Halux/common/ProductieSequentieItem.cls.xml (.../ProductieSequentieItem.cls.xml) (revision 31991) @@ -153,6 +153,7 @@ 1 @@ -174,10 +175,11 @@ uitgerekende halffabitemsboom. DOM.PM.Maatwerk.Calc.HF.HalffabItemsBoom @@ -191,10 +193,11 @@ DOM.PM.Maatwerk.Calc.Common.IngegevenKenmerken @@ -208,21 +211,24 @@ DOM.PM.Maatwerk.Calc.Common.BerekeningsSpecificatie DOM.PM.Maatwerk.Calc.HF.HalffabContext @@ -231,6 +237,7 @@ APPS.Halux.common.enu.ProductieLijn Index: APPS/Halux/common/ProductieSequentie.cls.xml =================================================================== diff -u -r31989 -r31991 --- APPS/Halux/common/ProductieSequentie.cls.xml (.../ProductieSequentie.cls.xml) (revision 31989) +++ APPS/Halux/common/ProductieSequentie.cls.xml (.../ProductieSequentie.cls.xml) (revision 31991) @@ -52,6 +52,7 @@ Set ..BatchID = Batch.GeefID() Set ..SequentieItems = ##class(%ListOfObjects).%New() Set ..Categorie = Batch.GeefCategorie() + Quit $$$OK ]]> @@ -64,6 +65,91 @@ ]]> + +1 +BatchID:%String + + + + +1 +Item:APPS.Halux.common.VHOSSProductieSequentieItem +%String +") +]]> + + + +1 +Item:APPS.Halux.common.VHOSSProductieSequentieItem +%String + + + + +1 +Item:APPS.Halux.common.VHOSSProductieSequentieItem,Comparator:%String +1 +%String + + + + + + +ToeleveringID:%String + + + + + + + + + +APPS.Halux.common.Batch + + + @@ -75,7 +161,7 @@ APPS.Halux.common.ProductieSequentieItemList - @@ -106,31 +192,37 @@ #dim ProductTypeAPI As DOM.PM.ProductTypeAPI = ##class(DOM.DomeinContext).Instance().GeefProductTypeAPI() #dim Sort As MultiDimensional #dim SequenceNr As %Integer = 0 - #dim Batch As APPS.Halux.common.Batch = ..GeefBatch() #dim ToeleveringIterator As TECH.Iterator = Batch.GeefToeleveringIterator() - While (ToeleveringIterator.HasNext()) - { + + While (ToeleveringIterator.HasNext()) { #dim Toelevering As DOM.AKP.Toelevering = ToeleveringIterator.Next() + Kill Sort + #dim ProductLijnIterator As TECH.Iterator = Toelevering.GeefTypeToeleveringLijnIterator(##class(DOM.AKP.enu.ToeleveringLijnType).Product()) - While (ProductLijnIterator.HasNext()) - { + + While (ProductLijnIterator.HasNext()) { #dim ProductLijn As DOM.AKP.ProductToeleveringLijn = ProductLijnIterator.Next() // TODOPA vertaling van ProductID As %String naar DOM.common.ProductID #dim MaatwerkProduct As DOM.PM.MaatwerkProduct = ProductTypeAPI.GeefMaatwerkProduct(ProductLijn.GeefProductID()) - Set ProductieSequentieItemIt = ##class(TECH.ListIterator).%New(..MaakProductieSequentieItems(Toelevering,ProductLijn)) - While ProductieSequentieItemIt.HasNext(){ - #dim Item As APPS.Halux.common.ProductieSequentieItem = ProductieSequentieItemIt.Next() + #dim ProductieSequentieItemIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(..MaakProductieSequentieItems(Toelevering, ProductLijn)) + + While (ProductieSequentieItemIterator.HasNext()) { + #dim Item As APPS.Halux.common.ProductieSequentieItem = ProductieSequentieItemIterator.Next() #dim SortKey As %String = ..GeefSorteerSleutel(MaatwerkProduct, Item) + Set Sort(SortKey) = Item } } + #dim ItemIterator As TECH.Iterator = ##class(TECH.ArrayMultiDimIterator).%New(.Sort) + While (ItemIterator.HasNext()) { Set Item = ItemIterator.Next() Set Item.SequentieNummer = $I(SequenceNr) Set Item.GroepSequentieNummer = Item.SequentieNummer + Do ..SequentieItems.Insert(Item) } } @@ -142,13 +234,11 @@ Do ..Init() #dim ProductTypeAPI As DOM.PM.ProductTypeAPI = ##class(DOM.DomeinContext).Instance().GeefProductTypeAPI() - - Set ToeleveringIDs = ##class(%ListOfDataTypes).%New() - + #dim ToeleveringIDs As %ListOfDataTypes = ##class(%ListOfDataTypes).%New() #dim Batch As APPS.Halux.common.Batch = ..GeefBatch() #dim ToeleveringIterator As TECH.Iterator = Batch.GeefToeleveringIterator() - While (ToeleveringIterator.HasNext()) - { + + While (ToeleveringIterator.HasNext()) { Do ToeleveringIDs.Insert(ToeleveringIterator.Next().GeefID()) } @@ -158,44 +248,6 @@ ]]> - -1 -Item:APPS.Halux.common.VHOSSProductieSequentieItem -%String -") -]]> - - - -1 -Item:APPS.Halux.common.VHOSSProductieSequentieItem -%String - - - - -1 -Item:APPS.Halux.common.VHOSSProductieSequentieItem,Comparator:%String -1 -%String - - - 1 @@ -259,19 +317,20 @@ 1 @@ -281,16 +340,16 @@ %ListOfObjects ELEMENTTYPE="APPS.Halux.common.ProductieSequentieItem" @@ -302,7 +361,8 @@ - - - -ToeleveringID:%String - - - - - -1 -BatchID:%String - - - - - - - - -APPS.Halux.common.Batch - - - %Library.CacheStorage ^APPS.Halux8081.ProductieSeqFA5D Index: APPS/Halux/common/impl/ProductieSequentieGroepeerder.cls.xml =================================================================== diff -u -r31988 -r31991 --- APPS/Halux/common/impl/ProductieSequentieGroepeerder.cls.xml (.../ProductieSequentieGroepeerder.cls.xml) (revision 31988) +++ APPS/Halux/common/impl/ProductieSequentieGroepeerder.cls.xml (.../ProductieSequentieGroepeerder.cls.xml) (revision 31991) @@ -8,179 +8,215 @@ 1 + +APPS.Halux.common.ProductieSequentieRepository +1 + + + +1 +1 +%Status +1 + + + BatchID:%String APPS.Halux.common.impl.ProductieSequentieGroepering BatchID:%String APPS.Halux.common.impl.ProductieSequentieGroepering BatchID:%String APPS.Halux.common.impl.ProductieSequentieGroepering BatchID:%String APPS.Halux.common.impl.ProductieSequentieGroepering BatchID:%String APPS.Halux.common.impl.ProductieSequentieGroepering BatchID:%String APPS.Halux.common.impl.ProductieSequentieGroepering @@ -190,7 +226,8 @@ %String @@ -199,16 +236,18 @@ 1 APPS.Halux.common.dto.ProductieSequentie @@ -218,16 +257,19 @@ %String Index: APPS/Halux/PPS/Activiteit/ProductieSequentieAwareActiviteit.cls.xml =================================================================== diff -u -r30538 -r31991 --- APPS/Halux/PPS/Activiteit/ProductieSequentieAwareActiviteit.cls.xml (.../ProductieSequentieAwareActiviteit.cls.xml) (revision 30538) +++ APPS/Halux/PPS/Activiteit/ProductieSequentieAwareActiviteit.cls.xml (.../ProductieSequentieAwareActiviteit.cls.xml) (revision 31991) @@ -348,6 +348,7 @@