MagManController update:
- syncro permessa se zero barre (ma NON per null) - aggiunto metodo mockup x forzare syncro (ForceSyncroSend)
This commit is contained in:
@@ -1143,6 +1143,16 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Forza sincronizzazione invii non completati
|
||||
/// </summary>
|
||||
/// <returns>MockUp: mostra sempre ok anche senza eseguire davvero</returns>
|
||||
private SyncResult ForceSyncroSend()
|
||||
{
|
||||
SyncResult answ = SyncResult.ALL_OK;
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua invio track risorse
|
||||
/// </summary>
|
||||
@@ -1173,7 +1183,8 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
var currRes = allResources.Find(x => x.RawItemId == item.Key);
|
||||
list2send.Add(new ResourceDTO() { RawItemLocalId = item.Key, RawItemCloudId = currRes.RawItemCloudId, Qty = sign * Math.Abs(item.Value) });
|
||||
}
|
||||
if (list2send == null || list2send.Count == 0)
|
||||
//if (list2send == null || list2send.Count == 0)
|
||||
if (list2send == null)
|
||||
{
|
||||
answ = SyncResult.ERR_Res2SendEmpty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user