73 lines
1.8 KiB
C#
73 lines
1.8 KiB
C#
using MP.Data;
|
|
|
|
namespace MP.SPEC.Data
|
|
{
|
|
public class SelectOdlParams
|
|
{
|
|
#region Public Constructors
|
|
|
|
public SelectOdlParams()
|
|
{ }
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
public string CodStato { get; set; } = "*";
|
|
public string IdxMacchina { get; set; } = "*";
|
|
public int CurrPage { get; set; } = 1;
|
|
public int NumRec { get; set; } = 10;
|
|
public int TotCount { get; set; } = 0;
|
|
public DateTime DtEnd { get; set; } = Utils.InitDatetime(DateTime.Now, 5);
|
|
public DateTime DtStart { get; set; } = Utils.InitDatetime(DateTime.Now, 5).AddDays(-10);
|
|
public int MaxRecord { get; set; } = 100;
|
|
public bool IsActive { get; set; } = true;
|
|
public string SearchVal { get; set; } = "*";
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is SelectOdlParams item))
|
|
return false;
|
|
|
|
if (IsActive != item.IsActive)
|
|
return false;
|
|
|
|
if (CodStato != item.CodStato)
|
|
return false;
|
|
|
|
if (IdxMacchina != item.IdxMacchina)
|
|
return false;
|
|
|
|
if (MaxRecord != item.MaxRecord)
|
|
return false;
|
|
|
|
if (NumRec != item.NumRec)
|
|
return false;
|
|
|
|
if (DtStart != item.DtStart)
|
|
return false;
|
|
|
|
if (DtEnd != item.DtEnd)
|
|
return false;
|
|
|
|
if (CurrPage != item.CurrPage)
|
|
return false;
|
|
|
|
if (SearchVal != item.SearchVal)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |