|
|
@ -264,10 +264,8 @@ class ActivityInfo {
|
|
|
|
|
|
|
|
|
|
|
|
// -- Fonction pour lire le csv et remplir la classe -- //
|
|
|
|
// -- Fonction pour lire le csv et remplir la classe -- //
|
|
|
|
ActivityInfo getDataGeneric(List<List<String>> csv) {
|
|
|
|
ActivityInfo getDataGeneric(List<List<String>> csv) {
|
|
|
|
print(csv);
|
|
|
|
|
|
|
|
// - Entete - //
|
|
|
|
// - Entete - //
|
|
|
|
Map<String, int> enteteCSV = getEntete(csv.first);
|
|
|
|
Map<String, int> enteteCSV = getEntete(csv.first);
|
|
|
|
print(enteteCSV);
|
|
|
|
|
|
|
|
// ------------- Var tmp ---------- //
|
|
|
|
// ------------- Var tmp ---------- //
|
|
|
|
// -- BPM -- //
|
|
|
|
// -- BPM -- //
|
|
|
|
int bpmSomme = 0;
|
|
|
|
int bpmSomme = 0;
|
|
|
@ -286,7 +284,6 @@ class ActivityInfo {
|
|
|
|
|
|
|
|
|
|
|
|
// --- Boucle -- //
|
|
|
|
// --- Boucle -- //
|
|
|
|
for (int i = 1; i < csv.length; i++) {
|
|
|
|
for (int i = 1; i < csv.length; i++) {
|
|
|
|
print("Ligne $i");
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// ---------------------- BPM ---------------------- //
|
|
|
|
// ---------------------- BPM ---------------------- //
|
|
|
|
if (!isNull(enteteCSV["Value_${managerFile.fielBPM}"]!, csv[i])) {
|
|
|
|
if (!isNull(enteteCSV["Value_${managerFile.fielBPM}"]!, csv[i])) {
|
|
|
|