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

ECTPIND1.m

Go to the documentation of this file.
ECTPIND1 ;B'ham ISC/PTD-Individual PAID Inquiry - CONTINUED ;01/29/91 08:00
V ;;1.05;INTERIM MANAGEMENT SUPPORT;**8,10**;
EN1 S (TAL,TSL,TLWOP,TAA,TCE,TCU,TOT)=0,PGCT=1,QFLG="",$P(LN,"-",81)="",YP=(BYRPP-1) D HDR
YP F J=0:0 S YP=$O(^TMP($J,YP)) Q:'YP  S LOC=^TMP($J,YP) D WRTLN G:QFLG EXIT
WRTOT W !?14 F J=1:1:66 W "-"
 W !?4,"TOTAL",?14,$J(TAL,6,2),?24,$J(TSL,6,2),?34,$J(TLWOP,6,2),?44,$J(TAA,6,2),?54,$J(TCE,6,2),?64,$J(TCU,6,2),?74,$J(TOT,6,2),!!
 ;
 I $E(IOST)'="C" W @IOF
EXIT K %,%H,%I,%DT,%Y,%ZIS,AA,AA1,AA2,AL,AL1,AL2,BPP,BYR,BYRPP,C,CTE,CTE1,CTE2,CTU,CTU1,CTU2,DIC,DIR,DTOUT,EMPDA,EMPSN,EPP,EYR,EYRPP,FLG,FST,G,J,K,LN,LOC,LOC0,LOC1,LWOP,LWOP1,LWOP2,MS,MYP,NM,OT,OT1,OT2,PGCT,POP,QFLG,SL,SL1,SL2,SN,X,Y,YP
 K PC,FR,WH,TAA,TAL,TCE,TCU,TLWOP,TOT,TSL,ZTDESC,ZTRTN,ZTSAVE,ZTSK,^TMP($J) D ^%ZISC I IO="" S IOP="HOME" D ^%ZIS
 Q
 ;
HDR ;PRINT REPORT MAIN HEADER
 W @IOF,!?16,"INDIVIDUAL PAID DATA FOR "_NM,!?32,"SSN: "_$E(EMPSN,1,3)_"-"_$E(EMPSN,4,5)_"-"_$E(EMPSN,6,9),!?16,"FROM PAY PERIOD: "_BPP_" - '"_$E(BYR,2,3)_" TO PAY PERIOD: "_EPP_" - '"_$E(EYR,2,3)
 D NOW^%DTC S Y=$E(%,1,12) X ^DD("DD") W !!?45,Y,?70,"PAGE ",PGCT S PGCT=PGCT+1 W !!?57,"CT",?67,"CT",?75,"OVER",!,"PAY PERIOD",?17,"AL",?27,"SL",?36,"LWOP",?47,"AA",?55,"EARNED",?66,"USED",?75,"TIME",!,LN
 Q
 ;
WRTLN D:$Y+5>IOSL PRTCHK Q:QFLG  W !?1,$E(YP,4,5)_" - '"_$E(YP,2,3),?15,$J($P(LOC,"^"),5,2),?25,$J($P(LOC,"^",2),5,2),?35,$J($P(LOC,"^",3),5,2),?45,$J($P(LOC,"^",4),5,2),?55,$J($P(LOC,"^",5),5,2)
 W ?65,$J($P(LOC,"^",6),5,2),?75,$J($P(LOC,"^",7),5,2)
 S TAL=TAL+$P(LOC,"^"),TSL=TSL+$P(LOC,"^",2),TLWOP=TLWOP+$P(LOC,"^",3),TAA=TAA+$P(LOC,"^",4),TCE=TCE+$P(LOC,"^",5),TCU=TCU+$P(LOC,"^",6),TOT=TOT+$P(LOC,"^",7)
 Q
 ;
PRTCHK I $E(IOST)="C" S DIR(0)="E" D ^DIR I Y=0 S QFLG=1 Q
 D HDR
 Q
 ;