AKZA#38289: CTR: Gereedmelden geeft Oracle time-out voor bepaalde objecten.

svn path=/Website/trunk/; revision=31958
This commit is contained in:
Maykel Geerdink
2016-12-13 15:06:04 +00:00
parent 5174dfed61
commit 8ab4639aa5
2 changed files with 2 additions and 3 deletions

View File

@@ -1209,8 +1209,9 @@ ins = {checkAutLevel:
? " AND periode > 0"
: "")
// Alleen bij "Afgehandeld" vervallen inspecties tonen.
// Indien vervallen maar nog niet afgerond dan ook de inspectie tonen (status = 0,2 altijd tonen).
+ (inspBusy || inspClosed || inspSoon
? " AND (inspectie_eind IS NULL OR inspectie_eind > SYSDATE)"
? " AND (inspectie_eind IS NULL OR inspectie_eind > SYSDATE OR ins_deelsrtcontrole_status = 0 OR ins_deelsrtcontrole_status = 2)"
: "");
sqlInspectie_select = (inspDone? "inspectie_date" : "inspectie_next")

View File

@@ -450,8 +450,6 @@ function ins_list (pautfunction, params)
if (inspect && !inspDone)
{
// Als object is vervallen dan kun je niet meer inspecteren en uitstellen.
var vervallen = (oRs("inspectie_eind").Value != null && new Date(oRs("inspectie_eind").Value).getTime() < new Date().midnight());
var isc_options = oRs("options").Value;
var this_ins = ins.func_enabled_deel(oRs("ins_deel_key").Value,
{srtcont_key: oRs("ins_srtcontrole_key").Value,
deelsrtcont_key: oRs("ins_deelsrtcontrole_key").Value