93 lines
2.5 KiB
C#
93 lines
2.5 KiB
C#
namespace SHERPA.Data
|
|
{
|
|
public class SelectDocExp
|
|
{
|
|
#region Public Properties
|
|
|
|
public int Anno { get; set; } = 0;
|
|
public int Aperta { get; set; } = 0;
|
|
public DateTime Fine { get; set; } = new DateTime(DateTime.Today.Year + 1, 1, 1);
|
|
public int IdxCli { get; set; } = 0;
|
|
public int IdxTipo { get; set; } = 0;
|
|
public string IdxGruppo { get; set; } = "0";
|
|
public DateTime Inizio { get; set; } = new DateTime(DateTime.Today.Year, 1, 1);
|
|
public bool OnlySync { get; set; } = false;
|
|
public string RagSoc { get; set; } = "*";
|
|
public string SearchVal { get; set; } = "";
|
|
public bool KeepSelected { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public SelectDocExp clone()
|
|
{
|
|
SelectDocExp clonedData = new SelectDocExp()
|
|
{
|
|
Anno = this.Anno,
|
|
IdxCli = this.IdxCli,
|
|
IdxTipo = this.IdxTipo,
|
|
IdxGruppo = this.IdxGruppo,
|
|
RagSoc = this.RagSoc,
|
|
Inizio = this.Inizio,
|
|
Fine = this.Fine,
|
|
Aperta = this.Aperta,
|
|
OnlySync = this.OnlySync,
|
|
KeepSelected = this.KeepSelected,
|
|
SearchVal = this.SearchVal
|
|
};
|
|
return clonedData;
|
|
}
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (obj == null)
|
|
return false;
|
|
|
|
if (!(obj is SelectDocExp item))
|
|
return false;
|
|
|
|
if (Anno != item.Anno)
|
|
return false;
|
|
|
|
if (IdxCli != item.IdxCli)
|
|
return false;
|
|
|
|
if (IdxTipo != item.IdxTipo)
|
|
return false;
|
|
|
|
if (IdxGruppo != item.IdxGruppo)
|
|
return false;
|
|
|
|
if (RagSoc != item.RagSoc)
|
|
return false;
|
|
|
|
if (Inizio != item.Inizio)
|
|
return false;
|
|
|
|
if (Fine != item.Fine)
|
|
return false;
|
|
|
|
if (Aperta != item.Aperta)
|
|
return false;
|
|
|
|
if (OnlySync != item.OnlySync)
|
|
return false;
|
|
|
|
if (KeepSelected != item.KeepSelected)
|
|
return false;
|
|
|
|
if (SearchVal != item.SearchVal)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |