HttEntrustEntityPlusAll.cs 772 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 HttEntrustEntityPlusAll : HttEntrustEntityPlus
  11. {
  12. [Description("委托项目")]
  13. [Nullable(true)]
  14. [DataLength(20)]
  15. public string Projects
  16. {
  17. get
  18. {
  19. return (ProjectData != null) && ProjectData.Any() ? ProjectData.Where(p=>p.ProjectFlag!="2").Select(p=>p.ProjectName).Aggregate((a,b)=>a +( a==""?"": ",") + b) : "";
  20. }
  21. }
  22. public List<HttEntrustProjectEntity> ProjectData { get; set; }
  23. }
  24. }