<% /*
    $Revision$
    $Id$

    File:           model_mld_typeopdr.inc

    Description:    Vanuit CodeCharge gegenereerd model voor mld_typeopdr

    Context:

    Notes:
*/
%>
<%

function model_mld_typeopdr()
{
    this.table = "mld_typeopdr";
    this.primary = "mld_typeopdr_key";
    this.records_name = "mld_typeopdrs";
    this.record_name = "mld_typeopdr";
    this.autfunction = "WEB_PRSSYS";
    this.record_title = L("mld_typeopdr");
    this.records_title = L("mld_typeopdr_m");


    this.fields = {
        "id": {
            "dbs": "mld_typeopdr_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "mld_s_mld_stdmelding_key"
        },
        "name": {
            "dbs": "mld_typeopdr_omschrijving",
            "label": L("mld_typeopdr_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true
        },
        "module": {
            "dbs": "mld_typeopdr_module",
            "label": L("mld_typeopdr_module"),
            "typ": "varchar",
            "hidden_fld": true,
            "defaultvalue": "MLD"
        },
        "close": {
            "dbs": "mld_typeopdr_decentraal",
            "label": L("mld_typeopdr_decentraal"),
            "typ": "key",
            "LOV": L("mld_typeopdr_decentraalLOV"),
            "emptyoption": null
        },
        "external": {
            "dbs": "mld_typeopdr_afmelden_extern",
            "label": L("mld_typeopdr_afmelden_extern"),
            "typ": "key",
            "LOV": L("mld_typeopdr_afmelden_externLOV"),
            "emptyoption": null
        },
        "costs": {
            "dbs": "mld_typeopdr_kosten",
            "label": L("mld_typeopdr_kosten"),
            "typ": "check0"
        },
        "closecall": {
            "dbs": "mld_typeopdr_sluitmelding",
            "label": L("mld_typeopdr_sluitmelding"),
            "typ": "key",
            "defaultvalue": "0",
            "LOV": L("mld_typeopdr_sluitmeldingLOV"),
            "emptyoption": null
        },
        "matchtype": {
            "dbs": "mld_typeopdr_matchtype",
            "label": L("mld_typeopdr_matchtype"),
            "typ": "key",
            "defaultvalue": "2",
            "LOV": L("mld_typeopdr_matchtypeLOV"),
            "emptyoption": null
        },
        "closemargin": {
            "dbs": "mld_typeopdr_afmeldmarge",
            "label": L("mld_typeopdr_afmeldmarge"),
            "typ": "number",
            "defaultvalue": "0"
        },
        "visiblefe": {
            "dbs": "mld_typeopdr_zichtbaarfe",
            "label": L("mld_typeopdr_zichtbaarfe"),
            "typ": "check"
        },
        "offerrequest": {
            "dbs": "mld_typeopdr_isofferte",
            "label": L("mld_typeopdr_isofferte"),
            "typ": "check0"
        },
        "offerlimit": {
            "dbs": "mld_typeopdr_offertelimiet",
            "label": L("mld_typeopdr_offertelimiet"),
            "iscurrency": true,
            "typ": "float"
        },
        "approval": {
            "dbs": "mld_typeopdr_gvs",
            "label": L("mld_typeopdr_gvs"),
            "iscurrency": true,
            "typ": "float"
        },
        "nextordertype": {
            "dbs": "mld_typeopdr_typeopdr_key",
            "label": L("mld_typeopdr_typeopdr_key"),
            "typ": "key",
            "foreign": {
                "tbl": "MLD_TYPEOPDR",
                "key": "MLD_TYPEOPDR_KEY",
                "desc": "MLD_TYPEOPDR_OMSCHRIJVING"
            },
            "LOVinit": ""
        },
        "contract": {
            "dbs": "mld_typeopdr_contract",
            "label": L("mld_typeopdr_contract"),
            "typ": "key",
            "defaultvalue": "2",
            "LOV": L("mld_typeopdr_contractLOV"),
            "emptyoption": null
        },
        "progress": {
            "dbs": "mld_typeopdr_afhandeling",
            "label": L("mld_typeopdr_afhandeling"),
            "typ": "check0"
        },
        "mandatorycosts": {
            "dbs": "mld_typeopdr_kosten_verplicht",
            "label": L("mld_typeopdr_kosten_verplicht"),
            "typ": "key",
            "LOV": L("mld_typeopdr_kosten_verplichtLOV"),
            "emptyoption": null
        },
        "slamode": {
            "dbs": "mld_typeopdr_slamode",
            "label": L("mld_typeopdr_slamode"),
            "typ": "key",
            "defaultvalue": "1",
            "LOV": L("mld_typeopdr_slamodeLOV"),
            "emptyoption": null
        }
    };


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