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

ESPEDIT.m

Go to the documentation of this file.
  1. ESPEDIT ;WASH/ERC - Police Officer Add/Edit ; 5 Apr 00 11:56 AM
  1. ;;1.0;POLICE & SECURITY;**31,44**;Mar 31, 1994;Build 1
  1. ; Routine will allow Police personnel to add/edit the Police Officer
  1. ; Rank and Badge Numer fields.
  1. ; (Previously an edit type option, changed with patch 31)
  1. EN ;
  1. N D,DA,DIC,DIE,DR,ESPFLG,Y
  1. W @IOF
  1. W !!!,"This option will allow the editing of Badge Number and Rank on those",!,"people holding the ESP POLICE security key.",!
  1. EN1 ;
  1. S DIC="^VA(200,"
  1. S DIC(0)="AEQ"
  1. S DIC("A")="Select POLICE NAME: "
  1. S D="AK.ESP POLICE"
  1. D IX^DIC
  1. I +Y=-1 K DIC Q
  1. I '$O(^VA(200,"AK.ESP POLICE",$P(Y,U,2),0)) D
  1. . W !!,"Only employees who hold the ESP POLICE security key can be edited.",!!
  1. . S ESPFLG=1
  1. I $G(ESPFLG)=1 S ESPFLG=0 G EN1
  1. EDIT ;
  1. S DIE=DIC K DIC
  1. S DA=+Y
  1. S DR="910.1;910.2"
  1. D ^DIE G EN1
  1. Q