144 lines
2.9 KiB
C#
144 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MapoSDK
|
|
{
|
|
|
|
|
|
#region oggetti per scambio dati IO - IOB
|
|
|
|
public class fileEmbed
|
|
{
|
|
/// <summary>
|
|
/// Array di file da inviare
|
|
/// </summary>
|
|
public List<smallFile> fileList { get; set; } = new List<smallFile>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Classe x definire un file (corto) inviato come Json tramite httpost
|
|
/// </summary>
|
|
public class smallFile
|
|
{
|
|
public string fileName { get; set; } = "";
|
|
public string content { get; set; } = "";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Array elementi tipo KeyValuePair inviati come JSon che indicano lo stato LIVE dell'IOB
|
|
/// </summary>
|
|
public class liveIOB
|
|
{
|
|
public List<KeyValuePair<string, string>> dataList { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Array valori tipo flogData inviati come JSon
|
|
/// </summary>
|
|
public class flogJson
|
|
{
|
|
public List<flogData> fluxData { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// Tracciato FluxLog in formato JSON valido
|
|
/// </summary>
|
|
public class flogData
|
|
{
|
|
/// <summary>
|
|
/// nome del flusso
|
|
/// </summary>
|
|
public string flux { get; set; } = "ND";
|
|
/// <summary>
|
|
/// Valore del dato di flusso registrato
|
|
/// </summary>
|
|
public string valore { get; set; } = "-";
|
|
/// <summary>
|
|
/// DataOra evento
|
|
/// </summary>
|
|
public DateTime dtEve { get; set; } = DateTime.Now;
|
|
/// <summary>
|
|
/// DataOra corrente della trasmissione
|
|
/// </summary>
|
|
public DateTime dtCurr { get; set; } = DateTime.Now;
|
|
/// <summary>
|
|
/// Contatore incrementale x riordino invio (opzionale)
|
|
/// </summary>
|
|
public int cnt { get; set; } = 0;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Dati resoconto IOB
|
|
/// </summary>
|
|
public class IOB_data
|
|
{
|
|
public string name;
|
|
public string IP;
|
|
public IobType iType;
|
|
public string typeCss;
|
|
public bool CNC_Counter;
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#if false
|
|
/// <summary>
|
|
/// Classe definizione parametri singolo ordine produzione
|
|
/// </summary>
|
|
public class OrdineProdArt
|
|
{
|
|
/// <summary>
|
|
/// Codice univoco ordine
|
|
/// </summary>
|
|
public string OrdNum;
|
|
/// <summary>
|
|
/// Articolo associato ad ordine
|
|
/// </summary>
|
|
public Articolo ArtOrd;
|
|
/// <summary>
|
|
/// Quantità Articolo
|
|
/// </summary>
|
|
public int Qta;
|
|
}
|
|
/// <summary>
|
|
/// Oggetto generico articolo
|
|
/// </summary>
|
|
public class Articolo
|
|
{
|
|
/// <summary>
|
|
/// Codice articolo
|
|
/// </summary>
|
|
public string Codice;
|
|
/// <summary>
|
|
/// Descrizione Articolo
|
|
/// </summary>
|
|
public string Descrizione;
|
|
}
|
|
/// <summary>
|
|
/// Classe definizione parametri ordine x KIT di articoli
|
|
/// </summary>
|
|
public class OrdineProdKit
|
|
{
|
|
/// <summary>
|
|
/// Codice univoco ordine
|
|
/// </summary>
|
|
public string OrdNum;
|
|
/// <summary>
|
|
/// Codice KIT
|
|
/// </summary>
|
|
public string Codice;
|
|
/// <summary>
|
|
/// Vettore ordini articolo associati a KIT
|
|
/// </summary>
|
|
public List<OrdineProdArt> OrdiniArt;
|
|
/// <summary>
|
|
/// Quantità KIT
|
|
/// </summary>
|
|
public int Qta;
|
|
}
|
|
#endif
|
|
}
|