Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ENEQPMS

ENEQPMS.m

Go to the documentation of this file.
  1. ENEQPMS ;(WASH ISC)/DH-PMI Worklist Generation Driver ;10-12-90
  1. V ;;7.0;ENGINEERING;;Aug 17, 1993
  1. 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
  1. K ^DOPT($P(O,S,5))
  1. 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),"^",1),I)=""
  1. 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)
  1. IN I $P(O,S,6)'="" D @($P(O,S,6))
  1. PR S O=$T(OPT),S=";" S IOP="HOME" D ^%ZIS W:IOST'["PK-" @IOF K IOP
  1. 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)
  1. RE W ! S DIC("A")="Select "_$P($T(OPT),S,4)_": EXIT// ",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 D @($P($T(OPT+Y),S,4)) G PR
  1. HDR W @IOF,!!,"EQUIPMENT PMI SCHEDULES",!,"Version ",^ENG("VERSION"),! Q
  1. EXIT K DIC,I,J,K,O,S,X,Y
  1. Q
  1. OUT K K,S,%OPT,%O,ENDATE,ENPM,ENPMDT,ENA,ENHZS,ENPMWK,ENSHOP,ENSHKEY,ENPMMN,ENSTMN,ENCRIT,ENDA,ENERR,ENMN,ENMNTH Q
  1. MSG R !,"Press <RETURN> to continue...",X:DTIME Q
  1. OPT ;;ENGINEERING EQUIPMENT MANAGEMENT MODULE;EQUIPMENT PMI SCHEDULES;ENEQPMS;
  1. ;;MONTHLY PM LIST;MNTH^ENEQPMS1
  1. ;;WEEKLY PM LIST;WK^ENEQPMS1
  1. ;;DELETE PM WORK ORDERS;DEL^ENEQPMS4