source: FOIAVistA/trunk/r/ENGINEERING-EN/ENEQRP.m@ 1572

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

initial load of FOIAVistA 6/30/08 version

File size: 1.6 KB
Line 
1ENEQRP ;(WASH ISC)/DH-Equipment Report Driver ;6-8-89
2V ;;7.0;ENGINEERING;;Aug 17, 1993
3 ;
4 S %OPT="OPT"
5SE D:'$D(DT) DT^DICRW S U="^",S=";",%O=$T(@(%OPT))
6 I $D(^DOPT($P(%O,S,5),"VERSION")),($P($T(V),S,3)=^DOPT($P(%O,S,5),"VERSION")) G IN
7 K ^DOPT($P(%O,S,5))
8 F I=1:1 Q:$P($T(@(%OPT)+I),S,3)="" S %OP=I,^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),"^",1),I)=""
9 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)
10IN I $P(%O,S,6)'="" D @($P(%O,S,6))
11PR Q:'$D(%OPT) K %O(1) S %O=$T(@(%OPT)),S=";",IOP="HOME" S:$P(%O,S,9)'="" %O(1)="" D ^%ZIS K IOP W:IOST'["PK-" @IOF
12 I $P(%O,S,7)'="" D @($P(%O,S,7))
13 I $P(%O,S,7)="" W !!,$P(%O,S,3),":",!,$P($T(V),S,3),!! I '$D(%O(1)) W $P(%O,S,4),"S:",!
14 F J=1:1 Q:$P($T(@(%OPT)+J),S,3)="" S %OP=J,K=$S(J<10:15,1:14) I '$D(%O(1)) W !,?K,J,". ",$P($T(@(%OPT)+J),S,3)
15RE W ! S DIC="^DOPT("_""""_$P($T(@(%OPT)),S,5)_""""_",",DIC(0)="AEQMN" D ^DIC G:X=""!(X=U) EXIT G:Y<0 RE K DIC,J,%O X $P($T(@(%OPT)+Y),S,4) G PR
16HDR W @IOF,!!,"EQUIPMENT MANAGEMENT REPORTS",!,"Version ",^ENG("VERSION"),! Q
17EXIT I $P($T(@(%OPT)+(%OP+1)),S,4)'="" X $P($T(@(%OPT)+(%OP+1)),S,4)
18 K DIC,G,J,%OP I $P(%O,S,8)'="" S %OPT=$P(%O,S,8) G SE
19OUT K K,S,%OPT,%O Q
20 ;
21OPT ;;ENINGEERING EQUIPMENT MANAGEMENT MODULE;EQUIPMENT REPORT;ENEQRP;
22 ;;SPECIFIC ITEM HISTORY;D HS^ENEQRP1
23 ;;EQUIPMENT TYPE HISTORY;D HD^ENEQRP2
24 ;;INVENTORY LISTING;D ^ENEQRPI
25 ;;WARRANTY LIST;D W^ENEQRP1
26 ;;REPLACEMENT LISTING;D R^ENEQRP1
27 ;;FAILURE RATE REPORT;D F^ENEQRP3
28 ;;PM WORKLOAD ANALYSIS;D EN^ENEQRP5
Note: See TracBrowser for help on using the repository browser.