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

ACDWRP50.m

Go to the documentation of this file.
ACDWRP50 ;IHS/ADC/EDE/KML - REPORT GENERATOR;
 ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
 ;Report 204
 I '$D(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL")) D ^ACDWK Q
 S (ACDGTOT,ACDGTOT1)=0
 D C S ACDP1="" F  D F Q:$D(DIRUT)  S ACDP1=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1)) Q:ACDP1=""  W !,$E(ACDP1,1,24) D P1 Q:$D(DIRUT)
 ;PUT TOTALS HERE
 D ^ACDWK Q
P1 ;
 S ACDP2="" F  S (ACDSTOT,ACDSTOT1)=0 D F Q:$D(DIRUT)  S ACDP2=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1,ACDP2)) Q:ACDP2=""  W ?26,$E(ACDP2,1,23) D P2 Q:$D(DIRUT)
 Q
P2 ;
 F ACDP3=0:0 S ACDP3=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1,ACDP2,ACDP3)) Q:'ACDP3  S ACDSTOT=ACDSTOT+1,ACDSTOT1=ACDSTOT1+^(ACDP3)
 S ACDGTOT=ACDGTOT+ACDSTOT,ACDGTOT1=ACDGTOT1+ACDSTOT1
 W ?40,ACDSTOT,?62,ACDSTOT1,! ;,?72,$J(ACDSTOT1/ACDSTOT,5,2),!
 Q
F ;Form feed
 I $Y+4>IOSL D F^ACDWUTL,C
 Q
C ;Column
 W !!,ACDC(1),?26,ACDC(2),?40,ACDC(3),?62,ACDC(4),!,ACDH(1),!
 Q