Index: APPS/VisiDot/impl/Tech.cls.xml =================================================================== diff -u -r29059 -r57604 --- APPS/VisiDot/impl/Tech.cls.xml (.../Tech.cls.xml) (revision 29059) +++ APPS/VisiDot/impl/Tech.cls.xml (.../Tech.cls.xml) (revision 57604) @@ -79,7 +79,7 @@ 1 -Val,Len +Val:%String,Len:%Integer 1 1 Batch:%Integer,VHossSeqNr:%List,VHossZijkant:APPS.VisiDot.enu.Zijkant,Product:%Integer %String - 999999 { + Do ##class(TECH.Exceptions.InvalidInputException).Throw("BatchId '"_Batch_"' mag niet groter zijn dan 999999 (i.e. max 6 cijfers).") + } + If Product > 9999999 { + Do ##class(TECH.Exceptions.InvalidInputException).Throw("ProductId '"_Product_"' mag niet groter zijn dan 9999999 (i.e. max 7 cijfers).") + } + + #dim BatchVanMax5cijfers As %Integer = Batch + #dim BatchHonderdduizendtal As %Integer = 0 + If Batch > 99999 { + Set BatchHonderdduizendtal = (Batch \ 100000) + Set BatchVanMax5cijfers = (Batch # 100000) + } + Quit ..Justify(BatchVanMax5cijfers,5)_..Justify(VHossSeqNr,2)_..Justify(VHossZijkant,1)_..Justify(BatchHonderdduizendtal,1)_..Justify(Product,7) ]]> @@ -118,15 +132,24 @@ 1 LadeID:%String %Integer - + +1 +LadeID:%String +1 +%Integer + + + 1 LadeID:%String %Integer -