<% /*
    $Revision$
    $Id$

    File:           model_ctr_disc_params.inc

    Description:    Model voor ctr_disc_params

    Context:

    Notes:          *uitsluitend* gebruikt als include van model_ctr_discipline
*/
%>
<%
model_ctr_disc_params =
{
    "table": "ctr_disc_params",
    "primary": "ctr_disc_params_key",
    "records_name": "ctr_disc_params",
    "record_name": "ctr_disc_params",
    "autfunction": "WEB_CTRMSU",


    "fields": {
        "id": {
            "dbs": "ctr_disc_params_key",
            "label": "Key",
            "typ": "key",
            "seq": "bes_s_ctr_disc_params_key"
        },
        "ctr_ins_discipline_key": {
            "dbs": "ctr_ins_discipline_key",
            "label": "Foreign key",
            "typ": "key",
            "hidden_fld": true
        },
        "inspection_type": {
            "dbs": "ctr_disc_params_controle_type",
            "label": L("ctr_inspection_type"),
            "typ": "key",
            "LOV": buildSrtcontroletypeList(),
            "required": true
        },
        "ismjob": {
            "dbs": "ctr_disc_params_ismjob",
            "label": L("ctr_ismjob"),
            "typ": "check0",
            "readonly": S("mjb_enabled") != 1
        }
    }
}

api2.generic_REST(model_ctr_disc_params);
%>