Index: zTryout/PRA/UnishopBestellingenRapport.cls.xml =================================================================== diff -u --- zTryout/PRA/UnishopBestellingenRapport.cls.xml (revision 0) +++ zTryout/PRA/UnishopBestellingenRapport.cls.xml (revision 31798) @@ -0,0 +1,76 @@ + + + +%RegisteredObject + + + + + + +1 + ($h - 365)) { + If ($Extract( Offerte.GeefKlantID(), 1, 3) = "K||") { + If ( (Offerte.GeefBestelStatus() = ##class(APPS.VKP.Offerte.enu.BestelStatus).Besteld()) + || (Offerte.GeefBestelStatus() = ##class(APPS.VKP.Offerte.enu.BestelStatus).Doorbesteld()) ) + { + #Dim Winkelkar As DOM.EC.Winkelkar.Winkelkar = ##class(DOM.EC.Winkelkar.Winkelkar).OpenId( Offerte.GeefWinkelkarID() ) + #Dim Klant As DOM.VKP.VanHoeckeKlant = ##class(DOM.VKP.impl.VerkoopAPI).%New().GeefKlant( Winkelkar.GeefKlantID() ) + + #Dim GroepLijnen As TECH.ListIterator = Winkelkar.GeefLijnIterator() + While GroepLijnen.HasNext() { + #Dim GroepLijn As DOM.EC.Winkelkar.GroepLijn = GroepLijnen.Next() + #Dim MaatwerkLijnen As TECH.ListIterator = GroepLijn.SublijnIterator() + While (MaatwerkLijnen.HasNext()) { + #Dim MaatwerkLijn As DOM.EC.Winkelkar.MaatwerkLijn = MaatwerkLijnen.Next() + Do OutputFileWriter.WriteLine( Offerte.GeefID() _ ";" _ + Offerte.GeefBestelTimestamp() _ ";" _ + Klant.GeefRegio() _ ";" _ + MaatwerkLijn.GeefAantal() _ ";" _ + MaatwerkLijn.GeefIngegevenKenmerken().%ClassName(1) _ ";" + ) + } + } + } + } + } + } + } Catch { + #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() + Write Exception.ToString(), ! + Write Exception.GeefStack(), ! + } + } + Do OutputFileWriter.Close() + } Catch { + #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() + Write Exception.ToString(), ! + Write Exception.GeefStack(), ! + + Do OutputFileWriter.Close() + } +]]> + + + + +