Fix objects x test preliminare deserializzazione
This commit is contained in:
+2
-2
@@ -504,10 +504,10 @@ namespace AppData
|
||||
// cerco risposta come stack --> disegno...
|
||||
var offOrder = deserializeOfflineOrder(rawAnsw);
|
||||
// se ho in risposta 1 stack...
|
||||
if (offOrder.Stacks.Count == 1)
|
||||
if (offOrder.Bunks.Count == 1)
|
||||
{
|
||||
// se ho 1 solo sheet
|
||||
var sheets = offOrder.Stacks[0].SheetList;
|
||||
var sheets = offOrder.Bunks[0].SheetList;
|
||||
if (sheets.Count == 1)
|
||||
{
|
||||
// controllo se ho CNC prog
|
||||
|
||||
+2
-2
@@ -166,9 +166,9 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public string Drawing { get; set; }
|
||||
/// <summary>
|
||||
/// Elenco Items da produrre x ordine
|
||||
/// Elenco Part da produrre x ordine
|
||||
/// </summary>
|
||||
public List<Part> Items { get; set; } = null;
|
||||
public List<Part> PartList { get; set; } = null;
|
||||
}
|
||||
/// <summary>
|
||||
/// Struttura stack
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace NKC_WF.Controllers
|
||||
// in primis: controllo su redis SE HO una richiista CURRENT di processing...
|
||||
string redKey = $"{ComLib.redOutPath}:CURR";
|
||||
string redVal = memLayer.ML.getRSV(redKey);
|
||||
string envNum = redVal;
|
||||
// se c'è carico "la busta" come ID
|
||||
if (!string.IsNullOrEmpty(redVal))
|
||||
{
|
||||
@@ -34,6 +35,8 @@ namespace NKC_WF.Controllers
|
||||
try
|
||||
{
|
||||
answ = JsonConvert.DeserializeObject<batchRequest>(redVal);
|
||||
// aggiungo LA SUA ENV NUM!!!!
|
||||
answ.envNum = envNum;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user