IBINI080 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(357.5) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DD(357.52,.04,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(357.52,.04,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(357.52,.04,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(357.52,.04,"DT")
;;=2930617
;;^DD(357.52,.05,0)
;;=STARTING ROW FOR LABEL^NJ3,0XO^^0;5^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(357.52,.05,2)
;;=S Y(0)=Y S:Y=+Y Y=Y+1
;;^DD(357.52,.05,2.1)
;;=S:Y=+Y Y=Y+1
;;^DD(357.52,.05,3)
;;=What block row should the label start in?
;;^DD(357.52,.05,21,0)
;;=^^2^2^2930608^
;;^DD(357.52,.05,21,1,0)
;;=
;;^DD(357.52,.05,21,2,0)
;;=The row the label should be printed on.
;;^DD(357.52,.05,23,0)
;;=^^4^4^2930715^
;;^DD(357.52,.05,23,1,0)
;;=The internal representation starts at 0, the external representation
;;^DD(357.52,.05,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(357.52,.05,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(357.52,.05,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(357.52,.05,"DT")
;;=2930617
;;^DD(357.52,.06,0)
;;=STARTING ROW FOR DATA^NJ3,0XO^^0;6^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(357.52,.06,2)
;;=S Y(0)=Y S:Y=+Y Y=Y+1
;;^DD(357.52,.06,2.1)
;;=S:Y=+Y Y=Y+1
;;^DD(357.52,.06,3)
;;=What block row should the data begin in?
;;^DD(357.52,.06,21,0)
;;=^^2^2^2930715^^
;;^DD(357.52,.06,21,1,0)
;;=
;;^DD(357.52,.06,21,2,0)
;;=The row, relative to the block, that the data should print on.
;;^DD(357.52,.06,23,0)
;;=^^4^4^2930715^^
;;^DD(357.52,.06,23,1,0)
;;=The internal representation starts at 0, the external representation
;;^DD(357.52,.06,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(357.52,.06,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(357.52,.06,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(357.52,.06,"DT")
;;=2930617
;;^DD(357.52,.07,0)
;;=STARTING COLUMN FOR DATA^NJ3,0XO^^0;7^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(357.52,.07,2)
;;=S Y(0)=Y S:Y=+Y Y=Y+1
;;^DD(357.52,.07,2.1)
;;=S:Y=+Y Y=Y+1
;;^DD(357.52,.07,3)
;;=What block column should the data begin in?
;;^DD(357.52,.07,21,0)
;;=^^2^2^2930608^
;;^DD(357.52,.07,21,1,0)
;;=
;;^DD(357.52,.07,21,2,0)
;;=The column, relative to the block, that the data should print on.
;;^DD(357.52,.07,23,0)
;;=^^4^4^2930715^
;;^DD(357.52,.07,23,1,0)
;;=The internal representation starts at 0, the external representation
;;^DD(357.52,.07,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(357.52,.07,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(357.52,.07,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(357.52,.07,"DT")
;;=2930617
;;^DD(357.52,.08,0)
;;=LENGTH OF DATA^NJ3,0^^0;8^K:+X'=X!(X>150)!(X<1)!(X?.E1"."1N.N) X
;;^DD(357.52,.08,3)
;;=How much space on the line should be allocated for the information to be displayed?
;;^DD(357.52,.08,21,0)
;;=^^3^3^2930527^
;;^DD(357.52,.08,21,1,0)
;;=
;;^DD(357.52,.08,21,2,0)
;;=The amount of space, in terms of characters, that should be allocated
;;^DD(357.52,.08,21,3,0)
;;=to the data.
;;^DD(357.52,.08,"DT")
;;=2930322
;;^DD(357.52,.09,0)
;;=DATA^NJ1,0X^^0;9^K:+X'=X!(X>7)!(X<1)!(X?.E1"."1N.N)!($P($G(^IBE(357.6,+$P($G(^IBE(357.5,DA(1),0)),U,3),2)),U,(2*X)-1)="") X
IBINI080 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(357.5)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(357.52,.04,23,2,0)
+2 ;;=starts at 1. The difference is because for computing the form image
+3 ;;^DD(357.52,.04,23,3,0)
+4 ;;=it is convenient to work with displacements from the top left-hand
+5 ;;^DD(357.52,.04,23,4,0)
+6 ;;=corner. However, users do not want to work with row=0 or column=0.
+7 ;;^DD(357.52,.04,"DT")
+8 ;;=2930617
+9 ;;^DD(357.52,.05,0)
+10 ;;=STARTING ROW FOR LABEL^NJ3,0XO^^0;5^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+11 ;;^DD(357.52,.05,2)
+12 ;;=S Y(0)=Y S:Y=+Y Y=Y+1
+13 ;;^DD(357.52,.05,2.1)
+14 ;;=S:Y=+Y Y=Y+1
+15 ;;^DD(357.52,.05,3)
+16 ;;=What block row should the label start in?
+17 ;;^DD(357.52,.05,21,0)
+18 ;;=^^2^2^2930608^
+19 ;;^DD(357.52,.05,21,1,0)
+20 ;;=
+21 ;;^DD(357.52,.05,21,2,0)
+22 ;;=The row the label should be printed on.
+23 ;;^DD(357.52,.05,23,0)
+24 ;;=^^4^4^2930715^
+25 ;;^DD(357.52,.05,23,1,0)
+26 ;;=The internal representation starts at 0, the external representation
+27 ;;^DD(357.52,.05,23,2,0)
+28 ;;=starts at 1. The difference is because for computing the form image
+29 ;;^DD(357.52,.05,23,3,0)
+30 ;;=it is convenient to work with displacements from the top left-hand
+31 ;;^DD(357.52,.05,23,4,0)
+32 ;;=corner. However, users do not want to work with row=0 or column=0.
+33 ;;^DD(357.52,.05,"DT")
+34 ;;=2930617
+35 ;;^DD(357.52,.06,0)
+36 ;;=STARTING ROW FOR DATA^NJ3,0XO^^0;6^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+37 ;;^DD(357.52,.06,2)
+38 ;;=S Y(0)=Y S:Y=+Y Y=Y+1
+39 ;;^DD(357.52,.06,2.1)
+40 ;;=S:Y=+Y Y=Y+1
+41 ;;^DD(357.52,.06,3)
+42 ;;=What block row should the data begin in?
+43 ;;^DD(357.52,.06,21,0)
+44 ;;=^^2^2^2930715^^
+45 ;;^DD(357.52,.06,21,1,0)
+46 ;;=
+47 ;;^DD(357.52,.06,21,2,0)
+48 ;;=The row, relative to the block, that the data should print on.
+49 ;;^DD(357.52,.06,23,0)
+50 ;;=^^4^4^2930715^^
+51 ;;^DD(357.52,.06,23,1,0)
+52 ;;=The internal representation starts at 0, the external representation
+53 ;;^DD(357.52,.06,23,2,0)
+54 ;;=starts at 1. The difference is because for computing the form image
+55 ;;^DD(357.52,.06,23,3,0)
+56 ;;=it is convenient to work with displacements from the top left-hand
+57 ;;^DD(357.52,.06,23,4,0)
+58 ;;=corner. However, users do not want to work with row=0 or column=0.
+59 ;;^DD(357.52,.06,"DT")
+60 ;;=2930617
+61 ;;^DD(357.52,.07,0)
+62 ;;=STARTING COLUMN FOR DATA^NJ3,0XO^^0;7^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+63 ;;^DD(357.52,.07,2)
+64 ;;=S Y(0)=Y S:Y=+Y Y=Y+1
+65 ;;^DD(357.52,.07,2.1)
+66 ;;=S:Y=+Y Y=Y+1
+67 ;;^DD(357.52,.07,3)
+68 ;;=What block column should the data begin in?
+69 ;;^DD(357.52,.07,21,0)
+70 ;;=^^2^2^2930608^
+71 ;;^DD(357.52,.07,21,1,0)
+72 ;;=
+73 ;;^DD(357.52,.07,21,2,0)
+74 ;;=The column, relative to the block, that the data should print on.
+75 ;;^DD(357.52,.07,23,0)
+76 ;;=^^4^4^2930715^
+77 ;;^DD(357.52,.07,23,1,0)
+78 ;;=The internal representation starts at 0, the external representation
+79 ;;^DD(357.52,.07,23,2,0)
+80 ;;=starts at 1. The difference is because for computing the form image
+81 ;;^DD(357.52,.07,23,3,0)
+82 ;;=it is convenient to work with displacements from the top left-hand
+83 ;;^DD(357.52,.07,23,4,0)
+84 ;;=corner. However, users do not want to work with row=0 or column=0.
+85 ;;^DD(357.52,.07,"DT")
+86 ;;=2930617
+87 ;;^DD(357.52,.08,0)
+88 ;;=LENGTH OF DATA^NJ3,0^^0;8^K:+X'=X!(X>150)!(X<1)!(X?.E1"."1N.N) X
+89 ;;^DD(357.52,.08,3)
+90 ;;=How much space on the line should be allocated for the information to be displayed?
+91 ;;^DD(357.52,.08,21,0)
+92 ;;=^^3^3^2930527^
+93 ;;^DD(357.52,.08,21,1,0)
+94 ;;=
+95 ;;^DD(357.52,.08,21,2,0)
+96 ;;=The amount of space, in terms of characters, that should be allocated
+97 ;;^DD(357.52,.08,21,3,0)
+98 ;;=to the data.
+99 ;;^DD(357.52,.08,"DT")
+100 ;;=2930322
+101 ;;^DD(357.52,.09,0)
+102 ;;=DATA^NJ1,0X^^0;9^K:+X'=X!(X>7)!(X<1)!(X?.E1"."1N.N)!($P($G(^IBE(357.6,+$P($G(^IBE(357.5,DA(1),0)),U,3),2)),U,(2*X)-1)="") X