source: WorldVistAEHR/trunk/r/PAID-PRS/PRSAUTL.m@ 1710

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

initial load of WorldVistAEHR

File size: 1.1 KB
RevLine 
[613]1PRSAUTL ; HISC/REL-Utilities ;6/4/93 11:19
2 ;;4.0;PAID;**21**;Sep 21, 1995
3 S USR="",SSN=$P($G(^VA(200,DUZ,1)),"^",9)
4 I SSN="" W !!,*7,"Your SSN was not found in the New Person File!" S TLI="" Q
5 S USR=$O(^PRSPC("SSN",SSN,0))
6TL ; Select T&L from among those allowed
7 K DIC I PRSTLV>5 G P1
8 S Z1=$S(PRSTLV=2:"T",PRSTLV="3":"S",1:"*")
9 S TLI=$O(^PRST(455.5,"A"_Z1,DUZ,0)) I TLI<1 W !!,*7,"No T&L Units have been assigned to you!" Q
10 I $O(^PRST(455.5,"A"_Z1,DUZ,TLI))<1 G P2
11 S DIC("S")="I $D(^PRST(455.5,+Y,Z1,DUZ))"
12P1 S DIC="^PRST(455.5,",DIC(0)="AEQM",DIC("A")="Select T&L Unit: " W ! D ^DIC K DIC I "^"[X!$D(DTOUT) S TLI="" Q
13 G:Y<1 P1 S TLI=+Y
14P2 S TLE=$P($G(^PRST(455.5,TLI,0)),"^",1) Q
15QUE ; Queue a task
16 K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE S ZTRTN=PRSAPGM,ZTREQ="@"
17 S ZTSAVE("ZTREQ")="",ZTSAVE("PRSTLV")="",ZTDESC=$P(XQY0,"^",1)
18 F V3=1:1 S V1=$P(PRSALST,"^",V3) Q:V1="" S ZTSAVE(V1)=""
19 D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",! K V1,V3,PRSAPGM,PRSALST,ZTSK Q
20CONTINUE() ;ASK USER TO CONTINE
21 ;
22 S ANSWER=1
23 S DIR("A")="Continue"
24 S DIR(0)="Y",DIR("B")="NO" D ^DIR
25 I $D(DIRUT)!(Y=0) S ANSWER=0
26 Q ANSWER
Note: See TracBrowser for help on using the repository browser.