Index: svn/Synchronizer.cls.xml
===================================================================
diff -u -r1847 -r1864
--- svn/Synchronizer.cls.xml (.../Synchronizer.cls.xml) (revision 1847)
+++ svn/Synchronizer.cls.xml (.../Synchronizer.cls.xml) (revision 1864)
@@ -100,7 +100,7 @@
#dim IsVoorMail As %Boolean = Params.IsVoorMail
#dim Username As %String = Params.Username
#dim UserId As %Integer = $$USERID^vhUSER(Username)
- #dim MailTo As %String = ##class(TECH.StringUtils).ToLower($Piece(^vhUSER("D",UserId,"M"),"\",13))
+ #dim MailTo As %String = $$$If(UserId="","ICT_Meldingen@vanhoecke.be",##class(TECH.StringUtils).ToLower($Piece(^vhUSER("D",UserId,"M"),"\",13)))
#dim ShowSynchronizeActionsStream As %Library.GlobalCharacterStream = ..GeefShowSynchronizeActionsAlsStream(IsVoorMail)
@@ -137,7 +137,7 @@
Server:%String
1
%Boolean
-
@@ -175,11 +175,35 @@
Set NieuweLijn = "
"
}
- Set itList = ##class(TECH.ListIterator).%New(..SynchronizeList)
+ #dim SynchronizeList As %ArrayOfObjects
+ #dim ToonListMetCategories As %Boolean = (IsVoorMail)
+ If ToonListMetCategories {
+ Set SynchronizeList = ..GeefSynchronizeListMetCategories("§")
+ }
+ Else {
+ Set SynchronizeList = ..SynchronizeList
+ }
+
+ #dim SectieTitel As %String = ""
+ #dim IsEersteSectie As %Boolean = $$$True
+
+ Set itList = ##class(TECH.ListIterator).%New(SynchronizeList)
While itList.HasNext() {
#dim SyncStatus As svn.SyncStatus = itList.Next()
#dim InternalName As %String = SyncStatus.InternalName
+ If ToonListMetCategories {
+ #dim ElementKey As %String = itList.Key()
+ #dim Categorie As %String = $P(ElementKey,"§",1)
+ #dim IsSectieTitelGewijzigd = $$$Not(SectieTitel = Categorie)
+ If IsSectieTitelGewijzigd {
+ Set SectieTitel = Categorie
+ Do:($$$Not(IsEersteSectie)) ShowActionsAlsStream.WriteLine(NieuweLijn)
+ Do ShowActionsAlsStream.WriteLine(NieuweLijn _ "" _ SectieTitel _ "")
+ Set IsEersteSectie = $$$False
+ }
+ }
+
Do:SyncStatus.ImportNeeded ShowActionsAlsStream.WriteLine(NieuweLijn _ "Import " _ InternalName)
Do:SyncStatus.DeleteNeeded ShowActionsAlsStream.WriteLine(NieuweLijn _ "Delete " _ InternalName)
}
@@ -188,6 +212,82 @@
]]>
+
+SectionDelimiter:%String="§"
+1
+%ArrayOfObjects
+
+
+
+
+InternalName:%String
+1
+%String
+
+
+
+
+InternalName:%String
+1
+%String
+
+
+
+
+InternalName:%String
+1
+%String
+
+
+