Skip to content
Snippets Groups Projects
Commit e6f6e47c authored by François Grand's avatar François Grand
Browse files

refactor: backwater curve in PAM: fill generateBackwaterInPAM()

refs #609
parent c5079ee0
No related branches found
No related tags found
No related merge requests found
Pipeline #140276 passed
......@@ -25,7 +25,8 @@ import {
PbCloison,
Espece,
VariatedDetails,
ParallelStructure
ParallelStructure,
MacroRugoRemous
} from "jalhyd";
import { generateValuesCombination, getUnformattedIthResult, getUnformattedIthValue } from "../../util/util";
......@@ -1254,7 +1255,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