FCLT#75912 fac_functiecode (WEB_MLDORD) ook tonen bij autorisatiebeheer

svn path=/Website/trunk/; revision=58401
This commit is contained in:
Jos Groot Lipman
2022-12-20 12:16:44 +00:00
parent 1b4167963c
commit f4dd54cf4d
2 changed files with 6 additions and 4 deletions

View File

@@ -102,8 +102,9 @@
if (functie_key > 0)
{
var func_desc = Oracle.Get("lcl.l(fac_functie_omschrijving,1)", "fac_functie", functie_key);
var func_code = Oracle.Get("fac_functie_code", "fac_functie", functie_key);
scf_params.search.title = func_desc;
scf_params.search.labels.push({ "lbl": L("fac_functie"), "txt" : func_desc });
scf_params.search.labels.push({ "lbl": L("fac_functie"), "txt" : "{0} ({1})".format(func_desc, func_code) });
scf_params.search.labels.push({ "lbl": L("fac_functie_info"), "txt" : Oracle.Get("lcl.l(fac_functie_info,1)", "fac_functie", functie_key)});
var min_level = model.includes.authorization.model.min_level; // Die is bij functie_key gevuld
if (min_level & 4 || !(min_level & 8))
@@ -126,4 +127,4 @@
scaffolding(model, scf_params);
%>
<% ASPPAGE_END(); %>
<% ASPPAGE_END(); %>

View File

@@ -79,10 +79,11 @@
var groep_desc = Oracle.Get("fac_groep_omschrijving", "fac_groep", groep_key);
var func_desc = Oracle.Get("lcl.l(fac_functie_omschrijving, 1)", "fac_functie", functie_key);
var func_code = Oracle.Get("fac_functie_code", "fac_functie", functie_key);
scf_params.search.title = groep_desc + "/" + func_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.search.labels.push({ "lbl": L("fac_functie"), "txt" : func_desc});
scf_params.search.labels.push({ "lbl": L("fac_functie"), "txt" : "{0} ({1})".format(func_desc, func_code) });
scf_params.search.labels.push({ "lbl": L("fac_functie_info"), "txt" : Oracle.Get("lcl.l(fac_functie_info, 1)", "fac_functie", functie_key)});
if (model.level & 4)
{
@@ -110,4 +111,4 @@
scaffolding(model, scf_params);
%>
<% ASPPAGE_END(); %>
<% ASPPAGE_END(); %>