CIMGAGPH ;IHS/CMI/LAB - cover page for gpra [ 03/09/00 8:53 AM ]
;
;
W:$D(IOF) @IOF
W !!,$$CTR("Cover Page")
W !!,$$CTR("Aberdeen Area GPRA Report")
W !,$$CTR("Date Report Run: "_$$FMTE^XLFDT(DT))
W !,$$CTR("Site where Run: "_$P(^DIC(4,DUZ(2),0),U))
S X="Reporting Period: "_$$FMTE^XLFDT(CIMBD)_" to "_$$FMTE^XLFDT(CIMED) W !,$$CTR(X,80)
S X="Baseline Period: "_$$FMTE^XLFDT(CIM98B)_" to "_$$FMTE^XLFDT(CIM98E) W !,$$CTR(X,80)
W !!?10,"The following communities are included in this report:",!
NEW CIMX
S CIMX="" F S CIMX=$O(CIMTAX(CIMX)) Q:CIMX="" D
.I $Y>(IOSL-4) D EOP W:$D(IOF) @IOF
.W !?15,CIMX
.Q
K CIMX,CIMQUIT
Q
CTR(X,Y) ;EP - Center X in a field Y wide.
Q $J("",$S($D(Y):Y,1:IOM)-$L(X)\2)_X
;----------
EOP ;EP - End of page.
Q:$E(IOST)'="C"
Q:$D(ZTQUEUED)!'(IOT="TRM")!$D(IO("S"))
NEW DIR
K DIRUT,DFOUT,DLOUT,DTOUT,DUOUT
S DIR(0)="E" D ^DIR
Q
;----------
USR() ;EP - Return name of current user from ^VA(200.
Q $S($G(DUZ):$S($D(^VA(200,DUZ,0)):$P(^(0),U),1:"UNKNOWN"),1:"DUZ UNDEFINED OR 0")
;----------
CIMGAGPH ;IHS/CMI/LAB - cover page for gpra [ 03/09/00 8:53 AM ]
+1 ;
+2 ;
+3 IF $DATA(IOF)
WRITE @IOF
+4 WRITE !!,$$CTR("Cover Page")
+5 WRITE !!,$$CTR("Aberdeen Area GPRA Report")
+6 WRITE !,$$CTR("Date Report Run: "_$$FMTE^XLFDT(DT))
+7 WRITE !,$$CTR("Site where Run: "_$PIECE(^DIC(4,DUZ(2),0),U))
+8 SET X="Reporting Period: "_$$FMTE^XLFDT(CIMBD)_" to "_$$FMTE^XLFDT(CIMED)
WRITE !,$$CTR(X,80)
+9 SET X="Baseline Period: "_$$FMTE^XLFDT(CIM98B)_" to "_$$FMTE^XLFDT(CIM98E)
WRITE !,$$CTR(X,80)
+10 WRITE !!?10,"The following communities are included in this report:",!
+11 NEW CIMX
+12 SET CIMX=""
FOR
SET CIMX=$ORDER(CIMTAX(CIMX))
IF CIMX=""
QUIT
Begin DoDot:1
+13 IF $Y>(IOSL-4)
DO EOP
IF $DATA(IOF)
WRITE @IOF
+14 WRITE !?15,CIMX
+15 QUIT
End DoDot:1
+16 KILL CIMX,CIMQUIT
+17 QUIT
CTR(X,Y) ;EP - Center X in a field Y wide.
+1 QUIT $JUSTIFY("",$SELECT($DATA(Y):Y,1:IOM)-$LENGTH(X)\2)_X
+2 ;----------
EOP ;EP - End of page.
+1 IF $EXTRACT(IOST)'="C"
QUIT
+2 IF $DATA(ZTQUEUED)!'(IOT="TRM")!$DATA(IO("S"))
QUIT
+3 NEW DIR
+4 KILL DIRUT,DFOUT,DLOUT,DTOUT,DUOUT
+5 SET DIR(0)="E"
DO ^DIR
+6 QUIT
+7 ;----------
USR() ;EP - Return name of current user from ^VA(200.
+1 QUIT $SELECT($GET(DUZ):$SELECT($DATA(^VA(200,DUZ,0)):$PIECE(^(0),U),1:"UNKNOWN"),1:"DUZ UNDEFINED OR 0")
+2 ;----------