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

    File:               res_load_cat.asp
    Description         Klap een tak van de catering boom open.
    Parameters:
        discipline_key  Verplicht, de catalogus die wordt opengeklapt
        rsv_ruimte_key  Verplicht
    Context:            Vanuit res_edit_objcat/res_plan.js

    Er wordt combinatie-validate gedaan

*/
DOCTYPE_Disable = 1;
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/iface.inc" -->
<!-- #include file="./res.inc" -->
<!-- #include file="res_flexkenmerk_art.inc" -->
<!-- #include file="./res_cat.inc" -->
<!-- #include file="../shared/kpl_ksrt_validate.inc" -->

<%
var discipline_key = getQParamInt("discipline_key");
var rsv_ruimte_key = getQParamInt("rsv_ruimte_key");
var hidefilter = getQParamInt("hidefilter", 0);
res.res_set_dialect(rsv_ruimte_key);

var arrangement_key = getQParamInt("arrangement_key", -1)
if (arrangement_key == -1)
{
    make_cat(discipline_key, rsv_ruimte_key, null, null, null, hidefilter);
}
else
{
    var arrangement = { arrangement_key: arrangement_key
                      , aantal: getQParamInt("arrangement_aantal", 0)
                      , uren: getQParamInt("uren", 0)
                      , minuten: getQParamInt("minuten", 0)
                      };
    make_cat(discipline_key, rsv_ruimte_key, null, null, arrangement, hidefilter);
}

%><% ASPPAGE_END(); %>
