Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: BRNRUP2

BRNRUP2.m

Go to the documentation of this file.
  1. BRNRUP2 ; IHS/OIT/LJF - CONTINUED REPORT UTILITY PRINT LOGIC
  1. ;;2.0;RELEASE OF INFO SYSTEM;*1*;APR 10, 2003
  1. ;IHS/OIT/LJF 10/25/2007 PATCH 1 Added this routine
  1. ;
  1. DONE ;EP
  1. I $D(ZTQUEUED),BRNCTYP="F" G DONE1
  1. D TIME
  1. DONE1 ;
  1. K ^XTMP("BRNVL",BRNJOB,BRNBT),^XTMP("BRNFLAT",$J)
  1. D DEL^BRNRU
  1. D EN^XBVK("BRN")
  1. D EN^XBVK("VALM")
  1. Q
  1. ;
  1. I 'BRNPG G HEAD1
  1. I $E(IOST)="C",IO=IO(0) W ! S DIR(0)="EO" D ^DIR K DIR I Y=0!(Y="^")!($D(DTOUT)) S BRNQUIT="" Q
  1. ;
  1. HEAD1 ;EP
  1. I BRNCTYP="F",$D(ZTQUEUED) Q
  1. W:$D(IOF) @IOF S BRNPG=BRNPG+1
  1. I $G(BRNTITL)="" S BRNTEXT="ROI DISCLOSURE REQUEST LISTING",BRNLENG=$L(BRNTEXT) W !?((BRNTCW-BRNLENG)/2),BRNTEXT,?(BRNTCW-8),"Page ",BRNPG
  1. I $G(BRNTITL)]"" S BRNLENG=$L(BRNTITL) W !?((BRNTCW-BRNLENG)/2),BRNTITL,?(BRNTCW-8),"Page ",BRNPG
  1. S BRNLENG=46 S:BRNTCW<BRNLENG BRNLENG=BRNTCW W !?((BRNTCW-BRNLENG)/2),"Request Dates: ",BRNBDD," and ",BRNEDD,!
  1. I BRNCTYP="S" S BRNLENG=$L(BRNSORV)+23 W !?((BRNTCW-BRNLENG)/2),"ROI SUB-TOTALS BY: ",BRNSORV,!
  1. I $G(BRNSPAG) S BRNLENG=$L(BRNSORV)+$L(BRNSRTR)+2 S:BRNTCW<BRNLENG BRNLENG=BRNTCW W !?((BRNTCW-BRNLENG)/2),BRNSORV,": ",BRNSRTR,!
  1. I BRNHEAD]"" W !,BRNHEAD,!
  1. W BRNDASH,!
  1. I BRNCTYP="S" W !,BRNSORV,":"
  1. Q
  1. ;
  1. TIME ;ENTRY POINT - END OF REPORT TIME DISPLAY
  1. I $D(BRNET) S BRNTS=(86400*($P(BRNET,",")-$P(BRNBT,",")))+($P(BRNET,",",2)-$P(BRNBT,",",2)),BRNH=$P(BRNTS/3600,".") S:BRNH="" BRNH=0 D
  1. . S BRNTS=BRNTS-(BRNH*3600),BRNM=$P(BRNTS/60,".") S:BRNM="" BRNM=0 S BRNTS=BRNTS-(BRNM*60),BRNS=BRNTS
  1. . W !!,"RUN TIME (H.M.S): ",BRNH,".",BRNM,".",BRNS
  1. I $E(IOST)="C",IO=IO(0) S DIR(0)="EO",DIR("A")="End of report. HIT RETURN" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. W:$D(IOF) @IOF
  1. K BRNTS,BRNS,BRNH,BRNM,BRNET
  1. Q