Skip to content
Snippets Groups Projects
Commit 07131f57 authored by François Grand's avatar François Grand Committed by AUBRY JEAN-PASCAL
Browse files

refactor: backwater curve in PAM: fill generateBackwaterInPAM()

refs #609
parent ea948a50
No related branches found
No related tags found
2 merge requests!252release: version 4.18.0,!213Resolve "Ajout du module courbe de remous d'une passe à macro-rugosité"
......@@ -25,7 +25,8 @@ import {
PbCloison,
Espece,
VariatedDetails,
ParallelStructure
ParallelStructure,
MacroRugoRemous
} from "jalhyd";
import { generateValuesCombination, getUnformattedIthResult, getUnformattedIthValue } from "../../util/util";
......@@ -1264,7 +1265,11 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe
this.router.navigate(["/calculator", f.uid]);
}
public generateBackwaterInPAM() {
public async generateBackwaterInPAM() {
const f: FormulaireDefinition = await this.formulaireService.createFormulaire(CalculatorType.MacroRugoRemous);
const mrr = (f.currentNub as MacroRugoRemous);
mrr.setPropValue("nubMacroRugo", this.formulaire.currentNub.uid);
this.router.navigate(["/calculator", f.uid]);
}
/**
......
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