Procedure

TfrmGraphs.MakeGanttSeries

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Comments

Good one

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeGanttSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer);  // good one

Calls Hierarchy


TfrmGraphs.MakeGanttSeries
 ├TfrmGraphs.MakeSeriesPoint
 ├TfrmGraphs.MakeSeriesInfo
 │ ├TfrmGraphs.GetData
 │ │ └TfrmGraphs.FMCorrectedDate
 │ └TfrmGraphs.NextColor
 ├TfrmGraphs.FMCorrectedDate
 ├TfrmGraphs.HighLow
 │ └TfrmGraphs.FMToDateTime
 └TfrmGraphs.FixedDates

Called-By Hierarchy


                                 TfrmGraphs.MakeGanttSeries
                             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.MakeSeriesInfo procedure MakeSeriesInfo(aChart: TChart; aSeries: TChartSeries; aTitle, aFileType: string; aSerCnt: integer); -
TfrmGraphs.MakeSeriesPoint procedure MakeSeriesPoint(aChart: TChart; aPointSeries: TPointSeries); -

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

6626  procedure TfrmGraphs.MakeGanttSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer);
6627  var
6628    i, value: integer;
6629    fmtime, fmtime1: string;
6630    adatetime, adatetime1: TDateTime;
6631    afixeddate, afixeddate1: TDateTime;
6632    serGantt: TGanttSeries;
6633    serBlank: TPointSeries;
6634  begin
6635    aSerCnt := aSerCnt + 1;
6636    serBlank := TPointSeries.Create(aChart);
6637    MakeSeriesPoint(aChart, serBlank);
6638    serGantt := TGanttSeries.Create(aChart);
6639    MakeSeriesInfo(aChart, serGantt, aTitle, aFileType, aSerCnt);
6640    with serGantt do
6641    begin
6642      if Piece(aTitle, '^', 1) = '55' then       // make inpatient meds smaller to identify
6643        Pointer.VertSize := RX_HEIGHT_IN
6644      else if Piece(aTitle, '^', 1) = '55NVA' then       // make nonva meds smaller to identify
6645        Pointer.VertSize := RX_HEIGHT_NVA
6646      else if Piece(aTitle, '^', 1) = '9999911' then       // make problems smaller to identify
6647        Pointer.VertSize := PROB_HEIGHT
6648      else
6649        Pointer.VertSize := RX_HEIGHT_OUT;
6650      value := round(((aSerCnt mod NUM_COLORS) / NUM_COLORS) * 80) + 20 + aSerCnt;
6651      if aFileType <> '9999911' then
6652        if aChart <> chartDatelineTop then
6653          if aChart <> chartDatelineBottom then
6654            value := value - 26;
6655      for i := 0 to GtslTemp.Count - 1 do
6656      begin
6657        fmtime := FMCorrectedDate(Piece(GtslTemp[i], '^', 3));
6658        fmtime1 := FMCorrectedDate(Piece(GtslTemp[i], '^', 4));
6659        if IsFMDateTime(fmtime) and IsFMDateTime(fmtime1) then
6660        begin
6661          HighLow(fmtime, fmtime1, aChart, adatetime, adatetime1);
6662          AddGantt(adatetime, adatetime1, value, '');
6663          if i = 0 then
6664          begin
6665            serBlank.Pointer.Pen.Visible := false;
6666            serBlank.AddXY(adatetime, 100, '', aChart.Color);
6667            if aFileType = '9999911' then
6668              serBlank.AddXY(adatetime, 0, '', aChart.Color);
6669            if FGraphSetting.FixedDateRange then
6670            begin
6671              FixedDates(afixeddate, afixeddate1);
6672              serBlank.AddXY(afixeddate, 100, '', aChart.Color);
6673              serBlank.AddXY(afixeddate1, 100, '', aChart.Color);
6674            end;
6675          end;
6676        end;
6677      end;
6678    end;
6679  end;