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

ORKREC.m

Go to the documentation of this file.
  1. ORKREC ; SLC/AEB - Recipient Options - Order Checking Parameters Management ;9/22/97
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**9,85**;Dec 17, 1997
  1. ;
  1. PFLAG ;
  1. N ORKT,ORKPAR,PIEN,ORKEDIT,ORKLST,ORKIEN,ORKV
  1. S ORKT="Enable/Disable an Order Check for Yourself",PIEN=0
  1. D TITLE(ORKT)
  1. S PIEN=$O(^XTV(8989.51,"B","ORK PROCESSING FLAG",PIEN)) Q:PIEN=""
  1. S ORKPAR=PIEN
  1. ;
  1. ;get a list of order checks that cannot be edited by end user:
  1. S ORKIEN=0 F S ORKIEN=$O(^ORD(100.8,ORKIEN)) Q:+$G(ORKIEN)<1 D
  1. .S ORKV=$$GET^XPAR("ALL","ORK EDITABLE BY USER",ORKIEN,"I")
  1. .S:$L(ORKV) ORKEDIT(ORKIEN)=ORKV
  1. ;
  1. D PROC
  1. Q
  1. USRCHKS ; List order checks a user could receive
  1. D USRCHKS^ORKUTL(DUZ)
  1. Q
  1. PROC ; Process Parameter Settings
  1. W !,$$DASH($S($D(IOM):IOM-1,1:78))
  1. N ENT
  1. S ENT=DUZ_";VA(200," ;Entity is the recipient/user
  1. D EDIT^XPAREDIT(ENT,ORKPAR)
  1. Q
  1. TITLE(ORKT) ;
  1. ; Center and write title - Parameter to be set
  1. S IOP=0 D ^%ZIS K IOP W @IOF
  1. W !,?(80-$L(ORKT)-1/2),ORKT
  1. Q
  1. ;
  1. DASH(N) ;extrinsic function returns N dashes
  1. N X
  1. S $P(X,"-",N+1)=""
  1. Q X