<% /*
    $Revision$
    $Id$

    File:           model_bez_actie.inc

    Description:    Vanuit CodeCharge gegenereerd model voor bez_actie

    Context:

    Notes:
*/
%>
<%

function model_bez_actie()
{
    this.records_name = "visitoractions";
    this.record_name = "visitoraction";
    this.table = "bez_actie";
    this.primary = "bez_actie_key";
    this.soft_delete = "bez_actie_verwijder";
    this.autfunction = "WEB_BEZMGT";
    this.record_title = L("bez_actie");
    this.records_title = L("bez_actie_m");


    this.fields = {
        "id": {
            "dbs": "bez_actie_key",
            "label": L("lcl_key"),
            "typ": "key",
            "required": true,
            "seq": "bez_s_bez_actie_key"
        },
        "name": {
            "dbs": "bez_actie_omschrijving",
            "label": L("bez_actie_omschrijving"),
            "typ": "varchar",
            "required": true,
            "translate": true
        },
        "default": {
            "dbs": "bez_actie_default",
            "label": L("bez_actie_default"),
            "typ": "check"
        },
        "action": {
            "dbs": "bez_actie_flags",
            "label": L("bez_actie_flags"),
            "typ": "number",
            "bits": [
                {
                    "name": "",
                    "label": "",
                    "typ": "check",
                    "mask": 15,
                    "radios": [ 
                        {
                            "name": "flag_oproepen",
                            "label": L("bez_actie_flag_oproepen"),
                            "mask": 1,
                            "defaultvalue": 0
                        },
                        {   "name": "flag_badge",
                            "label": L("bez_actie_flag_badge"),
                            "mask": 2,
                            "defaultvalue": 0
                        },
                        {
                            "name": "flag_teams",
                            "label": L("bez_actie_flag_teams"),
                            "mask": 4,
                            "defaultvalue": 0
                        }
                    ]
                }
            ]
        },
        "group": {
            "dbs": "bez_actie_groep_key",
            "label": L("bez_actie_groep"),
            "typ": "key",
            "required": true,
            "foreign": {
                "tbl": "bez_actie_groep",
                "key": "bez_actie_groep_key",
                "desc": "bez_actie_groep_omschrijving"
            }
        }
    };


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