<% /*
    $Revision$
    $Id$

    File:           model_res_activiteit_discipline.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_activiteit_discipline

    Context:

    Notes:
*/
%>
<%
function model_res_activiteit_discipline()
{
    this.table = "res_activiteitdiscipline";
    this.primary = "res_activiteitdiscipline_key";
    this.records_name = "res_activiteitdisciplines";
    this.record_name = "res_activiteitdiscipline";

    this.fields = {
        "id": {
            "dbs": "res_activiteitdiscipline_key",
            "label": "Key",
            "typ": "key",
            "hidden_fld": true,
            "required": true,
            "filter": "exact",
            "seq": "res_s_res_activiteitdisc_key"
        },
        "res_discipline_key": {
            "dbs": "res_discipline_key",
            "label": L("res_discipline_key"),
            "typ": "key",
            "insertonly": true,
            "foreign": {
                "tbl": "res_discipline",
                "key": "ins_discipline_key",
                "desc": "ins_discipline_omschrijving",
                "where": "ins_discipline_verwijder is null"
            },
            "uniquewith": "res_activiteit_key",
            "filter": "exact"
        },
        "res_activiteit_key": {
            "dbs": "res_activiteit_key",
            "label": L("res_activiteit_key"),
            "typ": "key",
            "foreign": {
                "tbl": "res_activiteit",
                "key": "res_activiteit_key",
                "desc": "res_activiteit_omschrijving",
                "where": "res_activiteit_verwijder is null"
            },
            "uniquewith": "res_discipline_key",
            "LOVinit": "",
            "filter": "exact"
        }
    };


    this.edit = {
        modal: true
    };
    this.list = {
        "columns": [
            "id",
            "res_discipline_key",
            "res_activiteit_key"
        ]
    };
    this.search = {
        "autosearch": true,
        "filters": [
            "res_discipline_key",
            "res_activiteit_key"
        ]
    };

    this.autfunction = "WEB_RESMGT";
    this.record_title = L("res_activiteitdiscipline");
    this.records_title = L("res_activiteitdiscipline_m");
    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, {});
}
%>