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

BRNRUS.m

Go to the documentation of this file.
  1. BRNRUS ; IHS/OIT/LJF - SHOW LOGIC SO FAR
  1. ;;2.0;RELEASE OF INFO SYSTEM;*1*;APR 10, 2003
  1. ;IHS/OIT/LJF 10/25/2007 PATCH 1 Added routine
  1. ;
  1. SHOWP ;EP - display print item selections
  1. NEW BRNI
  1. I '$D(BRNDONE) W:$D(IOF) @IOF
  1. W !!?6,"REPORT/OUTPUT Type:"
  1. I BRNCTYP="S" W !,?12,"Report includes sub-totals by ",$G(BRNSORV)," and total count." Q
  1. I BRNCTYP="T" W !,?12,"Report will include total only." Q
  1. Q:'$D(^BRNRPT(BRNRPT,12))
  1. W !?12,"PRINT Items Selected:"
  1. S (BRNI,BRNTCW)=0 F S BRNI=$O(^BRNRPT(BRNRPT,12,BRNI)) Q:BRNI'=+BRNI S BRNCRIT=$P(^BRNRPT(BRNRPT,12,BRNI,0),U) D
  1. . W !?12,$P(^BRNSORT(BRNCRIT,0),U)," - column width ",$P(^BRNRPT(BRNRPT,12,BRNI,0),U,2)
  1. . S BRNTCW=BRNTCW+$P(^BRNRPT(BRNRPT,12,BRNI,0),U,2)+2
  1. . I $Y>(IOSL-5) D PAUSE^BRNU W:$D(IOF) @IOF
  1. W !?12,"Total Report width (including column margins - 2 spaces): ",BRNTCW
  1. Q
  1. ;
  1. SHOW ;EP - display selection criteria so far
  1. NEW X,BRNI,BRNC,BRNQ,BRNY,BRNC
  1. W:$D(IOF) @IOF
  1. I $D(BRNDONE) S X="REPORT SUMMARY" W ?((80-$L(X))/2),X,!
  1. W !!?6,"Disclosure Request Selection Criteria:"
  1. W !?12,"Request Date range: ",BRNBDD," to ",BRNEDD
  1. Q:'$D(^BRNRPT(BRNRPT,11))
  1. ;
  1. S BRNI=0 F S BRNI=$O(^BRNRPT(BRNRPT,11,BRNI)) Q:BRNI'=+BRNI D
  1. . I $Y>(IOSL-5) D PAUSE^BRNU W @IOF
  1. . W !?12,$P(^BRNSORT(BRNI,0),U),": "
  1. . S BRNY="",BRNC=0
  1. . F S BRNY=$O(^BRNRPT(BRNRPT,11,BRNI,11,"B",BRNY)) S BRNC=BRNC+1 Q:BRNY=""!($D(BRNQ)) D
  1. . . W:BRNC'=1 " ; " S X=BRNY X:$D(^BRNSORT(BRNI,2)) ^(2) W X
  1. Q
  1. ;
  1. SHOWR ;EP - display sorting criteria
  1. I '$D(BRNDONE) W:$D(IOF) @IOF
  1. W !!?6,"SORTING Item:"
  1. I BRNCTYP="T" W !?12,"Total only will be displayed, no sorting done.",! Q
  1. I BRNCTYP="C" W !?12,"Search Template being created, no sorting done.",! Q
  1. Q:'$G(BRNSORT)
  1. W !?12,"Disclosure requests will be sorted by: ",$P(^BRNSORT(BRNSORT,0),U),!
  1. Q