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

XUTMKE1.m

Go to the documentation of this file.
  1. XUTMKE1 ;SEA/RDS - Taskman: Option, XUTME SCREEN*, Part 1 ;04/17/98 13:18 [ 04/02/2003 8:29 AM ]
  1. ;;8.0;KERNEL;**1002,1003,1004,1005,1007**;APR 1, 2003
  1. ;;8.0;KERNEL;**63,79**;Jul 10, 1995
  1. ;
  1. SCLIST ;List Current Error Screens
  1. ;N % S %=$$LST(2) D:% MORE Q
  1. ALL ;Show all error screens
  1. N % S %=$$LST(1),%=%+$$LST(2) D:% MORE Q
  1. ;
  1. LST(IX) ;List a type a error screen
  1. N X,Y,ZT,ZTE
  1. S ZT="CURRENT "_$S(IX=1:"Don't show",1:"Don't record")_" ERROR SCREENS"
  1. I $O(^%ZTER(2,"AC",IX,0))="" W !!?5,"No '",ZT,"' error screens have been established" W:IX=2 !,?10,"--all errors are currently logged." Q 0
  1. W !!?6,ZT
  1. W !?5,"Screen",?40,"Count?"
  1. W !?5,"-------------",?40,"------"
  1. S ZTE="" F ZT=0:0 S ZTE=$O(^%ZTER(2,"AC",IX,ZTE)) Q:ZTE="" D
  1. . S X=^%ZTER(2,ZTE,0),Y=$E($G(^(2)),1,50)
  1. . W !?5,$P(X,U) W ?40,$S($P(X,U,4):"yes: "_$G(^(3)),1:"no") W:$L(Y) !,?5,">>",^(2)
  1. W ! Q 1
  1. ;
  1. MORE N DIR,DIRUT,DTOUT,DUOUT
  1. S DIR(0)="E",DIR("A")=" End of listing. Press RETURN to continue"
  1. S DIR("?")=" Press RETURN to continue."
  1. D ^DIR K DIR
  1. I $D(DTOUT) W $C(7)
  1. Q
  1. ;
  1. SCREM ;Remove An Error Screen
  1. N DIE,DR,DA,DIR,DIRUT,DTOUT,DUOUT,%ZT,ZTX,ZTY
  1. S ZTY=$$SCSEL^XUTMKE2(0,"Enter Error Screen to remove") Q:ZTY'>0
  1. REM ;S DA=+ZTY,DR=$S(+$P(ZTY,U,5):"",1:".01;")_".03;.04",DIE="^%ZTER(2," D ^DIE
  1. D FORM^XUTMKE2(+ZTY)
  1. Q
  1. ;