IBINI08J ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(357.7) 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
;;^DIC(357.7,0,"GL")
;;=^IBE(357.7,
;;^DIC("B","FORM LINE",357.7)
;;=
;;^DIC(357.7,"%D",0)
;;=^^1^1^2931214^^
;;^DIC(357.7,"%D",1,0)
;;=Either a horizontal or vertical line appearing on the form.
;;^DD(357.7,0)
;;=FIELD^^.06^6
;;^DD(357.7,0,"DT")
;;=2940217
;;^DD(357.7,0,"ID",.02)
;;=W " STARTING COL=",$P(^(0),U,2)+1
;;^DD(357.7,0,"ID",.03)
;;=W " STARTING ROW=",$P(^(0),U,3)+1
;;^DD(357.7,0,"ID",.06)
;;=W ""
;;^DD(357.7,0,"IX","B",357.7,.01)
;;=
;;^DD(357.7,0,"IX","C",357.7,.06)
;;=
;;^DD(357.7,0,"NM","FORM LINE")
;;=
;;^DD(357.7,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
;;^DD(357.7,.01,1,0)
;;=^.1
;;^DD(357.7,.01,1,1,0)
;;=357.7^B
;;^DD(357.7,.01,1,1,1)
;;=S ^IBE(357.7,"B",$E(X,1,30),DA)=""
;;^DD(357.7,.01,1,1,2)
;;=K ^IBE(357.7,"B",$E(X,1,30),DA)
;;^DD(357.7,.01,3)
;;=Enter a name for the line that will allow it to be identified, such as V(1,1), meaning a vertical line starting at coordinates (1,1).
;;^DD(357.7,.01,21,0)
;;=^^4^4^2940217^
;;^DD(357.7,.01,21,1,0)
;;=
;;^DD(357.7,.01,21,2,0)
;;=The name given to the line. Lines should be given names that will allow
;;^DD(357.7,.01,21,3,0)
;;=them to be identified, such as V(1,1), meaning a vertical line starting at
;;^DD(357.7,.01,21,4,0)
;;=coordinates (1,1).
;;^DD(357.7,.01,"DT")
;;=2940217
;;^DD(357.7,.02,0)
;;=LINE STARTING COLUMN^RNJ3,0XO^^0;2^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(357.7,.02,2)
;;=S Y(0)=Y S:+Y=Y Y=+Y+1
;;^DD(357.7,.02,2.1)
;;=S:+Y=Y Y=+Y+1
;;^DD(357.7,.02,3)
;;=Enter the block column the line should begin at.
;;^DD(357.7,.02,21,0)
;;=^^2^2^2930527^
;;^DD(357.7,.02,21,1,0)
;;=
;;^DD(357.7,.02,21,2,0)
;;=The column, relative to the block, that the line should begin at.
;;^DD(357.7,.02,23,0)
;;=^^4^4^2930715^
;;^DD(357.7,.02,23,1,0)
;;=The internal representation starts at 0, the external representation
;;^DD(357.7,.02,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(357.7,.02,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(357.7,.02,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(357.7,.02,"DT")
;;=2930715
;;^DD(357.7,.03,0)
;;=LINE STARTING ROW^RNJ3,0XO^^0;3^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
;;^DD(357.7,.03,2)
;;=S Y(0)=Y S:+Y=Y Y=+Y+1
;;^DD(357.7,.03,2.1)
;;=S:+Y=Y Y=+Y+1
;;^DD(357.7,.03,3)
;;=Enter the block row the line should begin at.
;;^DD(357.7,.03,21,0)
;;=^^2^2^2930527^
;;^DD(357.7,.03,21,1,0)
;;=
;;^DD(357.7,.03,21,2,0)
;;=The row, relative to the block, that the line should begin at.
;;^DD(357.7,.03,23,0)
;;=^^4^4^2930715^
;;^DD(357.7,.03,23,1,0)
;;=The internal representation starts at 0, the external representation
;;^DD(357.7,.03,23,2,0)
;;=starts at 1. The difference is because for computing the form image
;;^DD(357.7,.03,23,3,0)
;;=it is convenient to work with displacements from the top left-hand
;;^DD(357.7,.03,23,4,0)
;;=corner. However, users do not want to work with row=0 or column=0.
;;^DD(357.7,.03,"DT")
;;=2930715
;;^DD(357.7,.04,0)
;;=ORIENTATION^RS^H:HORIZONTAL;V:VERTICAL;^0;4^Q
;;^DD(357.7,.04,.1)
;;=ORIENTATION (HORIZONTAL/VERTICAL)
;;^DD(357.7,.04,3)
;;=Should the line be horizontal or vertical?
;;^DD(357.7,.04,21,0)
;;=^^2^2^2930607^
;;^DD(357.7,.04,21,1,0)
;;=
;;^DD(357.7,.04,21,2,0)
;;=The direction the line goes in.
;;^DD(357.7,.04,"DT")
;;=2930415
;;^DD(357.7,.05,0)
;;=LENGTH^RNJ3,0^^0;5^K:+X'=X!(X>200)!(X<1)!(X?.E1"."1N.N) X
IBINI08J ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(357.7)
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 ;;^DIC(357.7,0,"GL")
+2 ;;=^IBE(357.7,
+3 ;;^DIC("B","FORM LINE",357.7)
+4 ;;=
+5 ;;^DIC(357.7,"%D",0)
+6 ;;=^^1^1^2931214^^
+7 ;;^DIC(357.7,"%D",1,0)
+8 ;;=Either a horizontal or vertical line appearing on the form.
+9 ;;^DD(357.7,0)
+10 ;;=FIELD^^.06^6
+11 ;;^DD(357.7,0,"DT")
+12 ;;=2940217
+13 ;;^DD(357.7,0,"ID",.02)
+14 ;;=W " STARTING COL=",$P(^(0),U,2)+1
+15 ;;^DD(357.7,0,"ID",.03)
+16 ;;=W " STARTING ROW=",$P(^(0),U,3)+1
+17 ;;^DD(357.7,0,"ID",.06)
+18 ;;=W ""
+19 ;;^DD(357.7,0,"IX","B",357.7,.01)
+20 ;;=
+21 ;;^DD(357.7,0,"IX","C",357.7,.06)
+22 ;;=
+23 ;;^DD(357.7,0,"NM","FORM LINE")
+24 ;;=
+25 ;;^DD(357.7,.01,0)
+26 ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
+27 ;;^DD(357.7,.01,1,0)
+28 ;;=^.1
+29 ;;^DD(357.7,.01,1,1,0)
+30 ;;=357.7^B
+31 ;;^DD(357.7,.01,1,1,1)
+32 ;;=S ^IBE(357.7,"B",$E(X,1,30),DA)=""
+33 ;;^DD(357.7,.01,1,1,2)
+34 ;;=K ^IBE(357.7,"B",$E(X,1,30),DA)
+35 ;;^DD(357.7,.01,3)
+36 ;;=Enter a name for the line that will allow it to be identified, such as V(1,1), meaning a vertical line starting at coordinates (1,1).
+37 ;;^DD(357.7,.01,21,0)
+38 ;;=^^4^4^2940217^
+39 ;;^DD(357.7,.01,21,1,0)
+40 ;;=
+41 ;;^DD(357.7,.01,21,2,0)
+42 ;;=The name given to the line. Lines should be given names that will allow
+43 ;;^DD(357.7,.01,21,3,0)
+44 ;;=them to be identified, such as V(1,1), meaning a vertical line starting at
+45 ;;^DD(357.7,.01,21,4,0)
+46 ;;=coordinates (1,1).
+47 ;;^DD(357.7,.01,"DT")
+48 ;;=2940217
+49 ;;^DD(357.7,.02,0)
+50 ;;=LINE STARTING COLUMN^RNJ3,0XO^^0;2^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+51 ;;^DD(357.7,.02,2)
+52 ;;=S Y(0)=Y S:+Y=Y Y=+Y+1
+53 ;;^DD(357.7,.02,2.1)
+54 ;;=S:+Y=Y Y=+Y+1
+55 ;;^DD(357.7,.02,3)
+56 ;;=Enter the block column the line should begin at.
+57 ;;^DD(357.7,.02,21,0)
+58 ;;=^^2^2^2930527^
+59 ;;^DD(357.7,.02,21,1,0)
+60 ;;=
+61 ;;^DD(357.7,.02,21,2,0)
+62 ;;=The column, relative to the block, that the line should begin at.
+63 ;;^DD(357.7,.02,23,0)
+64 ;;=^^4^4^2930715^
+65 ;;^DD(357.7,.02,23,1,0)
+66 ;;=The internal representation starts at 0, the external representation
+67 ;;^DD(357.7,.02,23,2,0)
+68 ;;=starts at 1. The difference is because for computing the form image
+69 ;;^DD(357.7,.02,23,3,0)
+70 ;;=it is convenient to work with displacements from the top left-hand
+71 ;;^DD(357.7,.02,23,4,0)
+72 ;;=corner. However, users do not want to work with row=0 or column=0.
+73 ;;^DD(357.7,.02,"DT")
+74 ;;=2930715
+75 ;;^DD(357.7,.03,0)
+76 ;;=LINE STARTING ROW^RNJ3,0XO^^0;3^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
+77 ;;^DD(357.7,.03,2)
+78 ;;=S Y(0)=Y S:+Y=Y Y=+Y+1
+79 ;;^DD(357.7,.03,2.1)
+80 ;;=S:+Y=Y Y=+Y+1
+81 ;;^DD(357.7,.03,3)
+82 ;;=Enter the block row the line should begin at.
+83 ;;^DD(357.7,.03,21,0)
+84 ;;=^^2^2^2930527^
+85 ;;^DD(357.7,.03,21,1,0)
+86 ;;=
+87 ;;^DD(357.7,.03,21,2,0)
+88 ;;=The row, relative to the block, that the line should begin at.
+89 ;;^DD(357.7,.03,23,0)
+90 ;;=^^4^4^2930715^
+91 ;;^DD(357.7,.03,23,1,0)
+92 ;;=The internal representation starts at 0, the external representation
+93 ;;^DD(357.7,.03,23,2,0)
+94 ;;=starts at 1. The difference is because for computing the form image
+95 ;;^DD(357.7,.03,23,3,0)
+96 ;;=it is convenient to work with displacements from the top left-hand
+97 ;;^DD(357.7,.03,23,4,0)
+98 ;;=corner. However, users do not want to work with row=0 or column=0.
+99 ;;^DD(357.7,.03,"DT")
+100 ;;=2930715
+101 ;;^DD(357.7,.04,0)
+102 ;;=ORIENTATION^RS^H:HORIZONTAL;V:VERTICAL;^0;4^Q
+103 ;;^DD(357.7,.04,.1)
+104 ;;=ORIENTATION (HORIZONTAL/VERTICAL)
+105 ;;^DD(357.7,.04,3)
+106 ;;=Should the line be horizontal or vertical?
+107 ;;^DD(357.7,.04,21,0)
+108 ;;=^^2^2^2930607^
+109 ;;^DD(357.7,.04,21,1,0)
+110 ;;=
+111 ;;^DD(357.7,.04,21,2,0)
+112 ;;=The direction the line goes in.
+113 ;;^DD(357.7,.04,"DT")
+114 ;;=2930415
+115 ;;^DD(357.7,.05,0)
+116 ;;=LENGTH^RNJ3,0^^0;5^K:+X'=X!(X>200)!(X<1)!(X?.E1"."1N.N) X