60 lines
1.5 KiB
C#
60 lines
1.5 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace MP.MONO.UI.Data
|
|
{
|
|
public class selectAlarmsFilt
|
|
{
|
|
#region Public Constructors
|
|
|
|
public selectAlarmsFilt()
|
|
{ }
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
public int maxRec { get; set; } = 200;
|
|
public DateTime dtMax { get; set; } = DateTime.Now;
|
|
public int CurrPage { get; set; } = 1;
|
|
public int NumRec { get; set; } = 10;
|
|
public string lastUpdate { get; set; } = $"{DateTime.Now:yyyy/MM/dd HH:mm:ss}";
|
|
|
|
public bool isLive { get; set; } = true;
|
|
public bool maxRecordStatus { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (!(obj is selectAlarmsFilt item))
|
|
return false;
|
|
|
|
if (maxRec != item.maxRec)
|
|
return false;
|
|
if (dtMax != item.dtMax)
|
|
return false;
|
|
if (CurrPage != item.CurrPage)
|
|
return false;
|
|
if (NumRec != item.NumRec)
|
|
return false;
|
|
if (isLive != item.isLive)
|
|
return false;
|
|
if (maxRecordStatus != item.maxRecordStatus)
|
|
return false;
|
|
if (lastUpdate != item.lastUpdate)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
}
|