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

BNIGVLS.m

Go to the documentation of this file.
  1. BNIGVLS ; IHS/CMI/LAB - gen ret show screens ;
  1. ;;1.0;BNI CPHD ACTIVITY DATASYSTEM;;DEC 20, 2006
  1. ;
  1. SHOWP ;EP
  1. I '$D(BNIGDONE) W:$D(IOF) @IOF I $G(BNIGUI) W "ZZZZZZZ",!
  1. W !!?6,"REPORT/OUTPUT Type:"
  1. I BNIGCTYP="S" W !,?12,"Report includes sub-totals by ",$G(BNIGSORV)," and total count." Q
  1. I BNIGCTYP="T" W !,?12,"Report will include total only." Q
  1. I BNIGCTYP="C" W !?12,"SEARCH TEMPLATE ",$P(^DIBT(BNIGSTMP,0),U)," will be created.",!?12,"Total record count will be displayed." Q
  1. I BNIGCTYP="F" W !?12,"FLAT file of Area Database formatted records will be created.",!?12,"File Name: ",BNIGFILE
  1. Q:'$D(^BNIRTMP(BNIGRPT,12))
  1. W !?12,"PRINT Items Selected:"
  1. S (BNIGI,BNIGTCW)=0 F S BNIGI=$O(^BNIRTMP(BNIGRPT,12,BNIGI)) Q:BNIGI'=+BNIGI S BNIGCRIT=$P(^BNIRTMP(BNIGRPT,12,BNIGI,0),U) D
  1. .W !?12,$P(^BNIGRI(BNIGCRIT,0),U)," - column width ",$P(^BNIRTMP(BNIGRPT,12,BNIGI,0),U,2) S BNIGTCW=BNIGTCW+$P(^(0),U,2)+2
  1. .I $Y>(BNIIOSL-5) D PAUSE^BNIGVL W:$D(IOF) @IOF I $G(BNIGUI) W "ZZZZZZZ",!
  1. W !?12,"Total Report width (including column margins - 2 spaces): ",BNIGTCW
  1. Q
  1. SHOW ;EP
  1. W:$D(IOF) @IOF I $G(BNIGUI) W "ZZZZZZZ",!
  1. I $D(BNIGDONE) S BNIGLHDR="REPORT SUMMARY" W ?((80-$L(BNIGLHDR))/2),BNIGLHDR,!
  1. W !!?6,"CPHAD Activity Record Selection Criteria:"
  1. W:BNIGTYPE["R" !?12," Date range: ",BNIGBDD," to ",BNIGEDD
  1. Q:'$D(^BNIRTMP(BNIGRPT,11))
  1. S BNIGI=0 F S BNIGI=$O(^BNIRTMP(BNIGRPT,11,BNIGI)) Q:BNIGI'=+BNIGI D
  1. .I $Y>(BNIIOSL-5) D PAUSE^BNIGVL W @IOF I $G(BNIGUI) W "ZZZZZZZ",!
  1. .W !?12,$P(^BNIGRI(BNIGI,0),U),": "
  1. .K BNIGQ
  1. .S BNIGY="",BNIGC=0 F S BNIGY=$O(^BNIRTMP(BNIGRPT,11,BNIGI,11,"B",BNIGY)) S BNIGC=BNIGC+1 Q:BNIGY=""!($D(BNIGQ)) W:BNIGC'=1 " ; " S X=BNIGY X:$D(^BNIGRI(BNIGI,2)) ^(2) W X
  1. K BNIGC,BNIGQ
  1. Q
  1. SHOWR ;EP
  1. I '$D(BNIGDONE) W:$D(IOF) @IOF I $G(BNIGUI) W "ZZZZZZZ",!
  1. W !!?6,"SORT Item:"
  1. I BNIGCTYP="T" W !?12,"Total only will be displayed, no sorting done.",! Q
  1. I BNIGCTYP="C" W !?12,"Search Template being created, no sorting done.",! Q
  1. Q:'$G(BNIGSORT)
  1. W !?12,"CPHAD Activity Records will be sorted by: ",$P(^BNIGRI(BNIGSORT,0),U),!
  1. Q