<% /*
    File:           model_mld_vervolg_beperking.inc

    Description:    model voor model_mld_vervolg_beperking

    Context:

    Notes:
*/
%>
<%

function model_mld_vervolg_beperking()
{
    var srtdisc = getQParamInt("disciplinetype", -1);

    this.table = "mld_vervolg_beperking";
    this.primary = "mld_vervolg_beperking_key";
    this.records_name = "mld_vervolg_beperkings";
    this.record_name = "mld_vervolg_beperking";
    this.autfunction = "WEB_PRSSYS";
    this.record_title = L("mld_vervolg_beperking");
    this.records_title = L("mld_vervolg_beperking_m");
    this.defaultIcon = "fa-diagram-nested";

    this.fields = {
         "id": {
            "dbs": "mld_vervolg_beperking_key",
            "label": "Key",
            "typ": "key",
            "hidden_fld": true,
            "required": true,
            "seq": " mld_s_mld_vervolg_beperking_key"
        },
        "disciplinetype_1": {
            "dbs": "ins_srtdiscipline_key_1",
            "label": L("ins_srtdiscipline"),
            "typ": "key",
            "hidden_fld": true,
            "foreign": {
                "tbl": "ins_srtdiscipline",
                "key": "ins_srtdiscipline_key",
                "desc": "ins_srtdiscipline_omschrijving"
            }
        },
        "disciplinetype_2": {
            "dbs": "ins_srtdiscipline_key_2",
            "label": L("ins_srtdiscipline"),
            "typ": "key",
            "foreign": {
                "tbl": "ins_v_aanwezigsrtdiscipline",
                "key": "ins_srtdiscipline_key",
                "desc": "ins_srtdiscipline_omschrijving"
            }
        }
    }

    this.list = {
        "columns": [
            "id",
            "disciplinetype_1",
            "disciplinetype_2"
        ]
    };

    this.edit = {
        "modal": true
    };

    this.REST_GET    = generic_REST_GET(this);
    this.REST_POST   = generic_REST_POST(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_DELETE = generic_REST_DELETE(this);
}

%>