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

ADEFPC4.m

Go to the documentation of this file.
  1. ADEFPC4 ; IHS/HQT/MJL - F COMPLIANCE PT 4 ;03:06 PM [ 03/24/1999 9:04 AM ]
  1. ;;6.0;ADE;;APRIL 1999
  1. ;
  1. REP() ;EP
  1. ;Select report options
  1. ;Returns string containing 1 if AREA, 2 if SU and 3 if WSYS reports
  1. ;selected, otherwise null if none selected
  1. N ADEROPT
  1. RALL S ADEROPT=""
  1. S DIR(0)="Y"
  1. S DIR("A")="Print All Three (AREA, SERVICE UNIT, WATER SYSTEM) Summary Reports"
  1. S DIR("B")="YES"
  1. S DIR("?")="Answer YES to print all three summary reports."
  1. D ^DIR
  1. I $$HAT^ADEPQA() Q ADEROPT
  1. I Y S ADEROPT="123" Q ADEROPT
  1. RAREA S ADEROPT=$TR(ADEROPT,"1","")
  1. S DIR("A")="Include AREA Summary Report"
  1. S DIR("B")="YES"
  1. S DIR("?")="Answer YES to print the Area Summary Report."
  1. D ^DIR
  1. I $$HAT^ADEPQA() W ! G RALL
  1. I Y S ADEROPT=ADEROPT_1
  1. RSU S ADEROPT=$TR(ADEROPT,"2","")
  1. S DIR("A")="Include SERVICE UNIT Summary Report"
  1. S DIR("?")="Answer YES to print the Service Unit Summary Report."
  1. D ^DIR
  1. I $$HAT^ADEPQA() W ! G RAREA
  1. I Y S ADEROPT=ADEROPT_2
  1. RSY S ADEROPT=$TR(ADEROPT,"3","")
  1. S DIR("A")="Include WATER SYSTEM Summary Report"
  1. S DIR("?")="Answer YES to print the Water System Summary Report."
  1. D ^DIR
  1. I $$HAT^ADEPQA() W ! G RSU
  1. I Y S ADEROPT=ADEROPT_3
  1. Q ADEROPT