Files
mapo-core/MP.SPEC/Data/SelectXdlParams.cs
T
Samuele Locatelli f178cafe93 Inizio normalizzaizone filtro (ODL/PODL)
- unico oggetto
- unico filtro
- completare poi pulizia codice da #if false
2022-11-25 19:27:39 +01:00

104 lines
2.8 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).AddDays(-10);
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 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,
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 (TotCount != item.TotCount)
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
#endregion Public Methods
}
}