235 lines
6.4 KiB
C#
235 lines
6.4 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
|
|
{
|
|
#region Public Constructors
|
|
|
|
/// <summary>
|
|
/// Inizializzazione oggetto
|
|
/// </summary>
|
|
/// <param name="MatrOpr"></param>
|
|
/// <param name="IdxOdl"></param>
|
|
/// <param name="IdxMacchina"></param>
|
|
/// <param name="QtaUdc"></param>
|
|
/// <param name="isProdFinito"></param>
|
|
/// <param name="ArtCod"></param>
|
|
/// <param name="ArtDesc"></param>
|
|
/// <param name="CliCod"></param>
|
|
/// <param name="CliDescr"></param>
|
|
/// <param name="OrdRifExt"></param>
|
|
/// <param name="QtaConf"></param>
|
|
/// <param name="QtaOdl"></param>
|
|
/// <param name="Lotto"></param>
|
|
/// <param name="CodPost"></param>
|
|
public prodPrintData(int MatrOpr, int IdxOdl, string IdxMacchina, int QtaUdc, bool isProdFinito, string ArtCod, string ArtDesc, string CliCod, string CliDescr, string OrdRifExt, int QtaConf, int QtaOdl, string Lotto, string CodPost)
|
|
{
|
|
this.ArtCod = ArtCod;
|
|
this.ArtDesc = ArtDesc;
|
|
this.CliCod = CliCod;
|
|
this.CliDescr = CliDescr;
|
|
this.CodPost = CodPost;
|
|
this.IdxMacchina = IdxMacchina;
|
|
this.IdxOdl = IdxOdl;
|
|
this.isProdFinito = isProdFinito;
|
|
this.Lotto = Lotto;
|
|
this.MatrOpr = MatrOpr;
|
|
this.OrdRifExt = OrdRifExt;
|
|
this.QtaConf = QtaConf;
|
|
this.QtaOdl = QtaOdl;
|
|
this.QtaUdc = QtaUdc;
|
|
}
|
|
|
|
public prodPrintData()
|
|
{
|
|
this.ArtCod = "";
|
|
this.ArtDesc = "";
|
|
this.CliCod = "";
|
|
this.CliDescr = "";
|
|
this.CodPost = "";
|
|
this.IdxMacchina = "";
|
|
this.IdxOdl = 0;
|
|
this.isProdFinito = false;
|
|
this.Lotto = "";
|
|
this.MatrOpr = 0;
|
|
this.OrdRifExt = "";
|
|
this.QtaConf = 0;
|
|
this.QtaOdl = 1;
|
|
this.QtaUdc = 1;
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Cod Articolo corrente
|
|
/// </summary>
|
|
public string ArtCod { get; set; } = "-";
|
|
|
|
/// <summary>
|
|
/// Descrizione Articolo corrente
|
|
/// </summary>
|
|
public string ArtDesc { get; set; } = "-";
|
|
|
|
/// <summary>
|
|
/// Cod Cliente corrente
|
|
/// </summary>
|
|
public string CliCod { get; set; } = "-";
|
|
|
|
/// <summary>
|
|
/// Descrizione Cliente (da ODL/articolo)
|
|
/// </summary>
|
|
public string CliDescr { get; set; } = "-";
|
|
|
|
/// <summary>
|
|
/// Cod Postazione corrente
|
|
/// </summary>
|
|
public string CodPost { get; set; } = "";
|
|
|
|
/// <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 (vs semilavorato)
|
|
/// </summary>
|
|
public bool isProdFinito { get; set; }
|
|
|
|
/// <summary>
|
|
/// Cod Articolo corrente
|
|
/// </summary>
|
|
public string Lotto { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Matricola Operatore
|
|
/// </summary>
|
|
public int MatrOpr { get; set; }
|
|
|
|
/// <summary>
|
|
/// Codice riferimento esterno produzione
|
|
/// </summary>
|
|
public string OrdRifExt { get; set; } = "-";
|
|
|
|
/// <summary>
|
|
/// Coda di stampa attiva
|
|
/// </summary>
|
|
public string PrintQueue { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Quantità Prodotta/confermata x ODL
|
|
/// </summary>
|
|
public int QtaConf { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Quantità ordinata ODL
|
|
/// </summary>
|
|
public int QtaOdl { get; set; } = 1;
|
|
|
|
/// <summary>
|
|
/// Quantità standard x stampa UDC
|
|
/// </summary>
|
|
public int QtaUdc { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |