Index: BL/Flow/Offerte/Parser/beNEWSOBELWOOD.cls.xml
===================================================================
diff -u
--- BL/Flow/Offerte/Parser/beNEWSOBELWOOD.cls.xml (revision 0)
+++ BL/Flow/Offerte/Parser/beNEWSOBELWOOD.cls.xml (revision 3972)
@@ -0,0 +1,117 @@
+
+
+
+1
+BL.Flow.Offerte.Parser.AbstractParserTXT
+0
+
+
+BL.Flow.Offerte.pxHoofding
+
+
+
+
+ParseStatus
+
+
+
+
+
+ParseStatus
+0) {
+ Set arOffertes($Increment(arOffertes))=..pxOfferte
+ Set Status=##class(ParseStatus).OKStatus()
+ }
+ Else {
+ // Indien geen lijnen toegevoegd, dan de hoofding terug wissen
+ Set ..pxOfferte=""
+ Set Status=##class(ParseStatus).%New(100,"Geen offertes in de bestanden van subdir "_SubDir)
+ }
+
+ Quit Status
+]]>
+
+
+
+SubDirFullPath:%String
+
+
+
+
+FileName:%String
+
+
+
+
+FileName:%String
+%RegisteredObject
+
+
+
+
+Klant
+"," ")
+ Set ..pxOfferte.OrderDatum = $TR($ZD($H,1),"/",".")
+ Set ..pxOfferte.DocDate = $TR($ZD($H,1),"/",".")
+]]>
+
+
+
+Projectdto:%RegisteredObject
+
+
+
+
+Projectdto:%RegisteredObject
+BL.Flow.Offerte.pxLijn
+
+
+
+
Index: WV GAProduct Flow.prj.xml
===================================================================
diff -u -r2400 -r3972
--- WV GAProduct Flow.prj.xml (.../WV GAProduct Flow.prj.xml) (revision 2400)
+++ WV GAProduct Flow.prj.xml (.../WV GAProduct Flow.prj.xml) (revision 3972)
@@ -1,6 +1,6 @@
-
+
@@ -20,6 +20,7 @@
+
Index: BL/Flow/Offerte/ScanEDIMail.cls.xml
===================================================================
diff -u -r2588 -r3972
--- BL/Flow/Offerte/ScanEDIMail.cls.xml (.../ScanEDIMail.cls.xml) (revision 2588)
+++ BL/Flow/Offerte/ScanEDIMail.cls.xml (.../ScanEDIMail.cls.xml) (revision 3972)
@@ -39,6 +39,25 @@
BL.Flow.Offerte.Parser.AbstractParser
+
+%String
+1
+
+
+
+1
+
+
+
Scans the incoming EDI mail watchfolder and processes every found file
@@ -49,95 +68,206 @@
0
+
+
+
+initvalue:%CacheString
+1
+1
+%Status
+
+
+
+
+
+
+
+
+1
+0 {
+ // Na het verwerken zijn er nog subdirs aanwezig
+ Set msg="Er zijn nog subdirs aanwezig na verwerking in dir : "_DirRead
+ write !,"Logger : "_msg,!
+ ; Do ##class(vhLib.Logger).%New(..#EDILoggerGroep).Error("ImportEDI",msg)
+ ; Do AddErrorToLog^BL.EC.Common("EDI", "XML2Offerte","",msg)
}
- Set BasePath=##class(TECH.Files).AppendFile(PathMSMGATEWAY,..#SubPath)
- Set DirRead=BasePath
- Set DirArchive=##class(TECH.Files).AppendFile(BasePath,..#ArchiveSubPath)
- Set DirTemp=##class(TECH.Files).AppendFile(BasePath,..#TempSubPath)
+]]>
+
+
+
+1
+
+
+
+
+1
+
+
+
+
+
+Oldschool manier via .local
+
+1
+%ListOfDataTypes
+
+
+
+
+
+Geeft een lijst terug met namen van te verwerken subdirs (dus niet het full path van de dir)
+DirRead:%String
+1
+%ListOfDataTypes
+
-
-DirRead,FileName,DirTemp,DirArchive
+
+
+SubDir is de naam ZONDER full path
+Exclude fixed dirs
+SubDirNaam:%String,LijstSubDirs:%ListOfDataTypes
+1
+
+
+
+
+FileName kan verwijzen naar een file of een directory
+DirRead,FileOfSubDir,DirTemp,DirArchive
+1
+
+1
oOfferte:Flow.Offerte.Hoofding,pxLijn:BL.Flow.Offerte.pxLijn
+1
Datum
+1
Number
+1
-
-
-
+
+
+ReturnArray als .local doorgeven
+
+1
+0
+
+