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

Work on #232

parent a0009969
No related branches found
No related tags found
1 merge request!49Resolve "Ajout du module de calcul d'une passe à bassins"
import { Component, ViewChild, ElementRef } from "@angular/core";
import { PabResults } from "../../results/pab-results";
import { CloisonAval } from "jalhyd";
import * as XLSX from "xlsx";
import { PabResults } from "../../results/pab-results";
import { ApplicationSetupService } from "../../services/app-setup/app-setup.service";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
import { ResultsComponent } from "../fixedvar-results/results.component";
......@@ -99,6 +101,18 @@ export class PabResultsTableComponent extends ResultsComponent {
rln.Q.toFixed(nDigits),
"", "", "", ""
]);
// extra lift gate ?
const cloisonAval = (pr.cloisonAvalResults.sourceNub as CloisonAval);
if (cloisonAval && cloisonAval.hasVanneLevante()) {
const vanneZDV = cloisonAval.result.resultElements[vi].getExtraResult("ZDV");
if (vanneZDV) {
this._dataSet.push([
this.intlService.localizeText("INFO_LIB_COTE_VANNE_LEVANTE"),
vanneZDV.toFixed(nDigits),
"", "", "", "", "", "", ""
]);
}
}
}
}
}
......
......@@ -123,6 +123,7 @@
"INFO_LIB_BT": "Half opening of the triangle",
"INFO_LIB_CD": "Discharge coefficient",
"INFO_LIB_CLOISON": "Cross wall #",
"INFO_LIB_COTE_VANNE_LEVANTE": "Lift gate elevation",
"INFO_LIB_CV": "Cv: Velocity coefficient",
"INFO_LIB_CVQT": "CV.QT: Corrected discharge",
"INFO_LIB_DH": "Fall",
......
......@@ -123,6 +123,7 @@
"INFO_LIB_BT": "Demi-ouverture du triangle",
"INFO_LIB_CD": "Coefficient de débit",
"INFO_LIB_CLOISON": "Cloison n°",
"INFO_LIB_COTE_VANNE_LEVANTE": "Cote vanne levante",
"INFO_LIB_CV": "Cv: Coefficient de vitesse d'approche",
"INFO_LIB_CVQT": "CV.QT: Débit corrigé",
"INFO_LIB_DH": "Chute",
......
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