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

TIUEDIU.m

Go to the documentation of this file.
  1. TIUEDIU ; SLC/JER - Enter/Edit Utility Subroutines;12/04/97 14:40
  1. ;;1.0;TEXT INTEGRATION UTILITIES;**7**;Jun 20, 1997
  1. BUFFER(DA) ; Save original text
  1. K ^TIU(8925,+DA,"TEMP")
  1. M ^TIU(8925,+DA,"TEMP")=^TIU(8925,+DA,"TEXT")
  1. D MERGTEMP^TIUEDI1(DA)
  1. Q
  1. COMMIT(DA,HUSH) ; Overwrite original text
  1. N DIE,DR,TIUSAVE S TIUSAVE=1
  1. I '+$G(HUSH),(+$P($G(TIUPREF),U,7)>0) D Q:'TIUSAVE
  1. . S TIUSAVE=$$READ^TIUU("YO","Save changes","YES")
  1. . I $D(DTOUT) S TIUSAVE=1 Q
  1. . I $S(+TIUSAVE:1,$D(DTOUT):1,1:0) Q
  1. . W !!,$C(7),"Changes abandoned..."
  1. . K ^TIU(8925,+DA,"TEMP") M ^TIU(8925,+DA,"TEMP")=^TIU(8925,+DA,"TEXT")
  1. . K ^TIU(8925,+DA,"TEXT")
  1. . D MERGTEXT^TIUEDI1(DA,.TIU)
  1. . K ^TIU(8925,+DA,"TEMP")
  1. W:'+$G(HUSH) !!,"Saving "_$$PNAME^TIULC1(+$P(TIUTYP(1),U,2))_" with changes..."
  1. K ^TIU(8925,+DA,"TEXT")
  1. D MERGTEXT^TIUEDI1(DA,.TIU)
  1. K ^TIU(8925,+DA,"TEMP")
  1. K ^TIU(8925,"ASAVE",DUZ,DA)
  1. S TIUCMMT=1
  1. Q