<% /*
    $Revision$
    $Id$

    File:           model_ins_disc_params.inc

    Description:    Vanuit CodeCharge gegenereerd model voor ins_discipline

    Context:

    Notes:          *uitsluitend* gebruikt als include van model_ins_discipline
*/
%>
<%
model_ins_disc_params =
{
    "table": "ins_disc_params",
    "primary": "ins_disc_params_key",
    "records_name": "ins_disc_params",
    "record_name": "ins_disc_params",
    "autfunction": "WEB_INSMGT",


    "fields": {
        "id": {
            "dbs": "ins_disc_params_key",
            "label": "Key",
            "typ": "key",
            "seq": "ins_s_ins_disc_params_key"
        },
        "autonumber": {
            "dbs": "ins_disc_params_autonum",
            "label": L("ins_discipline_autonum"),
            "typ": "number",
            "LOV": L("ins_discipline_autonumLOV"),
            "emptyoption": null
        },
        "ins_discipline_key": {
            "dbs": "ins_discipline_key",
            "label": "Foreign key",
            "typ": "key",
            "hidden_fld": true
        },
        "cadlayer": {
            "dbs": "ins_disc_params_cadlayers",
            "label": L("ins_discipline_cadlayer"),
            "typ": "varchar"
        },
        "type": {
            "dbs": "ins_disc_params_type",
            "label": L("ins_discipline_type"),
            "typ": "number",
            "bits": [
                {
                    "name": "binnen",
                    "label": L("ins_discipline_grafisch_binnen"),
                    "typ": "radio",
                    "mask": 5,
                    "radios": [
                        {
                            "mask": 0,
                            "label": L("ins_discipline_grafisch_nvt")
                        },
                        {
                            "mask": 1,
                            "label": L("ins_discipline_grafisch_uit")
                        },
                        {
                            "mask": 5,
                            "label": L("ins_discipline_grafisch_aan")
                        }
                    ]
                },
                {
                    "name": "buiten",
                    "label": L("ins_discipline_grafisch_buiten"),
                    "typ": "radio",
                    "mask": 10,
                    "radios": [
                        {
                            "mask": 0,
                            "label": L("ins_discipline_grafisch_nvt")
                        },
                        {
                            "mask": 2,
                            "label": L("ins_discipline_grafisch_uit")
                        },
                        {
                            "mask": 10,
                            "label": L("ins_discipline_grafisch_aan")
                        }
                    ]
                },
                {
                    "name": "",
                    "label": "",
                    "typ": "check",
                    "mask": 16,
                    "radios": [
                        {
                            "name": "label",
                            "label": L("ins_discipline_label"),
                            "mask": 16
                        }
                    ]
                }
            ]
        }
    }
}

api2.generic_REST(model_ins_disc_params);
%>