Procedure

TfrmGraphs.SeriesClicks

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Public/Published

Owner

TfrmGraphs

Declaration

procedure SeriesClicks(aChart: TChart; aSeries: TChartSeries; aIndex: integer; lbutton: boolean);

Calls Hierarchy


TfrmGraphs.SeriesClicks
 ├TfrmGraphs.ValueText
 │ ├TfrmGraphs.NonNumText
 │ │ ├TfrmGraphs.FileNameX
 │ │ ├TfrmGraphs.ItemName
 │ │ └TfrmGraphs.SetRefNonNum
 │ │   └TfrmGraphs.RefUnits
 │ │     └TfrmGraphs.SelectRef
 │ │       └CheckRef
 │ ├TfrmGraphs.ItemCheck
 │ ├TfrmGraphs.CheckMedNum
 │ ├TfrmGraphs.FileNameX
 │ ├TfrmGraphs.ValueDates
 │ ├TfrmGraphs.ResultValue
 │ │ ├TfrmGraphs.serDatelineTopGetMarkText
 │ │ └TfrmGraphs.BPValue
 │ └TfrmGraphs.OtherInfo
 │   └TfrmGraphs.SetRef
 │     └TfrmGraphs.RefUnits...
 ├TfrmGraphs.LabNameResults
 └TfrmGraphs.AllTypeDate
   ├TfrmGraphs.CheckToAddData
   │ ├TfrmGraphs.LabData
   │ │ ├rpcGetItemData
   │ │ │ └onoff
   │ │ ├TfrmGraphs.SpecRefCheck
   │ │ │ └TfrmGraphs.RefUnits...
   │ │ ├TfrmGraphs.SpecRefSet
   │ │ │ └MultiRef
   │ │ ├TfrmGraphs.FileNameX
   │ │ ├TfrmGraphs.LabCheck
   │ │ ├TfrmGraphs.DateRangeMultiItems
   │ │ └TfrmGraphs.LabAdd
   │ └rpcGetItemData...
   ├TfrmGraphs.TempData
   │ ├TfrmGraphs.ItemName
   │ └TfrmGraphs.SetRef...
   └ReportBox
     └CreateReportBox
       └TfrmBase508Form.Create
         ├TfrmBase508Form.UpdateAccessibilityActions
         ├UnfocusableControlEnter
         └AdjustControls
           ├TfrmBase508Form.ModifyUnfocusableControl
           └..(rec)..

Called-By Hierarchy


                                        TfrmGraphs.SeriesClicks
                              TfrmGraphs.chartBaseClickSeries┘ 
                                       TfrmGraphs.MakeChart┘   
                             TfrmGraphs.MakeSeparateItems┤     
                                TfrmGraphs.MakeSeparate┘ │     
                               TfrmGraphs.DisplayData┤   │     
                             TfrmFrame.ClearPatient┤ │   │     
                           TfrmFrame.SetupPatient┘ │ │   │     
                      UpdatePatientInfoForAlert┤   │ │   │     
                   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.AllowCCOWContextChange┤   │ │   │     
                TfrmFrame.mnuFileNextClick...┤ │   │ │   │     
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │     
       TfrmFrame.mnuFileResumeContextSetClick┘ │   │ │   │     
                    TfrmFrame.UpdateCCOWContext┤   │ │   │     
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │     
              TfrmFrame.ctxContextorCommitted┤ │   │ │   │     
               TfrmFrame.StartCCOWContextor┘ │ │   │ │   │     
                     TfrmFrame.FormCreate┘   │ │   │ │   │     
       TfrmFrame.mnuFileResumeContextGetClick┘ │   │ │   │     
         TfrmFrame.mnuFileResumeContextSetClick┘   │ │   │     
                            TfrmReports.ClearPtData┤ │   │     
                        TfrmFrame.ClearPatient...┘ │ │   │     
                                  TfrmReports.Graph┤ │   │     
                       TfrmReports.tvReportsClick┘ │ │   │     
                TfrmFrame.lstCIRNLocationsClick┤   │ │   │     
                          TfrmFrame.SetUpCIRN┘ │   │ │   │     
                  TfrmFrame.SetupPatient...┘   │   │ │   │     
                        TfrmReports.DisplayPage┤   │ │   │     
                       TfrmReports.LoadTreeView┤   │ │   │     
                      TfrmReports.DisplayPage┤ │   │ │   │     
         TfrmOptionsReportsDefault.btnOKClick┤ │   │ │   │     
      TfrmOptionsReportsDefault.btnResetClick┤ │   │ │   │     
       TfrmOptionsReportsCustom.btnApplyClick┘ │   │ │   │     
        TfrmOptionsReportsCustom.btnOKClick┘   │   │ │   │     
               TfrmReports.ProcessNotifications┤   │ │   │     
                      TfrmReports.DisplayPage┘ │   │ │   │     
                   TfrmReports.tvReportsKeyDown┤   │ │   │     
                TfrmReports.tvProceduresKeyDown┤   │ │   │     
                    TfrmReports.chkMaxFreqClick┤   │ │   │     
           TfrmOptionsReportsDefault.btnOKClick┤   │ │   │     
        TfrmOptionsReportsDefault.btnResetClick┤   │ │   │     
      TfrmOptionsReportsCustom.btnApplyClick...┘   │ │   │     
                        TfrmGraphs.chkItemsTopClick┤ │   │     
                     TfrmGraphs.chkItemsBottomClick┤ │   │     
                 TfrmGraphs.mnuPopGraphIsolateClick┤ │   │     
                      TfrmGraphs.cboDateRangeChange┤ │   │     
                    TfrmReports.lstDateRangeClick┤ │ │   │     
                         TfrmReports.GraphPanel┘ │ │ │   │     
                         TfrmReports.Graph...┤   │ │ │   │     
                TfrmReports.tvReportsClick...┘   │ │ │   │     
                            TfrmGraphs.Initialize┤ │ │   │     
                      TfrmFrame.ClearPatient...┤ │ │ │   │     
                TfrmFrame.mnuToolsGraphingClick┤ │ │ │   │     
                         TfrmLabs.grdLabClick┤ │ │ │ │   │     
                      TfrmLabs.tvReportsClick┤ │ │ │ │   │     
                       TfrmLabs.DisplayPage┤ │ │ │ │ │   │     
                      TfrmLabs.LoadTreeView┤ │ │ │ │ │   │     
                     TfrmLabs.DisplayPage┤ │ │ │ │ │ │   │     
TfrmOptionsReportsCustom.btnApplyClick...┘ │ │ │ │ │ │   │     
                TfrmLabs.cmdOtherTestsClick┤ │ │ │ │ │   │     
                   TfrmLabs.chkMaxFreqClick┤ │ │ │ │ │   │     
              TfrmLabs.ProcessNotifications┤ │ │ │ │ │   │     
                     TfrmLabs.DisplayPage┘ │ │ │ │ │ │   │     
                                  ..(rec)..┤ │ │ │ │ │   │     
                  TfrmLabs.tvReportsKeyDown┤ │ │ │ │ │   │     
         TfrmFrame.lstCIRNLocationsClick...┘ │ │ │ │ │   │     
                                    ..(rec)..┘ │ │ │ │   │     
                     TfrmReports.ClearPtData...┤ │ │ │   │     
                           TfrmReports.Graph...┘ │ │ │   │     
                              TfrmGraphs.FormShow┤ │ │   │     
                TfrmGraphs.btnChangeSettingsClick┤ │ │   │     
                 TfrmReports.btnChangeViewClick┘ │ │ │   │     
                     TfrmGraphs.CheckExpandedLabs┤ │ │   │     
                          TfrmGraphs.ItemsClick┘ │ │ │   │     
                    TfrmGraphs.DisplayData...┤   │ │ │   │     
               TfrmGraphs.lvwItemsBottomClick┤   │ │ │   │     
                   TfrmGraphs.Initialize...┤ │   │ │ │   │     
                    TfrmGraphs.CheckContext┤ │   │ │ │   │     
                      TfrmGraphs.FormShow┘ │ │   │ │ │   │     
               TfrmGraphs.chkDualViewsClick┤ │   │ │ │   │     
                 TfrmGraphs.Initialize...┤ │ │   │ │ │   │     
                      TfrmGraphs.FormShow┤ │ │   │ │ │   │     
                                   Layout┤ │ │   │ │ │   │     
                     TfrmGraphs.GetSize┘ │ │ │   │ │ │   │     
                  TfrmGraphs.FormShow┘   │ │ │   │ │ │   │     
     TfrmGraphs.mnuPopGraphDualViewsClick┤ │ │   │ │ │   │     
                TfrmGraphs.ViewSelections┘ │ │   │ │ │   │     
          TfrmReports.tvReportsClick...┤   │ │   │ │ │   │     
     TfrmGraphs.btnGraphSelectionsClick┘   │ │   │ │ │   │     
  TfrmReports.btnGraphSelectionsClick┘     │ │   │ │ │   │     
                     TfrmGraphs.GraphSwitch┤ │   │ │ │   │     
                     TfrmGraphs.GraphSwap┘ │ │   │ │ │   │     
        TfrmGraphs.mnuPopGraphSwapClick┘   │ │   │ │ │   │     
                      TfrmGraphs.SplitClick┤ │   │ │ │   │     
         TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │ │ │   │     
           TfrmGraphs.mnuPopGraphClearClick┤ │   │ │ │   │     
                      TfrmGraphs.AutoSelect┤ │   │ │ │   │     
                   TfrmGraphs.ViewsChange┘ │ │   │ │ │   │     
           TfrmGraphs.lstViewsTopChange┤   │ │   │ │ │   │     
             TfrmGraphs.Initialize...┤ │   │ │   │ │ │   │     
            TfrmGraphs.GraphSwitch...┤ │   │ │   │ │ │   │     
     TfrmGraphs.cboDateRangeChange...┤ │   │ │   │ │ │   │     
         TfrmGraphs.ViewSelections...┘ │   │ │   │ │ │   │     
        TfrmGraphs.lstViewsBottomChange┘   │ │   │ │ │   │     
             TfrmGraphs.Initialize...┤     │ │   │ │ │   │     
            TfrmGraphs.GraphSwitch...┤     │ │   │ │ │   │     
     TfrmGraphs.cboDateRangeChange...┤     │ │   │ │ │   │     
         TfrmGraphs.ViewSelections...┘     │ │   │ │ │   │     
            TfrmGraphs.lvwItemsBottomChange┘ │   │ │ │   │     
                  TfrmGraphs.lvwItemsTopClick┘   │ │ │   │     
                   TfrmGraphs.Initialize...┤     │ │ │   │     
                        TfrmGraphs.FormShow┤     │ │ │   │     
            TfrmGraphs.chkDualViewsClick...┤     │ │ │   │     
                  TfrmGraphs.GraphSwitch...┤     │ │ │   │     
                   TfrmGraphs.SplitClick...┤     │ │ │   │     
           TfrmGraphs.mnuPopGraphClearClick┤     │ │ │   │     
                   TfrmGraphs.AutoSelect...┤     │ │ │   │     
           TfrmGraphs.mnuPopGraphResetClick┤     │ │ │   │     
                      TfrmGraphs.FormShow┤ │     │ │ │   │     
    TfrmGraphs.mnuPopGraphHorizontalClick┤ │     │ │ │   │     
      TfrmGraphs.mnuPopGraphVerticalClick┤ │     │ │ │   │     
        TfrmGraphs.mnuPopGraphRemoveClick┤ │     │ │ │   │     
      TfrmGraphs.mnuPopGraphZoomBackClick┘ │     │ │ │   │     
               TfrmGraphs.lvwItemsTopChange┘     │ │ │   │     
                        TfrmGraphs.ViewsChange...┤ │ │   │     
             TfrmGraphs.mnuPopGraphMergeLabsClick┘ │ │   │     
                           TfrmGraphs.ItemsClick...┤ │   │     
                          TfrmGraphs.ViewsChange...┤ │   │     
                  TfrmGraphs.mnuPopGraphRemoveClick┘ │   │     
                         TfrmGraphs.MakeTogetherMaybe┘   │     
                          TfrmGraphs.DisplayData...┘     │     
                                  TfrmGraphs.MakeTogether┘     
                        TfrmGraphs.MakeTogetherMaybe...┘       

Calls

Name Declaration Comments
TfrmGraphs.AllTypeDate procedure AllTypeDate(aType, aTypeName, firstline, secondline: string; aDate, aDate2: double); -
TfrmGraphs.LabNameResults procedure LabNameResults(astring: string; var labname, labresult: string); -
TfrmGraphs.ValueText function ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string; -

Called-By

Name Declaration Comments
TfrmGraphs.chartBaseClickSeries procedure chartBaseClickSeries(Sender: TCustomChart; Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); -


Source

3692  procedure TfrmGraphs.SeriesClicks(aChart: TChart; aSeries: TChartSeries; aIndex: integer; lbutton: boolean);
3693  var
3694    originalindex: integer;
3695    dttm, labresult, seriestitle, showing, testname, textvalue, textvalue1, textvalue2, typename, typenum: string;
3696  begin
3697    if lbutton then
3698    begin
3699      textvalue := ValueText(aChart, aSeries, aIndex);
3700      textvalue := StringReplace(textvalue, ' 00:00', '', [rfReplaceAll]);
3701      dttm := Piece(textvalue, '^', 3);
3702      textvalue1 := Piece(textvalue, '^', 2) + '  ' + dttm;
3703      typenum := trim(Piece(textvalue, '^', 1));
3704      typename := Piece(textvalue, '^', 2);
3705      if typenum = '63' then
3706      begin
3707        LabNameResults(textvalue, testname, labresult);
3708        textvalue2 := testname + '  ' + labresult;
3709      end
3710      else
3711        textvalue2 := Piece(textvalue, '^', 4) + '  ' + Piece(textvalue, '^', 5);
3712      AllTypeDate(typenum, typename, textvalue1, textvalue2, FDate1, FDate2);
3713    end
3714    else
3715    begin
3716      seriestitle := Piece(aSeries.Title, '^', 1);
3717      if seriestitle = '(non-numeric)' then
3718      begin
3719        originalindex := strtointdef(Piece(GtslNonNum[aIndex], '^', 3), 0);
3720        seriestitle := Piece(aChart.Series[originalindex].Title, '^', 1);
3721      end;
3722      mnuPopGraphIsolate.Enabled := true;
3723      if pnlTop.Tag = 1 then
3724        mnuPopGraphIsolate.Caption := 'Move - ' + seriestitle + ' - from Top to Bottom'
3725      else
3726        mnuPopGraphIsolate.Caption := 'Move - ' + seriestitle + ' - from Bottom to Top';
3727      scrlTop.Hint := 'Details - for ' + seriestitle + ' for ' +
3728        FormatDateTime('mmm d, yyyy  h:nn am/pm', FDate1);
3729      scrlTop.Tag := aIndex + 1;
3730      mnuPopGraphIsolate.Hint := seriestitle;
3731      mnuPopGraphRemove.Enabled := true;
3732      mnuPopGraphRemove.Caption := 'Remove - ' + seriestitle;
3733      mnuPopGraphDetails.Caption := 'Details - ' + seriestitle;
3734      if FGraphSeries.Marks.Visible then showing := ' - turn off' else showing := ' - turn on';
3735      mnuPopGraphValueMarks.Caption := 'Values - ' + seriestitle + showing;
3736      mnuPopGraphValueMarks.Enabled := true;
3737    end;
3738  end;