diff --git a/EgwProxy.Icoel/Connector.cs b/EgwProxy.Icoel/Connector.cs index 2b0063a1..ff7279f9 100644 --- a/EgwProxy.Icoel/Connector.cs +++ b/EgwProxy.Icoel/Connector.cs @@ -1,6 +1,4 @@ -using BinsTracker.INI; -using EgwProxy.Icoel.Compac; -using EgwProxy.Icoel.INI; +using EgwProxy.Icoel.Compac; using EgwProxy.Icoel.SizerService; using System; @@ -8,15 +6,7 @@ namespace EgwProxy.Icoel { public class Connector { - /// - /// Inidirizzo IP - /// - internal string ipAddress { get; set; } = "127.0.0.1"; - - /// - /// Porta del webservice (SOAP) - /// - internal string tcpPort { get; set; } = "8001"; + #region Public Constructors /// /// Inizializazzione classe con salvataggio ip/porta del webservice del sizer @@ -29,7 +19,7 @@ namespace EgwProxy.Icoel this.tcpPort = tcpPort; } - + #endregion Public Constructors #region Public Methods @@ -84,15 +74,6 @@ namespace EgwProxy.Icoel Client.Close(); } - public static void Load() - { - Settaggi = new Settaggi(); - Details = new BatchDetails(); - - Settaggi.Load(); - Details.Load(); - } - public void MettiLottoInCoda() { Client = new ComClient(ipAddress, tcpPort); @@ -100,7 +81,7 @@ namespace EgwProxy.Icoel Client.VerificaEsistenzaGrower(Details.GrowerCode, Details.GrowerName); // recupero varietà x selezione - var varList = Connector.RecuperaVarietyLayout(); + var varList = RecuperaVarietyLayout(); int idxVar = -1; int idxLay = -1; @@ -219,9 +200,29 @@ namespace EgwProxy.Icoel /// internal BatchInfo Details { get; set; } = new BatchInfo(); + /// + /// Inidirizzo IP + /// + internal string ipAddress { get; set; } = "127.0.0.1"; + + /// + /// Porta del webservice (SOAP) + /// + internal string tcpPort { get; set; } = "8001"; #endregion Internal Properties +#if false + public static void Load() + { + Settaggi = new Settaggi(); + Details = new BatchDetails(); + + Settaggi.Load(); + Details.Load(); + } +#endif + #region Private Methods private Batch GeneraBatchDaFile() @@ -257,9 +258,6 @@ namespace EgwProxy.Icoel batch.VarietyId = VarietyId; batch.LayoutId = LayoutId; batch.SizingProfileName = SizingProfileName; - //batch.VarietyId = Client.GetCurrentBatch().VarietyId; - //batch.LayoutId = Client.GetCurrentBatch().LayoutId; - //batch.SizingProfileName = Client.GetCurrentBatch().SizingProfileName; return batch; } diff --git a/EgwProxy.Icoel/index.pdf b/EgwProxy.Icoel/index.pdf deleted file mode 100644 index 4f78add4..00000000 Binary files a/EgwProxy.Icoel/index.pdf and /dev/null differ