Index: vhDeploy/Deploy201105261322.cls.xml
===================================================================
diff -u
--- vhDeploy/Deploy201105261322.cls.xml (revision 0)
+++ vhDeploy/Deploy201105261322.cls.xml (revision 1306)
@@ -0,0 +1,19 @@
+
+
+
+1
+svn.Deploy
+0
+
+
+
+In ^INDEX zitten enkele overbodige indexen, deze weghalen uit de global.
+1
+
+
+
+
Index: vhConsistency/Checks/Index/KlantIndex.cls.xml
===================================================================
diff -u
--- vhConsistency/Checks/Index/KlantIndex.cls.xml (revision 0)
+++ vhConsistency/Checks/Index/KlantIndex.cls.xml (revision 1306)
@@ -0,0 +1,86 @@
+
+
+
+
+JBL + 2011-05-26
+1
+vhConsistency.Check
+0
+
+
+
+Indien deze flag wordt aangezet worden de globals die in ^INDEX zitten maar geen overeenkomstige record hebben in
+KKL, DKL of KK1
+%Boolean
+0
+
+
+
+%Status
+
+
+
+
+
+^INDEX overlopen en klanten op aanwezigheid controleren in DKL, KKL en KK1
+%Status
+ ^KKL("_Index_")"
+ Do ..VoegMeldingToe(Bericht)
+ Set Status = $$$ERROR($$$GeneralError,Bericht)
+ Do ..KillIndex(Type,Key)
+ }
+
+ /// DKL
+ Set Nr = $Piece(Index," ",2)
+ If ('$Data(^DKL("K","KL.A",Nr,0))) {
+ Set Bericht = $C(9)_"^INDEX(K,KL,"_Type_","_Key_")="_Index_ " vindt geen overeekomst in DKL -> ^DKL(""K"",""KL.A"","_Nr_",0)"
+ Do ..VoegMeldingToe(Bericht)
+ Set Status = $$$ERROR($$$GeneralError,Bericht)
+ Do ..KillIndex(Type,Key)
+ }
+
+ /// KK1
+ If ('$Data(^KK1(Nr))) {
+ Set Bericht = $C(9)_"^INDEX(K,KL,"_Type_","_Key_")="_Index_ " vindt geen overeekomst in KK1 -> ^KK1("_Nr_")"
+ Do ..VoegMeldingToe(Bericht)
+ Set Status = $$$ERROR($$$GeneralError,Bericht)
+ Do ..KillIndex(Type,Key)
+ }
+
+ Set Key = $Order(^INDEX("K","KL",Type,Key))
+ }
+ Set Type = $Order(^INDEX("K","KL",Type))
+ }
+ Quit Status
+]]>
+
+
+
+
+Method uitvoeren indien DoKill boolean aanstaat.
+Type:%String,Key:%String
+
+
+
+