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

INHOV.m

Go to the documentation of this file.
  1. INHOV ; JMB; 24 Aug 95 14:05; Verify Background Processes
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;
  1. Q
  1. ;
  1. EN ;Main entry point
  1. ; NEW statements
  1. N %,%ZIS,ANS,DEF,PROMPT,RANGE,POP,INTASKED,INPAR
  1. N ZTDESC,ZTIO,ZTRTN,ZTSAVE
  1. ;
  1. D:'$G(DUZ) ENV^UTIL
  1. ;
  1. ;Get report parameters
  1. Q:'$$PAR
  1. ;
  1. ;IF Device selected is not the user own device, run this routine
  1. ; in the background.
  1. ;
  1. S INTASKED=0 ;Background flag
  1. ;Get device
  1. W ! K IOP S %ZIS("A")="QUEUE ON DEVICE: ",%ZIS("B")="",%ZIS="NQ" D ^%ZIS G:POP EXIT^INHOV1
  1. S IOP=ION_";"_IOST_";"_IOM_";"_IOSL
  1. ;User did not select their own device, force queue to taskman
  1. I IO=IO(0) S %ZIS="" D ^%ZIS I POP W *7,!,"Sorry, unable to find device..." G EXIT^INHOV1
  1. I IO'=IO(0) D G EXIT^INHOV1
  1. . S INTASKED=1,ZTDESC="GIS Verify Background Process",ZTIO=IOP,ZTRTN="EN^INHOV1"
  1. . F X="INPAR(","INTASKED" S ZTSAVE(X)=""
  1. . D ^%ZTLOAD
  1. ;
  1. ;Go to compilation and display module
  1. G EN^INHOV1
  1. Q
  1. ;
  1. PAR() ;User parameters
  1. ;OUTPUT:
  1. ; INPAR - array of report parameters
  1. ; function - user did not abort ( 0 - no ; 1 - yes )
  1. ;
  1. K INPAR
  1. S INPAR("DETAIL")=1 ;detail report
  1. S INPAR("REPAINT")=5 ;repaint frequency
  1. S INPAR("ITER")=100 ;number of report scans to run (printer)
  1. ;
  1. ;Quit if user accepts default parameters
  1. S %=$$RD^INHUTS1("Modify default parameters") Q:'% %'=U W !
  1. S INPAR("DETAIL")=$$RD^INHUTS1("Detailed Report",INPAR("DETAIL")) Q:INPAR("DETAIL")=U 0
  1. S INPAR("REPAINT")=$$RD^INHUTS1("Repaint Frequency (sec)",INPAR("REPAINT"),"0,3600") Q:INPAR("REPAINT")=U 0
  1. S INPAR("ITER")=$$RD^INHUTS1("Maximum number of iterations (printer only)",INPAR("ITER"),"0,999") Q:INPAR("ITER")=U 0
  1. Q 1