<% /*
    $Revision$
    $Id$

    File:           model_bes_srtgroep.inc

    Description:    Vanuit CodeCharge gegenereerd model voor bes_srtgroep

    Context:

    Notes:
*/
%>
<%

function model_bes_srtgroep()
{
    this.table = "bes_srtgroep";
    this.primary = "bes_srtgroep_key";
    this.records_name = "bes_srtgroeps";
    this.record_name = "bes_srtgroep";
    this.soft_delete = "bes_srtgroep_verwijder";
    this.autfunction = "WEB_BESMSU";
    this.record_title = L("bes_srtgroep");
    this.records_title = L("bes_srtgroep_m");


    this.fields = {
        "id": {
            "dbs": "bes_srtgroep_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "bes_s_bes_srtgroep_key",
            "defaultvalue": null
        },
        "catalogue": {
            "dbs": "ins_discipline_key",
            "label": L("bes_ins_discipline_key"),
            "typ": "key",
            "required": true,
            "foreign": {
                "tbl": "bes_v_aanwezigdiscipline",
                "key": "ins_discipline_key",
                "desc": "ins_discipline_omschrijving"
            },
            "LOVinit": "",
            "defaultvalue": null
        },
        "name": {
            "dbs": "bes_srtgroep_omschrijving",
            "label": L("bes_srtgroep_omschrijving"),
            "typ": "varchar",
            "required": true,
            "translate": true,
            "filter": "like"
        },
        "sequence": {
            "dbs": "bes_srtgroep_volgnr",
            "label": L("bes_srtgroep_volgnr"),
            "typ": "number"
        },
        "cost_category": {
            "dbs": "prs_kostensoort_key",
            "label": L("prs_kostensoort_key"),
            "typ": "key",
            "foreign": {
                "tbl": "PRS_KOSTENSOORT",
                "key": "PRS_KOSTENSOORT_KEY",
                "desc": "PRS_KOSTENSOORT_OMS"
            },
            "LOVinit": ""
        }
    };


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