Merge branch 'feature/NugetSdk'
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
using EgwProxy.MagMan.DTO;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using RestSharp.Serializers.NewtonsoftJson;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
|
||||
@@ -55,9 +55,9 @@ namespace DemoApp
|
||||
Console.WriteLine($"Dtmx Code: {item.MatDtmx}");
|
||||
Console.WriteLine($"descript: {item.MatDesc}");
|
||||
Console.WriteLine($"Dimensions W x T x L: {item.WMm:N3} x {item.TMm:N3} x {item.LMm:N3}");
|
||||
if (item.ItemNav != null)
|
||||
if (item.ItemList != null)
|
||||
{
|
||||
Console.WriteLine($"Items count: {item.ItemNav.Count}");
|
||||
Console.WriteLine($"Items count: {item.ItemList.Count}");
|
||||
}
|
||||
Console.WriteLine(sep);
|
||||
Console.WriteLine();
|
||||
@@ -65,7 +65,7 @@ namespace DemoApp
|
||||
}
|
||||
answ = Console.ReadLine();
|
||||
// leggo inventario
|
||||
var inventList = await commLib.InventarioGet(0);
|
||||
var inventList = await commLib.InventoryGet(0);
|
||||
if (inventList != null)
|
||||
{
|
||||
foreach (var itemMat in inventList)
|
||||
@@ -76,13 +76,13 @@ namespace DemoApp
|
||||
Console.WriteLine($"Dtmx Code: {itemMat.MatDtmx}");
|
||||
Console.WriteLine($"descript: {itemMat.MatDesc}");
|
||||
Console.WriteLine($"Dimensions W x T x L: {itemMat.WMm:N3} x {itemMat.TMm:N3} x {itemMat.LMm:N3}");
|
||||
if (itemMat.ItemNav != null)
|
||||
if (itemMat.ItemList != null)
|
||||
{
|
||||
Console.WriteLine($"Items count: {itemMat.ItemNav.Count}");
|
||||
if (itemMat.ItemNav.Count > 0)
|
||||
Console.WriteLine($"Items count: {itemMat.ItemList.Count}");
|
||||
if (itemMat.ItemList.Count > 0)
|
||||
{
|
||||
Console.WriteLine("Inventario:");
|
||||
foreach (var itemInv in itemMat.ItemNav)
|
||||
foreach (var itemInv in itemMat.ItemList)
|
||||
{
|
||||
Console.WriteLine(sepShort);
|
||||
Console.WriteLine($"ID: {itemInv.ItemID}");
|
||||
|
||||
Reference in New Issue
Block a user