FCLT#43129 Bolletjes en zo savepoint
svn path=/Website/trunk/; revision=41244
This commit is contained in:
@@ -98,6 +98,14 @@ function note_save(mld_key, note, params)
|
||||
}
|
||||
else if (zichtbaarFE) // Backoffice gebruiker
|
||||
{
|
||||
if ((mld_info.actiecode & 128) == 128)
|
||||
{ // Altijd attentie er af
|
||||
var sql = "UPDATE mld_melding"
|
||||
+ " SET mld_melding_actiecode = BITAND(mld_melding_actiecode, 255 - 128)"
|
||||
+ " WHERE mld_melding_key = " + mld_key;
|
||||
Oracle.Execute(sql);
|
||||
}
|
||||
|
||||
if (params.notifyFE)
|
||||
{
|
||||
// Notificatie (MLDNOT) indien notitie zichtbaar is voor FE.
|
||||
@@ -116,22 +124,24 @@ function note_save(mld_key, note, params)
|
||||
+ ", " + safe.quoted_sql(txt)
|
||||
+ ", NULL, NULL, NULL, NULL, 2, NULL); END;");
|
||||
}
|
||||
if (S("mld_flag_on_fenote") > 0 && params.action2FE && (mld_info.actiecode & 2) != 2) // Misschien 'notificeren' naar FE
|
||||
if (S("mld_flag_on_fenote") > 0 && params.action2FE && (mld_info.actiecode & 2) != 2) // Misschien actie naar FE
|
||||
{
|
||||
var sql = "UPDATE mld_melding"
|
||||
+ " SET mld_melding_actiecode = 2" // Actie bij FE
|
||||
+ " SET mld_melding_actiecode = 2" // Actie stond er nog niet en gaat naar FE
|
||||
+ " WHERE mld_melding_key = " + mld_key;
|
||||
Oracle.Execute(sql);
|
||||
shared.trackaction("MLDA2M", mld_key)
|
||||
}
|
||||
else // Attentie er wel af
|
||||
else // Misschien naar de backoffice zetten?
|
||||
{
|
||||
var sql = "UPDATE mld_melding"
|
||||
+ " SET mld_melding_actiecode = 1" // Actie bij BO
|
||||
+ " WHERE mld_melding_key = " + mld_key;
|
||||
Oracle.Execute(sql);
|
||||
if ((mld_info.actiecode & 1) != 1)
|
||||
shared.trackaction("MLDA2B", mld_key)
|
||||
if (!params.action2FE && (mld_info.actiecode & 1) != 1)
|
||||
{
|
||||
var sql = "UPDATE mld_melding"
|
||||
+ " SET mld_melding_actiecode = 1" // Actie nu bij BO. Zelf gedaan dus geen attentie
|
||||
+ " WHERE mld_melding_key = " + mld_key;
|
||||
Oracle.Execute(sql);
|
||||
shared.trackaction("MLDA2B", mld_key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,13 +31,12 @@ var changedby = note_recently_changed(mld_key, notestamp);
|
||||
var result =
|
||||
note_save(mld_key,
|
||||
getFParam("note", ""),
|
||||
{ note_key: getQParamInt("note_key", -1),
|
||||
isFE: getQParam("urole","") == "fe",
|
||||
has_zichtbaarFE: getFParam("has_zichtbaarFE", 0 ) == 1,
|
||||
zichtFE: getFParam("zichtbaarFE", "off" ) == "on",
|
||||
notifyFE: getFParam("notifyFE", "off" ) == "on" ,
|
||||
action2FE: getFParam("action2FE", "off" ) == "on" ,
|
||||
notifyBO: getFParam("notifyBO", "on" ) == "on" });
|
||||
{ note_key: getQParamInt("note_key", -1),
|
||||
has_zichtbaarFE: getFParam("has_zichtbaarFE", 0 ) == 1,
|
||||
zichtFE: getFParam("zichtbaarFE", "off" ) == "on",
|
||||
notifyFE: getFParam("notifyFE", "off" ) == "on" ,
|
||||
action2FE: getFParam("action2FE", "off" ) == "on" ,
|
||||
notifyBO: getFParam("notifyBO", "off" ) == "on" });
|
||||
|
||||
result.success = true;
|
||||
|
||||
|
||||
@@ -730,7 +730,10 @@ if (mld_key > 0)
|
||||
var code = oRs("fac_srtnotificatie_code").Value;
|
||||
var aantal = oRs("aantal").Value;
|
||||
var email = oRs("fac_notificatie_receiver_email").Value;
|
||||
var srtnotitxt = "<span title='{0}'>{1}</span>".format(code, status.getsrtnotificatietext(code));
|
||||
// Het volgende lijkt leuk maar MLDNOB heeft bijvoorbeeld geen lcl in status.inc omdat hij
|
||||
// wel wordt gebruikt voor notificatie maar nooit voor tracking
|
||||
//var srtnotitxt = "<span title='{0}'>{1}</span>".format(code, status.getsrtnotificatietext(code));
|
||||
var srtnotitxt = code;
|
||||
Response.Write("<tr><td></td><td><i>" + L("lcl_puo_willsendnoti").format(srtnotitxt, safe.html(email) + (aantal>1?L("lcl_puo_willsendnotimore").format(aantal-1):"")) + "</i></td></tr>");
|
||||
oRs.MoveNext();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user