[613] | 1 | ENWO ;(WASH ISC)/DLM/DH-Work Order Driver ;5-28-93
|
---|
| 2 | V ;;7.0;ENGINEERING;;Aug 17, 1993
|
---|
| 3 | ;OVERLAYS EN
|
---|
| 4 | D SSHOP Q:ENSHKEY<1
|
---|
| 5 | D:'$D(DT) DT^DICRW S U="^",S=";",O=$T(OPT) I $D(^DOPT($P(O,S,5),"VERSION")),($P($T(V),S,3)=^DOPT($P(O,S,5),"VERSION")) G IN
|
---|
| 6 | K ^DOPT($P(O,S,5))
|
---|
| 7 | F I=1:1 Q:$T(OPT+I)="" S ^DOPT($P(O,S,5),I,0)=$P($T(OPT+I),S,3),^DOPT($P(O,S,5),"B",$P($P($T(OPT+I),S,3),U,1),I)=""
|
---|
| 8 | S K=I-1,^DOPT($P(O,S,5),0)=$P(O,S,4)_U_1_U_K_U_K K I,K,X S ^DOPT($P(O,S,5),"VERSION")=$P($T(V),S,3)
|
---|
| 9 | IN I $P(O,S,6)'="" D @($P(O,S,6))
|
---|
| 10 | PR S O=$T(OPT),S=";" S IOP="HOME" D ^%ZIS W:IOST'["PK-" @IOF K IOP
|
---|
| 11 | D HDR F J=1:1 Q:'$D(^DOPT($P(O,S,5),J,0)) W !,?15,J,". ",$P(^DOPT($P(O,S,5),J,0),U,1)
|
---|
| 12 | RE W ! S DIC("A")="Select "_$P($T(OPT),S,4)_": EXIT// ",DIC="^DOPT("_""""_$P($T(OPT),S,5)_""""_",",DIC(0)="AEQMN" D ^DIC K:X=""!(X=U) ENSHKEY G:X=""!(X=U) EXIT G:Y<0 RE K DIC,J,O D @($P($T(OPT+Y),S,4)) G PR
|
---|
| 13 | HDR W @IOF,!!,?17,"ENGINEERING WORK ORDER MODULE",! S X=$P(^DIC(6910,1,0),U) W ?((65-$L(X))/2)\1,X,!! K X Q
|
---|
| 14 | SSHOP ;SEL SHOP
|
---|
| 15 | I $D(ENSHKEY),ENSHKEY>0 S DIC("B")=$P(^DIC(6922,ENSHKEY,0),U)
|
---|
| 16 | K DIC("S") S DIC="^DIC(6922,",DIC(0)="AEQM" D ^DIC S ENSHKEY=+Y K DIC
|
---|
| 17 | I '$D(ENLO) D ZIS^EN
|
---|
| 18 | Q
|
---|
| 19 | SHOP S DIC("S")="I $D(^(2)),$P(^(2),U,1)=ENSHKEY" Q
|
---|
| 20 | EXIT K %IS,DIC,DIE,DA,Y,DR,N,I,J,K,O,S,X,Y,Z
|
---|
| 21 | S:$D(ZTQUEUED) ZTREQ="@"
|
---|
| 22 | Q
|
---|
| 23 | ;
|
---|
| 24 | OPT ;;WORK ORDER OPTION;WORK ORDER OPTION;ENWO;
|
---|
| 25 | ;;ENTER NEW WORK ORDER;^ENWONEW
|
---|
| 26 | ;;EDIT WORK ORDER DATA;ENT^ENWO1
|
---|
| 27 | ;;CLOSE OUT WORK ORDER;CLSOUT^ENWO1
|
---|
| 28 | ;;INCOMPLETE WORK ORDER STATUS;^ENWOST
|
---|
| 29 | ;;DISPLAY WORK ORDER;EDIT^ENWOD
|
---|
| 30 | ;;PRINT EQUIPMENT HISTORY BY ENTRY NUMBER;EQHI^ENWO1
|
---|
| 31 | ;;TRANSFER WORK ORDER TO NEW SHOP;TRANS^ENWONEW1
|
---|
| 32 | ;;DISAPPROVE WORK ORDER;DISAP^ENWO2
|
---|
| 33 | ;;REPRINT WORK ORDERS;^ENWOREP
|
---|