ECTEQT ;B'ham ISC/PTD-Inquire to Planned Equipment Item ;01/29/91 08:00
V ;;1.05;INTERIM MANAGEMENT SUPPORT;;
I '$D(^ECT(731.5)) W *7,!!?29,"OPTION IS UNAVAILABLE!",!,"The 'VAMC Planned Equipment' File - #731.5 is not loaded on your system.",!! S XQUIT="" Q
I '$O(^ECT(731.5,0)) W *7,!!,"'VAMC Planned Equipment' File - #731.5 has not been populated on your system.",!! S XQUIT="" Q
;
DIC W !! S DIC="^ECT(731.5,",DIC(0)="QEAM",DIC("A")="Select EQUIPMENT item: " D ^DIC G:Y<0 EXIT S DA=+Y
K %ZIS S IOP="HOME" D ^%ZIS K %ZIS,IOP W @IOF,!!?30,"PLANNED EQUIPMENT DATA:",!!
D EN^DIQ K DIC,Y,DA G DIC
EXIT K %,A,DA,DIC,POP,S,X,Y
Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HECTEQT 646 printed Nov 22, 2024@17:12:25 Page 2
ECTEQT ;B'ham ISC/PTD-Inquire to Planned Equipment Item ;01/29/91 08:00
V ;;1.05;INTERIM MANAGEMENT SUPPORT;;
+1 IF '$DATA(^ECT(731.5))
WRITE *7,!!?29,"OPTION IS UNAVAILABLE!",!,"The 'VAMC Planned Equipment' File - #731.5 is not loaded on your system.",!!
SET XQUIT=""
QUIT
+2 IF '$ORDER(^ECT(731.5,0))
WRITE *7,!!,"'VAMC Planned Equipment' File - #731.5 has not been populated on your system.",!!
SET XQUIT=""
QUIT
+3 ;
DIC WRITE !!
SET DIC="^ECT(731.5,"
SET DIC(0)="QEAM"
SET DIC("A")="Select EQUIPMENT item: "
DO ^DIC
if Y<0
GOTO EXIT
SET DA=+Y
+1 KILL %ZIS
SET IOP="HOME"
DO ^%ZIS
KILL %ZIS,IOP
WRITE @IOF,!!?30,"PLANNED EQUIPMENT DATA:",!!
+2 DO EN^DIQ
KILL DIC,Y,DA
GOTO DIC
EXIT KILL %,A,DA,DIC,POP,S,X,Y
+1 QUIT
+2 ;