FSN#37682 Plato testbevindingen

svn path=/Website/trunk/; revision=30754
This commit is contained in:
Jos Groot Lipman
2016-09-19 11:04:01 +00:00
parent d1c1916b2f
commit d58d6ec0ca
2 changed files with 7 additions and 1 deletions

View File

@@ -217,8 +217,11 @@ if (srtcont_key > 0)
}
if (isMJOB)
{
// De disabled van de eenheid afhalen, anders wordt de waarde niet gesubmit.
$("#eenheid").prop("disabled", false);
$("#sel_srtcontrole").prop("disabled", false);
}
$.post($("form[name=u2]")[0].action, $("[name=u2]").serialize(), FcltCallbackClose, "json");
return true; // disable submit.
}
@@ -455,6 +458,7 @@ if (srtcont_key > 0)
if (!isMJOB)
{
$("#eenheid").prop("disabled", false);
$("#eenheid").closest("tr").show();
$("#eenheid").val(getSrtControleValue("eenheid_xcp"));
$("#stdeenheid").text( getSrtControleEenheid("eenheid_std")? " [" + getSrtControleEenheid("eenheid_std") + "]" : "");
}
@@ -462,6 +466,7 @@ if (srtcont_key > 0)
{
$("#eenheid").val(4); // Voor MJOB geldt dat de eenheid jaarlijks is.
$("#eenheid").prop("disabled", true);
$("#eenheid").closest("tr").hide();
}
onChangeEenheid();
@@ -665,6 +670,7 @@ if (srtcont_key > 0)
initKey: srtcont_key,
emptyOption: L("lcl_select_srtcontrole"),
readonly: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
disable: srtcont_key > 0,
suppressEmpty: !this_ins.canChangeXcp && !this_ins.hasAnyWriteXcp,
required: true,
onChange: "onChangeSrtControle()",

View File

@@ -130,7 +130,7 @@ var transitParam = buildTransitParam(["disc", "srtgroep", "srtdeel", "srtcontrol
function exception(ins_key, srtcont_key, ttl)
{
var url = "../ins/ins_xcp.asp?ins_key=" + ins_key + "&srtcont_key=" + srtcont_key + "&urole=bo";
FcltMgr.openModalDetail(url, { titel: ttl, callback: <%=bld_key > 0? "FcltMgr.reload ": "null"%> });
FcltMgr.openModalDetail(url, { titel: L("lcl_ins_change_xcp") + " " + ttl, callback: <%=bld_key > 0? "FcltMgr.reload ": "null"%> });
}
function moveplan(evt, ins_key, srtcont_key, jaar)
{