<% /*
    $Revision$
    $Id$

    File:           model_res_srtactiviteit.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_srtactiviteit

    Context:

    Notes:
*/
%>
<%

function model_res_srtactiviteit()
{
    this.table = "res_srtactiviteit";
    this.primary = "res_srtactiviteit_key";
    this.records_name = "res_srtactiviteits";
    this.record_name = "res_srtactiviteit";


    this.fields = {
        "id": {
            "dbs": "res_srtactiviteit_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "res_s_res_srtactiviteit_key"
        },
        "res_srtactiviteit_prefix": {
            "dbs": "res_srtactiviteit_prefix",
            "label": L("res_srtactiviteit_prefix"),
            "typ": "varchar"
        },
        "name": {
            "dbs": "res_srtactiviteit_omschrijving",
            "label": L("res_srtactiviteit_omschrijving"),
            "typ": "varchar",
            "required": true,
            "translate": true
        },
        "res_srtactiviteit_soort": {
            "dbs": "res_srtactiviteit_soort",
            "label": L("res_srtactiviteit_soort"),
            "typ": "key",
            "required": true,
            "LOV": L("res_srtactiviteit_soortLOV")
        },
        "res_srtactiviteit_opmerking": {
            "dbs": "res_srtactiviteit_opmerking",
            "label": L("res_srtactiviteit_opmerking"),
            "typ": "memo",
            "translate": true
        },
        "res_srtactiviteit_kpnverplicht": {
            "dbs": "res_srtactiviteit_kpnverplicht",
            "label": L("res_srtactiviteit_kpnverplicht"),
            "typ": "key",
            "required": true,
            "LOV": L("res_srtactiviteit_kpnverplichtLOV")
        },
        "res_srtactiviteit_anonym": {
            "dbs": "res_srtactiviteit_anonym",
            "label": L("res_srtactiviteit_anonym"),
            "typ": "key",
            "required": true,
            "LOV": L("res_srtactiviteit_anonymLOV")
        },
        "res_srtactiviteit_metomschr": {
            "dbs": "res_srtactiviteit_metomschr",
            "label": L("res_srtactiviteit_metomschr"),
            "typ": "check"
        },
        "res_srtactiviteit_metopmerk": {
            "dbs": "res_srtactiviteit_metopmerk",
            "label": L("res_srtactiviteit_metopmerk"),
            "typ": "check"
        },
        "res_srtactiviteit_metaantal": {
            "dbs": "res_srtactiviteit_metaantal",
            "label": L("res_srtactiviteit_metaantal"),
            "typ": "check"
        }
    };

    this.list = {
        "columns": [
            "id",
            "res_srtactiviteit_prefix",
            "res_srtactiviteit_soort",
            "name"
        ]
    };
    this.search = {
        "autosearch": true
    };
    this.soft_delete = "res_srtactiviteit_verwijder";
    this.autfunction = "WEB_RESMGT";
    this.record_title = L("res_srtactiviteit");
    this.records_title = L("res_srtactiviteit_m");


    this.REST_GET    = generic_REST_GET(this, this.gparams);
    this.REST_POST   = generic_REST_POST(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_DELETE = generic_REST_DELETE(this, {});
}
%>