FCLT#82396: Beheer periodieke taken moment slecht zichtbaar.
svn path=/Website/trunk/; revision=70620
This commit is contained in:
@@ -22,6 +22,7 @@ var ins_srtcontrole_key = getQParamInt("id", -1);
|
||||
var sql = "SELECT cdp.ctr_disc_params_ismjob"
|
||||
+ " , isc.ins_srtcontrole_eenheid"
|
||||
+ " , isc.ins_srtcontrole_bits"
|
||||
+ " , isc.ins_srtcontrole_mode"
|
||||
+ " FROM ins_srtcontrole isc"
|
||||
+ " , ctr_disc_params cdp"
|
||||
+ " WHERE isc.ctr_discipline_key = cdp.ctr_ins_discipline_key"
|
||||
@@ -30,11 +31,13 @@ var oRs = Oracle.Execute(sql);
|
||||
var ismjob = false;
|
||||
var bits = -1;
|
||||
var eenheid = -1;
|
||||
var ctrmode = -1;
|
||||
if (!oRs.eof)
|
||||
{
|
||||
var ismjob = oRs("ctr_disc_params_ismjob").Value == 1;
|
||||
eenheid = oRs("ins_srtcontrole_eenheid").Value;
|
||||
bits = oRs("ins_srtcontrole_bits").Value;
|
||||
ctrmode = oRs("ins_srtcontrole_mode").Value;
|
||||
}
|
||||
oRs.Close();
|
||||
|
||||
@@ -75,7 +78,7 @@ String.prototype.capitalizeTxt = function()
|
||||
|
||||
function defineMoment(readonly)
|
||||
{
|
||||
if (readonly)
|
||||
if (readonly && ctrmode == 0) // Moment mode(0).
|
||||
{ // Get waarde van moment.
|
||||
var bitsNoHoli = "";
|
||||
var bitsDay = [];
|
||||
@@ -147,7 +150,7 @@ function defineMoment(readonly)
|
||||
"labelvalue": bitsText
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (!readonly)
|
||||
{
|
||||
this_model.fields._moment = { "dbs": "",
|
||||
"label": L("ins_srtcontrole_moment"),
|
||||
|
||||
Reference in New Issue
Block a user