FSN#37468: Inzage in ‘nieuw’ gesynchroniseerd vastgoed.
svn path=/Website/trunk/; revision=30977
This commit is contained in:
@@ -28,6 +28,38 @@ function fnrowData(oRs)
|
||||
|
||||
return JSON.stringify(data);
|
||||
}
|
||||
|
||||
var recent = new Date();
|
||||
function fnrowClass(oRs)
|
||||
{
|
||||
var lclass = "";
|
||||
// Tracking: hoe lang geleden voor het laatst gewijzigd?
|
||||
if (oRs.Fields("recentdatum").Value != null)
|
||||
{
|
||||
var ltrackdate1 = new Date();
|
||||
var ltrackdate10 = new Date();
|
||||
var ltrackdate100 = new Date();
|
||||
var alg_onrgoed_recent = S("alg_onrgoed_recent");
|
||||
ltrackdate1.setMinutes(recent.getMinutes() - alg_onrgoed_recent);
|
||||
ltrackdate10.setMinutes(recent.getMinutes() - alg_onrgoed_recent * 12);
|
||||
ltrackdate100.setMinutes(recent.getMinutes() - alg_onrgoed_recent*12*2);
|
||||
|
||||
var fac_recent = new Date(oRs.Fields("recentdatum").Value);
|
||||
if (fac_recent > ltrackdate1)
|
||||
{
|
||||
lclass += " updated";
|
||||
}
|
||||
else if (fac_recent > ltrackdate10)
|
||||
{
|
||||
lclass += " updated10";
|
||||
}
|
||||
else if (fac_recent > ltrackdate100)
|
||||
{
|
||||
lclass += " updated100";
|
||||
}
|
||||
}
|
||||
return lclass;
|
||||
}
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -130,6 +162,13 @@ function gebouw_list(pautfunction, params)
|
||||
+ " , g.alg_gebouw_x"
|
||||
+ " , g.alg_gebouw_y"
|
||||
+ " , g.alg_gebouw_vervaldatum"
|
||||
+ " , (SELECT MAX(t.fac_tracking_datum)"
|
||||
+ " FROM fac_tracking t"
|
||||
+ " , fac_srtnotificatie sn"
|
||||
+ " WHERE t.fac_srtnotificatie_key = sn.fac_srtnotificatie_key"
|
||||
+ " AND t.fac_tracking_refkey = g.alg_gebouw_key"
|
||||
+ " AND sn.fac_srtnotificatie_xmlnode = 'gebouw'"
|
||||
+ " ) recentdatum"
|
||||
+ " FROM alg_gebouw g"
|
||||
+ " , alg_locatie l"
|
||||
+ " , alg_srtgebouw s"
|
||||
@@ -187,6 +226,7 @@ function gebouw_list(pautfunction, params)
|
||||
title: L("lcl_menu_alg_gebouw"),
|
||||
showAll: showall,
|
||||
rowData: fnrowData,
|
||||
rowClass: fnrowClass,
|
||||
rowActionEnabler: fnrowActionEnabler,
|
||||
flexModule: "ALG",
|
||||
flexId: "alg_gebouw_key",
|
||||
|
||||
@@ -31,6 +31,37 @@ function fnrowData(oRs)
|
||||
return JSON.stringify(data);
|
||||
}
|
||||
|
||||
var recent = new Date();
|
||||
function fnrowClass(oRs)
|
||||
{
|
||||
var lclass = "";
|
||||
// Tracking: hoe lang geleden voor het laatst gewijzigd?
|
||||
if (oRs.Fields("recentdatum").Value != null)
|
||||
{
|
||||
var ltrackdate1 = new Date();
|
||||
var ltrackdate10 = new Date();
|
||||
var ltrackdate100 = new Date();
|
||||
var alg_onrgoed_recent = S("alg_onrgoed_recent");
|
||||
ltrackdate1.setMinutes(recent.getMinutes() - alg_onrgoed_recent);
|
||||
ltrackdate10.setMinutes(recent.getMinutes() - alg_onrgoed_recent * 12);
|
||||
ltrackdate100.setMinutes(recent.getMinutes() - alg_onrgoed_recent*12*2);
|
||||
|
||||
var fac_recent = new Date(oRs.Fields("recentdatum").Value);
|
||||
if (fac_recent > ltrackdate1)
|
||||
{
|
||||
lclass += " updated";
|
||||
}
|
||||
else if (fac_recent > ltrackdate10)
|
||||
{
|
||||
lclass += " updated10";
|
||||
}
|
||||
else if (fac_recent > ltrackdate100)
|
||||
{
|
||||
lclass += " updated100";
|
||||
}
|
||||
}
|
||||
return lclass;
|
||||
}
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
var autosearch = 1; //automatisch laden van resultaat op search pagina
|
||||
@@ -108,27 +139,34 @@ function locatie_list(pautfunction, params)
|
||||
<% FCLTHeader.Generate({outputmode:outputmode}) %>
|
||||
</head>
|
||||
<body id="listbody">
|
||||
<% var sqln = "SELECT l.alg_locatie_key, "
|
||||
+ " l.alg_district_key, "
|
||||
+ " l.alg_locatie_code, "
|
||||
+ " l.alg_locatie_omschrijving, "
|
||||
+ " d.alg_district_omschrijving, "
|
||||
+ " l.alg_locatie_adres, "
|
||||
+ " l.alg_locatie_post_adres, "
|
||||
+ " l.alg_locatie_postcode, "
|
||||
+ " l.alg_locatie_post_postcode, "
|
||||
+ " l.alg_locatie_plaats, "
|
||||
+ " l.alg_locatie_post_plaats, "
|
||||
+ " l.alg_locatie_land, "
|
||||
+ " l.alg_locatie_post_land, "
|
||||
+ " l.alg_locatie_verantw, "
|
||||
+ " l.alg_locatie_verantw_tel, "
|
||||
+ " l.alg_locatie_x, "
|
||||
+ " l.alg_locatie_y "
|
||||
+ " FROM alg_v_aanweziglocatie l, "
|
||||
+ " alg_district d "
|
||||
+ " WHERE d.alg_district_key(+) = l.alg_district_key "
|
||||
+ " AND l.alg_locatie_verwijder IS NULL ";
|
||||
<% var sqln = "SELECT l.alg_locatie_key"
|
||||
+ " , l.alg_district_key"
|
||||
+ " , l.alg_locatie_code"
|
||||
+ " , l.alg_locatie_omschrijving"
|
||||
+ " , d.alg_district_omschrijving"
|
||||
+ " , l.alg_locatie_adres"
|
||||
+ " , l.alg_locatie_post_adres"
|
||||
+ " , l.alg_locatie_postcode"
|
||||
+ " , l.alg_locatie_post_postcode"
|
||||
+ " , l.alg_locatie_plaats"
|
||||
+ " , l.alg_locatie_post_plaats"
|
||||
+ " , l.alg_locatie_land"
|
||||
+ " , l.alg_locatie_post_land"
|
||||
+ " , l.alg_locatie_verantw"
|
||||
+ " , l.alg_locatie_verantw_tel"
|
||||
+ " , l.alg_locatie_x"
|
||||
+ " , l.alg_locatie_y"
|
||||
+ " , (SELECT MAX(t.fac_tracking_datum)"
|
||||
+ " FROM fac_tracking t"
|
||||
+ " , fac_srtnotificatie sn"
|
||||
+ " WHERE t.fac_srtnotificatie_key = sn.fac_srtnotificatie_key"
|
||||
+ " AND t.fac_tracking_refkey = l.alg_locatie_key"
|
||||
+ " AND sn.fac_srtnotificatie_xmlnode = 'locatie'"
|
||||
+ " ) recentdatum"
|
||||
+ " FROM alg_v_aanweziglocatie l"
|
||||
+ " , alg_district d "
|
||||
+ " WHERE d.alg_district_key(+) = l.alg_district_key"
|
||||
+ " AND l.alg_locatie_verwijder IS NULL";
|
||||
|
||||
if (authparams.ALGreadlevel > -1)
|
||||
{ // Er is een scope-beperking van kracht
|
||||
@@ -169,6 +207,7 @@ function locatie_list(pautfunction, params)
|
||||
title: L("lcl_menu_alg_locatie"),
|
||||
showAll: showall,
|
||||
rowData: fnrowData,
|
||||
rowClass: fnrowClass,
|
||||
rowActionEnabler: fnrowActionEnabler,
|
||||
outputmode: outputmode,
|
||||
flexModule: "ALG",
|
||||
|
||||
Reference in New Issue
Block a user