source: FOIAVistA/tag/r/DENTAL-DEN/DENTD.m@ 1696

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1DENTD ;WASH ISC/TJK,JA-SCREEN HANDLER ;6/29/92 14:34 ;12/17/91 9:49 AM
2 ;;1.2;DENTAL;***15**;Oct 08, 1992
3EN K ^TMP($J,"DJST"),DJST,^TMP($J,"DJ") S:$D(DJSC) X=DJSC
4 S Y=$O(^DENT(220.6,"B",X,0)) S:Y="" Y=-1
5 I Y<0 W !!,"SCREEN NOT DEFINED",*7 Q
6 S DJR=Y,DJR(0)=^DENT(220.6,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(^DENT(220.6,+Y,1))=0) W !,"SCREEN OR GLOBAL NOT DEFINED PROPERLY",*7 H 1 Q
7 S DJNM=$P(^DENT(220.6,Y,0),"^",1) G:$D(DJDN) D
8RD ;D RL Q:X="^"!(X="") G RD
9RL K V
10D D:'$D(DJRJ) ^DENTDPAR Q:'$D(DJRJ)
11 I '$D(DJDN) D ^DENTDPL G EXIT1:$D(DJY) D ^DENTDNJ G EXIT1
12 I '$D(DJDIS),$D(DJDN) D ^DENTDPL G EXIT1:$D(DJY) S (DA,W(V))=DJDN D ^DENTD1 S DJW=1,DJW1=1 D EN^DENTDNJ G EXIT1
13 I $D(DJDIS) D ^DENTDPL G EXIT1:$D(DJY) S (DA,W(V))=DJDN D ^DENTD1 S DJW=1,DJW1=1 D EN^DENTDNJ G EXIT1
14 ;
15Q ; LOCATE SCREEN
16 D:'$D(DJRJ) ^DENTDPAR Q:'$D(DJRJ)
17 S DIC("A")="Select Screen Name: ",DIC(0)="AEMQ",DIC="^DENT(220.6," S:DJOP=2 DLAYGO=220.6,DIC(0)=DIC(0)_"L"
18 S DIC("S")=$S(DUZ(0)'="@":"I 1 S DJX=$P(^DENT(220.6,+Y,0),""^"",4) F DJK=1:1:$L(DJX) I DUZ(0)[$E(DJX,DJK) Q",1:"I Y") I DJOP=5 S DIC("S")="I $P(^DENT(220.6,+Y,0),""^"",3)="""",'$D(^DD($P(^DENT(220.6,+Y,0),""^"",6),0,""UP"")) "_DIC("S")
19 D ^DIC K DIC(0),DLAYGO,DIC("A"),DIC("S") Q:Y<0
20 S (X,DJDNM)=$P(Y,U,2) Q
21EX K DIC,DJRJ,I,J,K,O,S,X,XY Q
22EXIT1 X DJCL W DJLIN K DJLIN,DJCL,DJCP,DJEOP,DJRJ,DJR I $D(IOST),IOST["C-Q" W DJHIN
23 K DJHIN
24EXIT I $D(X),X=U S DUOUT=""
25 K DJJ,C,V,X,Y,DIC,DJQ,DJDPL,DJKV,DJNM,DJW,DIE,DE,DJ,DH,DI,DJDIS,DJW1,DJDN,DJ0,DJAT,DJMU,DJST,DJSC,DJI,DJOP,DWLW,DJLG,DJNN,DJSW2,DIADD
26 K D,D0,DA,DJ4,DJ3,DJ2,DJDD,DJDNM,DJERR,DJF,DJL,DJN,DJP,DJRNM,DJT,DJX,DJY,DJZ,DFAST,DU,DENTDC
27 K ^TMP($J,"DJST"),DJ5,DJ6,DJ7,DJ9,DJA,DJAD,DJBD,DJD,DJDA,DJDP,DJDUZ,DJFF,DJLSTN,DJSM,DJ44,DJNODE,XY
28 K DJ11,DJ01,DJXL,DJXT,DJXX,DJX1,DJX3,DJ8,DX,DY,DJK,DJDIC,DJDICS,W,DJWR,D0,DEDF,DEBDIC
29 Q
30 ;
Note: See TracBrowser for help on using the repository browser.