Procedure

TfrmDCSumm.tvSummsChange

Module

fDCSumm

Last Modified

7/15/2014 3:26:36 PM

Visibility

Public/Published

Owner

TfrmDCSumm

Declaration

procedure tvSummsChange(Sender: TObject; Node: TTreeNode);

Calls Hierarchy


TfrmDCSumm.tvSummsChange
 ├CanBeAttached
 ├CanReceiveAttachment
 ├TraverseTree
 │ ├ContextMatch
 │ ├TextFound
 │ ├AddListViewItem
 │ └..(rec)..
 ├TfrmDCSumm.lvSummsSelectItem
 │ └TfrmDCSumm.lstSummsClick
 │   ├MakeDCSummDisplayText
 │   ├LoadDocumentText
 │   ├TfrmDCSumm.DisplayPCE
 │   │ ├TPCEData.AddStrData
 │   │ │ ├Add
 │   │ │ ├TPCEData.StrVisitType
 │   │ │ │ ├GetPCEDataText
 │   │ │ │ │ └GetDiagnosisText
 │   │ │ │ ├TPCEProc.ModText
 │   │ │ │ │ └ModifierName
 │   │ │ │ │   └ModifierIdx
 │   │ │ │ │     ├TPCEData.VisitDateTime
 │   │ │ │ │     │ └TPCEData.IsSecondaryVisit
 │   │ │ │ │     ├FMToday
 │   │ │ │ │     │ └FMNow
 │   │ │ │ │     └MixedCaseModifier
 │   │ │ │ └TPCEData.StrVisitType
 │   │ │ │   └AddTxt
 │   │ │ ├TPCEData.StrDiagnoses
 │   │ │ │ └GetPCEDataText...
 │   │ │ ├TPCEData.StrProcedures
 │   │ │ │ ├GetPCEDataText...
 │   │ │ │ └TPCEProc.ModText...
 │   │ │ ├TPCEData.StrImmunizations
 │   │ │ │ └GetPCEDataText...
 │   │ │ ├TPCEData.StrSkinTests
 │   │ │ │ └GetPCEDataText...
 │   │ │ ├TPCEData.StrPatientEds
 │   │ │ │ └GetPCEDataText...
 │   │ │ ├TPCEData.StrHealthFactors
 │   │ │ │ └GetPCEDataText...
 │   │ │ └TPCEData.StrExams
 │   │ │   └GetPCEDataText...
 │   │ ├GetVitalsFromDate
 │   │ │ ├TPCEData.IsSecondaryVisit
 │   │ │ └GetVitalsFromEncDateTime
 │   │ ├TPCEData.AddVitalData
 │   │ │ └FormatVitalForNote
 │   │ │   └ConvertVitalData
 │   │ ├CanEditPCE
 │   │ │ ├GetAskPCE
 │   │ │ └FutureEncounter
 │   │ │   └FMToday...
 │   │ ├TfrmDCSumm.ShowPCEControls
 │   │ ├TfrmDrawers.DisplayDrawers
 │   │ │ └..(rec)..
 │   │ ├ActOnDocument
 │   │ ├TPCEData.PCEForNote
 │   │ │ ├TEncounter.GetVisitStr
 │   │ │ │ └TEncounter.GetVisitCategory
 │   │ │ ├VisitStrForNote
 │   │ │ ├TPCEData.GetVisitString
 │   │ │ │ └TPCEData.VisitDateTime...
 │   │ │ ├TPCEData.CopyPCEData
 │   │ │ │ ├TPCEData.Clear
 │   │ │ │ │ ├ClearList
 │   │ │ │ │ ├TPCEProc.Clear
 │   │ │ │ │ │ └TPCEItem.Clear
 │   │ │ │ │ │   └TPCEItem.SetComment
 │   │ │ │ │ └TPCEProviderList.Clear
 │   │ │ │ │   └TPCEProviderList.GetPrimaryIdx
 │   │ │ │ ├TPCEProc.CopyProc
 │   │ │ │ │ └TPCEItem.SetComment
 │   │ │ │ ├TPCEProviderList.Assign
 │   │ │ │ └TPCEData.CopyPCEItems
 │   │ │ │   └TPCEItem.Assign
 │   │ │ │     └TPCEItem.SetComment
 │   │ │ ├TPCEData.IsSecondaryVisit
 │   │ │ ├GetLocSecondaryVisitCode
 │   │ │ ├TPCEData.Clear...
 │   │ │ ├LoadPCEDataForNote
 │   │ │ ├ListVisitTypeByLoc
 │   │ │ ├SetRPCEncLocation
 │   │ │ ├SCCValue
 │   │ │ ├TPCEProviderList.Add
 │   │ │ │ ├TPCEProviderList.GetPrimaryIdx
 │   │ │ │ ├TPCEProviderList.IndexOfProvider
 │   │ │ │ └TPCEProviderList.SetPrimaryIdx
 │   │ │ │   ├TPCEProviderList.GetPrimaryIdx
 │   │ │ │   └TPCEProviderList.SetPrimary
 │   │ │ ├AppendComment
 │   │ │ ├TPCEDiag.SetFromString
 │   │ │ │ └TPCEItem.SetFromString
 │   │ │ │   └TPCEItem.SetComment
 │   │ │ ├TPCEProc.SetFromString
 │   │ │ │ └TPCEItem.SetFromString...
 │   │ │ ├TPCEImm.SetFromString
 │   │ │ │ └TPCEItem.SetFromString...
 │   │ │ ├TPCESkin.SetFromString
 │   │ │ │ ├TPCEItem.SetFromString...
 │   │ │ │ └StrToFMDateTime
 │   │ │ ├TPCEPat.SetFromString
 │   │ │ │ └TPCEItem.SetFromString...
 │   │ │ ├TPCEHealth.SetFromString
 │   │ │ │ └TPCEItem.SetFromString...
 │   │ │ └TPCEExams.SetFromString
 │   │ │   └TPCEItem.SetFromString...
 │   │ └GetVitalsFromNote
 │   │   ├TPCEData.IsSecondaryVisit
 │   │   ├GetVitalsFromEncDateTime
 │   │   └GetVitalFromNoteIEN
 │   └NotifyOtherApps
 │     ├AppNotificationEnabled
 │     │ └TNotifyAppsThread.CreateThread
 │     └TNotifyAppsThread.ResumeIfIdle
 ├TfrmDCSumm.ShowPCEControls
 └TfrmDCSumm.lstSummsClick...

Called-By Hierarchy


                                              TfrmDCSumm.tvSummsChange
                                           TfrmDCSumm.SaveEditedSumm┤ 
                                        TfrmDCSumm.SaveCurrentSumm┘ │ 
                                   TfrmDCSumm.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┘   │   │ 
                                      TfrmDCSumm.LstSummsToPrint┤   │ 
                      TfrmFrame.mnuFilePrintSelectedItemsClick┘ │   │ 
                                         TfrmDCSumm.RequestPrint┤   │ 
                                   TfrmFrame.mnuFilePrintClick┘ │   │ 
                                        TfrmDCSumm.InsertNewSumm┤   │ 
                                     TfrmDCSumm.mnuActNewClick┤ │   │ 
                                  TfrmDCSumm.cmdNewSummClick┘ │ │   │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┘ │   │ 
                                         TfrmDCSumm.mnuViewClick┤   │ 
                                     TfrmDCSumm.SetViewContext┤ │   │ 
                                      TfrmDCSumm.DisplayPage┤ │ │   │ 
                      TfrmDCSumm.mnuViewReturntoDefaultClick┘ │ │   │ 
                          TfrmDCSumm.mnuViewSaveAsDefaultClick┘ │   │ 
                                         TfrmDCSumm.StartNewEdit┤   │ 
                                  TfrmDCSumm.mnuActNewClick...┤ │   │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┤ │   │ 
                                  TfrmDCSumm.mnuActAddendClick┤ │   │ 
                                    TfrmDCSumm.mnuActEditClick┘ │   │ 
                        TfrmDCSumm.mnuActDetachFromIDParentClick┤   │ 
                                    TfrmDCSumm.mnuActDeleteClick┤   │ 
                                  TfrmDCSumm.SaveEditedSumm...┘ │   │ 
                                      TfrmDCSumm.mnuActSaveClick┤   │ 
                                      TfrmDCSumm.mnuActSignClick┤   │ 
                                         TfrmDCSumm.SaveSignItem┤   │ 
                                         TfrmReview.cmdOKClick┘ │   │ 
                                               ReviewChanges┘   │   │ 
                        TfrmFrame.AllowContextChangeAll...┤     │   │ 
                                  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┘               │   │ 
                                            TfrmDCSumm.FormClose┤   │ 
                       TfrmDCSumm.mnuActIdentifyAddlSignersClick┤   │ 
                           TfrmDCSumm.popSummMemoAddlSignClick┘ │   │ 
                                 TfrmDCSumm.ProcessNotifications┤   │ 
                                        TfrmDCSumm.DisplayPage┘ │   │ 
                                    TfrmDCSumm.SetViewContext...┤   │ 
                                      TfrmDCSumm.tvSummsDragDrop┤   │ 
                                     TfrmDCSumm.tvSummsStartDrag┤   │ 
                          TfrmDCSumm.mnuActAttachtoIDParentClick┘   │ 
                                          TfrmDCSumm.mnuActSignClick┤ 
                                  TfrmDCSumm.ProcessNotifications...┤ 
                                                TfrmDCSumm.LoadSumms┘ 
                                     TfrmDCSumm.LstSummsToPrint...┤   
                                        TfrmDCSumm.mnuViewClick...┤   
                                        TfrmDCSumm.StartNewEdit...┤   
                          TfrmDCSumm.mnuActDetachFromIDParentClick┤   
                                   TfrmDCSumm.mnuActDeleteClick...┤   
                                        TfrmDCSumm.mnuActSaveClick┤   
                                        TfrmDCSumm.mnuActSignClick┤   
                                        TfrmDCSumm.SaveSignItem...┤   
                      TfrmDCSumm.mnuActIdentifyAddlSignersClick...┤   
                            TfrmDCSumm.mnuActAttachtoIDParentClick┤   
                                        TfrmDCSumm.DoAttachIDChild┘   
                                      TfrmDCSumm.tvSummsDragDrop┤     
                          TfrmDCSumm.mnuActAttachtoIDParentClick┘     

Calls

Name Declaration Comments
CanBeAttached function CanBeAttached(DocID: string; var WhyNot: string): boolean; -
CanReceiveAttachment function CanReceiveAttachment(DocID: string; var WhyNot: string): boolean; -
TfrmDCSumm.lstSummsClick procedure lstSummsClick(Sender: TObject); -
TfrmDCSumm.lvSummsSelectItem procedure lvSummsSelectItem(Sender: TObject; Item: TListItem; Selected: Boolean); -
TfrmDCSumm.ShowPCEControls procedure ShowPCEControls(ShouldShow: Boolean); -
TraverseTree procedure TraverseTree(ATree: TTreeView; AListView: TListView; ANode: TTreeNode; MyNodeID: string; AContext: TTIUContext); -

Called-By

Name Declaration Comments
TfrmDCSumm.LoadSumms procedure LoadSumms; -
TfrmDCSumm.mnuActSignClick procedure mnuActSignClick(Sender: TObject); -
TfrmDCSumm.ProcessNotifications procedure ProcessNotifications; -
TfrmDCSumm.SaveEditedSumm procedure SaveEditedSumm(var Saved: Boolean); -


Source

2688  procedure TfrmDCSumm.tvSummsChange(Sender: TObject; Node: TTreeNode);
2689  var
2690    x, MySearch, MyNodeID: string;
2691    i: integer;
2692    WhyNot: string;
2693  begin
2694    if uChanging then Exit;
2695    //This gives the change a chance to occur when keyboarding, so that WindowEyes
2696    //doesn't use the old value.
2697    Application.ProcessMessages;
2698    with tvSumms do
2699      begin
2700        memSumm.Clear;
2701        if Selected = nil then Exit;
2702        if uIDNotesActive then
2703          begin
2704            mnuActDetachFromIDParent.Enabled := (Selected.ImageIndex in [IMG_ID_CHILD, IMG_ID_CHILD_ADD]);
2705            popSummListDetachFromIDParent.Enabled := (Selected.ImageIndex in [IMG_ID_CHILD, IMG_ID_CHILD_ADD]);
2706            if (Selected.ImageIndex in [IMG_SINGLE, IMG_PARENT, IMG_ID_CHILD, IMG_ID_CHILD_ADD]) then
2707              mnuActAttachtoIDParent.Enabled := CanBeAttached(PDocTreeObject(Selected.Data)^.DocID, WhyNot)
2708            else
2709              mnuActAttachtoIDParent.Enabled := False;
2710            popSummListAttachtoIDParent.Enabled := mnuActAttachtoIDParent.Enabled;
2711            if (Selected.ImageIndex in [IMG_SINGLE, IMG_PARENT,
2712                                        IMG_IDNOTE_OPEN, IMG_IDNOTE_SHUT,
2713                                        IMG_IDPAR_ADDENDA_OPEN, IMG_IDPAR_ADDENDA_SHUT]) then
2714              mnuActAddIDEntry.Enabled := CanReceiveAttachment(PDocTreeObject(Selected.Data)^.DocID, WhyNot)
2715            else
2716              mnuActAddIDEntry.Enabled := False;
2717            popSummListAddIDEntry.Enabled := mnuActAddIDEntry.Enabled
2718          end;
2719        RedrawSuspend(lvSumms.Handle);
2720        RedrawSuspend(memSumm.Handle);
2721        popSummListExpandSelected.Enabled := Selected.HasChildren;
2722        popSummListCollapseSelected.Enabled := Selected.HasChildren;
2723        x := TORTreeNode(Selected).StringData;
2724        if (Selected.ImageIndex in [IMG_TOP_LEVEL, IMG_GROUP_OPEN, IMG_GROUP_SHUT]) then
2725          begin
2726            lvSumms.Visible := True;
2727            lvSumms.Items.Clear;
2728            lvSumms.Height := (2 * lvSumms.Parent.Height) div 5;
2729            with lblTitle do
2730              begin
2731                Caption := Trim(Selected.Text);
2732                if (FCurrentContext.SearchField <> '') and (FCurrentContext.Filtered) then
2733                  begin
2734                    case FCurrentContext.SearchField[1] of
2735                      'T': MySearch := 'TITLE';
2736                      'S': MySearch := 'SUBJECT';
2737                      'B': MySearch := 'TITLE or SUBJECT';
2738                    end;
2739                    Caption := Caption + ' where ' + MySearch + ' contains "' + UpperCase(FCurrentContext.Keyword) + '"';
2740                  end;
2741                Hint := Caption;
2742                lvSumms.Caption := Caption;
2743              end;
2744  
2745            if Selected.ImageIndex = IMG_TOP_LEVEL then
2746              MyNodeID := Piece(TORTreeNode(Selected).StringData, U, 1)
2747            else if Selected.Parent.ImageIndex = IMG_TOP_LEVEL then
2748              MyNodeID := Piece(TORTreeNode(Selected.Parent).StringData, U, 1)
2749            else if Selected.Parent.Parent.ImageIndex = IMG_TOP_LEVEL then
2750              MyNodeID := Piece(TORTreeNode(Selected.Parent.Parent).StringData, U, 1);
2751  
2752            uChanging := True;
2753            TraverseTree(tvSumms, lvSumms, Selected.GetFirstChild, MyNodeID, FCurrentContext);
2754            with lvSumms do
2755              begin
2756                for i := 0 to Columns.Count - 1 do
2757                  Columns[i].ImageIndex := IMG_NONE;
2758                ColumnSortForward := FCurrentContext.ListAscending;
2759                if ColumnToSort = 5 then ColumnToSort := 0;
2760                if ColumnSortForward then
2761                  Columns[ColumnToSort].ImageIndex := IMG_ASCENDING
2762                else
2763                  Columns[ColumnToSort].ImageIndex := IMG_DESCENDING;
2764                if ColumnToSort = 0 then ColumnToSort := 5;
2765                AlphaSort;
2766                Columns[5].Width := 0;
2767                Columns[6].Width := 0;
2768              end;
2769            uChanging := False;
2770            with lvSumms do
2771              if Items.Count > 0 then
2772                begin
2773                  Selected := Items[0];
2774                  lvSummsSelectItem(Self, Selected, True);
2775                end
2776              else
2777                begin
2778                  Selected := nil;
2779                  lstSumms.ItemIndex := -1;
2780                  memPCEShow.Clear;
2781                  ShowPCEControls(False);
2782                end;
2783            pnlWrite.Visible := False;
2784            pnlRead.Visible := True;
2785  (*          UpdateReminderFinish;
2786            ShowPCEControls(False);
2787            frmDrawers.DisplayDrawers(FALSE);
2788            cmdNewSumm.Visible := TRUE;
2789            cmdPCE.Visible := FALSE;
2790            lblSpace1.Top := cmdNewSumm.Top - lblSpace1.Height;*)
2791            //memSumm.Clear;
2792          end
2793        else if StrToIntDef(Piece(x, U, 1), 0) > 0 then
2794          begin
2795            memSumm.Clear;
2796            lvSumms.Visible := False;
2797            lstSumms.SelectByID(Piece(x, U, 1));
2798            lstSummsClick(Self);
2799            SendMessage(memSumm.Handle, WM_VSCROLL, SB_TOP, 0);
2800          end;
2801        SendMessage(tvSumms.Handle, WM_HSCROLL, SB_THUMBTRACK, 0);
2802        RedrawActivate(lvSumms.Handle);
2803        RedrawActivate(memSumm.Handle);
2804      end;
2805  end;