[613] | 1 | ABSVDEDI ;EAP ALTOONA VOLUNTARY PACKAGE ;4/22/02 1:31 PM
|
---|
| 2 | V ;;4.0;VOLUNTARY TIMEKEEPING;**25,26,29**;JULY 6, 1994
|
---|
| 3 | ;ROUTINE ASSOCIATED WITH OPTION - EDIT AN EXISTING DONATION
|
---|
| 4 | N DIC,DA,DIE,DR,X,Y,PLTR,%
|
---|
| 5 | I '$D(DUZ) W !,"DUZ VARIABLE NOT DEFINED. CALL IRM!" G END
|
---|
| 6 | D ^ABSVSITE Q:'%
|
---|
| 7 | START S DIC="^ABS(503340," S DIC(0)="AEMNZQ",DIC("S")="I $P(^(0),""-"")=ABSV(""SITE"")" D ^DIC G:Y<0 END
|
---|
| 8 | EDIT S DIE=DIC,DA=+Y,DR="[ABSV DONATIONS ENTER]" D ^DIE I $D(Y) G END
|
---|
| 9 | I $G(PLTR)=1 D X^ABSVDPNT
|
---|
| 10 | S ABSVXA="Do you need to edit another entry",%=2 D ^ABSVYN I %=1 G START
|
---|
| 11 | QUIT
|
---|
| 12 | END ;;;;;;;;;;;;;;;
|
---|
| 13 | K DIC,DIC(0),DR,DIE,%
|
---|
| 14 | Q
|
---|
| 15 | YESNO ;;YES/NO PROCESSOR UTILITY
|
---|
| 16 | ;;OPTIONAL VARIABLE %A WHICH EQUALS QUESTION TEXT
|
---|
| 17 | ;;RETURNS % : 1=YES, 2=NO, 3=^, 4=ANYTHING ELSE ASK AGAIN.
|
---|
| 18 | ASKIT S:'$D(%A) %A="Do you want to EDIT another one"
|
---|
| 19 | S %B="Enter 'Yes' or 'No'. Enter '^' to Quit."
|
---|
| 20 | W !,%A_"? (Y/N) // " R ANS:$S($D(DTIME):DTIME,1:300) I (ANS["?")!(ANS="") W *7,!,%B G ASKIT
|
---|
| 21 | I ANS["^" S %=3 Q
|
---|
| 22 | S ANS=$E(ANS,1) S %=$S(ANS="Y":1,ANS="y":1,ANS="N":2,ANS="n":2,1:4) I ANS=4 G ASKIT
|
---|
| 23 | K ANS,%A,%B Q
|
---|