PRCE58P0 ;WISC/SAW/LDB-DISPLAY 1358 FORM CONT. 19-FEB-92 ;6/7/11 16:26
V ;;5.1;IFCAP;**148,158,161**;Oct 20, 2000;Build 19
;Per VHA Directive 2004-038, this routine should not be modified.
PRCSD11 ;Entry for print
U IO W @IOF S U="^",PRCSP=1 D NOW^%DTC S Y=% D DD^%DT W !,$P(TRNODE(0),U),?34,Y,?73,"PAGE ",PRCSP S L="",$P(L,"_",IOM)="_" W !,L
D NEWP1 W !,"Originator of Request: " I $G(TRNODE(14)),TRNODE(14)'="" W $P($G(^VA(200,+TRNODE(14),0)),"^"),!
W !,"Requestor:",?34,"|Date Requested:",?62,"|Obligation No.:"
W ! K P1 I $D(TRNODE(7)) S P1=TRNODE(7) I +P1 S X=$P($G(^VA(200,+P1,0)),U) W X
W ?34,"|" I $D(TRNODE(1)) S Y=$P(TRNODE(1),U) I Y D DD^%DT W Y
W ?62,"|" I $D(TRNODE(4)),$P(TRNODE(4),U,5)'="" S PRCSPO=$P(TRNODE(4),U,5) W ?65,PRC("SITE")_"-"_PRCSPO
W !,L W !,"Vendor:",?34,"|Contract Number:"
W ! I $D(TRNODE(2)) S X=$P(TRNODE(2),U) I X]"" W $E(X,1,31)
W ?34,"|" K PRCSG I $D(TRNODE(3)) S PRCSG=TRNODE(3) I $P(PRCSG,U,10)]"" W $P(PRCSG,U,10)
W !,L W !,"Name and Title Approving Off.:",?41,"|Signature:",?62,"|Date Signed:"
K P W ! I $D(P1) S P=$P(P1,U,3) S X=$S($D(^VA(200,+P,20)):$P(^(20),U,2),1:"") W $E(X,1,30)
W ?41,"|" I $D(P),P,$P(P1,U,6)'="" S X=$$DECODE^PRCSC1(DA) W "/ES/"_$E(X,1,23)
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
W ! I $D(P1) W $P(P1,U,4)
W ?41,"|",?62,"|" W !,L W !,"FUND CERTIFICATION: The supplies and services listed on this request are"
W !,"properly chargeable to the following allotments, the available balances of"
W !,"which are sufficient to cover the cost thereof, and funds have been obligated."
W !,L D HOLD G EXIT:Z3=U D NEWP
W !,"Appropriation & Acct. Symbols:",?41,"|Obligated By: ",?62,"|Date Obligated:"
TST S DIWL=0,DIWR=80,DIWF="" K ^UTILITY($J)
I $D(TRNODE(8)) S X1=0 F I=1:1 S X1=$O(TRNODE(8,X1)) Q:X1="" S X=TRNODE(8,X1),PRCSDAA=DA D DIWP^PRCUTL($G(DA)) S DA=PRCSDAA K PRCSDAA
;PRC*5.1*161 get control point from PRCSG as PRC("CP") will not exist from obligating print call
S P=PRC("SITE") I $D(PRCSG) S:$P(PRCSG,U,2)]"" P=P_"-"_$P(PRCSG,U,2) S P=P_"-"_+$P(PRCSG,U) S:$P(PRCSG,U,3)]"" P=P_"-"_$P($P(PRCSG,U,3)," ") S:$P(PRCSG,U,6)]"" P=P_"-"_+$P(PRCSG,U,6)
N PROJ I $D(TRNODE(3)),$P($G(TRNODE(3)),"^",12)'="" S PROJ=$P(TRNODE(3),"^",12),P=P_" "_PROJ
W !,P,?41,"|" K PRCSG I $D(TRNODE(4)) S PRCSG=TRNODE(4) I $P(PRCSG,U,9),$P(PRCSG,U,10)'="" S X=$$DECODE^PRCSC2(DA) W "/ES/"_$E(X,1,27)
W ?62,"|" I $D(PRCSG) S Y=$P(PRCSG,U,4) I Y D DD^%DT W Y
W !,L
W !,"AUTHORITY: " I $P($G(TRNODE(11)),U,4) W $P($G(^PRCS(410.9,$P(TRNODE(11),U,4),0)),U)
W:$P($G(TRNODE(11)),U,5) ?40,"SUB: ",$P($G(^PRCS(410.9,$P(TRNODE(11),U,5),0)),U)
W !,"SERVICE START DATE: ",$$FMTE^XLFDT($P($G(TRNODE(1)),U,6),"2DZ"),?40,"SERVICE END DATE: ",$$FMTE^XLFDT($P($G(TRNODE(1)),U,7),"2DZ")
W !,L,!,"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
G EXIT:Z3=U W !,L I IOSL-$Y<14 D HOLD G EXIT:Z3=U D NEWP
D ^PRCE58P1 I Z3'=U D HOLD
EXIT K %DT,CT,UT,P1,P,PRCSP,PRCSA,PRCSA1,PRCSA2,PRCSG,PRCSPO,PRCSY,TRNODE,X,X1,Y,DIWL,DIWR,DIWF,Z,Z1,Z2,Z3,DA,I,L,^UTILITY($J) D:$D(ZTQUEUED) KILL^%ZTLOAD Q
NEWP ;PRINT HEADER FOR NEW PAGE
W @IOF S PRCSP=PRCSP+1 W !,$P(TRNODE(0),U) W:$D(PRCSPO) ?35,PRC("SITE")_"-"_PRCSPO W ?73,"PAGE ",PRCSP W !,L
NEWP1 N PRCX S PRCX=$$AUTHR^PRCEMOA($P($G(TRNODE(11)),U,4,5))
W !,"1358 OBLIGATION OR CHANGE" W:$P(PRCX,U)]"" ":",$P(PRCX,U)
W:$P(PRCX,U,2)]"" !,?5,$P(PRCX,U,2) W !,L
Q
HOLD R !,"Press return to continue, ""^"" to exit: ",Z3:DTIME S:'$T Z3=U Q
W2 W !!,"Enter information for another report or an uparrow to return to the menu.",! Q
W1 W !!,"You are not an authorized control point user.",!,"Contact your control point official." R X:5 G EXIT
W I $E(IOST,1)="C" W !!,"Press return to continue: " R X:DTIME
I IO'=IO(0) D ^%ZISC
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCE58P0 3907 printed Oct 16, 2024@18:01:54 Page 2
PRCE58P0 ;WISC/SAW/LDB-DISPLAY 1358 FORM CONT. 19-FEB-92 ;6/7/11 16:26
V ;;5.1;IFCAP;**148,158,161**;Oct 20, 2000;Build 19
+1 ;Per VHA Directive 2004-038, this routine should not be modified.
PRCSD11 ;Entry for print
+1 USE IO
WRITE @IOF
SET U="^"
SET PRCSP=1
DO NOW^%DTC
SET Y=%
DO DD^%DT
WRITE !,$PIECE(TRNODE(0),U),?34,Y,?73,"PAGE ",PRCSP
SET L=""
SET $PIECE(L,"_",IOM)="_"
WRITE !,L
+2 DO NEWP1
WRITE !,"Originator of Request: "
IF $GET(TRNODE(14))
IF TRNODE(14)'=""
WRITE $PIECE($GET(^VA(200,+TRNODE(14),0)),"^"),!
+3 WRITE !,"Requestor:",?34,"|Date Requested:",?62,"|Obligation No.:"
+4 WRITE !
KILL P1
IF $DATA(TRNODE(7))
SET P1=TRNODE(7)
IF +P1
SET X=$PIECE($GET(^VA(200,+P1,0)),U)
WRITE X
+5 WRITE ?34,"|"
IF $DATA(TRNODE(1))
SET Y=$PIECE(TRNODE(1),U)
IF Y
DO DD^%DT
WRITE Y
+6 WRITE ?62,"|"
IF $DATA(TRNODE(4))
IF $PIECE(TRNODE(4),U,5)'=""
SET PRCSPO=$PIECE(TRNODE(4),U,5)
WRITE ?65,PRC("SITE")_"-"_PRCSPO
+7 WRITE !,L
WRITE !,"Vendor:",?34,"|Contract Number:"
+8 WRITE !
IF $DATA(TRNODE(2))
SET X=$PIECE(TRNODE(2),U)
IF X]""
WRITE $EXTRACT(X,1,31)
+9 WRITE ?34,"|"
KILL PRCSG
IF $DATA(TRNODE(3))
SET PRCSG=TRNODE(3)
IF $PIECE(PRCSG,U,10)]""
WRITE $PIECE(PRCSG,U,10)
+10 WRITE !,L
WRITE !,"Name and Title Approving Off.:",?41,"|Signature:",?62,"|Date Signed:"
+11 KILL P
WRITE !
IF $DATA(P1)
SET P=$PIECE(P1,U,3)
SET X=$SELECT($DATA(^VA(200,+P,20)):$PIECE(^(20),U,2),1:"")
WRITE $EXTRACT(X,1,30)
+12 WRITE ?41,"|"
IF $DATA(P)
IF P
IF $PIECE(P1,U,6)'=""
SET X=$$DECODE^PRCSC1(DA)
WRITE "/ES/"_$EXTRACT(X,1,23)
+13 WRITE ?62,"|"
IF $DATA(P1)
SET Y=$SELECT($PIECE(P1,U,7):$PIECE(P1,U,7),1:$PIECE(P1,U,5))
IF Y
DO DD^%DT
WRITE Y
KILL Y
+14 WRITE !
IF $DATA(P1)
WRITE $PIECE(P1,U,4)
+15 WRITE ?41,"|",?62,"|"
WRITE !,L
WRITE !,"FUND CERTIFICATION: The supplies and services listed on this request are"
+16 WRITE !,"properly chargeable to the following allotments, the available balances of"
+17 WRITE !,"which are sufficient to cover the cost thereof, and funds have been obligated."
+18 WRITE !,L
DO HOLD
if Z3=U
GOTO EXIT
DO NEWP
+19 WRITE !,"Appropriation & Acct. Symbols:",?41,"|Obligated By: ",?62,"|Date Obligated:"
TST SET DIWL=0
SET DIWR=80
SET DIWF=""
KILL ^UTILITY($JOB)
+1 IF $DATA(TRNODE(8))
SET X1=0
FOR I=1:1
SET X1=$ORDER(TRNODE(8,X1))
if X1=""
QUIT
SET X=TRNODE(8,X1)
SET PRCSDAA=DA
DO DIWP^PRCUTL($GET(DA))
SET DA=PRCSDAA
KILL PRCSDAA
+2 ;PRC*5.1*161 get control point from PRCSG as PRC("CP") will not exist from obligating print call
+3 SET P=PRC("SITE")
IF $DATA(PRCSG)
if $PIECE(PRCSG,U,2)]""
SET P=P_"-"_$PIECE(PRCSG,U,2)
SET P=P_"-"_+$PIECE(PRCSG,U)
if $PIECE(PRCSG,U,3)]""
SET P=P_"-"_$PIECE($PIECE(PRCSG,U,3)," ")
if $PIECE(PRCSG,U,6)]""
SET P=P_"-"_+$PIECE(PRCSG,U,6)
+4 NEW PROJ
IF $DATA(TRNODE(3))
IF $PIECE($GET(TRNODE(3)),"^",12)'=""
SET PROJ=$PIECE(TRNODE(3),"^",12)
SET P=P_" "_PROJ
+5 WRITE !,P,?41,"|"
KILL PRCSG
IF $DATA(TRNODE(4))
SET PRCSG=TRNODE(4)
IF $PIECE(PRCSG,U,9)
IF $PIECE(PRCSG,U,10)'=""
SET X=$$DECODE^PRCSC2(DA)
WRITE "/ES/"_$EXTRACT(X,1,27)
+6 WRITE ?62,"|"
IF $DATA(PRCSG)
SET Y=$PIECE(PRCSG,U,4)
IF Y
DO DD^%DT
WRITE Y
+7 WRITE !,L
+8 WRITE !,"AUTHORITY: "
IF $PIECE($GET(TRNODE(11)),U,4)
WRITE $PIECE($GET(^PRCS(410.9,$PIECE(TRNODE(11),U,4),0)),U)
+9 if $PIECE($GET(TRNODE(11)),U,5)
WRITE ?40,"SUB: ",$PIECE($GET(^PRCS(410.9,$PIECE(TRNODE(11),U,5),0)),U)
+10 WRITE !,"SERVICE START DATE: ",$$FMTE^XLFDT($PIECE($GET(TRNODE(1)),U,6),"2DZ"),?40,"SERVICE END DATE: ",$$FMTE^XLFDT($PIECE($GET(TRNODE(1)),U,7),"2DZ")
+11 WRITE !,L,!,"Purpose: "
+12 IF $DATA(^UTILITY($JOB,"W",DIWL))
SET Z=^UTILITY($JOB,"W",DIWL)
FOR I=1:1:Z
WRITE !,^UTILITY($JOB,"W",DIWL,I,0)
IF IOSL-$Y<3
WRITE !,L
DO HOLD
if Z3=U
QUIT
DO NEWP
+13 if Z3=U
GOTO EXIT
WRITE !,L
IF IOSL-$Y<14
DO HOLD
if Z3=U
GOTO EXIT
DO NEWP
+14 DO ^PRCE58P1
IF Z3'=U
DO HOLD
EXIT KILL %DT,CT,UT,P1,P,PRCSP,PRCSA,PRCSA1,PRCSA2,PRCSG,PRCSPO,PRCSY,TRNODE,X,X1,Y,DIWL,DIWR,DIWF,Z,Z1,Z2,Z3,DA,I,L,^UTILITY($JOB)
if $DATA(ZTQUEUED)
DO KILL^%ZTLOAD
QUIT
NEWP ;PRINT HEADER FOR NEW PAGE
+1 WRITE @IOF
SET PRCSP=PRCSP+1
WRITE !,$PIECE(TRNODE(0),U)
if $DATA(PRCSPO)
WRITE ?35,PRC("SITE")_"-"_PRCSPO
WRITE ?73,"PAGE ",PRCSP
WRITE !,L
NEWP1 NEW PRCX
SET PRCX=$$AUTHR^PRCEMOA($PIECE($GET(TRNODE(11)),U,4,5))
+1 WRITE !,"1358 OBLIGATION OR CHANGE"
if $PIECE(PRCX,U)]""
WRITE ":",$PIECE(PRCX,U)
+2 if $PIECE(PRCX,U,2)]""
WRITE !,?5,$PIECE(PRCX,U,2)
WRITE !,L
+3 QUIT
HOLD READ !,"Press return to continue, ""^"" to exit: ",Z3:DTIME
if '$TEST
SET Z3=U
QUIT
W2 WRITE !!,"Enter information for another report or an uparrow to return to the menu.",!
QUIT
W1 WRITE !!,"You are not an authorized control point user.",!,"Contact your control point official."
READ X:5
GOTO EXIT
W IF $EXTRACT(IOST,1)="C"
WRITE !!,"Press return to continue: "
READ X:DTIME
+1 IF IO'=IO(0)
DO ^%ZISC