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

BPSOSU5.m

Go to the documentation of this file.
  1. BPSOSU5 ;BHAM ISC/FCS/DRS/FLS - utilities ;03/07/08 10:39
  1. ;;1.0;E CLAIMS MGMT ENGINE;**1,7**;JUN 2004;Build 46
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. ;----------------------------------------------------------------------
  1. TOSCREEN() ;EP; True or False, is output to screen?
  1. I $E(IOST)'="C" Q 0
  1. I $D(ZTQUEUED) Q 0
  1. I IOT'="TRM",IOT'="VTRM" Q 0
  1. I $D(IO("S")) Q 0
  1. Q 1
  1. PRESSANY(NLF,TIMEOUT) ;EP
  1. I '$$TOSCREEN Q
  1. N X,I
  1. S NLF=+$G(NLF)
  1. S:+$G(TIMEOUT)=0 TIMEOUT=30
  1. F I=1:1:NLF W !
  1. I $$FREETEXT^BPSOSU2("Press ENTER to continue: ",,1,1,1,300)
  1. Q
  1. ;----------------------------------------------------------------------
  1. ;'Press the return key to continue of ^ to exit:' PROMPT
  1. ; See also $$EOPQ^BPSOSU8
  1. ENDPAGE(NLF,TIMEOUT) ;EP
  1. I '$$TOSCREEN Q 1
  1. N X,Y,I,DIR,DTOUT,DUOUT,DIRUT,DIROUT
  1. S NLF=+$G(NLF)
  1. F I=1:1:NLF W !
  1. S:+$G(TIMEOUT)>0 DIR("T")=TIMEOUT
  1. S DIR(0)="E"
  1. D ^DIR
  1. Q $S(Y="":-1,Y=0:"^",1:Y)
  1. ;----------------------------------------------------------------------
  1. ENDRPT() ; EP
  1. N RETVAL
  1. S RETVAL=$$ENDRPT^BPSOSU8() Q
  1. ;=====================================================================
  1. BYE ; EP
  1. ; Most routines should come here when they exit.
  1. ; Example: GOTO BYE^BPSOSU3
  1. ; IN: FLGSTOP 1=user wanted out
  1. ;
  1. I $G(FLGSTOP) W " < exit >" HANG 1
  1. D ^%ZISC
  1. Q
  1. ;=====================================================================
  1. BOTTOM(LINES) ;07/26/96
  1. ; IN: lines (optional) = lines from the bottom (default=1)
  1. ; This line-feeds down to the bottom of the screen
  1. ;
  1. Q:'$G(IOSL)
  1. N X1,X2,J S LINES=$S($D(LINES):LINES,1:1)
  1. S X1=($Y+2)
  1. I X1>(IOSL-LINES) DO
  1. . S X1=($Y+2)
  1. S X2=(IOSL-X1) F J=1:1:X2 W !
  1. Q
  1. ;=================================================================