MARX#53147: Opdrachten in status Halt laten beginnen om expliciet later te starten.

svn path=/Website/trunk/; revision=39568
This commit is contained in:
Maykel Geerdink
2018-10-30 13:04:19 +00:00
parent 748311ac0b
commit a4e604647a
2 changed files with 5 additions and 2 deletions

View File

@@ -2541,7 +2541,7 @@ mld = {setmeldingstatus:
typeopdr_contract: oRs("mld_typeopdr_contract").Value, // Of bij deze opdracht een contract moet (3), kan (2) of niet kan (0) worden opgegeven
typeopdr_afhandeling: oRs("mld_typeopdr_afhandeling").Value, // Afhandeling verplicht bij afmelden opdracht van dit opdrachttype (0=Nee/1=Ja)
typeopdr_kosten_verplicht: oRs("mld_typeopdr_kosten_verplicht").Value || 0, // Opdracht kosten verplicht (bitwise) bij (0 = niet verplicht, 1 = save + 2 = afmelden, 4 = afronden).
typeopdr_sequential: oRs("mld_typeopdr_sequential").Value, // 0,1,2 of 3
typeopdr_sequential: oRs("mld_typeopdr_sequential").Value, // 0 t/m 7 (2^0 + 2^1 + 2^2).
typeopdr_decentraal: oRs("mld_typeopdr_decentraal").Value,
typeopdr_afmelden_extern: oRs("mld_typeopdr_afmelden_extern").Value,
typeopdr_zichtbaarfe: oRs("mld_typeopdr_zichtbaarfe").Value,

View File

@@ -329,7 +329,10 @@ reqStatusEmptyOpdr = mld.getReqStatusEmptyOpdr(reqStatusEmptyOpdr, opdr_key, {ha
buttons.push({ title: L("lcl_halt"), icon: "fa-pause", action: "opdr_onderbreken()" });
// Hervatten.
if (this_opdr.canHervatten)
buttons.push({ title: L("lcl_resume"), icon: "fa-play", action: "opdr_hervatten()" });
{
var firststart = this_opdr.mld_opdr.extended_opdr_status == 8 && (this_opdr.mld_opdr.typeopdr_sequential & 4) == 4;
buttons.push({ title: (firststart? L("lcl_resume_start") : L("lcl_resume")), icon: "fa-play", action: "opdr_hervatten()" });
}
if (this_opdr.canClose)
buttons.push({ title: L("lcl_close"), icon: "close.png", action: "opdr_close()" });