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

FSCLMPE.m

Go to the documentation of this file.
  1. FSCLMPE ;SLC/STAFF-NOIS List Manager Protocol Edit ;5/17/98 22:26
  1. ;;1.1;NOIS;;Sep 06, 1998
  1. ;
  1. LC ; from FSCLMP
  1. I '@VALMAR W !,"No calls to Edit.",! H 2 Q
  1. N CHOICE,DEFAULT,OK
  1. S CHOICE="1-"_+@VALMAR,DEFAULT=CHOICE D SELECT^FSCUL(CHOICE,"",DEFAULT,"EVALUES",.OK)
  1. I $O(^TMP("FSC SELECT",$J,"EVALUES",0)) D EDIT^FSCLM("EVALUES")
  1. S VALMBCK=$S($G(FSCEXIT):"Q",1:"R")
  1. Q
  1. ;
  1. VC ; from FSCLMP
  1. N CHOICE,DEFAULT,OK,OLDFMT K OLDFMT
  1. S CHOICE=$G(^TMP("FSC SELECT",$J,"VVALUES")),DEFAULT=CHOICE D SELECT^FSCUL(CHOICE,"",DEFAULT,"EVALUES",.OK)
  1. I $O(^TMP("FSC SELECT",$J,"EVALUES",0)) M OLDFMT=FSCFMT K FSCEDIT,FSCFMT D EDIT^FSCLM("EVALUES")
  1. S VALMBCK=$S($G(FSCEXIT):"Q",1:"R")
  1. K FSCFMT M FSCFMT=OLDFMT I '$G(FSCEXIT),$G(FSCEDIT) D ENTRY^FSCLMV,HEADER^FSCLMV
  1. Q
  1. ;
  1. EDIT ; from FSCLMP
  1. N DIR,X,Y K DIR
  1. S DIR(0)="SAMO^BASIC:BASIC;DUPLICATE:DUPLICATE;PERSONAL:PERSONAL;WORKLOAD:WORKLOAD;ALL:ALL"
  1. S DIR("A")="Select (B)asic, (A)ll, (W)orkload, (P)ersonal, or (D)uplicate: "
  1. S DIR("?",1)="Enter BASIC to edit the module, specialist, and priority."
  1. ;S DIR("?",2)="Enter DESCRIPTION to edit the request description."
  1. S DIR("?",2)="Enter ALL to edit all of the entry information on the call. Note: The"
  1. S DIR("?",3)="location and date opened cannot be edited (you may cancel a call by"
  1. S DIR("?",4)="changing its status to cancelled)."
  1. S DIR("?",5)="Enter WORKLOAD to edit workload."
  1. S DIR("?",6)="Enter PERSONAL to edit personal fields on this call."
  1. S DIR("?",7)="Enter DUPLICATE to associate this call with another call."
  1. S DIR("?")="^D HELP^FSCU(.DIR)"
  1. S DIR("??")="FSC U1 NOIS"
  1. D ^DIR K DIR
  1. I $D(DIRUT) Q
  1. I Y="BASIC" D BASIC^FSCLMPE1 Q
  1. I Y="DESCRIPTION" D DESC^FSCLMPE1 Q
  1. I Y="WORKLOAD" D WKLD^FSCLMPE1 Q
  1. I Y="ALL" D ALL^FSCLMPE1 Q
  1. I Y="DUPLICATE" D PRIMARY^FSCLMPEA Q
  1. I Y="PERSONAL" D PFIELDS^FSCLMPE1 Q
  1. Q
  1. ;
  1. LD ; from FSCLMP
  1. I '$$CHECK^FSCLMPM(FSCLNUM,DUZ) W !,"You cannot edit this list.",$C(7) H 2 Q
  1. I "AM"'[$P(^FSC("LIST",FSCLNUM,0),U,3) W !,"This list does not use a query definition.",$C(7) H 2 Q
  1. I '($D(@VALMAR)#2) S @VALMAR="" D INSERT^FSCLMPM Q
  1. N DIR,X,Y K DIR
  1. S DIR(0)="SAMO^REPLACE:REPLACE;EDIT:EDIT;INSERT:INSERT;DELETE:DELETE"
  1. S DIR("A")="Select (E)dit a line, (I)nsert lines, (D)elete lines, or (R)eplace all: "
  1. S DIR("?",1)="Enter EDIT to replace a single line in the definition."
  1. S DIR("?",2)="Enter INSERT to add additional lines after a selected line."
  1. S DIR("?",3)="Enter DELETE to delete one or more lines."
  1. S DIR("?",4)="Enter REPLACE to enter a new query definition."
  1. S DIR("?")="^D HELP^FSCU(.DIR)"
  1. S DIR("??")="FSC U1 NOIS"
  1. D ^DIR K DIR
  1. I $D(DIRUT) Q
  1. I Y="EDIT" D EDIT^FSCLMPM Q
  1. I Y="INSERT" D INSERT^FSCLMPM Q
  1. I Y="DELETE" D DELETE^FSCLMPM Q
  1. I Y="REPLACE" D Q
  1. .N CHOICE,CNT,DEF,DESC,LINE,NEWDEF,NEWLINE,OK,PREOP,QDESC K DEF,DESC,NEWDEF,QDESC ; not scoped
  1. .D REPLACE^FSCLDR(FSCLNAME,FSCLNUM)
  1. Q