[613] | 1 | ABSVLS ;VAMC ALTOONA/CTB_CLH - MANAGE VOL LOG-IN TERMINAL ;4/4/00 8:46 AM
|
---|
| 2 | V ;;4.0;VOLUNTARY TIMEKEEPING;**3,13,15,18**;JULY 6, 1994
|
---|
| 3 | START ;START LOG-IN TERMINAL
|
---|
| 4 | D ^ABSVSITE G OUT:'%
|
---|
| 5 | K ^ABS("ABSVKILL",ABSV("SITE"))
|
---|
| 6 | D HOME^%ZIS
|
---|
| 7 | S ABSV("HOME_TERMINAL")=ION
|
---|
| 8 | I $P(ABSV("PARAM"),"^",12)=1 F D GETPRINT Q:OK!(POP)
|
---|
| 9 | I POP G OUT
|
---|
| 10 | S %ZIS("A")="Select Volunteer Log-in DEVICE: "
|
---|
| 11 | S ZTRTN="^ABSVL",ZTDESC="Boot Volunteer Log-in Terminal",ZTSAVE("DUZ*")="",ZTSAVE("ABSV*")="",ZTSAVE("DTIME")="" D ^ABSVQ
|
---|
| 12 | OUT K ABSV,OK,POP D HOME^%ZIS
|
---|
| 13 | QUIT
|
---|
| 14 | GETPRINT ;GET MEAL PRINTER
|
---|
| 15 | S OK=1
|
---|
| 16 | S %ZIS="NQ",%ZIS("A")="Select Meal Ticket DEVICE: ",%ZIS("B")=""
|
---|
| 17 | D ^%ZIS I POP D HOME^%ZIS QUIT
|
---|
| 18 | I ABSV("HOME_TERMINAL")=ION S X="You may not print meal tickets to your terminal.*" D MSG^ABSVQ S OK=0 QUIT
|
---|
| 19 | S ABSV("MEAL_PRINTER")=ION,OK=1 D HOME^%ZIS
|
---|
| 20 | QUIT
|
---|
| 21 | STOP ;STOP PROGRAM RUNNING BINGO BOARD
|
---|
| 22 | I '$D(ABSV("SITE")) D ^ABSVSITE Q:'%
|
---|
| 23 | W ! S ABSVXA="Do you want to stop all Auto Log-in Terminals for station "_ABSV("SITE"),ABSVXB="",%=1 D ^ABSVYN
|
---|
| 24 | I %<0 S MSG=" <Option Terminated - No Further Action Taken.*" D MSG^ABSVQ QUIT
|
---|
| 25 | I %=1 W !!!,*7," Volunteer Log-in Program will halt in 2 minutes." S ^ABS("ABSVKILL",ABSV("SITE"),"ALL")="" G XFER
|
---|
| 26 | D HOME^%ZIS
|
---|
| 27 | S ABSV("HOME_TERMINAL")=ION
|
---|
| 28 | F S %ZIS("A")="Select Device You Wish to Stop: ",%ZIS("B")="",%ZIS="N" D I $D(STOP) K STOP QUIT
|
---|
| 29 | . D ^%ZIS I POP!(ABSV("HOME_TERMINAL")=ION) S STOP="" QUIT
|
---|
| 30 | . S ^ABS("ABSVKILL",ABSV("SITE"),IO)="" D ^%ZISC S %ZIS("A")="Select Another Device: "
|
---|
| 31 | D ^%ZISC
|
---|
| 32 | XFER S ABSVXA="Do you want to transfer entries from Temporary Log to Daily Time File now",ABSVXB="",%=2 D ^ABSVYN I %'=1 K Z,ZZI,DA G OUT
|
---|
| 33 | S ABSVXA="Are you sure",ABSVXB="",%=1 D ^ABSVYN I %'=1 K Z,ZZI,DA G OUT
|
---|
| 34 | D ^ABSVNIT1
|
---|
| 35 | K Z,ZZI,DA,ABSV D OUT Q
|
---|
| 36 | HALT() ;
|
---|
| 37 | I $D(^ABS("ABSVKILL",$G(ABSV("SITE")),"ALL")) QUIT 1
|
---|
| 38 | I $D(^ABS("ABSVKILL",$G(ABSV("SITE")),IO)) QUIT 1
|
---|
| 39 | QUIT 0
|
---|