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

ACMMCR.m

Go to the documentation of this file.
  1. ACMMCR ;cmi/anch/maw - ACM Modify Register Creator 8/29/2007 8:37:43 AM
  1. ;;2.0;ACM CASE MANAGEMENT SYSTEM;**7**;AUG 27, 2007
  1. ;
  1. ;this routine will allow the user to edit the register creator
  1. ;
  1. MAIN ;-- main routine driver
  1. D ASK
  1. Q:'$G(ACMREG)
  1. D DISP(ACMREG)
  1. D EDIT(ACMREG)
  1. D EOJ
  1. Q
  1. ;
  1. ASK ;-- display the register data
  1. S DIC(0)="AEMQZ",DIC="^ACM(41.1,",DIC("A")="Select Register: "
  1. D ^DIC
  1. Q:'Y
  1. S ACMREG=+Y
  1. Q
  1. ;
  1. DISP(REG) ;-- display the register
  1. S DIC="^ACM(41.1,",DA=REG
  1. D EN^DIQ
  1. Q
  1. ;
  1. EDIT(REG) ;-- edit the creator
  1. N ACMKEY
  1. S ACMKEY=$O(^DIC(19.1,"B","ACMZ MANAGER",0))
  1. I '$D(^VA(200,DUZ,51,"B",ACMKEY)) D Q
  1. . W !,"You do not hold the key ACMZ EDIT required to edit the register creator" H 2
  1. W !
  1. S DIE="^ACM(41.1,",DA=ACMREG,DR="3.5"
  1. D ^DIE
  1. Q
  1. ;
  1. EOJ ;-- kill variables and quit
  1. K ACMREG
  1. K DIC,DIE,DR,DA
  1. Q
  1. ;