<%@language = "javascript" %>
<% /*
    $Revision$
    $Id$

    File:           prs_kostensoortgrp.asp

    Description:    fac_management aanroep van model_prs_kostensoortgrp

    Context:

    Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_prs_kostensoortgrp.inc" -->
<%
var discipline_key = getQParamInt("budgetdiscipline", -1);
var project_key = getQParamInt("budgetproject", -1);
var kostenrubriek_key = getQParamInt("budgetcostcategory", -1);
var this_model = new model_prs_kostensoortgrp();
var model_params = {
        "search": {
            "autosearch": true,
            "filters": [
                "budgetdiscipline",
                "budgetproject",
                "budgetcostcategory",
                "name"
            ],
            "transit": [
                "budgetdiscipline",
                "budgetproject",
                "budgetcostcategory"
            ],
            "requires": {
                "js": ["../bgt/bgt_budget.js"]
            }
        },
        "list": {
            "columns": [
                "budgetcostcategory",
                "name",
                "altcode"
            ]
        },
        "edit": {
            "requires": {
                "js": ["../bgt/bgt_budget.js"]
            }
        },
        "layout": {
            "miscellaneous": {
                "icon" : "fa-tags"
            }
        },
        "wrap": {
            "frames": [
                {
                    url: "prs_kostensoort.asp?mode=list&costtypegroup={0}",
                    title: L("prs_kostensoort_m"),
                    autfunction: (S("bgt_enabled")==1 ? ["WEB_FINMSU", "WEB_BGTMGT"] : ["WEB_FINMSU"])
                }
            ]
        }
    };

scaffolding(this_model, model_params);
%><% ASPPAGE_END(); %>
