SysOrgOutput.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 机构简要输入参数
  5. /// </summary>
  6. public class SysOrgLiteOutput
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Required]
  12. public short Id { get; set; }
  13. /// <summary>
  14. /// 父机构ID
  15. /// </summary>
  16. [Required]
  17. public short Pid { get; set; }
  18. /// <summary>
  19. /// 机构类型
  20. /// </summary>
  21. [Required]
  22. public OrgType OrgType { get; set; }
  23. /// <summary>
  24. /// 办学性质
  25. /// </summary>
  26. [Required]
  27. public OrgFundSource OrgFundSource { get; set; }
  28. /// <summary>
  29. /// 学段
  30. /// </summary>
  31. [Required]
  32. public EducationStage EducationStage { get; set; }
  33. /// <summary>
  34. /// 城乡类型
  35. /// </summary>
  36. [Required]
  37. public UrbanRuralType UrbanRuralType { get; set; }
  38. /// <summary>
  39. /// 所属学区ID(机构ID)
  40. /// </summary>
  41. public short? SchoolDistrictId { get; set; }
  42. /// <summary>
  43. /// 名称
  44. /// </summary>
  45. [Required]
  46. public string FullName { get; set; }
  47. /// <summary>
  48. /// 名称
  49. /// </summary>
  50. [Required]
  51. public string Name { get; set; }
  52. /// <summary>
  53. /// 简称
  54. /// </summary>
  55. [Required]
  56. public string ShortName { get; set; }
  57. /// <summary>
  58. /// 简称2
  59. /// </summary>
  60. [StringLength(50)]
  61. public string ShortName2 { get; set; }
  62. /// <summary>
  63. /// 编码
  64. /// </summary>
  65. [Required]
  66. public string Code { get; set; }
  67. /// <summary>
  68. /// 带前缀唯一代码
  69. /// </summary>
  70. [Required]
  71. public string UniqueCode { get; set; }
  72. /// <summary>
  73. /// 排序
  74. /// </summary>
  75. [Required]
  76. public int Sort { get; set; }
  77. /// <summary>
  78. /// 状态
  79. /// </summary>
  80. [Required]
  81. public CommonStatus Status { get; set; }
  82. }
  83. /// <summary>
  84. /// 机构完整输出参数
  85. /// </summary>
  86. public class SysOrgOutput : SysOrgLiteOutput
  87. {
  88. /// <summary>
  89. /// 父机构ID路径
  90. /// </summary>
  91. [Required]
  92. public string Pids { get; set; }
  93. /// <summary>
  94. /// TQES学校ID(兼容老系统)
  95. /// </summary>
  96. public int? TqesId { get; set; }
  97. /// <summary>
  98. /// TQES学校编码(兼容老系统)
  99. /// </summary>
  100. public string TqesCode { get; set; }
  101. /// <summary>
  102. /// 经度
  103. /// </summary>
  104. public decimal Longitude { get; set; }
  105. /// <summary>
  106. /// 纬度
  107. /// </summary>
  108. public decimal Latitude { get; set; }
  109. /// <summary>
  110. /// 地址
  111. /// </summary>
  112. public string Address { get; set; }
  113. /// <summary>
  114. /// 备注
  115. /// </summary>
  116. public string Remark { get; set; }
  117. /// <summary>
  118. /// 创建时间
  119. /// </summary>
  120. [Required]
  121. public DateTime CreateTime { get; set; }
  122. /// <summary>
  123. /// 更新时间
  124. /// </summary>
  125. public DateTime? UpdateTime { get; set; }
  126. /// <summary>
  127. /// 创建人ID
  128. /// </summary>
  129. [Required]
  130. public int CreateSysUserId { get; set; }
  131. /// <summary>
  132. /// 修改者Id
  133. /// </summary>
  134. public int? UpdateSysUserId { get; set; }
  135. /// <summary>
  136. /// 创建人
  137. /// </summary>
  138. public SysUserLiteOutput CreateSysUser { get; set; }
  139. /// <summary>
  140. /// 更新人
  141. /// </summary>
  142. public SysUserLiteOutput UpdateSysUser { get; set; }
  143. /// <summary>
  144. /// 所属学区
  145. /// </summary>
  146. public SysOrgLiteOutput SchoolDistrict { get; set; }
  147. }