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

Correction bug cloison aval

parent 00bb4351
No related branches found
No related tags found
1 merge request!45Resolve "Ajout du module de calcul d'une passe à bassins"
......@@ -90,6 +90,11 @@ export class FormulairePab extends FormulaireBase {
parent.deleteChild(parent.getIndexForChild(sn));
}
public doCompute() {
this.dumpPabStructure(this.pabNub);
super.doCompute();
}
public createFieldset(parent: FormulaireNode, json: {}, data?: {}, nub?: Nub): FieldSet {
if (json["calcType"] === "PabCloisons") {
// indice après lequel insérer le nouveau FieldSet
......@@ -235,15 +240,27 @@ export class FormulairePab extends FormulaireBase {
case "fs_bassin":
switch (data.name) {
case "modeleCloisons":
// change PabCloisons Nub property "modeleCloisons" and reinit it
// change PabCloisons property "modeleCloisons" and reinit it
// with new Cloisons values
const newModeleUID = sender.properties.getPropValue("modeleCloisons");
(sender.nub as PabCloisons).setModel(newModeleUID);
// treat the fieldset as new to re-subscribe to Nub properties change events
this.afterParseFieldset(sender);
this.reset();
break;
}
break;
// this.dumpPabStructure(this.currentNub as Pab);
case "fs_cloison_aval":
switch (data.name) {
case "modeleCloisonAval":
// change Pab property "modeleCloisonAval" and reinit it
// with new ParallelStructure values
const newModeleAvalUID = sender.properties.getPropValue("modeleCloisonAval");
this.pabNub.setDownWall(newModeleAvalUID);
// treat the fieldset as new to re-subscribe to Nub properties change events
this.afterParseFieldset(sender);
this.reset();
break;
}
break;
......
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