<% /*
    $Revision$
    $Id$

    File:           model_res_srtactiviteit.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_srtactiviteit

    Context:

    Notes:
*/
%>
<%

function model_res_srtactiviteit()
{
    this.records_name = "bookingactivitytypes";
    this.record_name = "bookingactivitytype";
    this.table = "res_srtactiviteit";
    this.primary = "res_srtactiviteit_key";
    this.soft_delete = "res_srtactiviteit_verwijder";
    this.autfunction = "WEB_RESMGT";
    this.record_title = L("res_srtactiviteit");
    this.records_title = L("res_srtactiviteit_m");


    this.fields = {
        "id": {
            "dbs": "res_srtactiviteit_key",
            "label": L("lcl_key"),
            "typ": "key",
            "required": true,
            "seq": "res_s_res_srtactiviteit_key"
        },
        "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
        },
        "manner": {
            "dbs": "res_srtactiviteit_soort",
            "label": L("res_srtactiviteit_soort"),
            "typ": "key",
            "required": true,
            "LOV": L("res_srtactiviteit_soortLOV")
        },
        "remark": {
            "dbs": "res_srtactiviteit_opmerking",
            "label": L("res_srtactiviteit_opmerking"),
            "typ": "memo",
            "translate": true
        },
        "costcentrerequired": {
            "dbs": "res_srtactiviteit_kpnverplicht",
            "label": L("res_srtactiviteit_kpnverplicht"),
            "typ": "key",
            "required": true,
            "LOV": L("res_srtactiviteit_kpnverplichtLOV")
        },
        "anonymous": {
            "dbs": "res_srtactiviteit_anonym",
            "label": L("res_srtactiviteit_anonym"),
            "typ": "key",
            "required": true,
            "LOV": L("res_srtactiviteit_anonymLOV")
        },
        "withdescription": {
            "dbs": "res_srtactiviteit_metomschr",
            "label": L("res_srtactiviteit_metomschr"),
            "typ": "check"
        },
        "withremark": {
            "dbs": "res_srtactiviteit_metopmerk",
            "label": L("res_srtactiviteit_metopmerk"),
            "typ": "check"
        },
        "withamount": {
            "dbs": "res_srtactiviteit_metaantal",
            "label": L("res_srtactiviteit_metaantal"),
            "typ": "check"
        }
    };

    this.list = {
        "columns": [
            "id",
            "prefix",
            "name",
            "manner",
            "costcentrerequired",
            "anonymous",
            "withdescription",
            "withremark",
            "withamount"
        ]
    };
    this.search = {
        "autosearch": true
    };


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