24 lines
637 B
C#
24 lines
637 B
C#
using Seyounth.Core.Extensions;
|
|
using Seyounth.Hyosung.Data.Entities;
|
|
|
|
namespace Seyounth.Hyosung.Data.Models;
|
|
|
|
public class Pallet : PalletEntity
|
|
{
|
|
public string Name =>
|
|
$"{Type.GetDescription()}({Width}*{Height}*{Length})({HoleCount}|{(IsBigHole != null && IsBigHole.Value ? "大" : "小")})";
|
|
|
|
public static Pallet FromEntity(PalletEntity p)
|
|
{
|
|
return new Pallet()
|
|
{
|
|
Height = p.Height,
|
|
Width = p.Width,
|
|
Length = p.Length,
|
|
HoleCount = p.HoleCount,
|
|
Id = p.Id,
|
|
IsBigHole = p.IsBigHole,
|
|
Type = p.Type
|
|
};
|
|
}
|
|
} |