diff --git a/src/app/components/pab-results/pab-results-table.component.ts b/src/app/components/pab-results/pab-results-table.component.ts index 707d73cf9b84d32c67815e13a1446fdfdad6640e..2bcfa689b92426a66fd1d487b503733cabae3fe1 100644 --- a/src/app/components/pab-results/pab-results-table.component.ts +++ b/src/app/components/pab-results/pab-results-table.component.ts @@ -1,8 +1,10 @@ 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), + "", "", "", "", "", "", "" + ]); + } + } } } } diff --git a/src/locale/messages.en.json b/src/locale/messages.en.json index 7523d3ebfa4466b5453acaf02a9182826ff22bb6..f51fe31826ea884a845f4ee388173a1113c01144 100644 --- a/src/locale/messages.en.json +++ b/src/locale/messages.en.json @@ -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", diff --git a/src/locale/messages.fr.json b/src/locale/messages.fr.json index 84adca3522754c78a04e033ecee2d8aa9e0b16a7..baf4af6ee5835e0d67f08d54f4444a91d7048ad1 100644 --- a/src/locale/messages.fr.json +++ b/src/locale/messages.fr.json @@ -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",