TAB3:
- Gestione fermate RT - fix lettura h2IOB
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.Objects
|
||||
{
|
||||
/// <summary>
|
||||
/// Struttura gestione comandi di input
|
||||
/// </summary>
|
||||
public struct inputComandoMapo
|
||||
{
|
||||
#region Public Fields
|
||||
|
||||
/// <summary>
|
||||
/// descrizione comando
|
||||
/// </summary>
|
||||
public string descrComando;
|
||||
|
||||
/// <summary>
|
||||
/// idx evento associato al comando
|
||||
/// </summary>
|
||||
public int idxTipoEvento;
|
||||
|
||||
/// <summary>
|
||||
/// input comando valido si/no
|
||||
/// </summary>
|
||||
public bool isValid;
|
||||
|
||||
/// <summary>
|
||||
/// refresh stato macchina encessario si/no
|
||||
/// </summary>
|
||||
public bool needStatusRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// valore di output dal comando
|
||||
/// </summary>
|
||||
public string outValue;
|
||||
|
||||
/// <summary>
|
||||
/// input precedente
|
||||
/// </summary>
|
||||
public string precInput;
|
||||
|
||||
/// <summary>
|
||||
/// testo da mostrare all'utente
|
||||
/// </summary>
|
||||
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)
|
||||
/// </summary>
|
||||
public string[] wBrowsBoxUrls;
|
||||
|
||||
#endregion Public Fields
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public static bool operator !=(inputComandoMapo left, inputComandoMapo right)
|
||||
{
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
public static bool operator ==(inputComandoMapo left, inputComandoMapo right)
|
||||
{
|
||||
return left.Equals(right);
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is inputComandoMapo item))
|
||||
return false;
|
||||
|
||||
if (descrComando != item.descrComando)
|
||||
return false;
|
||||
if (idxTipoEvento != item.idxTipoEvento)
|
||||
return false;
|
||||
if (isValid != item.isValid)
|
||||
return false;
|
||||
if (needStatusRefresh != item.needStatusRefresh)
|
||||
return false;
|
||||
if (outValue != item.outValue)
|
||||
return false;
|
||||
if (precInput != item.precInput)
|
||||
return false;
|
||||
if (text2show != item.text2show)
|
||||
return false;
|
||||
if (wBrowsBoxUrls != item.wBrowsBoxUrls)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user