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