HttEntrustEntityAll.cs 774 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using Core.Mes.Client.Comm.Attribute;
  7. using Core.StlMes.Client.Mcp.Control.Entity;
  8. namespace Core.StlMes.Client.Mcp.Treatment.Entity
  9. {
  10. public class HttEntrustEntityAll:HttEntrustEntity
  11. {
  12. public List<HttEntrustProjectEntity> ProjectData { get; set; }
  13. [Description("委托项目")]
  14. [Nullable(true)]
  15. [DataLength(20)]
  16. public string Projects
  17. {
  18. get
  19. {
  20. return (ProjectData != null) && ProjectData.Any() ? ProjectData.Where(p => p.ProjectFlag != "2").Select(p => p.ProjectName).Aggregate((a, b) => a + (a == "" ? "" : ",") + b) : "";
  21. }
  22. }
  23. }
  24. }