source: WorldVistAEHR/trunk/r/VOLUNTARY_TIMEKEEPING-ABSV/ABSVDEDI.m@ 1311

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

initial load of WorldVistAEHR

File size: 1.0 KB
Line 
1ABSVDEDI ;EAP ALTOONA VOLUNTARY PACKAGE ;4/22/02 1:31 PM
2V ;;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:'%
7START S DIC="^ABS(503340," S DIC(0)="AEMNZQ",DIC("S")="I $P(^(0),""-"")=ABSV(""SITE"")" D ^DIC G:Y<0 END
8EDIT 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
12END ;;;;;;;;;;;;;;;
13 K DIC,DIC(0),DR,DIE,%
14 Q
15YESNO ;;YES/NO PROCESSOR UTILITY
16 ;;OPTIONAL VARIABLE %A WHICH EQUALS QUESTION TEXT
17 ;;RETURNS % : 1=YES, 2=NO, 3=^, 4=ANYTHING ELSE ASK AGAIN.
18ASKIT 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
Note: See TracBrowser for help on using the repository browser.