<% /*
    $Revision$
    $Id$

    File:           model_alg_srtterreinsector.inc

    Description:    Model voor alg_srtterreinsector

    Context:

    Notes:
*/
%>
<%
function model_alg_srtterreinsector()
{
    this.records_name = "terrainfunctions";
    this.record_name = "terrainfunction";
    this.table = "alg_srtterreinsector";
    this.primary = "alg_srtterreinsector_key";
    this.soft_delete = "alg_srtterreinsector_verwijder";
    this.autfunction = "WEB_ALGMSU";
    this.record_title = L("alg_srtterreinsector");
    this.records_title = L("alg_srtterreinsector_m");


    this.fields = {
        "id": {
            "dbs": "alg_srtterreinsector_key",
            "label": L("lcl_key"),
            "typ": "key",
            "required": true,
            "seq": "alg_s_alg_srtterrein_key"
        },
        "name": {
            "dbs": "alg_srtterreinsec_omschrijving",
            "label": L("alg_srtterreinsec_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true
        },
        "price1": {
            "dbs": "alg_srtterreinsector_prijs",
            "label": L("alg_srtterreinsector_prijs"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "price2": {
            "dbs": "alg_srtterreinsector_prijs2",
            "label": L("alg_srtterreinsector_prijs2"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "price3": {
            "dbs": "alg_srtterreinsector_prijs3",
            "label": L("alg_srtterreinsector_prijs3"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "price4": {
            "dbs": "alg_srtterreinsector_prijs4",
            "label": L("alg_srtterreinsector_prijs4"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "price5": {
            "dbs": "alg_srtterreinsector_prijs5",
            "label": L("alg_srtterreinsector_prijs5"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "rentable": {
            "dbs": "prs_verhuurbaar",
            "label": L("prs_verhuurbaar"),
            "iscurrency": true,
            "typ": "check",
            "multiedit": true
        },
        "code": {
            "dbs": "alg_srtterreinsector_code",
            "label": L("alg_srtterreinsector_code"),
            "iscurrency": true,
            "typ": "varchar"
        },
        "processingtime": {
            "dbs": "alg_srtterreinsec_t_uitvtijd",
            "label": L("lcl_mld_stduitvoertijd"),
            "obj": "MLD_T_UITVOERTIJD",
            "typ": "processingtime"
        },
        "criticaltime": {
            "dbs": "alg_srtterreinsec_t_uitv_pr1",
            "obj": "MLD_T_UITVOERTIJD",
            "typ": "processingtime",
            "label": L("lcl_mld_uitvoertijd_kritisch"),
            "multiedit": true
        },
        "highprioritytime": {
            "dbs": "alg_srtterreinsec_t_uitv_pr2",
            "obj": "MLD_T_UITVOERTIJD",
            "typ": "processingtime",
            "label": L("lcl_mld_uitvoertijd_hoog"),
            "multiedit": true
        },
        "lowprioritytime": {
            "dbs": "alg_srtterreinsec_t_uitv_pr4",
            "obj": "MLD_T_UITVOERTIJD",
            "typ": "processingtime",
            "label": L("lcl_mld_uitvoertijd_laag"),
            "multiedit": 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);
}
%>