MARX#90078: Opdracht-actiestatus via API1 bij 'onderbroken/AFR' bij de (FO)BO kunnen zetten.
svn path=/Website/trunk/; revision=70873
This commit is contained in:
@@ -923,14 +923,22 @@ for (var i = 0; i < opdrachten.length; i++)
|
||||
|
||||
if (resultcode == -1 && !isNaN(actiecode) && actiecode >= 0)
|
||||
{ // Actie code.
|
||||
var mld_info = this_opdr.mld_info;
|
||||
var params = { action2BO: (actiecode & 1) == 1,
|
||||
action2UITV: (actiecode & 4) == 4,
|
||||
notifyBO: (actiecode & 128) == 128,
|
||||
notifyUITV: (actiecode & 512) == 51,
|
||||
replyToAll: this_opdr.myRole === 1 && (actiecode & 4) == 4,
|
||||
isResponse: false};
|
||||
var result = mld.setActiecode(mld_opdr, this_opdr, params);
|
||||
var newActiecode = 0;
|
||||
|
||||
if ((actiecode & 128) == 128)
|
||||
{
|
||||
newActiecode += 128; // BO attentie
|
||||
}
|
||||
|
||||
if (S("mld_opdr_actiecode") > 0 && ((actiecode & 1) == 1))
|
||||
{
|
||||
newActiecode += 1; // + BO actie
|
||||
}
|
||||
|
||||
var sql = "UPDATE mld_opdr"
|
||||
+ " SET mld_opdr_actiecode = " + newActiecode
|
||||
+ " WHERE mld_opdr_key = " + mld_opdr.opdr_key;
|
||||
Oracle.Execute(sql);
|
||||
}
|
||||
|
||||
if (resultcode == -1) // Nog steeds geen fouten.
|
||||
|
||||
Reference in New Issue
Block a user