58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GWMS.UI.Data
|
|
{
|
|
public class SelectOrderData : SelectData
|
|
{
|
|
#region Public Properties
|
|
|
|
public int PlantId { get; set; } = 0;
|
|
public bool ShowClosed { get; set; } = false;
|
|
public int SupplierId { get; set; } = 0;
|
|
|
|
public int TransporterId { get; set; } = 0;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Inizializzazione con periodo e arrotondamento
|
|
/// </summary>
|
|
/// <param name="minRound"></param>
|
|
/// <param name="numDayPrev"></param>
|
|
/// <returns></returns>
|
|
public static new SelectOrderData Init(int minRound, int numDayPrev)
|
|
{
|
|
var selD = SelectData.Init(minRound, numDayPrev);
|
|
return new SelectOrderData() { DateStart = selD.DateStart, DateEnd = selD.DateEnd, ShowClosed = false };
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is SelectOrderData item))
|
|
return false;
|
|
|
|
if (ShowClosed != item.ShowClosed)
|
|
return false;
|
|
if (PlantId != item.PlantId)
|
|
return false;
|
|
if (SupplierId != item.SupplierId)
|
|
return false;
|
|
if (TransporterId != item.TransporterId)
|
|
return false;
|
|
|
|
return ((SelectData)this).Equals((SelectData)obj);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |