Files
mapo-core/MP.SPEC/Data/SelectXdlParams.cs
2022-11-29 11:54:42 +01:00

108 lines
3.0 KiB
C#

using MP.Data;
namespace MP.SPEC.Data
{
public class SelectXdlParams
{
#region Public Constructors
public SelectXdlParams()
{ }
#endregion Public Constructors
#region Public Properties
public string CodFase { get; set; } = "*";
public string CodReparto { get; set; } = "*";
public int CurrPage { get; set; } = 1;
public DateTime DtEnd { get; set; } = Utils.InitDatetime(DateTime.Now, 5);
public DateTime DtStart { get; set; } = Utils.InitDatetime(DateTime.Now, 5).AddMonths(-2);
public bool HasOdl { get; set; } = false;
public string IdxMacchina { get; set; } = "*";
public bool IsActive { get; set; } = true;
public int MaxRecord { get; set; } = 100;
public int NumRec { get; set; } = 10;
public string SearchVal { get; set; } = "*";
public string Header { get; set; } = "";
public int TotCount { get; set; } = 0;
#endregion Public Properties
#region Public Methods
public SelectXdlParams clone()
{
SelectXdlParams clonedData = new SelectXdlParams()
{
CodFase = this.CodFase,
CodReparto = this.CodReparto,
CurrPage = this.CurrPage,
DtEnd = this.DtEnd,
DtStart = this.DtStart,
HasOdl = this.HasOdl,
IdxMacchina = this.IdxMacchina,
IsActive = this.IsActive,
MaxRecord = this.MaxRecord,
NumRec = this.NumRec,
SearchVal = this.SearchVal,
Header = this.Header,
TotCount = this.TotCount
};
return clonedData;
}
public override bool Equals(object obj)
{
if (!(obj is SelectXdlParams item))
return false;
if (CodFase != item.CodFase)
return false;
if (CodReparto != item.CodReparto)
return false;
if (CurrPage != item.CurrPage)
return false;
if (DtEnd != item.DtEnd)
return false;
if (DtStart != item.DtStart)
return false;
if (HasOdl != item.HasOdl)
return false;
if (IdxMacchina != item.IdxMacchina)
return false;
if (IsActive != item.IsActive)
return false;
if (MaxRecord != item.MaxRecord)
return false;
if (NumRec != item.NumRec)
return false;
if (SearchVal != item.SearchVal)
return false;
if (Header != item.Header)
return false;
if (TotCount != item.TotCount)
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
#endregion Public Methods
}
}