FSN#39054 Budgetcontrole uitbreiding: BGT module

svn path=/Website/trunk/; revision=32817
This commit is contained in:
Peter Feij
2017-02-14 13:51:17 +00:00
parent 80acb5aeab
commit 16746d736b

View File

@@ -47,7 +47,8 @@ var urole = getQParamSafe("urole");
var fronto = urole == "fo";
var backo = urole == "bo";
var minfo = urole == "mi"; // NOT APPLICABLE?
var frontend = (urole == "fe" || (!fronto & !backo & !minfo));
var bgtmode = (urole == "bgt");
var frontend = (urole == "fe" || (!fronto & !backo & !minfo & !bgtmode)); // &&?
// LET OP: voorheen keken we of MLDBO2 of MLDBO3 wellicht gold als MLDBOF
// niet geldig was. Nu doen we dat door parameters
@@ -107,7 +108,7 @@ if (opdrtype_key > 0)
/***** End get webform parameters *****/
// So what authorization must we check?
var autfunction = {fe: "WEB_MLDORD", bo: "WEB_ORDBOF", b2: "WEB_ORDBO2"}[urole];
var autfunction = {fe: "WEB_MLDORD", bo: "WEB_ORDBOF", b2: "WEB_ORDBO2", bgt: "WEB_BGTORD"}[urole];
//@@@ Er stond in 4.81 ook nog: if (func_enabled[cnt? "WEB_CNTMAN" : autfunction]) ...
// MGE: Je hebt dus WEB_CNTMAN rechten nodig als je wordt aangeroepen vanuit contracten => Ook even checken of je die wel hebt
@@ -656,8 +657,10 @@ oRs.close();
</tr>
<% BLOCK_END();
var buttons = [{ title: L("lcl_search"), action: "doSubmit();"}];
buttons.push ( {title: L("lcl_shared_more"), action:"iface_toggleSecondarySearchblock()", id : "btnMoreLess", xclass: "noxd" } );
buttons.push({ title: L("lcl_obj_advanced"), action: "myModal()", xclass: "noxd"});
if (!bgtmode) {
buttons.push ( {title: L("lcl_shared_more"), action:"iface_toggleSecondarySearchblock()", id : "btnMoreLess", xclass: "noxd" } );
buttons.push({ title: L("lcl_obj_advanced"), action: "myModal()", xclass: "noxd"});
}
CreateButtons(buttons, { entersubmit: true });
%>
</form>