Procedure

TfrmGraphs.SortListView

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure SortListView;

Calls Hierarchy


TfrmGraphs.SortListView
 ├TfrmGraphs.lvwItemsTopColumnClick
 ├TfrmGraphs.lvwItemsBottomColumnClick
 └TfrmGraphs.AssignProfile
   └TfrmGraphs.SetProfile
     └TfrmGraphs.ProfileName
       └TfrmGraphs.DCName
         └rpcClass
           └onoff

Called-By Hierarchy


                                        TfrmGraphs.SortListView
                                    TfrmGraphs.FilterListView┘ 
                              TfrmGraphs.cboDateRangeChange┘   
                            TfrmReports.lstDateRangeClick┤     
                                 TfrmReports.GraphPanel┘ │     
                                    TfrmReports.Graph┤   │     
                         TfrmReports.tvReportsClick┘ │   │     
                  TfrmFrame.lstCIRNLocationsClick┤   │   │     
                            TfrmFrame.SetUpCIRN┘ │   │   │     
                       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.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...┘   │   │     
                        TfrmReports.tvReportsClick...┘   │     
                                    TfrmGraphs.Initialize┤     
                                 TfrmFrame.ClearPatient┤ │     
                            TfrmFrame.SetupPatient...┘ │ │     
                        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┤ │     
                            TfrmFrame.ClearPatient...┘ │ │     
                                   TfrmReports.Graph...┘ │     
                                      TfrmGraphs.FormShow┤     
                        TfrmGraphs.btnChangeSettingsClick┤     
                         TfrmReports.btnChangeViewClick┘ │     
                             TfrmGraphs.CheckExpandedLabs┤     
                                  TfrmGraphs.ItemsClick┘ │     
                               TfrmGraphs.DisplayData┤   │     
                          TfrmFrame.ClearPatient...┤ │   │     
                         TfrmReports.ClearPtData...┤ │   │     
                               TfrmReports.Graph...┤ │   │     
                        TfrmGraphs.chkItemsTopClick┤ │   │     
                     TfrmGraphs.chkItemsBottomClick┤ │   │     
                 TfrmGraphs.mnuPopGraphIsolateClick┤ │   │     
                   TfrmGraphs.cboDateRangeChange...┤ │   │     
                           TfrmGraphs.ItemsClick...┤ │   │     
                             TfrmGraphs.ViewsChange┤ │   │     
                     TfrmGraphs.lstViewsTopChange┤ │ │   │     
                       TfrmGraphs.Initialize...┤ │ │ │   │     
                         TfrmGraphs.GraphSwitch┤ │ │ │   │     
                         TfrmGraphs.GraphSwap┘ │ │ │ │   │     
            TfrmGraphs.mnuPopGraphSwapClick┘   │ │ │ │   │     
               TfrmGraphs.cboDateRangeChange...┤ │ │ │   │     
                      TfrmGraphs.ViewSelections┘ │ │ │   │     
                TfrmReports.tvReportsClick...┤   │ │ │   │     
           TfrmGraphs.btnGraphSelectionsClick┘   │ │ │   │     
        TfrmReports.btnGraphSelectionsClick┘     │ │ │   │     
                  TfrmGraphs.lstViewsBottomChange┘ │ │   │     
                       TfrmGraphs.Initialize...┤   │ │   │     
                      TfrmGraphs.GraphSwitch...┤   │ │   │     
               TfrmGraphs.cboDateRangeChange...┤   │ │   │     
                   TfrmGraphs.ViewSelections...┘   │ │   │     
                  TfrmGraphs.mnuPopGraphRemoveClick┘ │   │     
                       TfrmGraphs.lvwItemsBottomClick┤   │     
                           TfrmGraphs.Initialize...┤ │   │     
                            TfrmGraphs.CheckContext┤ │   │     
                              TfrmGraphs.FormShow┘ │ │   │     
                       TfrmGraphs.chkDualViewsClick┤ │   │     
                         TfrmGraphs.Initialize...┤ │ │   │     
                              TfrmGraphs.FormShow┤ │ │   │     
                                           Layout┤ │ │   │     
                             TfrmGraphs.GetSize┘ │ │ │   │     
                          TfrmGraphs.FormShow┘   │ │ │   │     
             TfrmGraphs.mnuPopGraphDualViewsClick┤ │ │   │     
                     TfrmGraphs.ViewSelections...┘ │ │   │     
                          TfrmGraphs.GraphSwitch...┤ │   │     
                              TfrmGraphs.SplitClick┤ │   │     
                 TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │     
                   TfrmGraphs.mnuPopGraphClearClick┤ │   │     
                              TfrmGraphs.AutoSelect┤ │   │     
                        TfrmGraphs.ViewsChange...┘ │ │   │     
                    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┘     

Calls

Name Declaration Comments
TfrmGraphs.AssignProfile procedure AssignProfile(aProfile, aSection: string); -
TfrmGraphs.lvwItemsBottomColumnClick procedure lvwItemsBottomColumnClick(Sender: TObject; Column: TListColumn); -
TfrmGraphs.lvwItemsTopColumnClick procedure lvwItemsTopColumnClick(Sender: TObject; Column: TListColumn); -

Called-By

Name Declaration Comments
TfrmGraphs.FilterListView procedure FilterListView(oldestdate, newestdate: double); -


Source

1168  procedure TfrmGraphs.SortListView;
1169  var
1170    colnum: integer;
1171    aProfile: string;
1172  begin
1173    lvwItemsTop.SortType := stBoth;
1174    lvwItemsBottom.SortType := stBoth;
1175    colnum := 0;
1176    if not FItemsSortedTop then
1177    begin
1178      lvwItemsTopColumnClick(lvwItemsTop, lvwItemsTop.Column[0]);
1179      FItemsSortedTop := true;
1180    end;
1181    if not FItemsSortedBottom then
1182    begin
1183      lvwItemsBottomColumnClick(lvwItemsBottom, lvwItemsBottom.Column[0]);
1184      FItemsSortedBottom := true;
1185    end;
1186    with FGraphSetting do
1187    if SortColumn > 0 then
1188    begin
1189      colnum := SortColumn;
1190      lvwItemsTopColumnClick(lvwItemsTop, lvwItemsTop.Column[SortColumn]);
1191      lvwItemsBottomColumnClick(lvwItemsBottom, lvwItemsBottom.Column[SortColumn]);
1192      FItemsSortedTop := false;
1193      FItemsSortedBottom := false;
1194    end;
1195    if lstViewsTop.ItemIndex > 1 then                         // sort by view
1196    begin
1197      aProfile := lstViewsTop.Items[lstViewsTop.ItemIndex];
1198      AssignProfile(aProfile, 'top');
1199      if not FItemsSortedTop then lvwItemsTopColumnClick(lvwItemsTop, lvwItemsTop.Column[colnum]);
1200      lvwItemsTopColumnClick(lvwItemsTop, lvwItemsTop.Column[2]);
1201      lvwItemsTopColumnClick(lvwItemsTop, lvwItemsTop.Column[2]);
1202      FItemsSortedTop := false;
1203    end;
1204    if lstViewsBottom.ItemIndex > 1 then                      // sort by view
1205    begin
1206      aProfile := lstViewsBottom.Items[lstViewsBottom.ItemIndex];
1207      AssignProfile(aProfile, 'bottom');
1208      if not FItemsSortedBottom then lvwItemsBottomColumnClick(lvwItemsBottom, lvwItemsBottom.Column[colnum]);
1209      lvwItemsBottomColumnClick(lvwItemsBottom, lvwItemsBottom.Column[2]);
1210      lvwItemsBottomColumnClick(lvwItemsBottom, lvwItemsBottom.Column[2]);
1211      FItemsSortedBottom := false;
1212    end;
1213  end;