Procedure

TfrmGraphs.MakeBarSeries

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeBarSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer);

Calls Hierarchy


TfrmGraphs.MakeBarSeries
 ├TfrmGraphs.MakeSeriesPoint
 ├TfrmGraphs.MakeSeriesInfo
 │ ├TfrmGraphs.GetData
 │ │ └TfrmGraphs.FMCorrectedDate
 │ └TfrmGraphs.NextColor
 ├TfrmGraphs.NextPointerStyle
 ├TfrmGraphs.FMCorrectedDate
 ├TfrmGraphs.HighLow
 │ └TfrmGraphs.FMToDateTime
 ├TfrmGraphs.InfoMessage
 ├TfrmGraphs.MergedLabsSelected
 └TfrmGraphs.FixedDates

Called-By Hierarchy


                                   TfrmGraphs.MakeBarSeries
                             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.MakeDateline┘ 
                         TfrmGraphs.MakeTogetherNoLines┤   
                              TfrmGraphs.MakeTogether┘ │   
                    TfrmGraphs.MakeTogetherMaybe...┘   │   
                        TfrmGraphs.MakeTogetherAnyLines┘   
                           TfrmGraphs.MakeTogether...┘     

Calls

Name Declaration Comments
TfrmGraphs.FixedDates procedure FixedDates(var adatetime, adatetime1: TDateTime); -
TfrmGraphs.FMCorrectedDate function FMCorrectedDate(fmtime: string): string; -
TfrmGraphs.HighLow procedure HighLow(fmtime, fmtime1: string; aChart: TChart; var adatetime, adatetime1: TDateTime); -
TfrmGraphs.InfoMessage procedure InfoMessage(aCaption: string; aColor: TColor; aVisible: boolean); -
TfrmGraphs.MakeSeriesInfo procedure MakeSeriesInfo(aChart: TChart; aSeries: TChartSeries; aTitle, aFileType: string; aSerCnt: integer); -
TfrmGraphs.MakeSeriesPoint procedure MakeSeriesPoint(aChart: TChart; aPointSeries: TPointSeries); -
TfrmGraphs.MergedLabsSelected function MergedLabsSelected: boolean; -
TfrmGraphs.NextPointerStyle procedure NextPointerStyle(aSeries: TChartSeries; aSerCnt: integer); -

Called-By

Name Declaration Comments
TfrmGraphs.MakeDateline procedure MakeDateline(section, aTitle, aFileType: string; aChart: TChart; graphtype: integer; var bcnt, pcnt, gcnt, vcnt: integer); -
TfrmGraphs.MakeSeparateItems procedure MakeSeparateItems(aScrollBox: TScrollBox; aListView: TListView; section: string); -


Source

6571  procedure TfrmGraphs.MakeBarSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer);
6572  var
6573    i: integer;
6574    value: double;
6575    fmtime: string;
6576    adatetime, adatetime1: TDateTime;
6577    afixeddate, afixeddate1: TDateTime;
6578    serBar: TBarSeries;
6579    serBlank: TPointSeries;
6580  begin
6581    aSerCnt := aSerCnt + 1;
6582    serBlank := TPointSeries.Create(aChart);
6583    MakeSeriesPoint(aChart, serBlank);
6584    serBar := TBarSeries.Create(aChart);
6585    MakeSeriesInfo(aChart, serBar, aTitle, aFileType, aSerCnt);
6586    with serBar do
6587    begin
6588      YOrigin := 0;
6589      CustomBarWidth := 7;
6590      NextPointerStyle(serBar, aSerCnt);
6591      for i:= 0 to GtslTemp.Count - 1 do
6592      begin
6593        fmtime := FMCorrectedDate(Piece(GtslTemp[i], '^', 3));
6594        if IsFMDateTime(fmtime) then
6595        begin
6596          HighLow(fmtime, '', aChart, adatetime, adatetime1);
6597          value := 25 - (aSerCnt mod NUM_COLORS);
6598          if FPrevEvent = copy(fmtime, 1, 10) then
6599            if copy((FPrevEvent + '00'), 1, 12) = copy(fmtime, 1, 12) then  // same time occurrence
6600            begin
6601              InfoMessage(TXT_WARNING_SAME_TIME, COLOR_WARNING, true);
6602              if MergedLabsSelected then
6603                InfoMessage(pnlInfo.Caption + ' ' + TXT_WARNING_MERGED_LABS, COLOR_WARNING, true);
6604              pnlHeader.Visible := true;
6605              FWarning := true;
6606            end;
6607          if value <> -BIG_NUMBER then
6608            serBar.AddXY(adatetime, value, '', clTeeColor);
6609          FPrevEvent := copy(fmtime, 1, 10);
6610          if i = 0 then
6611          begin
6612            serBlank.Pointer.Pen.Visible := false;
6613            serBlank.AddXY(adatetime, 100, '', aChart.Color);
6614            if FGraphSetting.FixedDateRange then
6615            begin
6616              FixedDates(afixeddate, afixeddate1);
6617              serBlank.AddXY(afixeddate, 100, '', aChart.Color);
6618              serBlank.AddXY(afixeddate1, 100, '', aChart.Color);
6619            end;
6620          end;
6621        end;
6622      end;
6623    end;
6624  end;