source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCSD11.m@ 1211

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

initial load of WorldVistAEHR

File size: 2.7 KB
RevLine 
[613]1PRCSD11 ;WISC/SAW-CONTROL POINT ACTIVITY 1358 DISPLAY ;4/21/93 08:36
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 U IO W @IOF S U="^",PRCSP=1 D NOW^%DTC S Y=% D DD^%DT W !,$P(^PRCS(410,DA,0),U),?34,Y,?73,"PAGE ",PRCSP S L="",$P(L,"_",IOM)="_" W !,L
5 D NEWP1 W !,"Requestor:",?34,"|Date Requested:",?62,"|Obligation No.:"
6 W ?34,"|" I $D(^PRCS(410,DA,1)) S Y=$P(^(1),U) I Y D DD^%DT W Y
7 W ?62,"|" I $D(^PRCS(410,DA,4)),$P(^(4),U,5)'="" S PRCSPO=$P(^(4),U,5) W ?65,PRC("SITE")_"-"_PRCSPO
8 W !,L W !,"Vendor:",?34,"|Contract Number:"
9 W ! I $D(^PRCS(410,DA,2)) S X=$P(^(2),U) I X]"" W $E(X,1,31)
10 W ?34,"|" K PRCSG I $D(^PRCS(410,DA,3)) S PRCSG=^(3) I $P(PRCSG,U,10)]"" W $P(PRCSG,U,10)
11 W !,L W !,"Name and Title Approving Off.:",?34,"|Signature:",?62,"|Date Signed:"
12 N PRSHLA S PRSHLA=^DD(410,42,0) K P W ! I $D(P1),$P(PRSHLA,"^",2)[200 S P=$P(P1,U,3) S X=$S($D(^VA(200,+P,20)):$P(^(20),U,2),1:"") W $E(X,1,30)
13 W ?34,"|" I $D(P),P,$P(P1,U,6)'="" W "/ES/"_$$DECODE^PRCSC1(DA)
14 W ?62,"|" I $D(P1) S Y=$S($P(P1,U,7):$P(P1,U,7),1:$P(P1,U,5)) I Y D DD^%DT W Y K Y
15 W ! I $D(P1) W $P(P1,U,4)
16 W ?34,"|",?62,"|" W !,L W !,"FUND CERTIFICATION: The supplies and services listed on this request are"
17 W !,"properly chargeable to the following allotments, the available balances of"
18 W !,"which are sufficient to cover the cost thereof, and funds have been obligated."
19 W !,L,!,"Appropriation & Acct. Symbols:",?34,"|Obligated By: ",?62,"|Date Obligated:"
20 S DIWL=0,DIWR=80,DIWF="" K ^UTILITY($J)
21 I $D(^PRCS(410,DA,8,0)) S X1=0 F I=1:1 S X1=$O(^PRCS(410,DA,8,X1)) Q:X1="" S X=^(X1,0) D DIWP^PRCUTL($G(DA))
22 S P=PRC("SITE") I $D(PRCSG) S:$P(PRCSG,U,2)]"" P=P_"-"_$P(PRCSG,U,2) S P=P_"-"_$P(PRC("CP")," ") S:$P(PRCSG,U,3)]"" P=P_"-"_$P($P(PRCSG,U,3)," ") S:$P(PRCSG,U,6)]"" P=P_"-"_+$P(PRCSG,U,6)
23 W !,P,?34,"|" K PRCSG I $D(^PRCS(410,DA,4)) S PRCSG=^(4) I $P(PRCSG,U,9),$P(PRCSG,U,10)'="" W "/ES/"_$$DECODE^PRCSC2(DA)
24 W ?62,"|" I $D(PRCSG) S Y=$P(PRCSG,U,4) I Y D DD^%DT W Y
25 W !,L D HOLD G EXIT:Z3=U D NEWP
26 W !,"Purpose:" I $D(^UTILITY($J,"W",DIWL)) S Z=^UTILITY($J,"W",DIWL) F I=1:1:Z W !,^UTILITY($J,"W",DIWL,I,0) I IOSL-$Y<3 W !,L D HOLD Q:Z3=U D NEWP
27 G EXIT:Z3=U W !,L I IOSL-$Y<6 D HOLD G EXIT:Z3=U D NEWP
28 D ^PRCSD111 I Z3'=U D HOLD
29EXIT K %DT,CT,UT,P1,P,PRCSP,PRCSA,PRCSG,PRCSPO,X,X1,Y,DIWL,DIWR,DIWF,Z,Z1,Z2,Z3,DA,I,L,^UTILITY($J) D:$D(ZTSK) KILL^%ZTLOAD Q
30NEWP ;PRINT HEADER FOR NEW PAGE
31 W @IOF S PRCSP=PRCSP+1 W !,$P(^PRCS(410,DA,0),U) W:$D(PRCSPO) ?35,PRC("SITE")_"-"_PRCSPO W ?73,"PAGE ",PRCSP W !,L
32NEWP1 W !,?11,"ESTIMATED MISCELLANEOUS OBLIGATION OR CHANGE IN OBLIGATION" W !,L
33 Q
34HOLD S Z3="" W !,"Press return to continue, ""^"" to exit: " R Z3:DTIME S:'$T Z3=U Q
Note: See TracBrowser for help on using the repository browser.