<% /*
    $Revision$
    $Id$

    File:           model_res_cyclus.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_cyclus

    Context:

    Notes:
*/
%>
<%
function model_res_cyclus()
{
    this.table = "res_cyclus";
    this.primary = "res_cyclus_key";
    this.records_name = "res_cycluss";
    this.record_name = "res_cyclus";


    this.fields = {
        "id": {
            "dbs": "res_cyclus_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "res_s_res_cyclus"
        },
        "name": {
            "dbs": "res_cyclus_naam",
            "label": L("res_cyclus_naam"),
            "typ": "varchar",
            "translate": true,
            "required": true
        },
        "res_cyclus_periode": {
            "dbs": "res_cyclus_periode",
            "label": L("res_cyclus_periode"),
            "typ": "number",
            "required": true
        }
    };

    this.list = {
        "columns": [
            "id",
            "name",
            "res_cyclus_periode"
        ]
    };
    this.search = {
        "autosearch": true
    };
    this.autfunction = "WEB_RESMGT";
    this.record_title = L("res_cyclus");
    this.records_title = L("res_cyclus_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, {});
}
%>