source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCBTCP.m@ 1240

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

initial load of WorldVistAEHR

File size: 1.8 KB
Line 
1PRCBTCP ; GENERATED FROM 'PRCB READER DISP' PRINT TEMPLATE (#333) ; 10/27/00 ; (FILE 421.6, MARGIN=80)
2 G BEGIN
3N W !
4T 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)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 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
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 I $D(DXS)<9 M DXS=^DIPT(333,"DXS")
15 S I(0)="^PRCF(421.6,",J(0)=421.6
16 S DIWF="W"
17 D N:$X>0 Q:'DN W ?0 W "Transfer Transaction Summary"
18 D N:$X>19 Q:'DN W ?19 W " "
19 D N:$X>8 Q:'DN W ?8 W "To Control Point: "
20 S X=$G(^PRCF(421.6,D0,0)) W ?28,$E($P(X,U,3),1,30)
21 D N:$X>6 Q:'DN W ?6 W "From Control Point: "
22 W ?28,$E($P(X,U,2),1,30)
23 D N:$X>8 Q:'DN W ?8 W "Transaction Date: "
24 W ?28 S Y=$P(X,U,5) D DT
25 D N:$X>17 Q:'DN W ?17 W "Quarter: "
26 W ?28 X DXS(1,9.3) S X=$S(DIP(3):DIP(4),DIP(5):DIP(6),DIP(7):DIP(8),DIP(9):X) S Y=X,X=DIP(2),X=X_Y K DIP K:DN Y W X
27 D N:$X>0 Q:'DN W ?0 W "Amount to be Transferred: "
28 W ?28 X DXS(2,9.2) S X=X_Y K DIP K:DN Y W X
29 D N:$X>20 Q:'DN W ?20 W "R/NR: "
30 S X=$G(^PRCF(421.6,D0,2)) W ?28 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
31 D N:$X>11 Q:'DN W ?11 W "Annualization: "
32 W ?28 X DXS(3,9.2) S X=X_Y K DIP K:DN Y W X
33 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "Description: "
34 S I(1)=1,J(1)=421.65 F D1=0:0 Q:$O(^PRCF(421.6,D0,1,D1))'>0 S D1=$O(^(D1)) D:$X>15 T Q:'DN D A1
35 G A1R
36A1 ;
37 S X=$G(^PRCF(421.6,D0,1,D1,0)) S DIWL=16,DIWR=78 D ^DIWP
38 Q
39A1R ;
40 D 0^DIWW K DIP K:DN Y
41 D ^DIWW K Y K DIWF
42 Q
43HEAD ;
44 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.