FSN#41987 Filteren op meldingen zonder behandelaar

svn path=/Website/trunk/; revision=35364
This commit is contained in:
Jos Groot Lipman
2017-09-19 12:48:55 +00:00
parent d5e213e1dd
commit 1c5ca3d1b2
5 changed files with 11 additions and 2 deletions

View File

@@ -1407,8 +1407,10 @@ mld = {setmeldingstatus:
if (caller_key)
sqln += " AND m.prs_perslid_key = " + caller_key;
if (behandel_key)
if (behandel_key > 0)
sqln += " AND m.mld_melding_behandelaar_key = " + behandel_key;
else if (behandel_key == -2)
sqln += " AND m.mld_melding_behandelaar_key IS NULL";
if (ref_key && ref_type)
sqln += " AND m.mld_melding_kto_key = " + ref_key

View File

@@ -909,7 +909,7 @@ function mld_list (pautfunction, params)
{
// als je er op filtert weet je het wel, maar op de print vind ik wel leuk
// als de frontend bij de statusinfo niet mag zien Wie het doet, mag die hier ook niet de behandelaar zien
if ((!behandel_key || print) && !(frontend && S("mld_fe_show_statusnames") == 0))
if ((!(behandel_key>0) || print) && !(frontend && S("mld_fe_show_statusnames") == 0))
rst.addColumn(new Column({caption: L("lcl_mld_behandelaar"), content: fncolBehandelaar }));
rst.addColumn(new Column({caption: L("lcl_end_date_plan"), content: fncolEindDatum, nowrap: true}));

View File

@@ -66,6 +66,7 @@
<!-- #include file="../Shared/calendar.inc" -->
<!-- #include file="../Shared/xd.inc" -->
<!-- #include file="../mld/mld.inc" -->
<!-- #include file="../shared/json2.js" -->
<%
FCLTHeader.Requires({plugins:["jQuery", "kenmerk"],
@@ -996,6 +997,7 @@ if (!frontend && srtdisc > -1)
trclass: "primsearch noxd", /* als wel xd: _self zou leuk zijn */
autlevel: authparams.PRSreadlevel,
autlevelALG: authparams.ALGreadlevel,
addfixedoption: { txt: L('lcl_suggestemptytxt'), desc: L('lcl_suggestemptydesc'), key: -2 },
whenEmpty: L("lcl_search_generic") // want filter
});
}

View File

@@ -17,6 +17,7 @@
params.highlightDescript,
params.noJustOne,
params.JSONP
params.addemptyoption voegt een 'Leeg' toe met key=-2
params.embedded Kijk nooit naar het parent document (embedded)
Context:
Note: Pas op met gebruiken functies uit andere modules. Dit bestand
@@ -643,6 +644,9 @@ function Suggest(inParams)
showAutocompleteDiv();
resultsObj = data;
if (params.addfixedoption)
resultsObj.result.unshift(params.addfixedoption);
selected = resultsObj.isAll? Math.min(resultsObj.result.length - 1, 10 - 1) : 0;
// voorheen htmlFormat(checkExist, doonChange), nu ingeplakt

View File

@@ -190,6 +190,7 @@ function FCLTpersoonselector(fieldName, objectName, params)
<%=params.extraParamField? ", initExtraParam: \"" + safe.jsstring("" + lextraInit) + "\"": ""%>
<%=params.isBad? ", isBad: true": ""%>
<%=params.readonly? ", fieldReadonly: true": ""%>
<%=params.addfixedoption? ", addfixedoption: JSON.parse('" + safe.jsstring(JSON.stringify(params.addfixedoption)) + "')": ""%>
// ,highlightDescript: true
});
if (FcltMgr.getCaller())