Fix riorganizzazione progetto
This commit is contained in:
@@ -132,12 +132,12 @@ namespace MP_IO.Controllers
|
||||
{
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
// deserializzo come un dictionary generico di oggetti rawDataType/string
|
||||
baseRawTransf receivedData = new baseRawTransf();
|
||||
BaseRawTransf receivedData = new BaseRawTransf();
|
||||
// procedo a deserializzare in blocco l'oggetto...
|
||||
try
|
||||
{
|
||||
// deserializzo.
|
||||
receivedData = JsonConvert.DeserializeObject<baseRawTransf>(content);
|
||||
receivedData = JsonConvert.DeserializeObject<BaseRawTransf>(content);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
+27
-17
@@ -93,7 +93,8 @@ namespace MapoSDK
|
||||
public string text2show;
|
||||
|
||||
/// <summary>
|
||||
/// lista del nome dei WebBrowserBox e delle relative url, nel formato {0}##{1} {0}=nome WebBrowserBox (es. box01), {1}=url relativo (es. http://server/MoonPro/Produzione.aspx?idxMacchina=99)
|
||||
/// lista del nome dei WebBrowserBox e delle relative url, nel formato {0}##{1} {0}=nome
|
||||
/// WebBrowserBox (es. box01), {1}=url relativo (es. http://server/MoonPro/Produzione.aspx?idxMacchina=99)
|
||||
/// </summary>
|
||||
public string[] wBrowsBoxUrls;
|
||||
|
||||
@@ -144,6 +145,31 @@ namespace MapoSDK
|
||||
#endregion Public Methods
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Classe di base per trasferimento informazioni di tipo RawTransfer
|
||||
/// </summary>
|
||||
public class BaseRawTransf
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Data-Ora riferimento (x ordinamento fifo)
|
||||
/// </summary>
|
||||
public DateTime dataRif { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// Messaggio in modalità raw/stringa
|
||||
/// </summary>
|
||||
public object mesContent { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Tipo di messaggio trasmesso
|
||||
/// </summary>
|
||||
public rawTransfType mesType { get; set; } = rawTransfType.ND;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Classe x inviare messaggi di tipo esecuzione di una generica esecuzione
|
||||
/// </summary>
|
||||
@@ -438,20 +464,4 @@ namespace MapoSDK
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Classe di base per trasferimento informazioni di tipo RawTransfer
|
||||
/// </summary>
|
||||
public class baseRawTransf
|
||||
{
|
||||
/// <summary>
|
||||
/// Tipo di messaggio trasmesso
|
||||
/// </summary>
|
||||
public rawTransfType mesType { get; set; } = rawTransfType.ND;
|
||||
|
||||
/// <summary>
|
||||
/// Messaggio in modalità raw/stringa
|
||||
/// </summary>
|
||||
public object mesContent { get; set; } = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user