MchFinalCheckGTotal.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. 
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using Core.Mes.Client.Comm.Attribute;
  6. namespace Core.StlMes.Client.Mcp.Control.Entity
  7. {
  8. public class MchFinalCheckGTotal : MchFinalCheckResultDEntity
  9. {
  10. /// <summary>
  11. /// 返线原因
  12. /// </summary>
  13. [Description("返线原因")]
  14. [Nullable(false)]
  15. [DataLength(20)]
  16. public string UnPass
  17. {
  18. get
  19. {
  20. return UnPassList == null || !UnPassList.Any()
  21. ? ""
  22. : UnPassList.Select(p => p.FailTypeName).Aggregate((a, b) => (string.IsNullOrWhiteSpace(a) ? "" : (a + ",")) + b);
  23. }
  24. }
  25. /// <summary>
  26. /// 废品原因
  27. /// </summary>
  28. [Description("废品原因")]
  29. [Nullable(false)]
  30. [DataLength(20)]
  31. public string ScrapReason {
  32. get
  33. {
  34. return ScrapList == null || !ScrapList.Any()
  35. ? ""
  36. : ScrapList.Select(p => p.FailTypeName).Aggregate((a, b) =>(string.IsNullOrWhiteSpace(a)?"":(a+","))+ b);
  37. } }
  38. public List<MchBugDEntity> ScrapList { get; set; }
  39. public List<MchBugDEntity> UnPassList { get; set; }
  40. /// <summary>
  41. /// 外观检验
  42. /// </summary>
  43. [Description("外观检验")]
  44. [Nullable(false)]
  45. [DataLength(20)]
  46. public string AppCheck { get; set; }
  47. /// <summary>
  48. /// 尺寸检查
  49. /// </summary>
  50. [Description("尺寸检查")]
  51. [Nullable(false)]
  52. [DataLength(20)]
  53. public string SizeCheck { get; set; }
  54. }
  55. }