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 { #region Public Constructors /// /// Inizializzazione oggetto /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// 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 /// /// Cod Articolo corrente /// public string ArtCod { get; set; } = "-"; /// /// Descrizione Articolo corrente /// public string ArtDesc { get; set; } = "-"; /// /// Cod Cliente corrente /// public string CliCod { get; set; } = "-"; /// /// Descrizione Cliente (da ODL/articolo) /// public string CliDescr { get; set; } = "-"; /// /// Cod Postazione corrente /// public string CodPost { get; set; } = ""; /// /// 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; } /// /// Cod Articolo corrente /// public string Lotto { get; set; } = ""; /// /// Matricola Operatore /// public int MatrOpr { get; set; } /// /// Codice riferimento esterno produzione /// public string OrdRifExt { get; set; } = "-"; /// /// Coda di stampa attiva /// public string PrintQueue { get; set; } = ""; /// /// Quantità Prodotta/confermata x ODL /// public int QtaConf { get; set; } = 0; /// /// Quantità ordinata ODL /// public int QtaOdl { get; set; } = 1; /// /// Quantità standard x stampa UDC /// public int QtaUdc { get; set; } #endregion Public Properties } }