<% /*
    $Revision$
    $Id$

    File:           model_cnt_srtkenmerk.inc

    Description:    Vanuit CodeCharge gegenereerd model voor cnt_srtkenmerk

    Context:

    Notes:
*/
%>
<%

function model_cnt_srtkenmerk()
{
    this.table = "cnt_srtkenmerk";
    this.primary = "cnt_srtkenmerk_key";
    this.records_name = "cnt_srtkenmerks";
    this.record_name = "cnt_srtkenmerk";
    this.soft_delete = "cnt_srtkenmerk_verwijder";
    this.autfunction = "WEB_CNTMGT";
    this.record_title = L("mgt_srtkenmerk");
    this.records_title = L("mgt_srtkenmerk_m");


    this.fields = {
        "id": {
            "dbs": "cnt_srtkenmerk_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "cnt_s_cnt_srtkenmerk_key"
        },
        "name": {
            "dbs": "cnt_srtkenmerk_omschrijving",
            "label": L("mgt_srtkenmerk_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true,
            "filter": "like"
        },
        "property_type": {
            "dbs": "cnt_srtkenmerk_kenmerktype",
            "label": L("mgt_srtkenmerk_kenmerktype"),
            "typ": "varchar",
            "required": true,
            "LOV": buildKenmerktypeLOV(),
            "filter": "exact"
        },
        "unit": {
            "dbs": "cnt_srtkenmerk_dimensie",
            "label": L("mgt_srtkenmerk_dimensie"),
            "typ": "varchar",
            "translate": true
        },
        "system": {
            "dbs": "cnt_srtkenmerk_systeem",
            "label": L("mgt_srtkenmerk_systeem"),
            "typ": "check"
        },
        "length": {
            "dbs": "cnt_srtkenmerk_lengte",
            "label": L("mgt_srtkenmerk_lengte"),
            "typ": "number"
        },
        "decimals": {
            "dbs": "cnt_srtkenmerk_dec",
            "label": L("mgt_srtkenmerk_dec"),
            "typ": "number"
        },
        "minimum": {
            "dbs": "cnt_srtkenmerk_nmin",
            "label": L("mgt_srtkenmerk_nmin"),
            "typ": "number"
        },
        "maximum": {
            "dbs": "cnt_srtkenmerk_nmax",
            "label": L("mgt_srtkenmerk_nmax"),
            "typ": "number"
        },
        "domain": {
            "dbs": "fac_kenmerkdomein_key",
            "label": L("mgt_kenmerkdomein_key"),
            "typ": "key",
            "foreign": fac_kenmerkdomein_foreign("CNT"),
            "filter": "exact",
            "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);
}
%>