58 lines
1.4 KiB
C#
58 lines
1.4 KiB
C#
using static CMS_CORE_Library.Models.DataStructures;
|
|
|
|
namespace Step.Model.DTOModels.ToolModels
|
|
{
|
|
public class DTOAssistedToolingModel
|
|
{
|
|
public ushort ToolId { get; set; }
|
|
public ushort MagazineId { get; set; }
|
|
public ushort PositionId { get; set; }
|
|
public ASSISTED_TOOLING_ACTION Action { get; set; }
|
|
}
|
|
|
|
public class DTOAssistedToolingEndValueModel : AssistedToolingModel
|
|
{
|
|
public DTOAssistedToolingEndValueModel()
|
|
{
|
|
|
|
}
|
|
|
|
public DTOAssistedToolingEndValueModel(AssistedToolingModel data)
|
|
{
|
|
Action = data.Action;
|
|
IsActive = data.IsActive;
|
|
MagazineId = data.MagazineId;
|
|
PositionId = data.PositionId;
|
|
ToolId = data.ToolId;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
|
|
if (!(obj is DTOAssistedToolingEndValueModel item))
|
|
return false;
|
|
|
|
if (IsActive != item.IsActive)
|
|
return false;
|
|
|
|
if (ToolId != item.ToolId)
|
|
return false;
|
|
|
|
if (MagazineId != item.MagazineId)
|
|
return false;
|
|
|
|
if (PositionId != item.PositionId)
|
|
return false;
|
|
|
|
if (Action != item.Action)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
} |