Index: BL/Flow/Offerte/ScanEDIMail.cls.xml =================================================================== diff -u -r734 -r771 --- BL/Flow/Offerte/ScanEDIMail.cls.xml (.../ScanEDIMail.cls.xml) (revision 734) +++ BL/Flow/Offerte/ScanEDIMail.cls.xml (.../ScanEDIMail.cls.xml) (revision 771) @@ -1,10 +1,11 @@ - + BL.EC.Common,BL.Derde.KlantSpecifiek,%VHMacro,%occStatus 1 %RegisteredObject -62070,32238.17621 +62124,57225.379528 +61773,56551.521812 0 @@ -19,24 +20,10 @@ TEMP\ - - - - BL.Flow.Offerte.pxHoofding - - - - %Numeric @@ -63,20 +50,16 @@ Set %ClientIP="192.168.1.15" Lock +FlowXML2Offerte:1 Else Quit ; exclusief gebruik - If (##class(TECH.Config.ConfigMgr).Instance().GetString("BL.Flow.Offerte.ScanEDIMail_OpslaanInTestFolder")) - { + If (##class(TECH.Config.ConfigMgr).Instance().GetString("BL.Flow.Offerte.ScanEDIMail_OpslaanInTestFolder")) { Set TestPath=##class(TECH.Config.ConfigMgr).Instance().GetString("BL.Flow.Offerte.ScanEDIMail_TestFolderLocatie") Set DirRead=TestPath_..#SubPath Set DirArchive=TestPath_..#SubPath_..#ArchiveSubPath - Set DirTemp=TestPath_..#SubPath_..#TempSubPath - } - Else - { + Set DirTemp=TestPath_..#SubPath_..#TempSubPath } + Else { Set DirRead=^BLBeri("MSMGATEWAY")_..#SubPath Set DirArchive=^BLBeri("MSMGATEWAY")_..#SubPath_..#ArchiveSubPath - Set DirTemp=^BLBeri("MSMGATEWAY")_..#SubPath_..#TempSubPath - } - + Set DirTemp=^BLBeri("MSMGATEWAY")_..#SubPath_..#TempSubPath } + Do SCANDIR^vhDEV(DirRead,"*.*",$NA(Local),"") ; Opbouw van local met de bestandsnamen Set FileName="" @@ -137,19 +120,13 @@ For set vnr=$O(Offertes(vnr)) Quit:vnr="" Do . Set OrderCnt=OrderCnt+1 . Set ..pxOfferte=Offertes(vnr) - . // FMA Set blFlowOfferte = ##class(BL.Flow.Offerte.Build).%New() - . $$$blFlowOfferte + . $$$blFlowOfferte . Set blFlowOfferte=%blFlowOfferte ;Kill %blFlowOfferte - . // END FMA - . // FMA ..KLNr moet uit ScanEDIMail . Set (..KLNr,KlantNr)=..pxOfferte.KlantID ; de XML kan rechtstreeks de klant nr definieren . ;Set KlantNr=..DefineKlant() - . // FMA Error handling: als er geen klantnummer is, moet een foutcode teruggegeven worden + log/mail . If 'KlantNr Do Quit - . // FMA Set oOfferte = blFlowOfferte.Create(KlantNr,"EDI") . Do blFlowOfferte.Create(KlantNr,"EDI") . Set oOfferte=blFlowOfferte.oOfferte - . // END FMA . ; Opvullen met andere gegevens . Set oOfferte.StatusTijdStip=$H @@ -186,8 +163,6 @@ oOfferte:Flow.Offerte.Hoofding,pxLijn:BL.Flow.Offerte.pxLijn Datum Number - - - - - +