EEOEFIN ;HISC/JWR - WRITES DATE NOTICE OF FINAL INTERVIEW LETTER ;APR 20, 1995
;;2.0;EEO Complaint Tracking;**1,2**;Apr 27, 1995
REPORT ;Sets up security variables, does lookup
S XQY0="" D ^EEOEOSE K EEOCOLM,EEOI1 S $P(EEOOFF,"_",18)="",DIC("A")="Select Complainant: "
D HOME^%ZIS S EEOII=IOS,^XTMP("EEOSYS",0)=DT+7_"^"_DT
S DIC="^EEO(785,",DIC(0)="AEMQZ",DIC("S")="I $$SCREEN^EEOEOSE(Y) I +$G(^EEO(785,+Y,""SEC""))=DUZ" D ^DIC I Y>0 S DA=+Y S EEONAME=$P(^EEO(785,DA,0),U) G GATHER
DIC I X=""!(X="^") K DIC D EXIT Q
G:Y<1 REPORT
GATHER ;Gathers specific complaint information from file 785
S EEOCNAME=$P($G(^EEO(785,DA,1)),U)
I EEOCNAME'="" S:$D(^VA(200,EEOCNAME)) EEOCNAME=$P($G(^(EEOCNAME,0)),U)
COP S DIR(0)="NAO^1:4",DIR("A")="Number of Copies: ",DIR("B")=1,DIR("?")="Enter the number of copies of this report that are needed." D ^DIR
I X'>0 W !,"You cannot exit or delete at this prompt!",! G COP
S EEOCOP=X,EEOSEL=2
S Y=DT D DD^%DT
S %DT="AEPX",%DT("B")=Y,%DT("A")="Date of Notice of Final Interview: " D ^%DT I Y<0 D EXIT G REPORT
D DD^%DT S EEODT=Y
K DIC("S") S DIC="^VA(200,",DIC("A")="COUNSELOR: ",DIC("B")=EEOCNAME D ^DIC G:Y<1&(X'="") REPORT S:$P(Y,U,2)'="" EEOCNAME=$P(Y,U,2) S EEOFLNAM=$P(EEOCNAME,",",2)_" "_$P(EEOCNAME,",")
S EEOTITL="" F EEOADD=1:1:3 S EEOLIN(EEOADD)=""
OFF K DIC S DIC="^VA(200,",DIC(0)="AEMQZ",DIC("A")="EEO OFFICER: "
I $G(^EEO(789.5,1,1))>0 I $D(^VA(200,+$G(^EEO(789.5,1,1)),0)) S DIC("B")=$P($G(^(0)),U,1)
D ^DIC K DIC
I $D(DUOUT)!($D(DTOUT)) D EXIT G REPORT
I Y'>0 G OFF
K EEOADD S EEOOFF=X,EEOOFF=$P(EEOOFF,",",2)_" "_$P(EEOOFF,",")
K DR,DIE I X="^"!($D(DTOUT))!(X="") D EXIT G REPORT
D
.S EEOTITL=$P($G(^VA(200,X,20)),U,3)
.S EEOTITL=$S($L(EEOTITL)>2:EEOTITL,1:"""EEO OFFICER"""),EEOTITL=$TR(EEOTITL,$C(34))
.K DIR S DIR(0)="FAO^3:35" F EEOADD=1:1:3 S EEOV=EEOADD+1 D
..S DIR("A")="EEO OFFICER ADDRESS LINE #"_EEOADD_": "
..S DIR("B")=$S($P($G(^XTMP("EEOSYS",1)),U,EEOV)'="":$P($G(^(1)),U,EEOV),1:"")
..D ^DIR S:Y'="^" EEOLIN(EEOADD)=Y,$P(^XTMP("EEOSYS",1),U,EEOV)=Y
.F EEOADD=1:1:3 S EEOLIN(EEOADD)=$P($G(^XTMP("EEOSYS",1)),U,EEOADD+1)
K EEOV,EEOADD,DIR
S %ZIS="Q" K IOP,ZTIO,ZTSAVE D ^%ZIS G:POP=1 EXIT
I $D(IO("Q")) S EEOQ=1,ZTRTN="START^EEOEFIN1",ZTSAVE("EEO*")="",ZTDESC=" " D ^%ZTLOAD G EXIT
D START^EEOEFIN1 G REPORT
EXIT D ^%ZISC D KILL^EEOEOSE K EEOOFF,EEOCNAME,EEOCOP,EEOFLNAM,EEOFORM,EEOLTH,EEOTX,EEOTX1,EEOLIN,EEOADD,EEOSEL Q
IOF W:IO(0)'=IO @IOF Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HEEOEFIN 2478 printed Dec 13, 2024@01:50:56 Page 2
EEOEFIN ;HISC/JWR - WRITES DATE NOTICE OF FINAL INTERVIEW LETTER ;APR 20, 1995
+1 ;;2.0;EEO Complaint Tracking;**1,2**;Apr 27, 1995
REPORT ;Sets up security variables, does lookup
+1 SET XQY0=""
DO ^EEOEOSE
KILL EEOCOLM,EEOI1
SET $PIECE(EEOOFF,"_",18)=""
SET DIC("A")="Select Complainant: "
+2 DO HOME^%ZIS
SET EEOII=IOS
SET ^XTMP("EEOSYS",0)=DT+7_"^"_DT
+3 SET DIC="^EEO(785,"
SET DIC(0)="AEMQZ"
SET DIC("S")="I $$SCREEN^EEOEOSE(Y) I +$G(^EEO(785,+Y,""SEC""))=DUZ"
DO ^DIC
IF Y>0
SET DA=+Y
SET EEONAME=$PIECE(^EEO(785,DA,0),U)
GOTO GATHER
DIC IF X=""!(X="^")
KILL DIC
DO EXIT
QUIT
+1 if Y<1
GOTO REPORT
GATHER ;Gathers specific complaint information from file 785
+1 SET EEOCNAME=$PIECE($GET(^EEO(785,DA,1)),U)
+2 IF EEOCNAME'=""
if $DATA(^VA(200,EEOCNAME))
SET EEOCNAME=$PIECE($GET(^(EEOCNAME,0)),U)
COP SET DIR(0)="NAO^1:4"
SET DIR("A")="Number of Copies: "
SET DIR("B")=1
SET DIR("?")="Enter the number of copies of this report that are needed."
DO ^DIR
+1 IF X'>0
WRITE !,"You cannot exit or delete at this prompt!",!
GOTO COP
+2 SET EEOCOP=X
SET EEOSEL=2
+3 SET Y=DT
DO DD^%DT
+4 SET %DT="AEPX"
SET %DT("B")=Y
SET %DT("A")="Date of Notice of Final Interview: "
DO ^%DT
IF Y<0
DO EXIT
GOTO REPORT
+5 DO DD^%DT
SET EEODT=Y
+6 KILL DIC("S")
SET DIC="^VA(200,"
SET DIC("A")="COUNSELOR: "
SET DIC("B")=EEOCNAME
DO ^DIC
if Y<1&(X'="")
GOTO REPORT
if $PIECE(Y,U,2)'=""
SET EEOCNAME=$PIECE(Y,U,2)
SET EEOFLNAM=$PIECE(EEOCNAME,",",2)_" "_$PIECE(EEOCNAME,",")
+7 SET EEOTITL=""
FOR EEOADD=1:1:3
SET EEOLIN(EEOADD)=""
OFF KILL DIC
SET DIC="^VA(200,"
SET DIC(0)="AEMQZ"
SET DIC("A")="EEO OFFICER: "
+1 IF $GET(^EEO(789.5,1,1))>0
IF $DATA(^VA(200,+$GET(^EEO(789.5,1,1)),0))
SET DIC("B")=$PIECE($GET(^(0)),U,1)
+2 DO ^DIC
KILL DIC
+3 IF $DATA(DUOUT)!($DATA(DTOUT))
DO EXIT
GOTO REPORT
+4 IF Y'>0
GOTO OFF
+5 KILL EEOADD
SET EEOOFF=X
SET EEOOFF=$PIECE(EEOOFF,",",2)_" "_$PIECE(EEOOFF,",")
+6 KILL DR,DIE
IF X="^"!($DATA(DTOUT))!(X="")
DO EXIT
GOTO REPORT
+7 Begin DoDot:1
+8 SET EEOTITL=$PIECE($GET(^VA(200,X,20)),U,3)
+9 SET EEOTITL=$SELECT($LENGTH(EEOTITL)>2:EEOTITL,1:"""EEO OFFICER""")
SET EEOTITL=$TRANSLATE(EEOTITL,$CHAR(34))
+10 KILL DIR
SET DIR(0)="FAO^3:35"
FOR EEOADD=1:1:3
SET EEOV=EEOADD+1
Begin DoDot:2
+11 SET DIR("A")="EEO OFFICER ADDRESS LINE #"_EEOADD_": "
+12 SET DIR("B")=$SELECT($PIECE($GET(^XTMP("EEOSYS",1)),U,EEOV)'="":$PIECE($GET(^(1)),U,EEOV),1:"")
+13 DO ^DIR
if Y'="^"
SET EEOLIN(EEOADD)=Y
SET $PIECE(^XTMP("EEOSYS",1),U,EEOV)=Y
End DoDot:2
+14 FOR EEOADD=1:1:3
SET EEOLIN(EEOADD)=$PIECE($GET(^XTMP("EEOSYS",1)),U,EEOADD+1)
End DoDot:1
+15 KILL EEOV,EEOADD,DIR
+16 SET %ZIS="Q"
KILL IOP,ZTIO,ZTSAVE
DO ^%ZIS
if POP=1
GOTO EXIT
+17 IF $DATA(IO("Q"))
SET EEOQ=1
SET ZTRTN="START^EEOEFIN1"
SET ZTSAVE("EEO*")=""
SET ZTDESC=" "
DO ^%ZTLOAD
GOTO EXIT
+18 DO START^EEOEFIN1
GOTO REPORT
EXIT DO ^%ZISC
DO KILL^EEOEOSE
KILL EEOOFF,EEOCNAME,EEOCOP,EEOFLNAM,EEOFORM,EEOLTH,EEOTX,EEOTX1,EEOLIN,EEOADD,EEOSEL
QUIT
IOF if IO(0)'=IO
WRITE @IOF
QUIT