Procedure

TfrmGraphs.PadNonNum

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure PadNonNum(aChart: TChart; aSection: string; var listofseries: string; var bmax, tmax: integer);

Calls Hierarchy


TfrmGraphs.PadNonNum
 ├TfrmGraphs.StackNonNum
 └TfrmGraphs.MakeSeriesPoint

Called-By Hierarchy


                                           TfrmGraphs.PadNonNum
                                   TfrmGraphs.MakeNonNumerics┘ 
                                 TfrmGraphs.MakeOtherSeries┘   
                             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.MakeSeriesPoint procedure MakeSeriesPoint(aChart: TChart; aPointSeries: TPointSeries); -
TfrmGraphs.StackNonNum procedure StackNonNum(astring: string; var offset, bmax, tmax: integer; var blabelon, tlabelon: boolean); -

Called-By

Name Declaration Comments
TfrmGraphs.MakeNonNumerics procedure MakeNonNumerics(aChart: TChart); -


Source

2876  procedure TfrmGraphs.PadNonNum(aChart: TChart; aSection: string; var listofseries: string; var bmax, tmax: integer);
2877  var
2878    blabelon, tlabelon: boolean;
2879    i, offset: integer;
2880    astring, avalue, charttag, lasttime, newseries, newtime: string;
2881    serNonNumBottom, serNonNumTop: TPointSeries;
2882  begin
2883    GtslNonNumDates.Clear;
2884    listofseries := '^';
2885    blabelon := false; tlabelon := false;
2886    bmax := 0; tmax := 0;
2887    lasttime := '';
2888    for i := 0 to GtslNonNum.Count - 1 do
2889    begin
2890      astring   := GtslNonNum[i];
2891      if Piece(astring, '^', 7) = aSection then
2892      begin
2893        charttag := Piece(astring, '^', 2);
2894        if charttag = inttostr(aChart.Tag) then
2895        begin
2896          newtime   := Piece(astring, '^', 1);
2897          avalue    := Piece(astring, '^', 13);
2898          newseries := '^' + Piece(astring, '^', 3) + '^';
2899          if Pos(newseries, listofseries) = 0 then
2900            listofseries := listofseries + Piece(astring, '^', 3) + '^';
2901          StackNonNum(astring, offset, bmax, tmax, blabelon, tlabelon);
2902          SetPiece(astring, '^', 5, inttostr(offset));
2903          GtslNonNum[i] := astring;
2904        end;
2905      end;
2906    end;
2907    if blabelon then
2908    begin
2909      serNonNumBottom := TPointSeries.Create(aChart);
2910      MakeSeriesPoint(aChart, serNonNumBottom);
2911      with serNonNumBottom do
2912      begin
2913        Identifier := 'serNonNumBottom';
2914        Title := TXT_NONNUMERICS;
2915        Marks.ArrowLength := -11;
2916        Marks.Visible := true;
2917      end;
2918    end;
2919    if tlabelon then
2920    begin
2921      serNonNumTop := TPointSeries.Create(aChart);
2922      MakeSeriesPoint(aChart, serNonNumTop);
2923      with serNonNumTop do
2924      begin
2925        Identifier := 'serNonNumTop';
2926        Title := TXT_NONNUMERICS;
2927        Marks.ArrowLength := -11;
2928        Marks.Visible := true;
2929      end;
2930    end;
2931  end;