source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCST5.m@ 975

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

initial load of WorldVistAEHR

File size: 2.4 KB
Line 
1PRCST5 ; GENERATED FROM 'PRCS APPROVE REQUEST' PRINT TEMPLATE (#299) ; 04/11/06 ; (FILE 410, 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(299,"DXS")
15 S I(0)="^PRCS(410,",J(0)=410
16 D N:$X>0 Q:'DN W ?0 W "CP TRANSACTION NUMBER: "
17 S X=$G(^PRCS(410,D0,0)) W ?25,$E($P(X,U,1),1,18)
18 W ?45 S X=$S('$D(D0):"",D0<0:"",1:D0),DIP(1)=$G(X) S X="IEN",X1=DIP(1) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
19 D N:$X>0 Q:'DN W ?0 W "TEMPORARY TRANSACTION: "
20 W ?25 S DIP(1)=$S($D(^PRCS(410,D0,0)):^(0),1:"") S X=$P(DIP(1),U,3),DIP(2)=$G(X) S X=1,DIP(3)=$G(X) S X=10,X=$E(DIP(2),DIP(3),X) K DIP K:DN Y W X
21 D N:$X>0 Q:'DN W ?0 W " "
22 D N:$X>0 Q:'DN W ?0 W "TRANSACTION TYPE: "
23 S X=$G(^PRCS(410,D0,0)) W ?20 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(1,Y)):DXS(1,Y),1:Y)
24 D N:$X>0 Q:'DN W ?0 W "FORM TYPE: "
25 W ?13 S Y=$P(X,U,4) S Y=$S(Y="":Y,$D(^PRCS(410.5,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
26 D N:$X>0 Q:'DN W ?0 W " "
27 D N:$X>0 Q:'DN W ?0 W "REQUESTOR: "
28 S X=$G(^PRCS(410,D0,7)) W ?13 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,35)
29 D N:$X>0 Q:'DN W ?0 W " "
30 D N:$X>0 Q:'DN W ?0 W "DATE OF REQUEST: "
31 S X=$G(^PRCS(410,D0,1)) W ?19 S Y=$P(X,U,1) D DT
32 D N:$X>0 Q:'DN W ?0 W "DATE REQUIRED: "
33 W ?17 S Y=$P(X,U,4) D DT
34 D N:$X>0 Q:'DN W ?0 W " "
35 D N:$X>0 Q:'DN W ?0 W "COMMITTED (ESTIMATED) COST: "
36 S X=$G(^PRCS(410,D0,4)) W ?30 S Y=$P(X,U,1) W:Y]"" $J(Y,11,2)
37 D N:$X>0 Q:'DN W ?0 W " "
38 D N:$X>0 Q:'DN W ?0 W "VENDOR: "
39 S X=$G(^PRCS(410,D0,2)) W ?10,$E($P(X,U,1),1,30)
40 D N:$X>0 Q:'DN W ?0 W " "
41 D N:$X>0 Q:'DN W ?0 W "ITEM #1 DESCRIPTION: "
42 S PRCST5X=$$GET1^DIQ(410.02,"1,"_DIPA("IEN")_",",1,"","PRCTXT","PRCERR") K DIP K:DN Y
43 W $S($D(PRCTXT(1)):$E(PRCTXT(1),1,30),1:"Item Description not available") K DIP K:DN Y
44 W ?0 K PRCST5X,PRCTXT,DIERR,PRCERR K DIP K:DN Y
45 K Y
46 Q
47HEAD ;
48 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.