Function

TfrmOrders.AllowContextChange

Directives

Override

Module

fOrders

Last Modified

7/15/2014 3:26:42 PM

Comments

TPage common methods ---------------------------------------------------------------------

Visibility

Public

Overrides

TfrmPage.AllowContextChange

Owner

TfrmOrders

Declaration

function AllowContextChange(var WhyNot: string): Boolean; override;

Calls Hierarchy


TfrmOrders.AllowContextChange
 ├ActiveOrdering
 └CloseOrdering

Called-By Hierarchy


                TfrmOrders.AllowContextChange
            TfrmFrame.AllowContextChangeAll┘ 
                 TfrmFrame.FormCloseQuery┤   
               TfrmFrame.mnuFileNextClick┤   
             TfrmFrame.mnuFileOpenClick┤ │   
                 TfrmFrame.UMInitiate┤ │ │   
        TfrmFrame.mnuFileNextClick...┤ │ │   
        TfrmFrame.mnuFileRefreshClick┤ │ │   
        TfrmOrders.CheckOrderStatus┤ │ │ │   
    TfrmOrders.mnuActChgEvntClick┤ │ │ │ │   
       TfrmOrders.mnuActHoldClick┤ │ │ │ │   
     TfrmOrders.mnuActUnholdClick┤ │ │ │ │   
      TfrmOrders.mnuActRenewClick┤ │ │ │ │   
     TfrmOrders.mnuActChangeClick┤ │ │ │ │   
       TfrmOrders.mnuActCopyClick┘ │ │ │ │   
             TfrmMeds.mnuActDCClick┤ │ │ │   
            TfrmMeds.CheckMedStatus┘ │ │ │   
         TfrmMeds.mnuActHoldClick┤   │ │ │   
        TfrmMeds.mnuActRenewClick┤   │ │ │   
       TfrmMeds.mnuActUnholdClick┤   │ │ │   
       TfrmMeds.mnuActChangeClick┤   │ │ │   
         TfrmMeds.mnuActCopyClick┤   │ │ │   
       TfrmMeds.mnuActRefillClick┘   │ │ │   
                   TfrmFrame.ViewInfo┘ │ │   
                TfrmDCSumm.ViewInfo┤   │ │   
              TfrmConsults.ViewInfo┤   │ │   
      TfrmFrame.pnlRemindersMouseUp┤   │ │   
       TfrmFrame.RemindersChanged┘ │   │ │   
           TfrmFrame.FormCreate┘   │   │ │   
             TfrmFrame.pnlCIRNClick┤   │ │   
       TfrmFrame.pnlVistaWebClick┤ │   │ │   
            TfrmFrame.FormKeyDown┘ │   │ │   
          TfrmFrame.pnlPatientClick┤   │ │   
            TfrmFrame.pnlVisitClick┤   │ │   
      TfrmFrame.pnlPrimaryCareClick┤   │ │   
        TfrmFrame.pnlRemindersClick┤   │ │   
         TfrmFrame.pnlPostingsClick┤   │ │   
             TfrmFrame.pnlFlagClick┤   │ │   
               TfrmFrame.laMHVClick┤   │ │   
              TfrmFrame.laVAA2Click┤   │ │   
                TfrmOrders.ViewInfo┤   │ │   
                  TfrmMeds.ViewInfo┤   │ │   
               TfrmSurgery.ViewInfo┤   │ │   
                 TfrmNotes.ViewInfo┤   │ │   
              TfrmProblems.ViewInfo┘   │ │   
      TfrmFrame.mnuFileNotifRemoveClick┤ │   
              TfrmFrame.NextButtonClick┘ │   
            TfrmFrame.SetUpNextButton┘   │   
      TfrmFrame.mnuFileOpenClick...┤     │   
               TfrmFrame.FormResize┘     │   
             TfrmFrame.ChangeFont┘       │   
     TfrmFrame.LoadSizesForUser┤         │   
TfrmFrame.LoadUserPreferences┘ │         │   
       TfrmFrame.UMInitiate┘   │         │   
     TfrmFrame.mnuFontSizeClick┘         │   
            TfrmFrame.mnuFileOpenClick...┤   
            TfrmFrame.ctxContextorPending┤   
           TfrmFrame.StartCCOWContextor┘ │   
                 TfrmFrame.FormCreate┘   │   
          TfrmFrame.ctxContextorCommitted┤   
        TfrmFrame.StartCCOWContextor...┘ │   
   TfrmFrame.mnuFileResumeContextGetClick┤   
   TfrmFrame.mnuFileResumeContextSetClick┘   

Calls

Name Declaration Comments
ActiveOrdering function ActiveOrdering: Boolean; -
CloseOrdering function CloseOrdering: Boolean; -

Called-By

Name Declaration Comments
TfrmFrame.AllowContextChangeAll function AllowContextChangeAll(var Reason: string): Boolean; -


Source

385   function TfrmOrders.AllowContextChange(var WhyNot: string): Boolean;
386   begin
387     Result := inherited AllowContextChange(WhyNot);  // sets result = true
388     case BOOLCHAR[frmFrame.CCOWContextChanging] of
389       '1': if ActiveOrdering then
390              begin
391                WhyNot := 'Orders in progress will be discarded.';
392                Result := False;
393              end;
394       '0': Result := CloseOrdering;  // call in uOrders, should move to fFrame
395     end;
396   end;