111 lines
3.0 KiB
C#
111 lines
3.0 KiB
C#
namespace MP.SPEC.Data
|
|
{
|
|
public class SelectFluxParams
|
|
{
|
|
#region Public Constructors
|
|
|
|
public SelectFluxParams()
|
|
{
|
|
dtMin = DateTime.Today.AddMonths(-1);
|
|
dtMax = DateTime.Today.AddDays(1);
|
|
dtSnapMin = DateTime.Today.AddDays(-2);
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
public string CodFlux { get; set; } = "*";
|
|
public int CurrPage { get; set; } = 1;
|
|
public DateTime? dtMax { get; set; } = null;
|
|
public DateTime? dtMin { get; set; } = null;
|
|
public DateTime? dtRif { get; set; } = null;
|
|
public DateTime? dtSnapMin { get; set; } = null;
|
|
public string IdxMacchina { get; set; } = "*";
|
|
public string lastUpdate { get; set; } = "-";
|
|
public bool LiveUpdate { get; set; } = true;
|
|
public int MaxRecord { get; set; } = 100;
|
|
public int NumRec { get; set; } = 10;
|
|
public int TempoAgg { get; set; } = 2000;
|
|
public int TotCount { get; set; } = 0;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public SelectFluxParams clone()
|
|
{
|
|
SelectFluxParams clonedData = new SelectFluxParams()
|
|
{
|
|
CodFlux = this.CodFlux,
|
|
CurrPage = this.CurrPage,
|
|
dtRif = this.dtRif,
|
|
dtMax = this.dtMax,
|
|
dtMin = this.dtMin,
|
|
dtSnapMin = this.dtSnapMin,
|
|
IdxMacchina = this.IdxMacchina,
|
|
lastUpdate = this.lastUpdate,
|
|
LiveUpdate = this.LiveUpdate,
|
|
NumRec = this.NumRec,
|
|
MaxRecord = this.MaxRecord,
|
|
TotCount = this.TotCount,
|
|
TempoAgg = this.TempoAgg
|
|
};
|
|
return clonedData;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is SelectFluxParams item))
|
|
return false;
|
|
|
|
if (IdxMacchina != item.IdxMacchina)
|
|
return false;
|
|
|
|
if (dtMax != item.dtMax)
|
|
return false;
|
|
|
|
if (dtMin != item.dtMin)
|
|
return false;
|
|
|
|
if (dtRif != item.dtRif)
|
|
return false;
|
|
|
|
if (dtSnapMin != item.dtSnapMin)
|
|
return false;
|
|
|
|
if (CodFlux != item.CodFlux)
|
|
return false;
|
|
|
|
if (LiveUpdate != item.LiveUpdate)
|
|
return false;
|
|
|
|
if (MaxRecord != item.MaxRecord)
|
|
return false;
|
|
|
|
if (TempoAgg != item.TempoAgg)
|
|
return false;
|
|
|
|
if (NumRec != item.NumRec)
|
|
return false;
|
|
|
|
if (TotCount != item.TotCount)
|
|
return false;
|
|
|
|
if (CurrPage != item.CurrPage)
|
|
return false;
|
|
|
|
if (lastUpdate != item.lastUpdate)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |