FSN#36229 schermen aangepast zodat WEB_FACFAC volgnummers kan veranderen onder editmode=1
svn path=/Website/trunk/; revision=33562
This commit is contained in:
@@ -66,6 +66,7 @@ function model_fac_functie (functie_key, params)
|
||||
"sequence": {
|
||||
"dbs": "fac_functie_volgnr",
|
||||
"label": L("fac_functie_volgnr"),
|
||||
"readonly": !user.has("WEB_FACFAC"),
|
||||
"typ": "number"
|
||||
},
|
||||
"level": {
|
||||
|
||||
@@ -27,20 +27,27 @@
|
||||
|
||||
if (editmode == 1)
|
||||
{
|
||||
var gparams = { "GET": { "wheres": ["fac_functie_code LIKE 'WEB_USER%'"] } };
|
||||
model.REST_PUT = generic_REST_PUT(model, gparams);
|
||||
if (!user.has("WEB_FACFAC"))
|
||||
{
|
||||
var currWhere = model.gparams.GET.wheres || [];
|
||||
currWhere.push("fac_functie_code LIKE 'WEB_USER%'");
|
||||
|
||||
var gparams = { "GET": { "wheres": currWhere } };
|
||||
model.REST_GET = generic_REST_GET(model, gparams);
|
||||
}
|
||||
model.REST_PUT = generic_REST_PUT(model);
|
||||
}
|
||||
else if (editmode == 2)
|
||||
else if (mode == "list" && !show_all)
|
||||
{
|
||||
model.REST_PUT = generic_REST_PUT(model, gparams);
|
||||
}
|
||||
else if (mode == "list" && show_all)
|
||||
{
|
||||
var gparams = { "GET": { "wheres": ["fac_functie_volgnr IS NOT NULL"] } };
|
||||
model.REST_PUT = generic_REST_PUT(model, gparams);
|
||||
var currWhere = model.gparams.GET.wheres || [];
|
||||
currWhere.push("fac_functie_volgnr IS NOT NULL");
|
||||
|
||||
var gparams = { "GET": { "wheres": currWhere } };
|
||||
model.REST_PUT = generic_REST_PUT(model);
|
||||
model.REST_GET = generic_REST_GET(model, gparams);
|
||||
}
|
||||
|
||||
settings.overrule_setting("qp_maxrows", 250); // Toon alle 188 (DB30) functies direct
|
||||
settings.overrule_setting("qp_maxrows", 250); // Toon alle 192 (DB31) functies direct
|
||||
|
||||
function fnrowData(oRs)
|
||||
{
|
||||
@@ -63,7 +70,6 @@
|
||||
"id",
|
||||
//"module",
|
||||
"name",
|
||||
"sequence",
|
||||
"description",
|
||||
"info",
|
||||
"discipline"
|
||||
@@ -90,9 +96,6 @@
|
||||
}
|
||||
};
|
||||
|
||||
if (mode == "list" && !show_all)
|
||||
model.fields.sequence.hidden = true;
|
||||
|
||||
if (editmode == 1)
|
||||
{
|
||||
scf_params.search.filters.shift(); // "module" filter er uit
|
||||
@@ -106,8 +109,6 @@
|
||||
function () {
|
||||
RWCHECKBOXTR("complete", "fldcheck", L("fac_functie_show_all"), false);
|
||||
};
|
||||
if (show_all)
|
||||
scf_params.list.actions = [{ action: "edit_seq", caption: L("lcl_change") }];
|
||||
}
|
||||
|
||||
if (mode == "search" && groep_key > 0) // Als er al rechten zijn, tonen we default alleen geauthoriseerde functies
|
||||
|
||||
@@ -30,11 +30,4 @@ function edit_rechten(row)
|
||||
var url = "appl/mgt/fac_groep.asp?fac_functie=" + functie_key + "&ins_discipline=" + window.disc_key;
|
||||
FcltMgr.openDetail(url, { reuse: true });
|
||||
}
|
||||
}
|
||||
|
||||
function edit_seq(row)
|
||||
{
|
||||
var functie_key = row.getAttribute("ROWKEY");
|
||||
var url = "fac_functie.asp?mode=edit&editmode=2&id=" + functie_key;
|
||||
FcltMgr.openModalDetail(url , L("fac_groeprechten"), { callback: functie_reload });
|
||||
}
|
||||
Reference in New Issue
Block a user