[613] | 1 | DVBCAMRO ;ALB ISC/THM-REGIONAL OFFICE 2507 AMIS REPORT ; 9/28/91 6:39 AM
|
---|
| 2 | ;;2.7;AMIE;**17**;Apr 10, 1995
|
---|
| 3 | ;
|
---|
| 4 | SETUP S UPDATE="N",PREVMO=$P(^DVB(396.1,1,0),U,11),HD="REGIONAL OFFICE 2507 AMIS REPORT" I '$D(DT) S X="T" D ^%DT S DT=Y
|
---|
| 5 | S DVBCDT(0)=$$FMTE^XLFDT(DT,"5DZ")
|
---|
| 6 | D HOME^%ZIS S FF=IOF
|
---|
| 7 | F JI="3DAYSCH","30DAYEX","PENDADJ" S TOT(JI)=0
|
---|
| 8 | F JI="INSUFF","SENT","INCOMPLETE","DAYS","COMPLETED" S TOT(JI)=0
|
---|
| 9 | F JI="P90","P121","P151","P181","P365","P366" S TOT(JI)=0
|
---|
| 10 | ;
|
---|
| 11 | EN W @IOF,!?(IOM-$L(HD)\2),HD,!!!
|
---|
| 12 | S %DT(0)=-DT,%DT="AE",%DT("A")="Enter STARTING DATE: " D ^%DT G:Y<0 EXIT S BDATE1=Y,BDATE=Y-.1
|
---|
| 13 | S %DT="AE",%DT("A")=" and ENDING DATE: " D ^%DT G:Y<0 EN S EDATE1=Y,EDATE=Y+.5
|
---|
| 14 | I EDATE1<BDATE1 W *7,!!,"Invalid date sequence - ending date is before starting date.",!! H 3 G EN
|
---|
| 15 | W !!,"When selecting regional offices you may enter individual",!,"station name or station number.",!!
|
---|
| 16 | S DIC("A")="Select REGIONAL OFFICE NUMBER: ",DIC(0)="AEQM",DIC="^DIC(4," D ^DIC G:X=""!(X=U) EXIT I +Y>0 S DA=+Y,RONUM=$S($D(^DIC(4,DA,99)):$P(^(99),U,1),1:"000"),RONAME=$P(Y,U,2)
|
---|
| 17 | I +Y<0 G EXIT
|
---|
| 18 | ;
|
---|
| 19 | ASK K %DT S SBULL="Y" W !!!,"Want to send a bulletin when processing is done" S %=1 D YN^DICN G:$D(DTOUT)!(%<0) EXIT
|
---|
| 20 | I $D(%Y) I %Y["?" W !!,"Enter Y to send the bulletin to selected recipients or N not to send it at all.",!! G ASK
|
---|
| 21 | I %'=1 S SBULL="N"
|
---|
| 22 | I SBULL="Y" D BULL^DVBCAMR2
|
---|
| 23 | W ! S %ZIS="AEQ",%ZIS("B")="0;P-OTHER",%ZIS("A")="Output device: " D ^%ZIS G:POP EXIT
|
---|
| 24 | I $D(IO("Q")) S ZTRTN="GO^DVBCAMR2",ZTDESC="2507 Amis Report",ZTIO=ION F I="UPDATE","RO*","PREVMO","BDATE*","TOT*","EDATE*","SBULL","DUZ","DVBCDT(0)","XM*" S ZTSAVE(I)=""
|
---|
| 25 | I $D(IO("Q")) D ^%ZTLOAD W:$D(ZTSK) !!,"Request queued",!! H 1 K ZTSK G EXIT
|
---|
| 26 | G GO^DVBCAMR2
|
---|
| 27 | ;
|
---|
| 28 | EXIT K PREVMO,UPDATE G KILL^DVBCUTIL
|
---|