HCAS#36429 AiAi nieuw object - objectsoortselector

svn path=/Website/branches/v2016.1/; revision=29357
This commit is contained in:
Erik Groener
2016-05-11 09:22:42 +00:00
parent be554d7377
commit 28e88c554b
2 changed files with 7 additions and 3 deletions

View File

@@ -274,6 +274,7 @@ oRs.Close();
module: "BES",
srtdeel_key: srtdeel,
autfunction: autfunction,
filtercode: "VERW",
trclass: "secsearch",
onChange: "onChangeSrtdeel",
urlAdd: [{urlParam: "srtgroep_key", field: "srtgroep"},

View File

@@ -12,7 +12,7 @@
<%
function getFiltClauseSrtdeel(pfiltcode, params) // pfiltcode not used yet
function getFiltClauseSrtdeel(pfiltcode, params)
{
var lfiltClause = {from: "", where: ""};
var module = params.module || "INS"; // geldige waarden: INS, BES
@@ -39,9 +39,12 @@ function getFiltClauseSrtdeel(pfiltcode, params) // pfiltcode not used yet
if (params.srtdeel_key && params.srtdeel_key > 0)
lfiltClause.where += " AND sd." + module + "_srtdeel_key = " + params.srtdeel_key;
if (pfiltcode == "LEND")
lfiltClause.where += " AND sd.ins_srtdeel_uitleenbaar = 1";
lfiltClause.where += " AND sd.ins_srtdeel_uitleenbaar = 1";
if (pfiltcode != "VERW")
lfiltClause.where += " AND sd." + module + "_srtdeel_verwijder IS NULL";
if (params.autfunction != "")
{