Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective.cls.xml =================================================================== diff -u -r73781 -r73785 --- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective.cls.xml (.../BatchNaarObjective.cls.xml) (revision 73781) +++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective.cls.xml (.../BatchNaarObjective.cls.xml) (revision 73785) @@ -88,12 +88,15 @@ APPS.Halux.PPS.dto.UitvoeringResultaat MaximumAantalLadesProductieOrder) + { + Do ..ZendMailMaxAantalLadesOverschreden(UitvoeringInfo.BatchID) + } + #dim IsBatchAlGeexporteerd As %Boolean = $$$False If $IsObject(UitvoeringInfo) { Set IsBatchAlGeexporteerd = ..BatchPitchExportedRepository.IsBatchExported(UitvoeringInfo.BatchID) @@ -111,24 +114,10 @@ } } - #dim LaatstGebruikteToeleveringID = UitvoeringInfo.ToeleveringID If $$$Not(UitvoeringStatus = ##class(APPS.Halux.PPS.enu.UitvoeringStatus).Fout()) { - #dim IndexUitvoeringInfoLijstGesplitst As %Integer = 1 - #dim IndexSuffixId As %Integer = 1 - While UitvoeringInfoIterator.HasNext() { - #dim UitvoeringInfoLijst As APPS.Halux.PPS.dto.UitvoeringInfoLijst = UitvoeringInfoIterator.Next() - If ($$$Not(LaatstGebruikteToeleveringID = UitvoeringInfoLijst.GetAt(1).ToeleveringID)) { - Set LaatstGebruikteToeleveringID = UitvoeringInfoLijst.GetAt(1).ToeleveringID - Set IndexSuffixId = 1 - } - - #dim SuffixId As %String = ..GeefSuffixId(AantalUitSublijstenUitvoeringInfo, IndexSuffixId) - #dim BatchData As %ListOfObjects = ..GenereerBatchDataVoorUitvoeringInfoLijst(UitvoeringInfoLijst, SuffixId, IndexUitvoeringInfoLijstGesplitst, FilterToeleveringId) - Do ..ExporteerDataNaarXmlDocument(BatchData, SuffixId) - - Set IndexUitvoeringInfoLijstGesplitst = $Increment(IndexUitvoeringInfoLijstGesplitst) - Set IndexSuffixId = $Increment(IndexSuffixId) - } + #dim SuffixId As %String = "" + #dim BatchData As %ListOfObjects = ..GenereerBatchDataVoorUitvoeringInfoLijst(Lijst, SuffixId, 1, FilterToeleveringId) + Do ..ExporteerDataNaarXmlDocument(BatchData) Set UitvoeringStatus = ##class(APPS.Halux.PPS.enu.UitvoeringStatus).Succes() } @@ -137,52 +126,6 @@ ]]> - -UitvoeringInfoLijst:APPS.Halux.PPS.dto.UitvoeringInfoLijst -1 -%ListOfObjects - - - - -AantalUitSublijstenUitvoeringInfo:%Integer,IndexUitvoeringInfoLijstGesplitst:%Integer -1 -%String - 1): IndexUitvoeringInfoLijstGesplitst, 1: "") - - Quit SuffixId -]]> - - UitvoeringInfoLijst:APPS.Halux.PPS.dto.UitvoeringInfoLijst,SuffixId:%String,UitvoeringLijstNummer:%Integer,FilterToeleveringId:%String="" %ListOfObjects @@ -263,8 +206,6 @@ #dim ToeleveringenIterator As TECH.Iterator = Batch.GeefToeleveringIterator() Do ToeleveringenIterator.Reset() - #dim MaximumAantalLadesProductieOrder As %Integer = ##class(TECH.Config.ConfigMgr).Instance().GeefString("APPS.Halux.PPS.Document.impl.BatchNaarObjective_MaximumAantalLadesProductieOrder") - While ToeleveringenIterator.HasNext() { #dim ToeleveringId As %String = ToeleveringenIterator.Next().GeefID() #dim IteratieNrSequentieNummers As %Integer = 0 @@ -280,7 +221,6 @@ Do BatchDataLijst.Insert(BatchData) } - } } @@ -330,24 +270,18 @@ -BatchDataLijst:%ListOfObjects,IndexUitvoeringInfoLijstGesplitst:%Integer="" +BatchDataLijst:%ListOfObjects 1 -BatchId:%String,BatchIndex:%Integer,GesplitsteIndex:%Integer="",Extensie:TECH.String +BatchId:%String,BatchIndex:%Integer,Extensie:TECH.String 1 TECH.String 1 %Boolean + + +BatchID:%String,MaximumAantalLadesProductieOrder:%Integer +1 + +