UWVA#36747 Vervaldatum bij gebouw - daarna bestaat-ie niet meer.

svn path=/Website/trunk/; revision=30173
This commit is contained in:
Peter Feij
2016-07-27 16:14:48 +00:00
parent eea6014f72
commit c201149313
3 changed files with 15 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ function gebouw_list(pautfunction, params)
var bld_key = params.bld_key;
var srtgebouw_key = params.srtgebouw_key;
var verantw_key = params.verantw_key;
var expalgincl = params.expalgincl;
function fnrowActionEnabler(oRs)
{
@@ -160,6 +161,9 @@ function gebouw_list(pautfunction, params)
if (verantw_key)
sqln += " AND g.prs_perslid_key_verantw = " + verantw_key;
if (!expalgincl)
sqln += " AND (g.alg_gebouw_vervaldatum IS NULL OR g.alg_gebouw_vervaldatum > TRUNC(SYSDATE)) ";
sqln += " ORDER BY l.alg_locatie_upper ASC, "
+ " g.alg_gebouw_upper ASC ";

View File

@@ -63,6 +63,14 @@ var this_alg = alg.func_enabled(gebouw_key);
whenEmpty: L("lcl_search_generic")
});
%>
<!-- Vervallen objecten -->
<tr class="primsearch">
<td></td>
<td align=left>
<input type="checkbox" class="fldexpalgincl" name="expAlgIncl" id="expAlgIncl" value="1" >
<label for="expAlgIncl"><%=L("lcl_alg_gebouw_vervallen_incl")%></label>
</td>
</tr>
</table>
</td><!-- end column 1 -->

View File

@@ -28,6 +28,7 @@ var loc_key = getQParamInt("locatiekey", -1); // Locatie
var bld_key = getQParamInt("gebouwkey", -1); // Gebouw
var srtgebouw_key = getQParamInt("srt", -1); // Gebouwfunctie
var verantw_key = getQParamInt("verantw", -1); // Gebouw verantwoordelijke
var expalgincl = getQParamInt("expAlgIncl", 0) == 1; // Ook vervallen gebouwen
gebouw_list ( "*",
{ outputmode: outputmode,
@@ -38,7 +39,8 @@ gebouw_list ( "*",
dis_key: (dis_key != -1? dis_key : null),
loc_key: (loc_key != -1? loc_key : null),
bld_key: (bld_key != -1? bld_key : null),
noref: (noref != -1? noref : null)
noref: (noref != -1? noref : null),
expalgincl: expalgincl
}
);
%>