<% /*
    $Revision$
    $Id$

    File:           model_cad_legendawaarde.inc

    Description:    Vanuit CodeCharge gegenereerd model voor cad_legendawaarde

    Context:

    Notes:
*/
%>
<%

function model_cad_legendawaarde()
{
    this.records_name = "graphiclegendvalues";
    this.record_name = "graphiclegendvalue";
    this.table = "cad_legendawaarde";
    this.primary = "cad_legendawaarde_key";
    this.autfunction = "WEB_CADMGT";
    this.record_title = L("cad_legendawaarde");
    this.records_title = L("cad_legendawaarde_m");
    this.defaultIcon = "fa-palette";

    this.fields = {
        "id": {
            "dbs": "cad_legendawaarde_key",
            "label": L("lcl_key"),
            "typ": "key",
            "required": true,
            "seq": "cad_s_cad_legendawaarde_key"
        },
        "graphiclegenda": {
            "dbs": "cad_legenda_key",
            "label": L("cad_legenda"),
            "typ": "key",
            "foreign": {
                "tbl": "cad_legenda",
                "key": "cad_legenda_key",
                "desc": "cad_legenda_omschrijving"
            }
        },
        "name": {
            "dbs": "cad_legendawaarde_value",
            "label": L("cad_legendawaarde_value"),
            "typ": "varchar",
            "translate": true
        },
        "description": {
            "dbs": "cad_legendawaarde_omschr",
            "label": L("cad_legendawaarde_omschr"),
            "typ": "varchar",
            "translate": true
        },
        "rgb": {
            "dbs": "cad_legendawaarde_rgb",
            "label": L("cad_legendawaarde_rgb"),
            "typ": "color",
            "defaultvalue": "#FFFFFF"
        }
    };


    this.list = {
        "columns": [
            "id",
            "graphiclegenda",
            "name",
            "description",
            "rgb"
        ]
    };
    this.search = {
        "autosearch": true
    };
    this.edit = {
        "modal": true
    };

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