source: FOIAVistA/trunk/r/ENGINEERING-EN/ENPL2.m@ 1671

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

initial load of FOIAVistA 6/30/08 version

File size: 1.4 KB
Line 
1ENPL2 ;(WASH ISC)/LKG- CONSTRUCTION PROJ E/E ;7/10/95
2 ;;7.0;ENGINEERING;**23**;Aug 17, 1993
3EN ;Entry point for project application Enter/Edit
4A ; select and edit project
5 S DIC="^ENG(""PROJ"",",DIC(0)="AELMQ",DIC("A")="Select PROJECT NUMBER: "
6 S DLAYGO=6925 D ^DIC K DIC,DO,DLAYGO I $D(DTOUT)!$D(DUOUT)!(Y<1) G EX
7 S (DA,ENDA)=+Y S:$P(Y,U,3)'=1 ENOLD=1
8 I $P($G(^ENG("PROJ",ENDA,0)),U,6)="LE" W $C(7),!,"Project Applications are not currently supported for Lease projects." G C
9 L +^ENG("PROJ",DA):5 E W $C(7),!,"File in Use, Please try later",! G C
10 S DR="[ENPLI001]",DIE="^ENG(""PROJ""," D ^DIE K DR,DIE G:$D(DTOUT) C
11 ; validate project
12 I $D(^ENG("PROJ",ENDA,0)) D
13 . S ^TMP($J,"L")=1,^TMP($J,"L",ENPN)=ENDA
14 . D EN^ENPLV("A")
15 . K ^TMP($J,"L")
16C L -^ENG("PROJ",ENDA)
17 K DA,ENDA,ENOLD
18 I '$D(DTOUT),'$D(DUOUT) G A
19EX K DA,DIC,DIE,DIROUT,DIRUT,DR,DUOUT,DTOUT,X,Y
20 K ENAY,ENBC,ENBCI,ENBO,ENBOI,ENCY,ENDA,ENENV,ENFT,ENLY,ENOLD
21 K ENPC,ENPCI,ENPN,ENPR,ENRY
22 Q
23ACT ;Entry point for Enter/Edit of Project Activation information
24 S DIC="^ENG(""PROJ"",",DIC(0)="AEMQ",DIC("A")="Select PROJECT NUMBER: "
25 D ^DIC K DIC,DO
26 I Y<1!$D(DUOUT)!$D(DTOUT) G EX2
27 S (DA,ENDA)=+Y
28 L +^ENG("PROJ",ENDA):5 E W *7,!,"File in Use, Please try later",! G E
29 S DR="187.5;189;190;188;190.2:190.4",DIE="^ENG(""PROJ""," D ^DIE K DR,DIE
30E L -^ENG("PROJ",ENDA) K DA,ENDA,Y
31 I '$D(DTOUT),'$D(DUOUT) G ACT
32EX2 K DA,DIC,DIE,DUOUT,DTOUT,ENDA
33 Q
Note: See TracBrowser for help on using the repository browser.