97 lines
3.2 KiB
Plaintext
97 lines
3.2 KiB
Plaintext
<%@language = "javascript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: fac_functie.asp
|
|
|
|
Description: Ingang via functies om autorisaties te beheren
|
|
|
|
Context: Vanuit het menu
|
|
|
|
Notes:
|
|
*/
|
|
%>
|
|
|
|
<!-- #include file="../scf/scaffolding.inc" -->
|
|
<!-- #include file="../mgt/mgt_tools.inc" -->
|
|
<!-- #include file="../api2/model_fac_functie.inc" -->
|
|
|
|
<%
|
|
var groep_key = getQParamInt("fac_groep", -1);
|
|
var disc_key = getQParamInt("ins_discipline", -1);
|
|
var model = new model_fac_functie(null, { groep_key: groep_key, disc_key: disc_key });
|
|
|
|
settings.overrule_setting("qp_maxrows", 250); // Toon alle 186 (DB28) functies direct
|
|
|
|
function fnrowData(oRs)
|
|
{
|
|
var data = { funcdisc: oRs.Fields("discipline").Value.id };
|
|
return JSON.stringify(data);
|
|
}
|
|
|
|
var scf_params =
|
|
{
|
|
"search": {
|
|
"autosearch": !!model.module,
|
|
"labels" : [],
|
|
"filters": [
|
|
"module",
|
|
"description"
|
|
]
|
|
},
|
|
"list": {
|
|
"columns": [
|
|
"id",
|
|
//"module",
|
|
"name",
|
|
"description",
|
|
"discipline"
|
|
],
|
|
"orderby": [
|
|
"module",
|
|
"name",
|
|
"description"
|
|
],
|
|
"default_action": "edit_rechten",
|
|
"fnRowData": fnrowData,
|
|
"requires": {
|
|
js: ["./fac_functie.js"]
|
|
},
|
|
"script": "window.groep_key = " + groep_key + "; window.disc_key = " + disc_key
|
|
},
|
|
"transit": {
|
|
"fac_groep": groep_key,
|
|
"ins_discipline" : disc_key
|
|
}
|
|
};
|
|
if (groep_key > 0)
|
|
{
|
|
var groep_desc = Oracle.Get("fac_groep_omschrijving", "fac_groep", groep_key);
|
|
scf_params.search.title = groep_desc;
|
|
scf_params.search.labels.push({ "lbl": L("fac_groep"), "txt" : groep_desc});
|
|
scf_params.search.labels.push({ "lbl": L("fac_groep_opmerking"), "txt" : Oracle.Get("fac_groep_opmerking", "fac_groep", groep_key)});
|
|
scf_params.list.columns.push(
|
|
"authorization.ins_discipline",
|
|
"authorization.prs_level_read",
|
|
"authorization.prs_level_write",
|
|
"authorization.alg_level_read",
|
|
"authorization.alg_level_write"
|
|
);
|
|
}
|
|
if (disc_key > 0)
|
|
{
|
|
scf_params.search.labels.push({ "lbl": L("ins_discipline_key"), "txt" : Oracle.Get("ins_discipline_omschrijving", "ins_tab_discipline", "ins_discipline_key", disc_key)});
|
|
scf_params.list.columns.push(
|
|
"authorization.fac_groep",
|
|
"authorization.prs_level_read",
|
|
"authorization.prs_level_write",
|
|
"authorization.alg_level_read",
|
|
"authorization.alg_level_write"
|
|
);
|
|
}
|
|
else
|
|
scf_params.search.filters.push("name");
|
|
scaffolding(model, scf_params);
|
|
%>
|