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

ENJ.m

Go to the documentation of this file.
ENJ ;(WASH ISC)/JA-Screen Handler ;5-11-92
 ;;7.0;ENGINEERING;;Aug 17, 1993
 ;Record locking is responsibility of calling program
EN K ^TMP($J,"DJST"),DJST,^TMP($J,"DJ") S:'$D(DUZ(0)) DUZ(0)="" S:'$D(DTIME) DTIME=600 S:$D(DJSC) X=DJSC S Y=$O(^ENG(6910.9,"B",X,0)) I Y'>0 W !!,"SCREEN NOT DEFINED",*7 Q
 S DJR=Y,DJR(0)=^ENG(6910.9,Y,0),DJZ=$P(DJR(0),"^",6) I '$D(DJZ) S DJZ=$S(DJZ="":"",$D(^DIC(DJZ,0,"GL"))=1:^("GL"),1:"") I DJZ=""!($D(^ENG(6910.9,+Y,1))=0) W !,"SCREEN OR GLOBAL NOT DEFINED PROPERLY",*7 H 1 Q
 S DJNM=$P(^ENG(6910.9,Y,0),"^",1) G:$D(DJDN) D
RD ;D RL Q:X="^"!(X="")  G RD
RL K V
D D:'$D(DJRJ) ^ENJPARAM Q:'$D(DJRJ)
 I '$D(DJDN) D ^ENJDPL G EXIT1:$D(DJY) D ^ENJINJ G EXIT1
 I '$D(DJDIS),$D(DJDN) D ^ENJDPL G EXIT1:$D(DJY) S (DA,W(V))=DJDN D ^ENJC2 S DJW=1,DJW1=1 D EN^ENJINJ G EXIT1
 I $D(DJDIS) D ^ENJDPL G EXIT1:$D(DJY) S (DA,W(V))=DJDN D ^ENJC2 S DJW=1,DJW1=1 D EN^ENJINJ G EXIT1
 ;
Q ; LOCATE SCREEN
 D:'$D(DJRJ) ^ENJPARAM Q:'$D(DJRJ)
 S DIC("A")="Select Screen Name: ",DIC(0)="AEMQ",DIC="^ENG(6910.9," S:DJOP=2 DLAYGO=6910.9,DIC(0)=DIC(0)_"L"
 S DIC("S")=$S(DUZ(0)'="@":"I 1 S DJX=$P(^ENG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