public static bool StoreData_TrunkCustomProrgram(objDataSample DataSample, int Id) { DataClasses.GrucoxTrunkCustomSession customProgram = new GrucoxTrunkCustomSession(); customProgram.Id = Id; customProgram.SessionDate = DateTime.Now; customProgram.Duration = DataSample.SessionDuration; customProgram.AbsMaxConcT = (decimal)DataSample.SessionMaxConcTorqueAbs; customProgram.AbsMaxEcceT = (decimal)DataSample.SessionMaxEcceTorqueAbs; customProgram.BackMaxConcT = (decimal)DataSample.SessionMaxConcTorqueBack; customProgram.BackMaxEcceT = (decimal)DataSample.SessionMaxEcceTorqueBack; customProgram.AbsAvgConcT = (decimal)DataSample.SessionAvgConcTorqueAbs; customProgram.AbsAvgEcceT = (decimal)DataSample.SessionAvgEcceTorqueAbs; customProgram.BackAvgConcT = (decimal)DataSample.SessionAvgConcTorqueBack; customProgram.BackAvgEcceT = (decimal)DataSample.SessionAvgEcceTorqueBack; customProgram.AbsStrengthIndex = (decimal)DataSample.SessionStrengthIndexAbs; customProgram.AbsEnduranceIndex = (decimal)DataSample.SessionEnduranceIndexAbs; customProgram.BackStrengthIndex = (decimal)DataSample.SessionStrengthIndexBack; customProgram.BackEnduranceIndex = (decimal)DataSample.SessionEnduranceIndexBack; customProgram.EnergyBurned = (decimal)DataSample.TotalEnergyBurned; if (GlobalVariables.WriteToRemoteServer == true) { if (StoreData_RemoteDB1(customProgram, Id) == true) return true; else return false; } else if (GlobalVariables.WriteToRemoteServer == false) { if (StoreData_LocalDB(customProgram, Id) == true) return true; else return false; } else return false; }
partial void UpdateGrucoxTrunkCustomSession(GrucoxTrunkCustomSession instance);
partial void DeleteGrucoxTrunkCustomSession(GrucoxTrunkCustomSession instance);
partial void InsertGrucoxTrunkCustomSession(GrucoxTrunkCustomSession instance);