source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCBTPT.m@ 1271

Last change on this file since 1271 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1PRCBTPT ; GENERATED FROM 'PRCB TEMP REVIEW' PRINT TEMPLATE (#332) ; 10/27/00 ; (FILE 421.1, MARGIN=80)
2 G BEGIN
3CP G CP^DIO2
4C S DQ(C)=Y
5S S Q(C)=Y*Y+Q(C) S:L(C)>Y L(C)=Y S:H(C)<Y H(C)=Y
6P S N(C)=N(C)+1
7A S S(C)=S(C)+Y
8 Q
9D I Y=DITTO(C) S Y="" Q
10 S DITTO(C)=Y
11 Q
12N W !
13T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
14 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
15 Q
16DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
17 I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
18 W Y Q
19M D @DIXX
20 Q
21BEGIN ;
22 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
23 S I(0)="^PRCF(421.1,",J(0)=421.1
24 S X=$G(^PRCF(421.1,D0,0)) W ?0,$E($P(X,U,1),1,7)
25 S I(1)=2,J(1)=421.15 F D1=0:0 Q:$O(^PRCF(421.1,D0,2,D1))'>0 S D1=$O(^(D1)) D:$X>13 T Q:'DN D A1
26 G A1R
27A1 ;
28 S X=$G(^PRCF(421.1,D0,2,D1,0)) S DIWL=14,DIWR=53 D ^DIWP
29 Q
30A1R ;
31 D 0^DIWW K DIP K:DN Y
32 D ^DIWW
33 S I(1)=1,J(1)=421.14 F D1=0:0 Q:$O(^PRCF(421.1,D0,1,D1))'>0 X:$D(DSC(421.14)) DSC(421.14) S D1=$O(^(D1)) Q:D1'>0 D:$X>55 NX^DIWW D B1
34 G B1R
35B1 ;
36 D N:$X>0 Q:'DN W ?0 S DIP(1)=$S($D(^PRCF(421.1,D0,1,D1,0)):^(0),1:"") S X=$P(DIP(1),U,1),DIP(2)=X S X=" ",X=$P(DIP(2),X) K DIP K:DN Y W $E(X,1,7)
37 W ?9 S DIP(1)=$S($D(^PRCF(421.1,D0,1,D1,4)):^(4),1:"") S X=$P(DIP(1),U,6),X=X K DIP K:DN Y W X
38 S X=$G(^PRCF(421.1,D0,1,D1,0)) D N:$X>11 Q:'DN W ?11 S Y=$P(X,U,2),C=1 D A:Y]"" W:Y]"" $J(Y,12,2)
39 W ?25 S Y=$P(X,U,3),C=2 D A:Y]"" W:Y]"" $J(Y,12,2)
40 W ?39 S Y=$P(X,U,4),C=3 D A:Y]"" W:Y]"" $J(Y,12,2)
41 W ?53 S Y=$P(X,U,5),C=4 D A:Y]"" W:Y]"" $J(Y,12,2)
42 S X=$G(^PRCF(421.1,D0,1,D1,4)) W ?67 S Y=$P(X,U,5) W:Y]"" $J(Y,12,2)
43 Q
44B1R ;
45 K Y K DIWF
46 Q
47HEAD ;
48 W !,?0,"TRANSACTION"
49 W !,?0,"NUMBER",?13,"DESCRIPTION"
50 W !,?0,"CONTROL"
51 W !,?0,"POINT",?9,"R/NR"
52 W !,?67,"ANNUALIZATION"
53 W !,?16,"1ST QTR",?30,"2ND QTR",?44,"3RD QTR",?58,"4TH QTR",?74,"AMOUNT"
54 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.