Procedure

TfrmODBase.ClearDialogControls

Module

fODBase

Last Modified

7/15/2014 3:26:40 PM

Comments

Private calls

Visibility

Private

Owner

TfrmODBase

Declaration

procedure ClearDialogControls;

Calls Hierarchy


TfrmODBase.ClearDialogControls
 ├ClearControl
 └TfrmODBase.ShowOrderMessage

Called-By Hierarchy


                                TfrmODBase.ClearDialogControls
                                       TfrmODBase.InitDialog┤ 
                                      TfrmODBase.ValidSave┤ │ 
                               TfrmODBase.cmdAcceptClick┤ │ │ 
                                   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┘     │ │ │ 
                               TfrmODBase.FormCloseQuery┤ │ │ 
                                     TfrmODBase.TabClose┤ │ │ 
                            TfrmODAllergy.cmdAcceptClick┘ │ │ 
                              TfrmODBase.cmdAcceptClick...┤ │ 
                                       TfrmODBase.TabClose┘ │ 
                                     TfrmODBase.ValidSave...┤ 
                                TfrmODBase.cmdAcceptClick...┘ 

Calls

Name Declaration Comments
ClearControl procedure ClearControl(AControl: TControl); -
TfrmODBase.ShowOrderMessage procedure ShowOrderMessage(Show: boolean); -

Called-By

Name Declaration Comments
TfrmODBase.cmdAcceptClick procedure cmdAcceptClick(Sender: TObject); -
TfrmODBase.InitDialog procedure InitDialog; virtual; -
TfrmODBase.ValidSave function ValidSave: Boolean; -


Source

1243  procedure TfrmODBase.ClearDialogControls;
1244  var
1245    i: Integer;
1246  begin
1247    FChanging := True;
1248    for i := 0 to ControlCount - 1 do
1249    begin
1250      // need to check if control is container & clear it's children also
1251      if (Controls[i] is TLabel) or (Controls[i] is TButton) or (Controls[i] is TStaticText) then Continue;
1252      if FPreserve.IndexOf(Controls[i]) < 0 then ClearControl(Controls[i]);
1253    end;
1254    FChanging := False;
1255    ShowOrderMessage( False );
1256  end;