| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
-
- 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
- {
- /// <summary>
- /// 返线原因
- /// </summary>
- [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);
- }
- }
- /// <summary>
- /// 废品原因
- /// </summary>
- [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<MchBugDEntity> ScrapList { get; set; }
- public List<MchBugDEntity> UnPassList { get; set; }
- /// <summary>
- /// 外观检验
- /// </summary>
- [Description("外观检验")]
- [Nullable(false)]
- [DataLength(20)]
- public string AppCheck { get; set; }
- /// <summary>
- /// 尺寸检查
- /// </summary>
- [Description("尺寸检查")]
- [Nullable(false)]
- [DataLength(20)]
- public string SizeCheck { get; set; }
- }
- }
|