<% /*
    $Revision$
    $Id$

    File:           model_mld_typeopdr_srtdiscipline.inc

    Description:    Vanuit CodeCharge gegenereerd model voor mld_typeopdr_srtdiscipline

    Context:

    Notes:
*/
%>
<%

function model_mld_typeopdr_srtdiscipline()
{
    this.table = "mld_typeopdr_srtdiscipline";
    this.primary = "mld_typeopdr_srtdisc_key";
    this.records_name = "mld_typeopdr_srtdisciplines";
    this.record_name = "mld_typeopdr_srtdiscipline";
    this.autfunction = "WEB_PRSSYS";
    this.record_title = L("mld_typeopdr_srtdiscipline");
    this.records_title = L("mld_typeopdr_srtdiscipline_m");


    this.fields = {
        "id": {
            "dbs": "mld_typeopdr_srtdisc_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": " mld_s_mld_typeopdr_srtdisc"
        },
        "typeopdr_a": {
            "dbs": "mld_typeopdr_key",
            "label": L("mld_typeopdr"),
            "typ": "number",
            "foreign": {
                "tbl": "mld_typeopdr",
                "key": "mld_typeopdr_key",
                "desc": "mld_typeopdr_omschrijving"
            },
            "friendlyname": true
        },
        "typeopdr_b": {
            "dbs": "ins_srtdiscipline_key",
            "label": L("ins_srtdiscipline"),
            "typ": "key",
            "foreign": {
                "tbl": "ins_srtdiscipline",
                "key": "ins_srtdiscipline_key",
                "desc": "ins_srtdiscipline_omschrijving"
            }
        },
        "typeopdr_c": {
            "dbs": "ins_discipline_key",
            "label": L("mgt_discipline"),
            "typ": "key",
            "foreign": {
                "tbl": "mld_discipline",
                "key": "ins_discipline_key",
                "desc": "ins_discipline_omschrijving"
            },
            "emptyoption": "<Alles>"
        }
    };

    this.list = {
        "columns": [
            "id",
            "typeopdr_c",
            "typeopdr_a"
        ]
    };

    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);
}
%>