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

ORY553.m

Go to the documentation of this file.
ORY553 ;EDE/WCJ - OR*3*553 Post-Install ;Mar 18, 2021@14:58
 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**553**;Dec 17, 1997;Build 3
 ;
 Q
 ;
POST ; Set Parameter Values
 D BMES("Setting Default DST Parameters")
 D SETPARAM
 D BMES("Done setting Default DST Parameters")
 Q
 ;
SETPARAM ;
 N ORERR,ORPAR,ORVAL,ORINST,ORX
 ;
 ;#1a
 S ORPAR="ORQQCN CTB ORDER CNSLT",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1b
 S ORPAR="ORQQCN CTB RECEIVE",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1c
 S ORPAR="ORQQCN CTB SCHEDULE",ORVAL="NO"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1d
 S ORPAR="ORQQCN CTB CANCEL",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1e
 S ORPAR="ORQQCN CTB EDITRES",ORVAL="NO"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1f
 S ORPAR="ORQQCN CTB DC",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1g
 S ORPAR="ORQQCN CTB FORWARD",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1h
 S ORPAR="ORQQCN CTB COMMENT",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1i
 S ORPAR="ORQQCN CTB SIGFIND",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#1j
 S ORPAR="ORQQCN CTB ADMIN COMP",ORVAL="YES"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
  D SETPARVAL(ORPAR,1,"SYS",ORVAL)
 ;#2a
 S ORPAR="ORQQCN DST TEST URL",ORVAL="https://dst-beta.domain.ext"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;#2b
 S ORPAR="ORQQCN DST PROD URL",ORVAL="https://dst.domain.ext"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;#2c
 S ORPAR="ORQQCN DST CONS DECISION",ORVAL="/cprs-api/v2/dst-decision/"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;#2d
 S ORPAR="ORQQCN DST CONS SAVE",ORVAL="/cprs-api/v2/consult/save"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;#2e
 S ORPAR="ORQQCN DST PATH",ORVAL="/v2/"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;#2f
 S ORPAR="ORQQCN CTB PATH",ORVAL="/ctb/"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;#3
 S ORPAR="ORQQCN DST/CTB FEATURE SWITCH",ORVAL="CTB"
 D SETPARVAL(ORPAR,1,"PKG",ORVAL)
 ;
 Q
 ;
 ;
SETPARVAL(ORPAR,ORINST,ORENT,ORVAL) ;
 ;
 N ORERR
 ;
 D BMES("Setting "_$G(ORENT)_" value for parameter "_ORPAR_" ("_ORINST_")...")
 ;
 D EN^XPAR(ORENT,ORPAR,ORINST,.ORVAL,.ORERR)
 I +$G(ORERR)>0 D MES("  ERROR #"_$P(ORERR,U)_": "_$P(ORERR,U,2)) Q
 D MES("  DONE")
 ;
 Q
 ;
BMES(STR) ;
 ; Write string
 D BMES^XPDUTL($$TRIM^XLFSTR($$CJ^XLFSTR(STR,$G(IOM,80)),"R"," "))
 Q
MES(STR) ;
 ; Write string
 D MES^XPDUTL($$TRIM^XLFSTR($$CJ^XLFSTR(STR,$G(IOM,80)),"R"," "))
 Q