source: WorldVistAEHR/trunk/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/XUSG1.m@ 1766

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

initial load of WorldVistAEHR

File size: 1.7 KB
Line 
1XUSG1 ;SF-ISC/STAFF - SIGNON from GUI screen ;9/28/94 14:54
2 ;;8.0;KERNEL;;Jul 10, 1995
3 Q
4USERG ;Call from in OK Callback
5 K XUTEXT N WIN,FOCUS
6 I '$L($P(XUSER(1),U,2)) G CHVC
7 I +$P(XOPT,U,15),(XUSER(1)+$P(XOPT,U,15)'>+$H) G CHVC
8 S XUM=$$USER^XUS1A() G:XUM NO^XUSG
9 D GET^XGCLOAD("XU XUS W2","WIN(""XUS2"")") ;Build XUTEXT message into window
10 F J=0:0 S J=$O(XUTEXT(J)) Q:J'>0 D
11 . S N="LAB"_J M WIN("XUS2","G",N)=WIN("XUS2","G","LAB1")
12 . S WIN("XUS2","G",N,"TITLE")=$E(XUTEXT(J),2,255)
13 . S $P(WIN("XUS2","G",N,"POS"),",",2)=(J-1*20+10)
14 . Q
15 D DIVSET
16 D S^XG("XUS","ACTIVE",0),M^XG("XUS2",$NA(WIN("XUS2")))
17 D SD^XG($PD,"FOCUS",FOCUS)
18 D ESTA^XG(),K^XG("XUS2"),DUZ^XUS1A
19 Q
20DIVSET ;Setup the DIV list box
21 S WIN("XUS2","G","DIV","VISIBLE")=0,FOCUS="XUS2,OK" K WIN("XUS2","G","DIV","CHOICE")
22 S Y=$O(^VA(200,DUZ,2,0)),X=$O(^(Y)) I X>0,$D(^DIC(4,0)) D
23 . S WIN("XUS2","G","DIV","VISIBLE")=1,FOCUS="XUS2,DIV"
24 . S J=0 F S J=$O(^VA(200,DUZ,2,J)) Q:J'>0 D
25 . . S WIN("XUS2","G","DIV","CHOICE","A"_J)=$P($G(^DIC(4,J,0)),U)
26 . . Q
27 . S DUZ(2)=Y,WIN("XUS2","G","DIV","VALUE","A"_Y)=""
28 . Q
29 Q
30OK2 ;OK button from welcome
31 D ESTO^XG
32 Q
33DIV ;Select a div
34 N WNM,G S WNM="XUS2",G="G"
35 Q:'@XGWIN@(WNM,G,"DIV","CHANGED")
36 S X=$O(@XGWIN@(WNM,G,"DIV","VALUE","")),DUZ(2)=+$E(X,2,9)
37 Q
38CHVC ;The Verify code needs changing
39 N XUJ
40 S XUJ(1)="SORRY you can not use this device right now.",XUJ(2)="Your VERIFY CODE needs to be changed.",XUJ(3)="Please sign on from a regular terminal to do this."
41 S XUM=$$OK^XGLMSG("I",.XUJ,60),XUM=4,DUZ=0 G NO^XUSG
42 ;D CVC^XUS2 G:$D(DUOUT) H^XUS S XUSER(1)=^VA(200,DUZ,.1)
43 Q
44NEXT ;
45 G NEXT^XUS1
46 ;
47 ;
48DD(Y) Q $S($E(Y,4,5):$P("Jan^Feb^Mar^Apr^May^Jun^Jul^Aug^Sep^Oct^Nov^Dec","^",+$E(Y,4,5))_" ",1:"")_$S($E(Y,6,7):+$E(Y,6,7)_",",1:"")_($E(Y,1,3)+1700)
49 Q
Note: See TracBrowser for help on using the repository browser.