source: FOIAVistA/trunk/r/EEO_COMPLAINT_TRACKING-EEO/EEOEFIN.m@ 1437

Last change on this file since 1437 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.4 KB
Line 
1EEOEFIN ;HISC/JWR - WRITES DATE NOTICE OF FINAL INTERVIEW LETTER ;APR 20, 1995
2 ;;2.0;EEO Complaint Tracking;**1,2**;Apr 27, 1995
3REPORT ;Sets up security variables, does lookup
4 S XQY0="" D ^EEOEOSE K EEOCOLM,EEOI1 S $P(EEOOFF,"_",18)="",DIC("A")="Select Complainant: "
5 D HOME^%ZIS S EEOII=IOS,^XTMP("EEOSYS",0)=DT+7_"^"_DT
6 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
7DIC I X=""!(X="^") K DIC D EXIT Q
8 G:Y<1 REPORT
9GATHER ;Gathers specific complaint information from file 785
10 S EEOCNAME=$P($G(^EEO(785,DA,1)),U)
11 I EEOCNAME'="" S:$D(^VA(200,EEOCNAME)) EEOCNAME=$P($G(^(EEOCNAME,0)),U)
12COP 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
13 I X'>0 W !,"You cannot exit or delete at this prompt!",! G COP
14 S EEOCOP=X,EEOSEL=2
15 S Y=DT D DD^%DT
16 S %DT="AEPX",%DT("B")=Y,%DT("A")="Date of Notice of Final Interview: " D ^%DT I Y<0 D EXIT G REPORT
17 D DD^%DT S EEODT=Y
18 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,",")
19 S EEOTITL="" F EEOADD=1:1:3 S EEOLIN(EEOADD)=""
20OFF K DIC S DIC="^VA(200,",DIC(0)="AEMQZ",DIC("A")="EEO OFFICER: "
21 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)
22 D ^DIC K DIC
23 I $D(DUOUT)!($D(DTOUT)) D EXIT G REPORT
24 I Y'>0 G OFF
25 K EEOADD S EEOOFF=X,EEOOFF=$P(EEOOFF,",",2)_" "_$P(EEOOFF,",")
26 K DR,DIE I X="^"!($D(DTOUT))!(X="") D EXIT G REPORT
27 D
28 .S EEOTITL=$P($G(^VA(200,X,20)),U,3)
29 .S EEOTITL=$S($L(EEOTITL)>2:EEOTITL,1:"""EEO OFFICER"""),EEOTITL=$TR(EEOTITL,$C(34))
30 .K DIR S DIR(0)="FAO^3:35" F EEOADD=1:1:3 S EEOV=EEOADD+1 D
31 ..S DIR("A")="EEO OFFICER ADDRESS LINE #"_EEOADD_": "
32 ..S DIR("B")=$S($P($G(^XTMP("EEOSYS",1)),U,EEOV)'="":$P($G(^(1)),U,EEOV),1:"")
33 ..D ^DIR S:Y'="^" EEOLIN(EEOADD)=Y,$P(^XTMP("EEOSYS",1),U,EEOV)=Y
34 .F EEOADD=1:1:3 S EEOLIN(EEOADD)=$P($G(^XTMP("EEOSYS",1)),U,EEOADD+1)
35 K EEOV,EEOADD,DIR
36 S %ZIS="Q" K IOP,ZTIO,ZTSAVE D ^%ZIS G:POP=1 EXIT
37 I $D(IO("Q")) S EEOQ=1,ZTRTN="START^EEOEFIN1",ZTSAVE("EEO*")="",ZTDESC=" " D ^%ZTLOAD G EXIT
38 D START^EEOEFIN1 G REPORT
39EXIT D ^%ZISC D KILL^EEOEOSE K EEOOFF,EEOCNAME,EEOCOP,EEOFLNAM,EEOFORM,EEOLTH,EEOTX,EEOTX1,EEOLIN,EEOADD,EEOSEL Q
40IOF W:IO(0)'=IO @IOF Q
Note: See TracBrowser for help on using the repository browser.