[613] | 1 | ENPL2 ;(WASH ISC)/LKG- CONSTRUCTION PROJ E/E ;7/10/95
|
---|
| 2 | ;;7.0;ENGINEERING;**23**;Aug 17, 1993
|
---|
| 3 | EN ;Entry point for project application Enter/Edit
|
---|
| 4 | A ; 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")
|
---|
| 16 | C L -^ENG("PROJ",ENDA)
|
---|
| 17 | K DA,ENDA,ENOLD
|
---|
| 18 | I '$D(DTOUT),'$D(DUOUT) G A
|
---|
| 19 | EX 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
|
---|
| 23 | ACT ;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
|
---|
| 30 | E L -^ENG("PROJ",ENDA) K DA,ENDA,Y
|
---|
| 31 | I '$D(DTOUT),'$D(DUOUT) G ACT
|
---|
| 32 | EX2 K DA,DIC,DIE,DUOUT,DTOUT,ENDA
|
---|
| 33 | Q
|
---|