Changeset 1212
- Timestamp:
- Aug 2, 2011, 2:55:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EWD/r/KBANDemo.m
r1208 r1212 1 KBANDemo ; Test to demo EWD 1 KBANDemo ; Test to demo EWD ; 8/2/11 1:53pm 2 2 ;; 3 3 login(sessid) … … 12 12 n RETURN 13 13 D VALIDAV^XUSRB(.RETURN,$$ENCRYP^XUSRB1(un_";"_pw)) 14 n DUZ s DUZ=RETURN(0)15 14 i DUZ'>0 s error="Not a valid login" 16 15 i error="" d ; everything is okay; save symtab crap … … 21 20 EXIT D:$G(DUZ) LOGOUT^XUSRB 22 21 Q error 22 DisplayUserCharacteristics(sessid) 23 D FillSymTab(sessid) 24 d clearTextArea^%zewdAPI("display",sessid) 25 ; d appendToTextArea^%zewdAPI("display","blha blha",sessid) 26 N ZTQUEUED,ORHFS,ORSUB,ROOT,ORIO,ORHANDLE,ORWINDEV 27 N IOM,IOSL,IOST,IOF,IOT,IOS,POP 28 S (ORSUB,ROOT)="ORDATA",ORIO="OR WINDOWS HFS",ORTEXT=$NA(^TMP(ORSUB,$J,1)),ORHANDLE="ORWRP" 29 S ORHFS=$$HFS^ORWRP(),ORWINDEV=1 ;Flag for printing to windows device 30 D HFSOPEN^ORWRP(ORHANDLE,ORHFS,"W") 31 I POP D Q 32 . I $D(ROOT) D SETITEM^ORWRP(.ROOT,"ERROR: Unable to open HFS file") 33 D IOVAR^ORWRP(.ORIO,,,"P-WINHFS80") 34 N $ETRAP,$ESTACK 35 S $ETRAP="D ERR^ORWRP Q" 36 U IO 37 D ^XQUSR 38 D HFSCLOSE^ORWRP(ORHANDLE,ORHFS) 39 N txt M txt=@ORTEXT 40 D mergeToTextArea^%zewdAPI("display",.txt,sessid) 41 Q "" 23 42 SignonTxt(sessid) ; 24 43 S U="^"
Note:
See TracChangeset
for help on using the changeset viewer.