Code refactor dll
This commit is contained in:
+24
-26
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Inidirizzo IP
|
||||
/// </summary>
|
||||
internal string ipAddress { get; set; } = "127.0.0.1";
|
||||
|
||||
/// <summary>
|
||||
/// Porta del webservice (SOAP)
|
||||
/// </summary>
|
||||
internal string tcpPort { get; set; } = "8001";
|
||||
#region Public Constructors
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// </summary>
|
||||
internal BatchInfo Details { get; set; } = new BatchInfo();
|
||||
|
||||
/// <summary>
|
||||
/// Inidirizzo IP
|
||||
/// </summary>
|
||||
internal string ipAddress { get; set; } = "127.0.0.1";
|
||||
|
||||
/// <summary>
|
||||
/// Porta del webservice (SOAP)
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user