Skip to content
Snippets Groups Projects
Commit 5fed209a authored by mathias.chouet's avatar mathias.chouet
Browse files

MacrorugoCompound: added total flow result line

parent 5a6d200e
No related branches found
No related tags found
1 merge request!57WIP: Resolve "Ajout du module "Passe à macro-rugosités complexe""
......@@ -56,7 +56,7 @@ export class MacrorugoCompoundResultsTableComponent extends ResultsComponent {
// refresh headers here if language changed
this._headers = pr.headers;
// lines 1 - n-1
// lines 1 - n-1 (aprons)
for (let i = 0; i < pr.childrenResults.length; i++) {
// @TODO protect loop contents with if(vCalc) ? Will hide erroneous apron results..
const res = pr.childrenResults[i].resultElements[vi].values;
......@@ -99,6 +99,14 @@ export class MacrorugoCompoundResultsTableComponent extends ResultsComponent {
res.xCenter.toFixed(nDigits)
]);
}
// line n (total flow)
this._dataSet.push([
this.intlService.localizeText("INFO_LIB_TOTAL"),
"", "",
pr.result.resultElements[vi].vCalc.toFixed(nDigits),
"", "", "", "", "", "", "", "", ""
]);
}
}
......
......@@ -230,6 +230,7 @@
"INFO_LIB_STRUCT_CONTAINER": "Devices",
"INFO_LIB_TAU0": "Tractive force",
"INFO_LIB_TOR": "Supercritical water line",
"INFO_LIB_TOTAL": "Total",
"INFO_LIB_V_GUIDETECH": "Technical guide speed",
"INFO_LIB_V": "Average speed",
"INFO_LIB_VDEB": "Conveyance speed",
......
......@@ -229,6 +229,7 @@
"INFO_LIB_STRUCT_CONTAINER": "Ouvrages",
"INFO_LIB_TAU0": "Force tractrice",
"INFO_LIB_TOR": "Ligne d'eau torrentielle",
"INFO_LIB_TOTAL": "Total",
"INFO_LIB_V_GUIDETECH": "Vitesse Guide technique",
"INFO_LIB_V": "Vitesse moyenne",
"INFO_LIB_VDEB": "Vitesse débitante",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment