[chronojump] string [] SqliteJumps.SelectJumps() renamed SelectJumpsSA (String Array)



commit dcc9580242101b678583e960433286d1ec8b3086
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jun 12 11:18:07 2020 +0200

    string [] SqliteJumps.SelectJumps() renamed SelectJumpsSA (String Array)

 src/exportSession.cs        | 2 +-
 src/gui/app1/chronojump.cs  | 2 +-
 src/gui/jump.cs             | 2 +-
 src/gui/person/addModify.cs | 2 +-
 src/gui/usefulObjects.cs    | 6 +++++-
 src/report.cs               | 2 +-
 src/sqlite/jump.cs          | 7 ++++---
 7 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/src/exportSession.cs b/src/exportSession.cs
index b008e6bc..bc6d6ab3 100644
--- a/src/exportSession.cs
+++ b/src/exportSession.cs
@@ -181,7 +181,7 @@ public class ExportSession
                //Leave SQL opened in all this process
                Sqlite.Open(); // ------------------------------
                
-               myJumps= SqliteJump.SelectJumps(true, mySession.UniqueID, -1, "", "",
+               myJumps= SqliteJump.SelectJumpsSA (true, mySession.UniqueID, -1, "", "",
                                Sqlite.Orders_by.DEFAULT, -1);
 
                myJumpsRj = SqliteJumpRj.SelectJumps(true, mySession.UniqueID, -1, "", "");
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index c2fd3353..5e55de3b 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -1272,7 +1272,7 @@ public partial class ChronoJumpWindow
                        return;
                }
 
-               string [] myJumps = SqliteJump.SelectJumps(dbconOpened, currentSession.UniqueID, -1, "", "",
+               string [] myJumps = SqliteJump.SelectJumpsSA (dbconOpened, currentSession.UniqueID, -1, "", 
"",
                                Sqlite.Orders_by.DEFAULT, -1);
 
                myTreeViewJumps.Fill(myJumps, filter);
diff --git a/src/gui/jump.cs b/src/gui/jump.cs
index 051240e8..cf5e060d 100644
--- a/src/gui/jump.cs
+++ b/src/gui/jump.cs
@@ -1125,7 +1125,7 @@ public class JumpsMoreWindow : EventMoreWindow
        }
 
        protected override string [] findTestTypesInSessions() {
-               return SqliteJump.SelectJumps(false, -1, -1, "", selectedEventName,
+               return SqliteJump.SelectJumpsSA (false, -1, -1, "", selectedEventName,
                                Sqlite.Orders_by.DEFAULT, -1);
        }
        
diff --git a/src/gui/person/addModify.cs b/src/gui/person/addModify.cs
index 2ed7b740..2e6ae57c 100644
--- a/src/gui/person/addModify.cs
+++ b/src/gui/person/addModify.cs
@@ -1081,7 +1081,7 @@ public class PersonAddModifyWindow
                                                (! radio_metric.Active && 
Util.ConvertPoundsToKg(spinbutton_weight_imperial.Value) != weightIniMetric)
                                      ) ) {
                                //see if this person has done jumps with weight
-                               string [] myJumpsNormal = SqliteJump.SelectJumps(false, 
currentSession.UniqueID, currentPerson.UniqueID, "withWeight", "",
+                               string [] myJumpsNormal = SqliteJump.SelectJumpsSA (false, 
currentSession.UniqueID, currentPerson.UniqueID, "withWeight", "",
                                                Sqlite.Orders_by.DEFAULT, -1);
                                string [] myJumpsReactive = SqliteJumpRj.SelectJumps(false, 
currentSession.UniqueID, currentPerson.UniqueID, "withWeight", "");
 
diff --git a/src/gui/usefulObjects.cs b/src/gui/usefulObjects.cs
index ca07425c..e01d1232 100644
--- a/src/gui/usefulObjects.cs
+++ b/src/gui/usefulObjects.cs
@@ -60,6 +60,7 @@ public class ExecutingGraphData
 public class PrepareEventGraphJumpSimple {
        //sql data of previous jumps to plot graph and show stats at bottom
        public string [] jumpsAtSQL;
+       //public List<Jump> jumpsAtSQL;
        
        public double personMAXAtSQLAllSessions;
        public double personMAXAtSQL;
@@ -84,8 +85,11 @@ public class PrepareEventGraphJumpSimple {
                Sqlite.Open();
 
                //select data from SQL to update graph  
-               jumpsAtSQL = SqliteJump.SelectJumps(true, sessionID, personID, "", type,
+               jumpsAtSQL = SqliteJump.SelectJumpsSA(true, sessionID, personID, "", type,
                                Sqlite.Orders_by.ID_DESC, 10); //select only last 10
+               //jumpsAtSQL = SqliteJump.SelectJumps (true, sessionID, personID, "", type,
+               //              Sqlite.Orders_by.ID_DESC, 10); //select only last 10
+
 
                string sqlSelect = "";
                if(tv > 0) {
diff --git a/src/report.cs b/src/report.cs
index 3c2a76b2..dec775c8 100644
--- a/src/report.cs
+++ b/src/report.cs
@@ -103,7 +103,7 @@ public class Report : ExportSession
                Sqlite.Open(); // ------------------------------
                
                if(ShowSimpleJumps) {
-                       myJumps= SqliteJump.SelectJumps(true, sessionID, -1, "", "", 
+                       myJumps= SqliteJump.SelectJumpsSA (true, sessionID, -1, "", "",
                                        Sqlite.Orders_by.DEFAULT, -1);
                }
                if(ShowReactiveJumps) {
diff --git a/src/sqlite/jump.cs b/src/sqlite/jump.cs
index 7480eed7..54f82009 100644
--- a/src/sqlite/jump.cs
+++ b/src/sqlite/jump.cs
@@ -96,12 +96,13 @@ class SqliteJump : Sqlite
                return myLast;
        }
 
-       //like SelectJumps, but this returns a string[] :( better use above method if possible
+       //like SelectJumps, but this returns a string[] :( better use below method if possible
        //if all sessions, put -1 in sessionID
        //if all persons, put -1 in personID
        //if all types put, "" in filterType
        //unlimited put -1 in limit
-       public static string[] SelectJumps(bool dbconOpened, int sessionID, int personID, string 
filterWeight, string filterType, 
+       //SA for String Array
+       public static string[] SelectJumpsSA (bool dbconOpened, int sessionID, int personID, string 
filterWeight, string filterType,
                        Orders_by order, int limit) 
        {
                if(!dbconOpened)
@@ -192,7 +193,7 @@ class SqliteJump : Sqlite
                return myJumps;
        }
 
-       //like SelectJumps above method but much better: return list of jumps
+       //like SelectJumpsSA above method but much better: return list of jumps
        //sID -1 means all sessions
        public static List<Jump> SelectJumps (int pID, int sID, string jumpType)
        {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]