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

ORY245.m

Go to the documentation of this file.
  1. ORY245 ;SLC/JM -- post-install for OR*3*245 ; 1/19/2006
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**245**;Dec 17, 1997;Build 2
  1. Q
  1. POST ; Used to insert new ORCM QUICK ORDERS BY USER option into ORCM MGMT menu
  1. N OROPTION,ORMENU
  1. N DO,DA,DD,DI,DIC,DIE,DLAYGO,DQ,DR,X,Y,DINUM
  1. D BLDXREF
  1. ; find option
  1. S OROPTION=$O(^DIC(19,"B","ORCM QUICK ORDERS BY USER",0)) I '+OROPTION D Q
  1. . D BMES^XPDUTL("An error occurred during the installation.")
  1. . D MES^XPDUTL("The new option ORCM QUICK ORDERS BY USER was not found.")
  1. ; find menu
  1. S ORMENU=$O(^DIC(19,"B","ORCM MGMT",0)) I '+ORMENU D Q
  1. . D BMES^XPDUTL("Unable to attach the new ORCM QUICK ORDERS BY USER option.")
  1. . D MES^XPDUTL("Menu ORCM MGMT was not found.")
  1. ; If option already attached to menu then install has been run before
  1. I +$O(^DIC(19,ORMENU,10,"B",OROPTION,0)) D Q
  1. . D BMES^XPDUTL("Option ORCM QUICK ORDERS BY USER is already attached to ORCM MGMT menu.")
  1. ; Attach option to menu
  1. I '$D(^DIC(19,ORMENU,10,0)) S ^(0)="^19.01PI^^"
  1. S DIC="^DIC(19,"_ORMENU_",10,",DIC(0)="L",DLAYGO=19,DA(1)=ORMENU,X=OROPTION,DIC("DR")="2///QU;3///4.5"
  1. D FILE^DICN
  1. I +$O(^DIC(19,ORMENU,10,"B",OROPTION,0)) D I 1
  1. . D BMES^XPDUTL("New option ORCM QUICK ORDERS BY USER successfully attached to ORCM MGMT menu.")
  1. E D BMES^XPDUTL("Error trying to attach ORCM QUICK ORDERS BY USER to ORCM MGMT menu.")
  1. Q
  1. BLDXREF ; index new cross reference
  1. N DIK,DA,MSG1,MSG2,IEN
  1. I $D(^ORD(101.44,"C"))=0 S MSG1="Populating",MSG2="populated"
  1. E S MSG1="Reindexing",MSG2="reindexed"
  1. D BMES^XPDUTL(MSG1_" the new C cross reference of the ORDER QUICK VIEW file.")
  1. K ^ORD(101.44,"C")
  1. S IEN=0
  1. F S IEN=$O(^ORD(101.44,IEN)) Q:'IEN D
  1. . S DIK="^ORD(101.44,"_IEN_",10,",DIK(1)=".01^C",DA(1)=IEN D ENALL^DIK
  1. D BMES^XPDUTL("The C cross reference of the ORDER QUICK VIEW file has been "_MSG2_".")
  1. Q