DVBHS6 ;ALB/JLU;Screen six of the HINQ screens ;10/4/91
;;4.0;HINQ;**11,49**;03/25/92
EN ;Entry point from the edit template.
;with patch DVB*4*49 the income information will no longer be displayed
;this code is left here for historical purposes
Q
N Y
K DVBX(1)
F LP2=.3623,.3628,.36285,.3629 S X="DVBDIQ(2,"_DFN_","_LP2_")" K @X
I $D(X(1)) S DVBX(1)=X(1)
S DIC="^DPT(",DA=DFN,DIQ(0)="E",DIQ="DVBDIQ("
S DR=".36225;.3628;.36285;.3629"
D EN^DIQ1
I $D(DVBX(1)) S X(1)=DVBX(1) K DVBX(1)
S DVBSCRN=6 D SCRHD^DVBHUTIL
S DVBJS=64
;
W !,?6,"Amount Earned Annual Income (SPOUSE): "
W $S($D(DVBSPENC):"$"_DVBSPENC,1:"")
W !,?1,"Amount of Annual Social Security (SPOUSE): "
W $S($D(DVBSPSSA):"$"_DVBSPSSA,1:"")
W !,?2,"Type of other Annual Retirement (SPOUSE): "
I $D(DVBSPRET) S V=DVBSPRET D TR W V
W !,"Amount of other Annual Retirement (SPOUSE): "
W $S($D(DVBSPETO):"$"_DVBSPETO,1:"")
W !,?4,"Amount of other Annual Income (SPOUSE): "
W $S($D(DVBSPINC):"$"_DVBSPINC,1:"")
W !!,?4,"Amount of Earned Annual Income (PAYEE): "
W $S($D(DVBEINC):"$"_DVBEINC,1:"")
;
;W !!!,DVBON,"[1]",DVBOFF X DVBLIT1
;W ?4,"Amount Annual"
;W !,?6,"Soc. Sec. (PAYEE):"
;W ?26,"$",$S(+DVBDIQ(2,DFN,.3623,"E"):DVBDIQ(2,DFN,.3623,"E"),1:0)
;W ?48,$S($D(DVBSSA):"$"_DVBSSA,1:"")
;
W !!!,DVBON,"[1]",DVBOFF X DVBLIT1
W ?4,"Receiving Soc. Sec. (PAYEE):"
;W !,?6,"Soc. Sec. (PAYEE):"
W ?33,DVBDIQ(2,DFN,.36225,"E")
W ?48,$S($D(DVBSSA):$S(DVBSSA:"YES",1:"NO"),1:"NO")
;
W !,DVBON,"[2]",DVBOFF X DVBLIT1
W ?4,"Other Annual"
W !,?13,"Retirement (PAYEE):"
W ?26,DVBDIQ(2,DFN,.36285,"E")
I $D(DVBRETT) S V=DVBRETT D TR W ?48,V
;
W !,DVBON,"[3]",DVBOFF X DVBLIT1
W ?4,"Amount Other Annual"
W !,?13,"Retirement (PAYEE):"
W ?26,"$",$S(+DVBDIQ(2,DFN,.3628,"E"):DVBDIQ(2,DFN,.3628,"E"),1:0)
W ?48,$S($D(DVBRETO):"$"_DVBRETO,1:"")
;
W !,DVBON,"[4]",DVBOFF X DVBLIT1
W ?4,"Amount Other Annual"
W !,?17,"Income (PAYEE):"
W ?26,"$",$S(+DVBDIQ(2,DFN,.3629,"E"):DVBDIQ(2,DFN,.3629,"E"),1:0)
W ?48,$S($D(DVBOINC):"$"_DVBOINC,1:"")
Q
TR S V=$S(V="B":"BLACKLUNG",V="M":"MILITARY",V="C":"CIVIL SERVICE",V="R":"RAILROAD",V="O":"OTHER",V="X":"COMBINATION",1:V) Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDVBHS6 2226 printed Dec 13, 2024@01:59:09 Page 2
DVBHS6 ;ALB/JLU;Screen six of the HINQ screens ;10/4/91
+1 ;;4.0;HINQ;**11,49**;03/25/92
EN ;Entry point from the edit template.
+1 ;with patch DVB*4*49 the income information will no longer be displayed
+2 ;this code is left here for historical purposes
+3 QUIT
+4 NEW Y
+5 KILL DVBX(1)
+6 FOR LP2=.3623,.3628,.36285,.3629
SET X="DVBDIQ(2,"_DFN_","_LP2_")"
KILL @X
+7 IF $DATA(X(1))
SET DVBX(1)=X(1)
+8 SET DIC="^DPT("
SET DA=DFN
SET DIQ(0)="E"
SET DIQ="DVBDIQ("
+9 SET DR=".36225;.3628;.36285;.3629"
+10 DO EN^DIQ1
+11 IF $DATA(DVBX(1))
SET X(1)=DVBX(1)
KILL DVBX(1)
+12 SET DVBSCRN=6
DO SCRHD^DVBHUTIL
+13 SET DVBJS=64
+14 ;
+15 WRITE !,?6,"Amount Earned Annual Income (SPOUSE): "
+16 WRITE $SELECT($DATA(DVBSPENC):"$"_DVBSPENC,1:"")
+17 WRITE !,?1,"Amount of Annual Social Security (SPOUSE): "
+18 WRITE $SELECT($DATA(DVBSPSSA):"$"_DVBSPSSA,1:"")
+19 WRITE !,?2,"Type of other Annual Retirement (SPOUSE): "
+20 IF $DATA(DVBSPRET)
SET V=DVBSPRET
DO TR
WRITE V
+21 WRITE !,"Amount of other Annual Retirement (SPOUSE): "
+22 WRITE $SELECT($DATA(DVBSPETO):"$"_DVBSPETO,1:"")
+23 WRITE !,?4,"Amount of other Annual Income (SPOUSE): "
+24 WRITE $SELECT($DATA(DVBSPINC):"$"_DVBSPINC,1:"")
+25 WRITE !!,?4,"Amount of Earned Annual Income (PAYEE): "
+26 WRITE $SELECT($DATA(DVBEINC):"$"_DVBEINC,1:"")
+27 ;
+28 ;W !!!,DVBON,"[1]",DVBOFF X DVBLIT1
+29 ;W ?4,"Amount Annual"
+30 ;W !,?6,"Soc. Sec. (PAYEE):"
+31 ;W ?26,"$",$S(+DVBDIQ(2,DFN,.3623,"E"):DVBDIQ(2,DFN,.3623,"E"),1:0)
+32 ;W ?48,$S($D(DVBSSA):"$"_DVBSSA,1:"")
+33 ;
+34 WRITE !!!,DVBON,"[1]",DVBOFF
XECUTE DVBLIT1
+35 WRITE ?4,"Receiving Soc. Sec. (PAYEE):"
+36 ;W !,?6,"Soc. Sec. (PAYEE):"
+37 WRITE ?33,DVBDIQ(2,DFN,.36225,"E")
+38 WRITE ?48,$SELECT($DATA(DVBSSA):$SELECT(DVBSSA:"YES",1:"NO"),1:"NO")
+39 ;
+40 WRITE !,DVBON,"[2]",DVBOFF
XECUTE DVBLIT1
+41 WRITE ?4,"Other Annual"
+42 WRITE !,?13,"Retirement (PAYEE):"
+43 WRITE ?26,DVBDIQ(2,DFN,.36285,"E")
+44 IF $DATA(DVBRETT)
SET V=DVBRETT
DO TR
WRITE ?48,V
+45 ;
+46 WRITE !,DVBON,"[3]",DVBOFF
XECUTE DVBLIT1
+47 WRITE ?4,"Amount Other Annual"
+48 WRITE !,?13,"Retirement (PAYEE):"
+49 WRITE ?26,"$",$SELECT(+DVBDIQ(2,DFN,.3628,"E"):DVBDIQ(2,DFN,.3628,"E"),1:0)
+50 WRITE ?48,$SELECT($DATA(DVBRETO):"$"_DVBRETO,1:"")
+51 ;
+52 WRITE !,DVBON,"[4]",DVBOFF
XECUTE DVBLIT1
+53 WRITE ?4,"Amount Other Annual"
+54 WRITE !,?17,"Income (PAYEE):"
+55 WRITE ?26,"$",$SELECT(+DVBDIQ(2,DFN,.3629,"E"):DVBDIQ(2,DFN,.3629,"E"),1:0)
+56 WRITE ?48,$SELECT($DATA(DVBOINC):"$"_DVBOINC,1:"")
+57 QUIT
TR SET V=$SELECT(V="B":"BLACKLUNG",V="M":"MILITARY",V="C":"CIVIL SERVICE",V="R":"RAILROAD",V="O":"OTHER",V="X":"COMBINATION",1:V)
QUIT