<% /*
    $Revision$
    $Id$

    File:           model_mld_dienstniveau.inc

    Description:    Vanuit CodeCharge gegenereerd model voor mld_dienstniveau

    Context:

    Notes:
*/
%>
<!-- #include file="../api2/model_mld_dienstpakket.inc" -->
<%

function model_mld_dienstniveau()
{
    this.table = "mld_dienstniveau";
    this.primary = "mld_dienstniveau_key";
    this.records_name = "mld_dienstniveaus";
    this.record_name = "mld_dienstniveau";
    this.autfunction = "WEB_MLDMGT";
    this.record_title = L("mld_dienstniveau");
    this.records_title = L("mld_dienstniveau_m");


    this.fields = {
        "id": {
            "dbs": "mld_dienstniveau_key",
            "label": "Key",
            "typ": "key",
            "filter": "exact",
            "seq": "mld_s_dienstniveau_key"
        },
        "name": {
            "dbs": "mld_dienstniveau_omschr",
            "label": L("mld_dienstniveau_omschr"),
            "required": true,
            "typ": "varchar",
            "translate": true
        },
        "description": {
            "dbs": "mld_dienstniveau_opmerking",
            "label": L("mld_dienstniveau_opmerking"),
            "typ": "memo",
            "translate": true
        }
    };


    this.includes = {
        "dienstpakket": {
            "model": new model_mld_dienstpakket(),
            "joinfield": "level"
        }
    };


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