192 lines
5.0 KiB
C#
192 lines
5.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagData
|
|
{
|
|
/// <summary>
|
|
/// Valori decodificati
|
|
/// </summary>
|
|
public class decodedData
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Codice decodificato
|
|
/// </summary>
|
|
public string code { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Codice decodificato in formato INT
|
|
/// </summary>
|
|
public int codeInt { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Tipo codice decodificato
|
|
/// </summary>
|
|
public codeType codeType { get; set; } = codeType.UNK;
|
|
|
|
/// <summary>
|
|
/// Descrizione associata
|
|
/// </summary>
|
|
public string description { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Dato letto RAW
|
|
/// </summary>
|
|
public string rawData { get; set; } = "";
|
|
|
|
#endregion Public Properties
|
|
}
|
|
|
|
/// <summary>
|
|
/// Oggetto dei dati di produzione attuali (per serializzazione json)
|
|
/// </summary>
|
|
public class prodData
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Cod Cliente corrente
|
|
/// </summary>
|
|
public string CodCli { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Cod operatore corrente
|
|
/// </summary>
|
|
public string CodOpr { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Cod Postazione corrente
|
|
/// </summary>
|
|
public string CodPost { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Cod Articolo corrente
|
|
/// </summary>
|
|
public string CurrArtCod { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Descrizione Articolo corrente
|
|
/// </summary>
|
|
public string CurrArtDesc { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Codice ODL corrente
|
|
/// </summary>
|
|
public string CurrODL { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Coda di stampa attiva
|
|
/// </summary>
|
|
public string PrintQueue { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Codice riferimento esterno produzione
|
|
/// </summary>
|
|
public string RifExt { get; set; } = "";
|
|
|
|
#endregion Public Properties
|
|
}
|
|
|
|
/// <summary>
|
|
/// Oggetto dei dati di produzione e stampa attuali (per serializzazione json)
|
|
/// </summary>
|
|
public class prodPrintData
|
|
{
|
|
#if false
|
|
/// <summary>
|
|
/// Cod operatore corrente
|
|
/// </summary>
|
|
public string CodOpr { get; set; } = "";
|
|
/// <summary>
|
|
/// Cod Postazione corrente
|
|
/// </summary>
|
|
public string CodPost { get; set; } = "";
|
|
/// <summary>
|
|
/// Codice ODL corrente
|
|
/// </summary>
|
|
public string CurrODL { get; set; } = "";
|
|
/// <summary>
|
|
/// Cod Articolo corrente
|
|
/// </summary>
|
|
public string CurrArtCod { get; set; } = "ToDo";
|
|
/// <summary>
|
|
/// Descrizione Articolo corrente
|
|
/// </summary>
|
|
public string CurrArtDesc { get; set; } = "ToDo";
|
|
/// <summary>
|
|
/// Cod Cliente corrente
|
|
/// </summary>
|
|
public string CodCli { get; set; } = "ToDo";
|
|
/// <summary>
|
|
/// Codice riferimento esterno produzione
|
|
/// </summary>
|
|
public string RifExt { get; set; } = "ToDo";
|
|
#endif
|
|
|
|
#region Public Constructors
|
|
|
|
/// <summary>
|
|
/// Inizializzazione oggetto
|
|
/// </summary>
|
|
/// <param name="MatrOpr"></param>
|
|
/// <param name="IdxOdl"></param>
|
|
/// <param name="IdxMacchina"></param>
|
|
/// <param name="QtaUdc"></param>
|
|
public prodPrintData(int MatrOpr, int IdxOdl, string IdxMacchina, int QtaUdc)
|
|
{
|
|
this.MatrOpr = MatrOpr;
|
|
this.IdxOdl = IdxOdl;
|
|
this.IdxMacchina = IdxMacchina;
|
|
this.QtaUdc = QtaUdc;
|
|
}
|
|
|
|
public prodPrintData()
|
|
{
|
|
this.MatrOpr = 0;
|
|
this.IdxOdl = 0;
|
|
this.IdxMacchina = "";
|
|
this.QtaUdc = 1;
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Codice macchina selezionata
|
|
/// </summary>
|
|
public string IdxMacchina { get; set; }
|
|
|
|
/// <summary>
|
|
/// Codice ODL corrente
|
|
/// </summary>
|
|
public int IdxOdl { get; set; }
|
|
|
|
/// <summary>
|
|
/// Indica se si tratta di un FINITO (cs semilavorato)
|
|
/// FIXME TODO FARE !!!!
|
|
/// </summary>
|
|
public bool isProdFinito { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Matricola Operatore
|
|
/// </summary>
|
|
public int MatrOpr { get; set; }
|
|
|
|
/// <summary>
|
|
/// Coda di stampa attiva
|
|
/// </summary>
|
|
public string PrintQueue { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Quantità standard x stampa UDC
|
|
/// </summary>
|
|
public int QtaUdc { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |