ProjectEntity.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace CollaborativePlatformMain.DFEntity.MessageSubUtil
  7. {
  8. /// <summary>
  9. ///
  10. /// <para>文件名(File Name): ProjectEntity.cs</para>
  11. ///
  12. /// <para>描述(Description): 项目信息数据</para>
  13. ///
  14. /// <para>数据表(Tables): nothing</para>
  15. ///
  16. /// <para>作者(Author): Ou Rui Song</para>
  17. ///
  18. /// <para>日期(Create Date): 2024年5月5日08:30:10</para>
  19. ///
  20. /// 修改记录(Revision History):
  21. /// R1:
  22. /// 修改作者:
  23. /// 修改日期:
  24. /// 修改理由:
  25. ///
  26. /// </summary>
  27. public class ProjectEntity
  28. {
  29. /// <summary>
  30. /// 一级数据
  31. /// </summary>
  32. /// <param name="projectName"></param>
  33. /// <param name="projectEntities"></param>
  34. public ProjectEntity(string projectName, List<ProjectEntity> projectEntities)
  35. {
  36. ProjectName = projectName;
  37. SubBuildNodes = projectEntities;
  38. }
  39. /// <summary>
  40. /// 项目信息
  41. /// </summary>
  42. /// <param name="projectName"></param>
  43. /// <param name="businessName"></param>
  44. /// <param name="projectPath"></param>
  45. public ProjectEntity(string projectName, string businessName, string projectPath)
  46. {
  47. ProjectName = projectName;
  48. BusinessName = businessName;
  49. ProjectPath = projectPath;
  50. }
  51. /// <summary>
  52. /// 项目信息
  53. /// </summary>
  54. /// <param name="projectName"></param>
  55. /// <param name="subData"></param>
  56. public ProjectEntity(string projectName, ProjectEntity subData)
  57. {
  58. ProjectName = projectName;
  59. SubData = subData;
  60. }
  61. /// <summary>
  62. /// 团队成员
  63. /// </summary>
  64. /// <param name="projectName"></param>
  65. /// <param name="teamMembers"></param>
  66. public ProjectEntity(string projectName, Dictionary<string, string> teamMembers)
  67. {
  68. ProjectName = projectName;
  69. TeamMembers = teamMembers;
  70. }
  71. /// <summary>
  72. /// 工作台
  73. /// </summary>
  74. /// <param name="projectName"></param>
  75. /// <param name="operatingFloorData"></param>
  76. public ProjectEntity(string projectName, OperatingFloorData operatingFloorData)
  77. {
  78. ProjectName = projectName;
  79. OperatingFloorData = operatingFloorData;
  80. }
  81. /// <summary>
  82. /// 唯一id
  83. /// </summary>
  84. public string Id { get; set; } = Guid.NewGuid().ToString();
  85. /// <summary>
  86. /// 一级:项目名称
  87. /// 二级:楼栋名称
  88. /// 三级:楼栋信息
  89. /// </summary>
  90. public string ProjectName { get; set; }
  91. /// <summary>
  92. /// 业态名称
  93. /// </summary>
  94. public string BusinessName { get; set; }
  95. /// <summary>
  96. /// 项目地址
  97. /// </summary>
  98. public string ProjectPath { get; set; }
  99. /// <summary>
  100. /// 子级数据
  101. /// </summary>
  102. public List<ProjectEntity> SubBuildNodes { get; set; } = new List<ProjectEntity>();
  103. /// <summary>
  104. /// 子级内容
  105. /// </summary>
  106. public ProjectEntity SubData { get; set; }
  107. /// <summary>
  108. /// 团队成员
  109. /// </summary>
  110. public Dictionary<string, string> TeamMembers { get; set; } = new Dictionary<string, string>();
  111. /// <summary>
  112. /// 工作台数据
  113. /// </summary>
  114. public OperatingFloorData OperatingFloorData { get; set; }
  115. }
  116. }