Procedure

TfrmPCEBaseMain.GridChanged

Directives

Virtual

Module

fPCEBaseMain

Last Modified

8/5/2014 10:18:06 AM

Comments

Procedure UpdateNewItem(APCEItem: TPCEItem); virtual;

Visibility

Protected

Owner

TfrmPCEBaseMain

Declaration

procedure GridChanged; virtual;

Calls Hierarchy


TfrmPCEBaseMain.GridChanged
 ├TfrmPCEBaseMain.BeginUpdate
 ├TfrmPCEBaseGrid.SaveGridSelected
 ├TPCEItem.ItemStr
 ├TfrmPCEBaseGrid.RestoreGridSelected
 ├TfrmPCEBaseGrid.SyncGridData
 │ ├TfrmPCEBaseGrid.SaveGridSelected
 │ ├TfrmPCEBaseGrid.RestoreGridSelected
 │ └TfrmPCEBaseGrid.SyncGridHeader
 ├TfrmPCEBaseMain.EndUpdate
 └TfrmPCEBaseMain.UpdateControls
   ├TfrmPCEBaseMain.NotUpdating
   ├TfrmPCEBaseMain.BeginUpdate
   ├TfrmPCEBaseGrid.GetGridIndex
   └TfrmPCEBaseMain.EndUpdate

Called-By Hierarchy


                                                 TfrmPCEBaseMain.GridChanged
                                                   TfrmPCEBaseMain.InitTab┤ 
                                         TfrmEncounterFrame.SynchPCEData┘ │ 
                                                             UpdatePCE┘   │ 
                                                TPCEData.OK2SignNote┤     │ 
                                                         IsOK2Sign┘ │     │ 
                                      TfrmDCSumm.mnuActSignClick┤   │     │ 
                                         TfrmDCSumm.SaveSignItem┤   │     │ 
                                         TfrmReview.cmdOKClick┘ │   │     │ 
                                               ReviewChanges┘   │   │     │ 
                           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┘ │     │   │     │ 
                                  TfrmFrame.FormCloseQuery┤     │   │     │ 
                              TfrmFrame.mnuFileReviewClick┤     │   │     │ 
                                           UpdateEncounter┘     │   │     │ 
                         TfrmFrame.mnuFileEncounterClick┤       │   │     │ 
                                 TfrmFrame.ViewInfo...┤ │       │   │     │ 
                    TfrmODMedIV.SetValuesFromResponses┤ │       │   │     │ 
                             TfrmODMedIV.SetupDialog┤ │ │       │   │     │ 
                   TfrmODMedIV.cboSolutionMouseClick┘ │ │       │   │     │ 
                       TfrmODMedIV.cboSolutionExit┘   │ │       │   │     │ 
                  TfrmODMedIV.cboSolutionMouseClick...┤ │       │   │     │ 
                     TfrmODMedIV.cboAdditiveMouseClick┤ │       │   │     │ 
                         TfrmODMedIV.cboAdditiveExit┘ │ │       │   │     │ 
                                TfrmODAuto.SetupDialog┤ │       │   │     │ 
                                   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┘   │ │       │   │     │ 
                               TfrmOMSet.InsertList...┤ │       │   │     │ 
                                TfrmODMeds.SetupDialog┤ │       │   │     │ 
                             TfrmODMeds.btnSelectClick┤ │       │   │     │ 
                             TfrmODMeds.UMDelayClick┘ │ │       │   │     │ 
                                    ExecuteRenewOrders┘ │       │   │     │ 
                         TfrmOrders.mnuActRenewClick┤   │       │   │     │ 
                           TfrmMeds.mnuActRenewClick┘   │       │   │     │ 
                                        EncounterPresent┤       │   │     │ 
                                      ReadyForNewOrder┤ │       │   │     │ 
                           TfrmRemDlg.btnFinishClick┤ │ │       │   │     │ 
        TfrmConsults.mnuActNewConsultRequestClick...┤ │ │       │   │     │ 
             TfrmConsults.mnuActNewProcedureClick...┤ │ │       │   │     │ 
                                     ChangeOrders...┤ │ │       │   │     │ 
                                     ChangeOrdersEvt┤ │ │       │   │     │ 
                                       CopyOrders...┤ │ │       │   │     │ 
                                   TransferOrders...┤ │ │       │   │     │ 
                            TfrmOrders.lstWriteClick┤ │ │       │   │     │ 
                             TfrmMeds.mnuActNewClick┘ │ │       │   │     │ 
                                     ReadyForNewOrder1┤ │       │   │     │ 
            TfrmOrders.PlaceOrderForDefaultDialog...┘ │ │       │   │     │ 
                              TfrmOrders.mnuActDCClick┤ │       │   │     │ 
                             TfrmOrders.mnuActRelClick┤ │       │   │     │ 
                            TfrmOrders.mnuActHoldClick┤ │       │   │     │ 
                          TfrmOrders.mnuActUnholdClick┤ │       │   │     │ 
                           TfrmOrders.mnuActRenewClick┤ │       │   │     │ 
                         TfrmOrders.mnuActReleaseClick┤ │       │   │     │ 
                         TfrmOrders.mnuActOnChartClick┤ │       │   │     │ 
                            TfrmOrders.mnuActSignClick┤ │       │   │     │ 
                                TfrmMeds.mnuActDCClick┤ │       │   │     │ 
                              TfrmMeds.mnuActHoldClick┤ │       │   │     │ 
                             TfrmMeds.mnuActRenewClick┤ │       │   │     │ 
                            TfrmMeds.mnuActUnholdClick┤ │       │   │     │ 
                              TfrmMeds.mnuActCopyClick┤ │       │   │     │ 
                            TfrmMeds.mnuActRefillClick┘ │       │   │     │ 
                                     EncounterPresentEDO┤       │   │     │ 
                                   ReadyForNewOrder...┤ │       │   │     │ 
                         TfrmOrders.mnuActChgEvntClick┤ │       │   │     │ 
                          TfrmOrders.mnuActChangeClick┤ │       │   │     │ 
                            TfrmOrders.mnuActCopyClick┤ │       │   │     │ 
                       TfrmOrders.btnDelayedOrderClick┤ │       │   │     │ 
                            TfrmMeds.mnuActChangeClick┤ │       │   │     │ 
                              TfrmMeds.mnuActCopyClick┘ │       │   │     │ 
                                             UpdateVisit┤       │   │     │ 
                                           EditPCEData┤ │       │   │     │ 
                             TfrmSurgery.cmdPCEClick┤ │ │       │   │     │ 
                                 UpdateEncounterInfo┘ │ │       │   │     │ 
                             TfrmNotes.cmdPCEClick┘   │ │       │   │     │ 
                        TfrmVitals.btnEnterVitalsClick┘ │       │   │     │ 
                                             UpdateVisit┤       │   │     │ 
                                        EncounterPresent┘       │   │     │ 
                         TfrmProblems.lstProbActsClick┘         │   │     │ 
                     TfrmProblems.wgProbDataDblClick┤           │   │     │ 
                           TfrmProblems.lstViewClick┘           │   │     │ 
                   TfrmProblems.HighlightDuplicate┘             │   │     │ 
                         TfrmProblems.AddProblem┤               │   │     │ 
              TfrmProblems.lstProbActsClick...┤ │               │   │     │ 
                 TfrmProblems.lstProbPickClick┤ │               │   │     │ 
              TfrmProblems.lstProbPickDblClick┤ │               │   │     │ 
              TfrmProblems.edProbEntKeyPress┘ │ │               │   │     │ 
                      TfrmProblems.UMPLLexicon┘ │               │   │     │ 
                   TfrmdlgProb.bbChangeProbClick┘               │   │     │ 
                           TfrmConsults.mnuActSignatureSignClick┤   │     │ 
                                       TfrmConsults.SaveSignItem┤   │     │ 
                                      TfrmReview.cmdOKClick...┘ │   │     │ 
                                     TfrmSurgery.mnuActSignClick┤   │     │ 
                                        TfrmSurgery.SaveSignItem┤   │     │ 
                                      TfrmReview.cmdOKClick...┘ │   │     │ 
                                       TfrmNotes.mnuActSignClick┤   │     │ 
                                          TfrmNotes.SaveSignItem┘   │     │ 
                                      TfrmReview.cmdOKClick...┘     │     │ 
                                              TfrmDCSumm.cmdPCEClick┤     │ 
                                            TfrmConsults.cmdPCEClick┤     │ 
                                                      EditPCEData...┤     │ 
                                             TfrmSurgery.cmdPCEClick┤     │ 
                                              UpdateEncounterInfo...┘     │ 
                                            TfrmExams.cboExamResultsChange┤ 
                                    TfrmHealthFactors.cboHealthLevelChange┤ 
                                   TfrmPatientEd.cboPatUnderstandingChange┤ 
                                        TfrmSkinTests.cboSkinResultsChange┤ 
                                            TfrmSkinTests.EdtReadingChange┤ 
                                       TfrmSkinTests.UpDnReadingChanging┘ │ 
                                      TfrmImmunizations.cboImmSeriesChange┤ 
                                    TfrmImmunizations.cboImmReactionChange┤ 
                                          TfrmImmunizations.ckbContraClick┤ 
                                           TfrmProcedures.txtProcQtyChange┤ 
                                          TfrmProcedures.cboProviderChange┤ 
                                           TfrmProcedures.lbModsClickCheck┤ 
                                       TfrmProcedures.lbxSectionClickCheck┤ 
                                           TfrmDiagnoses.EnsurePrimaryDiag┤ 
                                            TfrmDiagnoses.btnRemoveClick┤ │ 
                                      TfrmDiagnoses.lbxSectionClickCheck┘ │ 
                                         TfrmDiagnoses.cmdDiagPrimaryClick┤ 
                                          TfrmDiagnoses.ckbDiagProbClicked┘ 

Calls

Name Declaration Comments
TfrmPCEBaseMain.BeginUpdate procedure BeginUpdate; -
TfrmPCEBaseMain.EndUpdate procedure EndUpdate; -
TPCEItem.ItemStr function ItemStr: string; virtual; -
TfrmPCEBaseGrid.RestoreGridSelected procedure RestoreGridSelected; -
TfrmPCEBaseGrid.SaveGridSelected procedure SaveGridSelected; -
TfrmPCEBaseGrid.SyncGridData procedure SyncGridData; -
TfrmPCEBaseMain.UpdateControls procedure UpdateControls; override; -

Called-By

Name Declaration Comments
TfrmExams.cboExamResultsChange procedure cboExamResultsChange(Sender: TObject); -
TfrmHealthFactors.cboHealthLevelChange procedure cboHealthLevelChange(Sender: TObject); -
TfrmImmunizations.cboImmReactionChange procedure cboImmReactionChange(Sender: TObject); -
TfrmImmunizations.cboImmSeriesChange procedure cboImmSeriesChange(Sender: TObject); -
TfrmPatientEd.cboPatUnderstandingChange procedure cboPatUnderstandingChange(Sender: TObject); -
TfrmProcedures.cboProviderChange procedure cboProviderChange(Sender: TObject); -
TfrmSkinTests.cboSkinResultsChange procedure cboSkinResultsChange(Sender: TObject); -
TfrmImmunizations.ckbContraClick procedure ckbContraClick(Sender: TObject); -
TfrmDiagnoses.ckbDiagProbClicked procedure ckbDiagProbClicked(Sender: TObject); -
TfrmDiagnoses.cmdDiagPrimaryClick procedure cmdDiagPrimaryClick(Sender: TObject); -
TfrmSkinTests.EdtReadingChange procedure EdtReadingChange(Sender: TObject); -
TfrmDiagnoses.EnsurePrimaryDiag procedure EnsurePrimaryDiag; -
TfrmPCEBaseMain.InitTab procedure InitTab(ACopyProc: TCopyItemsMethod; AListProc: TListSectionsProc); -
TfrmProcedures.lbModsClickCheck procedure lbModsClickCheck(Sender: TObject; Index: Integer); -
TfrmProcedures.lbxSectionClickCheck procedure lbxSectionClickCheck(Sender: TObject; Index: Integer); -
TfrmProcedures.txtProcQtyChange procedure txtProcQtyChange(Sender: TObject); -


Source

131   procedure TfrmPCEBaseMain.GridChanged;
132   var
133     i: integer;
134     tmpList: TStringList;
135   begin
136     tmpList := TStringList.Create;
137     BeginUpdate;
138     try
139       SaveGridSelected;
140       FastAssign(lbGrid.Items, tmpList);
141       for i := 0 to lbGrid.Items.Count-1 do
142       begin
143         //lbGrid.Items[i] := TPCEItem(lbGrid.Items.Objects[i]).ItemStr;   v22.5 - RV
144         tmpList[i] := TPCEItem(lbGrid.Items.Objects[i]).ItemStr;
145         tmpList.Objects[i] := lbGrid.Items.Objects[i];
146       end;
147     //FastAssign(tmpList,lbGrid.Items); //cq: 13228  Causin a/v errors.
148       lbGrid.Items.Assign(tmpList);    //cq: 13228
149       RestoreGridSelected;
150       SyncGridData;
151     finally
152       EndUpdate;
153       tmpList.Free;
154     end;
155     UpdateControls;
156   end;