Files
2023-09-06 08:32:43 +02:00

98 lines
2.5 KiB
C#

namespace SHERPA.BBM.UI.Data
{
public class SelData : BBM_SelectData
{
#region Public Properties
/// <summary>
/// Modalità show fatture
/// 0 = Tutti
/// 1 = Registrati
/// -1 = NON Registrati
/// </summary>
public int ShowFatt { get; set; } = 0;
#endregion Public Properties
#region Public Methods
public new SelData Clone()
{
SelData clonedData = new SelData()
{
YearSel = this.YearSel,
BasketId = this.BasketId,
Company = this.Company,
CompanyId = this.CompanyId,
Customer = this.Customer,
CustomerId = this.CustomerId,
DocId = this.DocId,
NegotiationId = this.NegotiationId,
ShowAllDoc = this.ShowAllDoc,
ShowSearch = this.ShowSearch,
SortField = this.SortField,
SearchVal = this.SearchVal,
ShowFatt = this.ShowFatt,
SortAsc = this.SortAsc
};
return clonedData;
}
public override bool Equals(object? obj)
{
if (obj == null)
return false;
if (!(obj is SelData item))
return false;
if (YearSel != item.YearSel)
return false;
if (BasketId != item.BasketId)
return false;
if (Company != item.Company)
return false;
if (CompanyId != item.CompanyId)
return false;
if (Customer != item.Customer)
return false;
if (CustomerId != item.CustomerId)
return false;
if (DocId != item.DocId)
return false;
if (NegotiationId != item.NegotiationId)
return false;
if (ShowAllDoc != item.ShowAllDoc)
return false;
if (ShowSearch != item.ShowSearch)
return false;
if (SearchVal != item.SearchVal)
return false;
if (SortAsc != item.SortAsc)
return false;
if (SortField != item.SortField)
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
#endregion Public Methods
}
}