IVET#39979: Bookmarks - QR codes periodieke taken.
svn path=/Website/branches/v2017.1/; revision=34021
This commit is contained in:
@@ -692,10 +692,7 @@ ins = {checkAutLevel:
|
||||
actief && iresult.hasCTRWrite &&
|
||||
((isc_options & 8) == 8);
|
||||
// Alleen als de inspectie gereedgemeld is kan SNEL afgerond worden zonder gegevens in te vullen.
|
||||
iresult.canInspFastFinish = iresult.readuse && invoerAfterNext &&
|
||||
(ins_deelsrtcontrole_status == 5) &&
|
||||
actief && iresult.hasCTRWrite &&
|
||||
((isc_options & 8) == 8);
|
||||
iresult.canInspFastFinish = iresult.canInspFinish && ins_deelsrtcontrole_status == 5;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -391,16 +391,11 @@ else
|
||||
function ins_submit(action)
|
||||
{
|
||||
var finish = false;
|
||||
if (action == "F")
|
||||
{
|
||||
finish = true;
|
||||
action = "C";
|
||||
}
|
||||
var controlemodeField = (action == "E"? ["sel_controlemode"] : null);
|
||||
if (!validateForm("u2", { checkNot: controlemodeField }))
|
||||
return false;
|
||||
|
||||
if (action == "C")
|
||||
if (action == "C" || action == "F")
|
||||
{
|
||||
// De uitvoerdatum van de inspectie is nu. Daardoor ligt deze na de laatste uitvoerdatum en niet in de toekomst.
|
||||
|
||||
@@ -436,6 +431,24 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
if (action == "F")
|
||||
{
|
||||
if (<%=ins_deelsrtcontrole_status%> == 5)
|
||||
{ // Gereed gemelde taak die voltooid moet worden. Alleen opmerking opslaan en status aanpassen.
|
||||
var data = { ins_keys: $("#ins_keys").val(),
|
||||
dlsrtcont_key_arr: $("#dlsrtcont_key_arr").val()};
|
||||
|
||||
protectRequest.dataToken(data);
|
||||
$.post("../ins/ins_inspect_finish.asp", data, McltCallbackAndThen(ins_callback), "json");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
finish = true;
|
||||
action = "C";
|
||||
}
|
||||
}
|
||||
|
||||
$("#savemode").val(action); // Vul savemode met "E": Wijzigen (Edit) of "C": Afmelden/Afronden (Close).
|
||||
$("#finish").val(finish? 1 : 0); // Inspectie direct wel/niet afronden.
|
||||
|
||||
@@ -443,7 +456,6 @@ else
|
||||
$("form[name=u2]").serialize(),
|
||||
McltCallbackAndThen(ins_callback),
|
||||
"json");
|
||||
return false;
|
||||
}
|
||||
|
||||
function ins_start()
|
||||
@@ -540,7 +552,11 @@ else
|
||||
var srtcontrole_info = oRs("ins_srtcontrole_info").Value;
|
||||
oRs.Close();
|
||||
|
||||
if (ins_deelsrtcontrole_status == 2 || ins_deelsrtcontrole_status == 5 || ((isc_options & 4) != 4))
|
||||
// Er is geen inplannen van inspecties bij mobiel.
|
||||
// Dan taakafhandeling (controle_mode) tonen als:
|
||||
// a) De status is "In behandeling(2)" of "Gereed gemeld (5)".
|
||||
// b) De status "In behandeling(2)" is uitgeschakeld.
|
||||
if (ins_deelsrtcontrole_status == 2 || ins_deelsrtcontrole_status == 5 || ((isc_options & 2) != 2))
|
||||
{
|
||||
ROFIELD("sel_srtcontrole_oms", L("lcl_ins_controle"), srtcontrole_oms, {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user