Index: APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeCalculator.cls.xml
===================================================================
diff -u
--- APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeCalculator.cls.xml (revision 0)
+++ APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeCalculator.cls.xml (revision 44524)
@@ -0,0 +1,178 @@
+
+
+
+
+Omzetten van een numeriek waarde naar een alfanumerieke code.
+Dit volgens een bepaald formaat en met een checkdigit
+Mogelijke codes in de format zijn
+- "A" Alfa karakters
+- "N" Numerieke karakters
+- "X" Alfanumerieke karakters
+- "C" Checkdigit (modulo 7)
+- " " Spacer
+TECH.RegisteredObject
+
+
+ABCDEFGHKLMNPRSTUVWXYZ
+
+
+
+123456789
+
+
+
+123456789ABCDEFGHKLMNPRSTUVWXYZ
+
+
+
+0
+
+
+
+
+
+
+
+AAA CNN;NNC AAA;AA NC AA;CN AA NN;CN AA AA;AA AA CN;AA CN NN;NC NN AA
+
+
+
+
+Parameter Formats = "N;A;X;CNN AAA;AA CN AA;NC AA NN;NC AA AA;AA AA CN;AA CN NN;NC NN AA";
+%String
+
+
+
+%Integer
+
+
+
+%String
+
+
+
+%String
+
+
+
+
+Omzetten van een numerieke waarde naar een alfanumerieke code
+CodeNr:%Integer
+ (SomCombinaties+AantalCombinaties)
+ {
+ Set ..CodeGeformateerd=..ConverteerNaarCode(CodeNr-SomCombinaties,Format)
+ Set ..CodeFormat=Format
+ }
+ Set SomCombinaties=SomCombinaties+AantalCombinaties
+ Quit:..CodeGeformateerd'=""
+ }
+]]>
+
+
+
+
+Overzicht van de formaten en de corresponderende combinaties
+
+0
+
+
+
+
+
+Hoeveel combinaties zijn er mogelijk met de vooropgestelde formaten
+
+
+
+
+
+
+
+
+%String
+
+
+
+
+Aantal:%Integer,Format:%String
+1
+0
+ {
+ Set PosInValue=Aantal#$L(FormatValue)
+
+ Set Aantal=Aantal\$L(FormatValue)
+ Set Result=$E(FormatValue,$S(PosInValue:PosInValue,1:$L(FormatValue)))_Result
+ }
+ Else
+ {
+ Set Result=..#NulValue_Result
+ }
+ }
+ }
+ Quit Result
+]]>
+
+
+
+Aantal:%Integer
+1
+%String
+
+
+
+
+Format:%String
+1
+%Integer
+
+
+
+
+
+
Index: APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator.cls.xml
===================================================================
diff -u
--- APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator.cls.xml (revision 0)
+++ APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator.cls.xml (revision 44524)
@@ -0,0 +1,110 @@
+
+
+
+TECH.RegisteredObject
+
+
+APPS.VKP.Maatwerk.LadeRegistratie.impl.CodeCalculator
+
+
+
+SEX;ASS;FCK;KUT;LUL;SEKS;FUCK;SHIT;HOMO
+
+
+
+%Status
+
+
+
+
+
+Do ##class(APPS.VKP.Maatwerk.LadeRegistratie.impl.CodeGenerator).%New().Genereer(1,20000)
+Vanaf:%Integer,Aantal:%Integer
+0
+
+
+
+
+
+Do ##class(APPS.VKP.Maatwerk.LadeRegistratie.impl.CodeGenerator).%New().ControleerOpDubbels()
+0
+
+
+
+
+
+Do ##class(APPS.VKP.Maatwerk.LadeRegistratie.impl.CodeGenerator).%New().ToonCombinaties()
+0
+
+
+
+
+%Boolean
+
+
+
+
+
+