FSN#37014 filters plaats, meldingsgroep en afleveradres conditioneel tonen
svn path=/Website/trunk/; revision=29879
This commit is contained in:
@@ -109,6 +109,25 @@ var autfunction = {fe: "WEB_MLDORD", bo: "WEB_ORDBOF", b2: "WEB_ORDBO2"}[urole];
|
||||
if (cnt)
|
||||
var authparams = user.checkAutorisation("WEB_CNTUSE"); // Stelling: Als je WEB_CNTMAN rechten hebt moet je ook dezelfde WEB_CNTUSE rechten hebben/krijgen.
|
||||
var authparams = user.checkAutorisation(autfunction);
|
||||
|
||||
// Fast check to see if we have anything to do with geographics
|
||||
sql= "SELECT 1 FROM ins_srtdiscipline WHERE (ins_srtdiscipline_alg=1 OR ins_srtdiscipline_ins=1 OR ins_srtdiscipline_bes=1) AND ROWNUM = 1";
|
||||
oRs = Oracle.Execute(sql);
|
||||
var anygeo = !oRs.eof;
|
||||
oRs.close();
|
||||
|
||||
// Fast check to see if we have anything to do with call groups
|
||||
sql= "SELECT 1 FROM mld_stdmeldinggroep WHERE ROWNUM = 1";
|
||||
oRs = Oracle.Execute(sql);
|
||||
var anymldgroup = !oRs.eof;
|
||||
oRs.close();
|
||||
|
||||
// Fast check to see if we have any delivery adresses
|
||||
sql= "SELECT 1 FROM mld_adres WHERE mld_adres_verwijder IS NULL AND mld_adres_afleveradres IS NOT NULL AND ROWNUM = 1";
|
||||
oRs = Oracle.Execute(sql);
|
||||
var anydeladr = !oRs.eof;
|
||||
oRs.close();
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
@@ -478,6 +497,8 @@ var authparams = user.checkAutorisation(autfunction);
|
||||
+ " GROUP BY G.mld_stdmeldinggroep_key, mld_stdmeldinggroep_naam"
|
||||
+ " ORDER BY 2";
|
||||
|
||||
if (anymldgroup)
|
||||
{
|
||||
FCLTselector("meldinggrp_key",
|
||||
grpsql,
|
||||
{ initKey: meldinggrp_key,
|
||||
@@ -485,6 +506,7 @@ var authparams = user.checkAutorisation(autfunction);
|
||||
trclass: "secsearch noxd",
|
||||
emptyOption: ""
|
||||
});
|
||||
}
|
||||
|
||||
// Behandelgroep-filter (indien die er zijn)
|
||||
var behsql = "SELECT mld_behandelgroep_key,"
|
||||
@@ -549,6 +571,8 @@ var authparams = user.checkAutorisation(autfunction);
|
||||
whenEmpty: L("lcl_search_generic") // want filter
|
||||
});
|
||||
|
||||
if (anygeo)
|
||||
{
|
||||
// Locatie en gebouw
|
||||
FCLTplaatsselector(authparams.ALGreadlevel, { locatiekey: locatie_key,
|
||||
gebouwkey: gebouw_key,
|
||||
@@ -558,6 +582,10 @@ var authparams = user.checkAutorisation(autfunction);
|
||||
filtercode: "FAC",
|
||||
whenEmpty: L("lcl_search_generic") // want filter
|
||||
});
|
||||
}
|
||||
|
||||
if (anydeladr)
|
||||
{
|
||||
// Afleveradres
|
||||
FCLTselector("adr_key",
|
||||
"SELECT mld_adres_key, mld_adres_naam"
|
||||
@@ -568,6 +596,8 @@ var authparams = user.checkAutorisation(autfunction);
|
||||
label : L("lcl_bes_del_place"),
|
||||
trclass: "secsearch"
|
||||
});
|
||||
}
|
||||
|
||||
%>
|
||||
</table>
|
||||
</td><!-- end column 2 -->
|
||||
|
||||
Reference in New Issue
Block a user