86 lines
2.2 KiB
C#
86 lines
2.2 KiB
C#
using MP.Data;
|
|
|
|
namespace MP.SPEC.Data
|
|
{
|
|
public class SelectDossierParams
|
|
{
|
|
#region Public Constructors
|
|
|
|
public SelectDossierParams()
|
|
{ }
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
public int CurrPage { get; set; } = 1;
|
|
|
|
public DateTime DtEnd { get; set; } = Utils.InitDatetime(DateTime.Now, 15);
|
|
|
|
public DateTime DtStart { get; set; } = Utils.InitDatetime(DateTime.Now, 15).AddDays(-730);
|
|
|
|
public string IdxMacchina { get; set; } = "*";
|
|
|
|
public string CodArticolo { get; set; } = "*";
|
|
public int NumRec { get; set; } = 10;
|
|
public int TotCount { get; set; } = 0;
|
|
public int MaxRecord { get; set; } = 100;
|
|
public bool isEditing { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
public SelectDossierParams clone()
|
|
{
|
|
SelectDossierParams clonedData = new SelectDossierParams()
|
|
{
|
|
DtEnd = this.DtEnd,
|
|
DtStart = this.DtStart,
|
|
CurrPage = this.CurrPage,
|
|
IdxMacchina = this.IdxMacchina,
|
|
CodArticolo = this.CodArticolo,
|
|
MaxRecord = this.MaxRecord,
|
|
NumRec = this.NumRec,
|
|
TotCount = this.TotCount
|
|
};
|
|
return clonedData;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is SelectDossierParams item))
|
|
return false;
|
|
|
|
if (IdxMacchina != item.IdxMacchina)
|
|
return false;
|
|
|
|
if (CodArticolo != item.CodArticolo)
|
|
return false;
|
|
|
|
if (MaxRecord != item.MaxRecord)
|
|
return false;
|
|
|
|
if (TotCount != item.TotCount)
|
|
return false;
|
|
|
|
if (NumRec != item.NumRec)
|
|
return false;
|
|
|
|
if (DtEnd != item.DtEnd)
|
|
return false;
|
|
|
|
if (CurrPage != item.CurrPage)
|
|
return false;
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |