Function

TfrmOrders.CanChangeOrderView

Module

fOrders

Last Modified

7/15/2014 3:26:42 PM

Comments

Disallows changing view while doing delayed release orders.

Visibility

Private

Owner

TfrmOrders

Declaration

function CanChangeOrderView: Boolean;

Calls Hierarchy


TfrmOrders.CanChangeOrderView
 └ActiveOrdering

Called-By Hierarchy


                              TfrmOrders.CanChangeOrderView
                                  TfrmOrders.SetOrderView┤ 
                          TfrmOrders.mnuViewActiveClick┤ │ 
                         TfrmOrders.mnuViewCurrentClick┤ │ 
                        TfrmOrders.mnuViewExpiringClick┤ │ 
                         TfrmOrders.mnuViewExpiredClick┤ │ 
                        TfrmOrders.mnuViewUnsignedClick┤ │ 
                      TfrmOrders.ProcessNotifications┘ │ │ 
                             TfrmOrders.DisplayPage┘   │ │ 
                           TfrmOrders.ViewAlertedOrders┘ │ 
                   TfrmOrders.ProcessNotifications...┘   │ 
                            TfrmOrders.mnuViewCustomClick┤ 
                          TfrmOrders.mnuViewDfltShowClick┤ 
                                 TfrmOrders.DisplayPage┘ │ 
                           TfrmOrders.DfltViewForEvtDelay┤ 
                  TfrmOrders.InitOrderSheetsForEvtDelay┘ │ 
                            TfrmOrders.lstSheetsClick┤   │ 
                       TfraEvntDelayList.CheckMatch┤ │   │ 
                          TfrmOrdersTS.cmdOKClick┘ │ │   │ 
TfrmOrdersTS.fraEvntDelayListmlstEventsDblClick┤   │ │   │ 
                       TfrmOrdersTS.FormKeyDown┘   │ │   │ 
                 TfraEvntDelayList.mlstEventsChange┤ │   │ 
   TfrmOrdersTS.fraEvntDelayListcboEvntListChange┤ │ │   │ 
    TfrmOrdersTS.fraEvntDelayListmlstEventsChange┤ │ │   │ 
    TfrmMedCopy.fraEvntDelayListcboEvntListChange┤ │ │   │ 
     TfrmMedCopy.fraEvntDelayListmlstEventsChange┤ │ │   │ 
 TfrmCopyOrders.fraEvntDelayListcboEvntListChange┤ │ │   │ 
  TfrmCopyOrders.fraEvntDelayListmlstEventsChange┘ │ │   │ 
                 TfrmOrders.mnuViewDfltShowClick...┤ │   │ 
                                          ..(rec)..┤ │   │ 
                           TfrmOrders.lstWriteClick┤ │   │ 
                         TfrmOrders.mnuActCopyClick┤ │   │ 
                         TfrmOrders.mnuActSignClick┤ │   │ 
                          TfrmOrders.ResetOrderPage┤ │   │ 
                  TfrmOrders.btnDelayedOrderClick┘ │ │   │ 
              TfrmOrders.PlaceOrderForDefaultDialog┤ │   │ 
                 TfrmOrders.DisplayDefaultDlgList┤ │ │   │ 
                   TfrmOrders.ResetOrderPage...┘ │ │ │   │ 
                                DisplayEvntDialog┤ │ │   │ 
                            SetDelayEventForMed┘ │ │ │   │ 
                     TfrmMeds.mnuActCopyClick┘   │ │ │   │ 
                                DisplayEvntDialog┤ │ │   │ 
                                 SetViewForCopy┘ │ │ │   │ 
                   TfrmOrders.mnuActCopyClick┘   │ │ │   │ 
                                DisplayEvntDialog┘ │ │   │ 
                               ExecuteChangeEvt┘   │ │   │ 
                TfrmOrders.mnuActChgEvntClick┘     │ │   │ 
                           TfrmOrders.ClickLstSheet┤ │   │ 
            TfraEvntDelayList.mlstEventsChange...┤ │ │   │ 
                     TfrmOrders.ResetOrderPage...┤ │ │   │ 
                        ExecuteReleaseEventOrders┘ │ │   │ 
                      TfrmOrders.mnuActRelClick┘   │ │   │ 
                        TfrmOrders.InitOrderSheets2┤ │   │ 
                     TfrmFrame.mnuFileReviewClick┘ │ │   │ 
                          TfrmOrders.PtEvtCompleted┤ │   │ 
                       TfrmFrame.DetermineNextTab┤ │ │   │ 
                     TfrmFrame.mnuFileOpenClick┤ │ │ │   │ 
                         TfrmFrame.UMInitiate┤ │ │ │ │   │ 
                   TfrmFrame.mnuFileNextClick┤ │ │ │ │   │ 
              TfrmFrame.mnuFileOpenClick...┤ │ │ │ │ │   │ 
          TfrmFrame.mnuFileNotifRemoveClick┤ │ │ │ │ │   │ 
                  TfrmFrame.NextButtonClick┘ │ │ │ │ │   │ 
                TfrmFrame.SetUpNextButton┘   │ │ │ │ │   │ 
          TfrmFrame.mnuFileOpenClick...┤     │ │ │ │ │   │ 
                   TfrmFrame.FormResize┘     │ │ │ │ │   │ 
                 TfrmFrame.ChangeFont┘       │ │ │ │ │   │ 
         TfrmFrame.LoadSizesForUser┤         │ │ │ │ │   │ 
    TfrmFrame.LoadUserPreferences┘ │         │ │ │ │ │   │ 
           TfrmFrame.UMInitiate┘   │         │ │ │ │ │   │ 
         TfrmFrame.mnuFontSizeClick┘         │ │ │ │ │   │ 
                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.UpdateCCOWContext┘ │ │ │   │ 
                TfrmFrame.mnuFileOpenClick...┤   │ │ │   │ 
              TfrmFrame.ctxContextorCommitted┤   │ │ │   │ 
               TfrmFrame.StartCCOWContextor┘ │   │ │ │   │ 
                     TfrmFrame.FormCreate┘   │   │ │ │   │ 
       TfrmFrame.mnuFileResumeContextGetClick┘   │ │ │   │ 
                     TfrmFrame.mnuFileReviewClick┤ │ │   │ 
                     TfrmOrders.lstSheetsClick...┤ │ │   │ 
                         TfrmOrders.lstWriteClick┤ │ │   │ 
                         TfrmOrders.mnuActDCClick┤ │ │   │ 
                    TfrmOrders.mnuActChgEvntClick┤ │ │   │ 
                       TfrmOrders.mnuActHoldClick┤ │ │   │ 
                       TfrmOrders.mnuActFlagClick┤ │ │   │ 
                    TfrmOrders.mnuActCommentClick┤ │ │   │ 
                     TfrmOrders.mnuActChangeClick┤ │ │   │ 
                       TfrmOrders.mnuActCopyClick┤ │ │   │ 
                       TfrmOrders.mnuActSignClick┤ │ │   │ 
                  TfrmOrders.btnDelayedOrderClick┤ │ │   │ 
                         TfrmMeds.mnuActCopyClick┤ │ │   │ 
                          TfrmODActive.btnOKClick┘ │ │   │ 
                            TfrmOrders.UMEventOccur┤ │   │ 
                           TfrmMeds.mnuActCopyClick┤ │   │ 
                            TfrmMeds.mnuActNewClick┤ │   │ 
                             SetDelayEventForMed...┤ │   │ 
                                  SetViewForCopy...┤ │   │ 
                          TfrmCopyOrders.cmdOKClick┤ │   │ 
                      TfrmCopyOrders.UMStillDelay┤ │ │   │ 
TfrmCopyOrders.fraEvntDelayListmlstEventsDblClick┤ │ │   │ 
                       TfrmCopyOrders.FormKeyDown┘ │ │   │ 
                                ExecuteChangeEvt...┤ │   │ 
                                    ExecuteDCOrders┘ │   │ 
                         TfrmOrders.mnuActDCClick┤   │   │ 
                           TfrmMeds.mnuActDCClick┘   │   │ 
                             TfrmOrders.lstWriteClick┤   │ 
                           TfrmOrders.mnuActCopyClick┤   │ 
                           TfrmOrders.mnuActSignClick┤   │ 
                         TfrmOrders.PtEvtCompleted...┤   │ 
                        TfrmOrders.RefreshToFirstItem┤   │ 
                              TfrmOrders.UMEventOccur┤   │ 
                             TfrmMeds.mnuActCopyClick┤   │ 
                                            Highlight┤   │ 
                             SetDelayEventForMed...┘ │   │ 
                                            Highlight┤   │ 
                                  SetViewForCopy...┘ │   │ 
                         ExecuteReleaseEventOrders...┤   │ 
                                  ExecuteChangeEvt...┤   │ 
                               TfrmChgEvent.Highlight┤   │ 
                                ExecuteChangeEvt...┘ │   │ 
                                   ExecuteDCOrders...┘   │ 
                     TfrmOrders.EventRealeasedOrder1Click┘ 

Calls

Name Declaration Comments
ActiveOrdering function ActiveOrdering: Boolean; -

Called-By

Name Declaration Comments
TfrmOrders.DfltViewForEvtDelay procedure DfltViewForEvtDelay; -
TfrmOrders.EventRealeasedOrder1Click procedure EventRealeasedOrder1Click(Sender: TObject); -
TfrmOrders.mnuViewCustomClick procedure mnuViewCustomClick(Sender: TObject); -
TfrmOrders.mnuViewDfltShowClick procedure mnuViewDfltShowClick(Sender: TObject); -
TfrmOrders.SetOrderView procedure SetOrderView(AFilter, ADGroup: Integer; const AViewName: string; NotifSort: Boolean); -


Source

815   function TfrmOrders.CanChangeOrderView: Boolean;
816   { Disallows changing view while doing delayed release orders. }
817   begin
818     Result := True;
819     if (lstSheets.ItemIndex > 0) and ActiveOrdering then
820     begin
821       InfoBox(TX_NOCHG_VIEW, TC_NOCHG_VIEW, MB_OK);
822       Result := False;
823     end;
824   end;