<% /*
    $Revision$
    $Id$

    File:           model_fac_notificatiejob.inc

    Description:    Vanuit CodeCharge gegenereerd model voor fac_notificatiejob

    Context:

    Notes:
*/
%>
<%

function model_fac_notificatiejob()
{
    this.table = "fac_notificatie_job";
    this.primary = "fac_notificatie_job_key";
    this.records_name = "fac_notificatie_jobs";
    this.record_name = "fac_notificatie_job";
    this.autfunction = "WEB_PRSSYS";
    this.record_title = L("fac_notificatie_job");
    this.records_title = L("fac_notificatie_job_m");


    this.fields = {
        "id": {
            "dbs": "fac_notificatie_job_key",
            "label": "Key",
            "typ": "key",
            "hidden_fld": true,
            "required": true,
            "filter": "exact",
            "seq": "fac_s_fac_notificatie_job_key"
        },
        "name": {
            "dbs": "fac_notificatie_job_oms",
            "label": L("fac_notificatie_job_oms"),
            "typ": "varchar",
            "required": true,
            "translate": true
        },
        "view": {
            "dbs": "fac_notificatie_job_view",
            "label": L("fac_notificatie_job_view"),
            "typ": "varchar",
            "required": true
        },
        "flags": {
            "dbs": "fac_notificatie_job_flags",
            "label": L("fac_notificatie_job_flags"),
            "typ": "number",
            "defaultvalue": 0,
            "required": true

        },
        "job_mode": { // Niet hernoemen naar 'mode', dat wordt door scaffolding in de url al gebruikt
            "dbs": "fac_notificatie_job_mode",
            "label": L("fac_notificatie_job_mode"),
            "typ": "number",
            "bits": [
                {
                    "name": "",
                    "label": "",
                    "typ": "check",
                    "mask": 15,
                    "radios": [
                        {
                            "name": "send_status",
                            "label": L("fac_notificatie_job_status"),
                            "mask": 1
                        },
                        {
                            "name": "send_email",
                            "label": L("fac_notificatie_job_email"),
                            "mask": 2
                        },
                        {
                            "name": "send_sms",
                            "label": L("fac_notificatie_job_sms"),
                            "mask": 4
                        },
                        {
                            "name": "send_alert",
                            "label": L("fac_notificatie_job_alert"),
                            "mask": 8
                        }
                    ]
                }
            ]
        },
        "interval": {
            "dbs": "fac_notificatie_job_interval",
            "label": L("fac_notificatie_job_interval"),
            "typ": "number"
        },
        "nextrun": {
            "dbs": "fac_notificatie_job_nextrun",
            "label": L("fac_notificatie_job_nextrun"),
            "typ": "datetime"
        }
    };


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