Function

TChanges.ExistForOrder

Module

uCore

Last Modified

7/15/2014 3:26:44 PM

Comments

Returns TRUE if any item in the list of orders has matching order number (ignores action)

Visibility

Public

Owner

TChanges

Declaration

function ExistForOrder(const AnID: string): Boolean;

Called-By Hierarchy


                                  TChanges.ExistForOrder
                                  AddSelectedToChanges┤ 
                          TfrmOrders.mnuActHoldClick┤ │ 
                        TfrmOrders.mnuActUnholdClick┤ │ 
                         TfrmOrders.mnuActRenewClick┤ │ 
                            TfrmMeds.mnuActHoldClick┤ │ 
                           TfrmMeds.mnuActRenewClick┤ │ 
                          TfrmMeds.mnuActUnholdClick┘ │ 
                                   ActivateOrderDialog┤ 
                           TfrmRemDlg.btnFinishClick┤ │ 
           TfrmConsults.mnuActNewConsultRequestClick┤ │ 
                   TfrmConsults.cmdNewConsultClick┘ │ │ 
                TfrmConsults.mnuActNewProcedureClick┤ │ 
                      TfrmConsults.cmdNewProcClick┘ │ │ 
                                        ChangeOrders┤ │ 
                      TfrmOrders.mnuActChangeClick┤ │ │ 
                        TfrmMeds.mnuActChangeClick┘ │ │ 
                                     ChangeOrdersEvt┤ │ 
                                          CopyOrders┤ │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ 
                           TfrmODActive.btnOKClick┘ │ │ 
                                      TransferOrders┤ │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ 
                           TfrmODActive.btnOKClick┘ │ │ 
                            TfrmOrders.lstWriteClick┤ │ 
               TfrmOrders.PlaceOrderForDefaultDialog┤ │ 
                  TfrmOrders.DisplayDefaultDlgList┤ │ │ 
                       TfrmOrders.ResetOrderPage┘ │ │ │ 
               TfrmOrders.btnDelayedOrderClick┘   │ │ │ 
                                 DisplayEvntDialog┤ │ │ 
                             SetDelayEventForMed┘ │ │ │ 
                      TfrmMeds.mnuActCopyClick┘   │ │ │ 
                                 DisplayEvntDialog┤ │ │ 
                                  SetViewForCopy┘ │ │ │ 
                    TfrmOrders.mnuActCopyClick┘   │ │ │ 
                                 DisplayEvntDialog┘ │ │ 
                                ExecuteChangeEvt┘   │ │ 
                 TfrmOrders.mnuActChgEvntClick┘     │ │ 
                             TfrmMeds.mnuActNewClick┤ │ 
                           TfrmOMNavA.ActivateDialog┤ │ 
                         TfrmOMNavA.grdMenuKeyDown┤ │ │ 
                         TfrmOMNavA.grdMenuMouseUp┘ │ │ 
                                TfrmOMSet.DoNextItem┘ │ 
                              TfrmOMSet.InsertList┤   │ 
                               ActivateOrderList┘ │   │ 
                     TfrmRemDlg.btnFinishClick┤   │   │ 
                             ActivateOrderHTML┤   │   │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┘ │   │   │ 
                              ActivateOrderSet┤   │   │ 
                   TfrmRemDlg.btnFinishClick┤ │   │   │ 
TfrmConsults.mnuActNewConsultRequestClick...┤ │   │   │ 
     TfrmConsults.mnuActNewProcedureClick...┤ │   │   │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┤ │   │   │ 
                     TfrmMeds.mnuActNewClick┤ │   │   │ 
                TfrmOMNavA.ActivateDialog...┤ │   │   │ 
                     TfrmOMSet.DoNextItem...┘ │   │   │ 
                       TfrmOMNavA.DoSelectList┘   │   │ 
                     TfrmOMNavA.grdMenuKeyUp┤     │   │ 
                   TfrmOMNavA.grdMenuMouseUp┘     │   │ 
                                        SkipToNext┤   │ 
                         TfrmOMSet.DoNextItem...┘ │   │ 
                            TfrmOMSet.UMDelayEvent┘   │ 
                                         OrderIsLocked┘ 
                         TfrmOrders.ValidateSelected┤   
                          TfrmOrders.mnuActDCClick┤ │   
                         TfrmOrders.mnuActRelClick┤ │   
                     TfrmOrders.mnuActChgEvntClick┤ │   
                        TfrmOrders.mnuActHoldClick┤ │   
                      TfrmOrders.mnuActUnholdClick┤ │   
                       TfrmOrders.mnuActRenewClick┤ │   
                       TfrmOrders.mnuActAlertClick┤ │   
                    TfrmOrders.mnuActCompleteClick┤ │   
                      TfrmOrders.mnuActVerifyClick┤ │   
                    TfrmOrders.mnuActChartRevClick┤ │   
                      TfrmOrders.mnuActChangeClick┤ │   
                        TfrmOrders.mnuActCopyClick┤ │   
                     TfrmOrders.mnuActReleaseClick┤ │   
                     TfrmOrders.mnuActOnChartClick┤ │   
                        TfrmOrders.mnuActSignClick┘ │   
                           TfrmMeds.ValidateSelected┘   
                            TfrmMeds.mnuActDCClick┤     
                          TfrmMeds.mnuActHoldClick┤     
                         TfrmMeds.mnuActRenewClick┤     
                        TfrmMeds.mnuActUnholdClick┤     
                        TfrmMeds.mnuActChangeClick┤     
                        TfrmMeds.mnuActRefillClick┘     

Called-By

Name Declaration Comments
ActivateOrderDialog function ActivateOrderDialog(const AnID: string; AnEvent: TOrderDelayEvent; AnOwner: TComponent; ARefNum: Integer; ANeedVerify: boolean = True): Boolean; -
AddSelectedToChanges procedure AddSelectedToChanges(AList: TList); -
OrderIsLocked function OrderIsLocked(const AnOrderID, AnAction: string): Boolean; -


Source

1238  function TChanges.ExistForOrder(const AnID: string): Boolean;
1239  { returns TRUE if any item in the list of orders has matching order number (ignores action) }
1240  var
1241    i: Integer;
1242  begin
1243    Result := False;
1244    if fOrders <> nil then with fOrders do
1245      for i := 0 to Count - 1 do
1246        if Piece(TChangeItem(Items[i]).ID, ';', 1) = Piece(AnID, ';', 1) then
1247        begin
1248          Result := True;
1249          Break;
1250        end;
1251  end;