HCAS#39217 ook days parameters
svn path=/Website/trunk/; revision=33188
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
var gebouw_key = getQParamInt("gebouw_key", user.alg_gebouw_key({withcurrent:true})); // Gebouw, kan -1 zijn, dan niet gebruiken
|
||||
var verdieping_key = getQParamInt("verdieping_key", user.alg_verdieping_key({withcurrent:true}));
|
||||
var offset = getQParamInt("offset", 0);
|
||||
var days = getQParamInt("days", 1);
|
||||
|
||||
authparams = user.checkAutorisation("WEB_BEZBOF");
|
||||
|
||||
@@ -49,7 +50,7 @@
|
||||
+ " AND a.alg_onrgoed_keys = v.alg_onroerendgoed_keys(+)"
|
||||
+ " AND a.alg_locatie_key = l.alg_locatie_key"
|
||||
+ (offset >=0 ? " AND bez_bezoekers_out IS NULL" : "") // weg = niet meer interessant, tenzij terugkijken
|
||||
+ " AND a.bez_afspraak_datum BETWEEN TRUNC(SYSDATE+"+offset+") AND TRUNC(SYSDATE+"+offset+")+1";
|
||||
+ " AND a.bez_afspraak_datum BETWEEN TRUNC(SYSDATE+"+offset+") AND TRUNC(SYSDATE+"+offset+"+"+days+")";
|
||||
|
||||
if (authparams.ALGreadlevel > -1) { // Er geldt een autorisatiebeperking
|
||||
sql += " AND EXISTS ("
|
||||
@@ -115,7 +116,7 @@
|
||||
};
|
||||
function fnHeader(oRs)
|
||||
{
|
||||
return (offset == 0 ? toTimeString(new Date(oRs("bez_afspraak_datum").value)) : toDateTimeString(new Date(oRs("bez_afspraak_datum").value), null, null, true));
|
||||
return (offset == 0 && days == 1 ? toTimeString(new Date(oRs("bez_afspraak_datum").value)) : toDateTimeString(new Date(oRs("bez_afspraak_datum").value), null, null, true));
|
||||
};
|
||||
function fnStatus(oRs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user