[
    {
        "id": "fs_param_hydro",
        "type": "fieldset",
        "calcType": "Dever",
        "option": "cal",
        "fields": [
            {
                "type": "input",
                "id": "Q",
                "symbol": "Q",
                "unit": "m³/s"
            },
            {
                "type": "input",
                "id": "Z1",
                "option": "var",
                "unit": "m"
            },
            {
                "type": "input",
                "id": "LB",
                "option": "var",
                "unit": "m"
            },
            {
                "type": "input",
                "id": "BB",
                "option": "var",
                "unit": "m"
            },
            {
                "type": "input",
                "id": "PB",
                "option": "var",
                "unit": "m"
            },
            {
                "type": "input",
                "id": "DH",
                "unit": "m"
            }
        ]
    },
    {
        "id": "fs_ouvrage",
        "type": "fieldset_template",
        "calcType": "Structure",
        "defaultNodeType": "StructureRectangle",
        "defaultStructType": "SeuilRectangulaire",
        "defaultLoiDebit": "WeirSubmergedLarinier",
        "option": "cal",
        "fields": [
            {
                "id": "select_ouvrage",
                "type": "select",
                "select": [
                    {
                        "id": "select_ouvrage_seuil_rect",
                        "enum": "StructureType.SeuilRectangulaire"
                    },
                    {
                        "id": "select_ouvrage_orifice",
                        "enum": "StructureType.Orifice"
                    },
                    {
                        "id": "select_ouvrage_seuil_triang",
                        "enum": "StructureType.SeuilTriangulaire"
                    },
                    {
                        "id": "select_ouvrage_seuil_triangtrunc",
                        "enum": "StructureType.SeuilTriangulaireTrunc"
                    }

                ]
            },
            {
                "id": "select_loidebit1",
                "type": "select",
                "select": [
                    {
                        "id": "select_loidebit1_fente",
                        "enum": "LoiDebit.WeirSubmergedLarinier"
                    },
                    {
                        "id": "select_loidebit1_villemonte",
                        "enum": "LoiDebit.WeirVillemonte"
                    }
                ],
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_rect"
                    }
                ]
            },
            {
                "id": "select_loidebit2",
                "type": "select",
                "select": [
                    {
                        "id": "select_loidebit2_orifice",
                        "enum": "LoiDebit.OrificeSubmerged"
                    }
                ],
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_orifice"
                    }
                ]
            },
            {
                "id": "select_loidebit3",
                "type": "select",
                "select": [
                    {
                        "id": "select_loidebit3_seuiltriang",
                        "enum": "LoiDebit.TriangularWeirFree"
                    }
                ],
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triang"
                    }
                ]
            },
            {
                "id": "select_loidebit4",
                "type": "select",
                "select": [
                    {
                        "id": "select_loidebit4_seuiltriangtrunc",
                        "enum": "LoiDebit.TriangularTruncWeirFree"
                    }
                ],
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triangtrunc"
                    }
                ]
            },
            {
                "type": "input",
                "id": "h1",
                "unit": "m",
                "nodeType": "StructureRectangle",
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_rect"
                    },
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triang"
                    },
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triangtrunc"
                    }
                ]
            },
            {
                "type": "input",
                "id": "L",
                "unit": "m",
                "nodeType": "StructureRectangle",
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_rect"
                    }
                ]
            },
            {
                "type": "input",
                "id": "Cd",
                "unit": "",
                "nodeType": "StructureRectangle"
            },
            {
                "type": "input",
                "id": "S",
                "unit": "",
                "nodeType": "StructureRectangle",
                "dep_exist": [
                    {
                        "refid": "select_loidebit2",
                        "refvalue": "select_loidebit2_orifice"
                    }
                ]
            },
             {
                "type": "input",
                "id": "alpha2",
                "unit": "",
                "nodeType": "StructureRectangle",
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triang"
                    },
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triangtrunc"
                    }
                ]
            },
            {
                "type": "input",
                "id": "BT",
                "unit": "",
                "nodeType": "StructureRectangle",
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triangtrunc"
                    }
                ]
            },
            {
                "type": "input",
                "id": "ZT",
                "unit": "",
                "nodeType": "StructureRectangle",
                "dep_exist": [
                    {
                        "refid": "select_ouvrage",
                        "refvalue": "select_ouvrage_seuil_triangtrunc"
                    }
                ]
            }
        ]
    },
    {
        "id": "struct_container",
        "type": "template_container",
        "templates": [
            "fs_ouvrage"
        ]
    },
    {
        "type": "options",
        "ouvrageSelectId": "select_ouvrage",
        "idCal": "Q",
        "help": "pab/cloisons"
    }
]