by luca.murzio » 26 September 2016, 8:13
Ciao Diego, ti giro la patch fornitami al tempo. Devi mettere quanto segue nel custom3.js.
Spero che risolva il tuo problema...
Ciao
// Correzione quantità >= 1000 su catalogo articoli
BookSpan.prototype.SendChanges = function(evento, flag)
{
if (this.Visible && this.Enabled && this.Realized)
{
var s = "";
if (this.SpanObj)
{
if (this.ControlType == RD3_Glb.VISCTRL_COMBO)
s = this.SpanObj.GetComboValue();
else
s = this.SpanObj.value;
}
var chg = false;
//
switch (this.ControlType)
{
case RD3_Glb.VISCTRL_EDIT:
chg = (s!=this.Text);
this.Text = s;
if (this.GetVS().ComputeMaskType(this.DataType) == "N")
{
if (RD3_DesktopManager.WebEntryPoint.UseDecimalDot)
s = s.replace(/,/g, "");
else
s = s.replace(/\./g, "");
}
break;
case RD3_Glb.VISCTRL_COMBO:
chg = (s!=this.Value);
this.Value = s;
break;
case RD3_Glb.VISCTRL_CHECK:
s = this.ValueList.ItemList[(this.SpanObj.checked)?0:1].Value;
chg = (s!=this.Value);
this.Value = s;
break;
case RD3_Glb.VISCTRL_OPTION:
s = this.ValueList.GetOption(this.ParentBox.BoxBox);
chg = (s!=this.Value);
this.Value = s;
break;
}
//
if (chg)
{
// Invio l'evento
var ev = new IDEvent("chg", this.Identifier, evento, this.ChgEventDef|flag, "", s);
}
else
{
// Non devo lanciare l'evento, ma se premo INVIO mando comunque tutti gli
// eventi in sospeso al server
if (flag == RD3_Glb.EVENT_IMMEDIATE)
RD3_DesktopManager.SendEvents();
}
}
}