57331c4391
- Auto read magazine update - Auto read relocation in magazine Added load/unload in/from shank
98 lines
2.5 KiB
C#
98 lines
2.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using static CMS_CORE_Library.DataStructures;
|
|
|
|
namespace Step.Model.DTOModels.ToolModels
|
|
{
|
|
public class DTOSiemensToolModel
|
|
{
|
|
[Required]
|
|
public string FamilyName { get; set; }
|
|
|
|
[Required]
|
|
public int MagazinePositionType { get; set; }
|
|
|
|
[Required]
|
|
public int ToolType { get; set; }
|
|
|
|
[Required]
|
|
public SIEMENS_LIFE_TYPE LifeType { get; set; }
|
|
|
|
[Required]
|
|
public int LeftSize { get; set; }
|
|
|
|
[Required]
|
|
public int RightSize { get; set; }
|
|
|
|
[Required]
|
|
public ROTATION Rotation { get; set; }
|
|
|
|
[Required]
|
|
public bool Cooling1 { get; set; }
|
|
|
|
[Required]
|
|
public bool Cooling2 { get; set; }
|
|
|
|
[Required]
|
|
public bool IsEnabled { get; set; }
|
|
|
|
[Required]
|
|
public bool IsActive { get; set; }
|
|
|
|
[Required]
|
|
public bool InFixedPlace { get; set; }
|
|
|
|
[Required]
|
|
public bool IsInhibited { get; set; }
|
|
|
|
[Required]
|
|
public bool IsMeasured { get; set; }
|
|
|
|
[Required]
|
|
public bool InChangeTool { get; set; }
|
|
|
|
[Required]
|
|
public bool InUse { get; set; }
|
|
|
|
[Required]
|
|
public bool PreAlarm { get; set; }
|
|
|
|
public static explicit operator SiemensToolModel(DTOSiemensToolModel dtoModel)
|
|
{
|
|
return new SiemensToolModel()
|
|
{
|
|
MagazinePositionType = dtoModel.MagazinePositionType,
|
|
ToolType = dtoModel.ToolType,
|
|
LifeType = dtoModel.LifeType,
|
|
FamilyName = dtoModel.FamilyName,
|
|
|
|
IsEnabled = dtoModel.IsEnabled,
|
|
IsActive = dtoModel.IsActive,
|
|
IsInhibited = dtoModel.IsInhibited,
|
|
IsInUse = dtoModel.InUse,
|
|
IsMeasured = dtoModel.IsMeasured,
|
|
InChangeTool = dtoModel.InChangeTool,
|
|
InFixedPlace = dtoModel.InFixedPlace,
|
|
PreAlarm = dtoModel.PreAlarm,
|
|
|
|
Cooling1 = dtoModel.Cooling1,
|
|
Cooling2 = dtoModel.Cooling2,
|
|
LeftSize = dtoModel.LeftSize,
|
|
RightSize = dtoModel.RightSize,
|
|
Rotation = dtoModel.Rotation
|
|
};
|
|
}
|
|
}
|
|
|
|
public class DTOMagazinesPositionsModel
|
|
{
|
|
[Required()]
|
|
public bool Disabled { get; set; }
|
|
}
|
|
|
|
public class DTOFamilyModel
|
|
{
|
|
[Required]
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
} |