[613] | 1 | RMPFDX ;DDC/KAW-STATION ORDER INFORMATION [ 06/16/95 3:06 PM ]
|
---|
| 2 | ;;2.0;REMOTE ORDER/ENTRY SYSTEM;;JUN 16, 1995
|
---|
| 3 | RMPFSET I '$D(RMPFMENU) D MENU^RMPFUTL I '$D(RMPFMENU) W !!,$C(7),"*** A MENU SELECTION MUST BE MADE ***" Q ;;RMPFMENU must be defined
|
---|
| 4 | I '$D(RMPFSTAN)!'$D(RMPFDAT)!'$D(RMPFSYS) D ^RMPFUTL Q:'$D(RMPFSTAN)!'$D(RMPFDAT)!'$D(RMPFSYS)
|
---|
| 5 | W @IOF,!,"STATION ORDER INFORMATION" H 1
|
---|
| 6 | LIST S RMPFP="*",(RMPFORD,RMPFTP)="S" D ^RMPFDS1 K RMPFX D SEL:RMPFCX
|
---|
| 7 | G END:$D(RMPFOUT)!'$D(RMPFX)
|
---|
| 8 | START D DISP,CONT G END:$D(RMPFOUT),START:$D(RMPFX),LIST
|
---|
| 9 | END K RMPFO,RMPFP,RMPFORD,RMPFTP,RMPFX,RMPFCX,RMPFOUT,RMPFQUT,RMPFS
|
---|
| 10 | K T,J,L,Y,DFN,RMPFERR Q
|
---|
| 11 | CONT F I=1:1 Q:$Y>(IOSL-4) W !
|
---|
| 12 | W !!,"Type <P>rint,"
|
---|
| 13 | I $O(^RMPF(791810,RMPFX,201,0)) W " <M>essages,"
|
---|
| 14 | W " <RETURN> to continue or <^> to exit: " D READ K I
|
---|
| 15 | I $D(RMPFOUT) K Y Q
|
---|
| 16 | I $D(RMPFQUT) D MSG^RMPFDT Q
|
---|
| 17 | I Y="" K RMPFX Q
|
---|
| 18 | S Y=$E(Y,1) I "Pp"[Y D QUE K RMPFX Q
|
---|
| 19 | I "mM"[Y D ^RMPFDT4 K RMPFX Q
|
---|
| 20 | QUE W ! S %ZIS="NPQ" D ^%ZIS G END:POP I IO=IO(0),'$D(IO("S")) D DISP,CONT G QUEE
|
---|
| 21 | I $D(IO("S")) S %ZIS="",IOP=ION D ^%ZIS G DISP^RMPFDX
|
---|
| 22 | S ZTRTN="DISP^RMPFDX",ZTSAVE("RMPF*")="",ZTIO=ION
|
---|
| 23 | S ZTDESC="STATION ORDER INFO" D ^%ZTLOAD D HOME^%ZIS
|
---|
| 24 | W:$D(ZTSK) !!,"*** Request Queued ***" H 2
|
---|
| 25 | QUEE K %,%T,%ZIS,POP,Y1,ZTSK,ZTDESC,ZTRTN,ZTIO,ZTSAVE Q
|
---|
| 26 | READ K RMPFOUT,RMPFQUT
|
---|
| 27 | R Y:DTIME I '$T W $C(7) R Y:5 G READ:Y="." S:'$T Y=U
|
---|
| 28 | I Y?1"^".E S (RMPFOUT,Y)="" Q
|
---|
| 29 | S:Y?1"?".E (RMPFQUT,Y)=""
|
---|
| 30 | Q
|
---|
| 31 | DISP D ^RMPFDT1
|
---|
| 32 | Q
|
---|
| 33 | SEL W !!,"Select Order Number or <RETURN> to exit: " D READ
|
---|
| 34 | Q:$D(RMPFOUT)
|
---|
| 35 | SEL1 I $D(RMPFQUT) W !!,"Type the number of the order you wish to view or <RETURN> to continue." G SEL
|
---|
| 36 | Q:Y="" I '$D(RMPFS(Y)) S RMPFQUT="" G SEL1
|
---|
| 37 | S RMPFX=RMPFS(Y) Q
|
---|