using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace MP.TaskMan.Objects { public class Enums { #region Public Enums /// /// Intervallo dati (es per definizione quanti dati FluxLog tenere x intervallo /// public enum DataInterval { minute, hour, day } public enum DataItemCategory { CONDITION = 0, EVENT = 1, SAMPLE = 2 } /// /// Tipo di esito (generico) /// public enum esitoExec { undone, ok, error } //[JsonConverter(typeof(StringEnumConverter))] public enum Task2ExeType { /// /// Tipo indefinito / ALL /// ALL, /// /// Chiamata exe esterno /// Exe, /// /// Chiamata a SQL Command /// SqlCommand, /// /// Chiamata a SQL Stored Procedure /// SqlStored, /// /// Chiamata REST tipo Get /// RestCallGet, ///// ///// Chiamata REST tipo Post ///// //RestCallPost } //[JsonConverter(typeof(StringEnumConverter))] public enum TaskFreqType { /// /// Tipo indefinito / ALL /// ND, /// /// Secondi /// Sec, /// /// Minuti /// Min, /// /// Ore /// Hour, /// /// Giorni /// Day, /// /// Settimane /// Week, /// /// Mesi /// Month, /// /// Anni /// Year } /// /// Elenco task ammessi (x IOB-WIN da eseguire...) /// public enum taskType { /// /// Task nullo / fake /// nihil, /// /// Rimanda a PLC eventuale segnale NON in setup (MA NON RESETTA) /// fixStopSetup, /// /// Indica al PLC di forzare il reset del contapezzi /// forceResetPzCount, /// /// Indica al PLC di forzare il NUOVO valore di contapezzi (impostato come value) /// forceSetPzCount, /// /// Imposta Articolo su PLC /// setArt, /// /// Imposta Commessa su PLC /// setComm, /// /// Set di un PARAMETRO su PLC (in value avremo un JSON object) /// setParameter, /// /// Set Programma CNC su PLC /// setProg, /// /// Indica al PLC di impostare il numero di pezzi da produrre per la commessa (impostato /// come value) /// setPzComm, /// /// Indica al PLC iniziato setup (e secondo casi ferma contapezzi /resetta) /// startSetup, /// /// Indica al PLC finito setup (e secondo casi ferma contapezzi /resetta) /// stopSetup, /// /// Richiesta invio watchdog a PLC /// sendWatchDogMes2Plc, /// /// Indica che è FINITA la produzione (e quindi cancello dati backup) /// endProd, /// /// Richiesta esecuzione di un sync dei dati DB di frontiera /// syncDbData, /// /// Imposta Fornitore (es grower x ICOEL) /// setSupplier, /// /// Effettua processing other info (es ritorno consumi x ricette FIMAT) /// processOtherInfo } /// /// Finestra temporale di aggregazione dati VC /// public enum timeWindow { free, hour, day, week, month } #endregion Public Enums } }