using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Core.Mes.Client.Comm.Attribute;
namespace Core.StlMes.Client.Mcp.Control.Entity
{
public class MchFinalCheckGTotal : MchFinalCheckResultDEntity
{
///
/// 返线原因
///
[Description("返线原因")]
[Nullable(false)]
[DataLength(20)]
public string UnPass
{
get
{
return UnPassList == null || !UnPassList.Any()
? ""
: UnPassList.Select(p => p.FailTypeName).Aggregate((a, b) => (string.IsNullOrWhiteSpace(a) ? "" : (a + ",")) + b);
}
}
///
/// 废品原因
///
[Description("废品原因")]
[Nullable(false)]
[DataLength(20)]
public string ScrapReason {
get
{
return ScrapList == null || !ScrapList.Any()
? ""
: ScrapList.Select(p => p.FailTypeName).Aggregate((a, b) =>(string.IsNullOrWhiteSpace(a)?"":(a+","))+ b);
} }
public List ScrapList { get; set; }
public List UnPassList { get; set; }
///
/// 外观检验
///
[Description("外观检验")]
[Nullable(false)]
[DataLength(20)]
public string AppCheck { get; set; }
///
/// 尺寸检查
///
[Description("尺寸检查")]
[Nullable(false)]
[DataLength(20)]
public string SizeCheck { get; set; }
}
}