source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCSRIG.m@ 1314

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

initial load of FOIAVistA 6/30/08 version

File size: 2.1 KB
Line 
1PRCSRIG ;WISC/SAW-GENERATE REQUESTS FROM REPETITIVE ITEM LIST FILE ;1.29.98
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 D DUZ^PRCFSITE Q:'$D(PRC("PER")) D DISP^PRCOSS3
5 W !!,"This option generates requests with permanent transaction numbers from",!,"entries in the repetitive item list file.",!,"Are you sure you are ready to proceed" S %=2 D YN^DICN G EXIT:%=2!(%<0),PRCSRIG:%=0
6 W ! S DIC="^PRCS(410.3,",DIC(0)="AEMQ",DIC("S")="S PRC(""SITE"")=$P(^(0),""-""),PRC(""CP"")=$P(^(0),""-"",4),$P(^(0),U,5)="""" I $D(^PRC(420,""A"",DUZ,PRC(""SITE""),+PRC(""CP""),1))!($D(^(2)))" D ^DIC K DIC("S") I Y'>0 G EXIT
7 S PRCSRID0=+Y,PRC("SITE")=$P(^PRCS(410.3,PRCSRID0,0),"-"),PRC("CP")=$P(^(0),"-",4)
8 S:'$D(PRC("SST")) PRC("SST")="" S DIC("B")=PRC("SST") I $D(^PRC(411,"UP",+PRC("SITE"))) S DIC="^PRC(411,",DIC(0)="AEQZ",DIC("A")="Select SUBSTATION: ",DIC("S")="I $E($G(^PRC(411,+Y,0)),1,3)=PRC(""SITE"")" D ^DIC I Y>0 S PRC("SST")=+Y
9 S (A,PRCSAPP)=$P(^PRC(420,PRC("SITE"),1,+PRC("CP"),0),"^",3) I PRCSAPP["_/_" D FY2^PRCSUT2 G EXIT:X="^"
10 D FY^PRCSUT Q:PRC("FY")'?2N
11 S PRC("BBFY")=$$BBFY^PRCSUT(PRC("SITE"),PRC("FY"),PRC("CP"))
12 I '$D(PRC("BBFY")) W !,"Please check the accounting elements for FY ",PRC("FY") G EXIT
13 S PRC("ACC")=$$ACC^PRC0C(PRC("SITE"),PRC("CP")_"^"_PRC("FY")_"^"_PRC("BBFY")) S (A,PRCSAPP)=$P(PRC("ACC"),"^",11)
14 I PRCSAPP["_/_" D FY2^PRCSUT2 G EXIT:X="^"
15 L +^PRCS(410.3,PRCSRID0,0):15 S PRCSL=$T I PRCSL=0 W !!,$C(7),"This record is being accessed by another user. Please try later." G EXIT
16 S $P(^PRCS(410.3,PRCSRID0,0),U,5)=1 L -^PRCS(410.3,PRCSRID0,0) D CLOSE^PRCOSS3
17 W !!,"You may use either the current quarter or the repetitive item",!,"list quarter to generate requests."
18ASKQTR N PQTR S (%,PQTR)=1 W !,"Use repetitive item list quarter" D YN^DICN Q:%=-1 S:%=2 PQTR=0 G:%=0 ASKQTR
19 S %ZIS("B")="HOME",%ZIS="MQ" D ^%ZIS G EXIT:POP I $D(IO("Q")) S ZTRTN="^PRCSRIG1",ZTSAVE("PRC*")="",ZTSAVE("PQTR")="",ZTSAVE("C")="",ZTSAVE("PRCSRID0")="",ZTSAVE("PRC(""PER"")")="",ZTSAVE("PRCSAPP")="" D ^%ZTLOAD G EXIT
20 D ^PRCSRIG1
21EXIT K %,%ZIS,B,DIC,PRCSRID0,Y,ZTRTN,ZTSAVE Q
Note: See TracBrowser for help on using the repository browser.