SysOrgInput.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加机构输入参数
  5. /// </summary>
  6. public class AddSysOrgInput
  7. {
  8. /// <summary>
  9. /// 父机构ID
  10. /// </summary>
  11. [Required]
  12. public short Pid { get; set; } = 0;
  13. /// <summary>
  14. /// 机构类型
  15. /// </summary>
  16. [Required]
  17. public OrgType OrgType { get; set; }
  18. /// <summary>
  19. /// 办学性质
  20. /// </summary>
  21. [Required]
  22. public OrgFundSource OrgFundSource { get; set; }
  23. /// <summary>
  24. /// 学段
  25. /// </summary>
  26. [Required]
  27. public EducationStage EducationStage { get; set; }
  28. /// <summary>
  29. /// 城乡类型
  30. /// </summary>
  31. [Required]
  32. public UrbanRuralType UrbanRuralType { get; set; }
  33. /// <summary>
  34. /// 所属学区ID(机构ID)
  35. /// </summary>
  36. public short? SchoolDistrictId { get; set; }
  37. /// <summary>
  38. /// 名称
  39. /// </summary>
  40. [Required, StringLength(100)]
  41. public string Name { get; set; }
  42. /// <summary>
  43. /// 名称
  44. /// </summary>
  45. [Required, StringLength(200)]
  46. public string FullName { get; set; }
  47. /// <summary>
  48. /// 简称
  49. /// </summary>
  50. [Required, StringLength(50)]
  51. public string ShortName { get; set; }
  52. /// <summary>
  53. /// 简称2
  54. /// </summary>
  55. [StringLength(50)]
  56. public string ShortName2 { get; set; } = "";
  57. /// <summary>
  58. /// 编码
  59. /// </summary>
  60. [Required, StringLength(20)]
  61. public string Code { get; set; }
  62. /// <summary>
  63. /// 带前缀唯一代码
  64. /// </summary>
  65. [Required, StringLength(20)]
  66. public string UniqueCode { get; set; }
  67. /// <summary>
  68. /// 经度
  69. /// </summary>
  70. public decimal Longitude { get; set; } = 0;
  71. /// <summary>
  72. /// 纬度
  73. /// </summary>
  74. public decimal Latitude { get; set; } = 0;
  75. /// <summary>
  76. /// 地址
  77. /// </summary>
  78. public string Address { get; set; } = "";
  79. /// <summary>
  80. /// 备注
  81. /// </summary>
  82. public string Remark { get; set; } = "";
  83. /// <summary>
  84. /// 状态
  85. /// </summary>
  86. [Required]
  87. public CommonStatus Status { get; set; }
  88. }
  89. /// <summary>
  90. /// 更新机构输入参数
  91. /// </summary>
  92. public class UpdateSysOrgInput : AddSysOrgInput
  93. {
  94. /// <summary>
  95. /// 主键
  96. /// </summary>
  97. [Required]
  98. public short Id { get; set; }
  99. /// <summary>
  100. /// 排序
  101. /// </summary>
  102. [Required]
  103. public int Sort { get; set; }
  104. }
  105. /// <summary>
  106. /// 查询机构输入参数
  107. /// </summary>
  108. public class QuerySysOrgInput
  109. {
  110. /// <summary>
  111. /// 名称
  112. /// </summary>
  113. public string Name { get; set; }
  114. /// <summary>
  115. /// 编码
  116. /// </summary>
  117. public string Code { get; set; }
  118. /// <summary>
  119. /// 机构类型
  120. /// </summary>
  121. public OrgType? OrgType { get; set; }
  122. /// <summary>
  123. /// 办学性质
  124. /// </summary>
  125. public OrgFundSource? OrgFundSource { get; set; }
  126. /// <summary>
  127. /// 学段
  128. /// </summary>
  129. public EducationStage? EducationStage { get; set; }
  130. /// <summary>
  131. /// 城乡类型
  132. /// </summary>
  133. public UrbanRuralType? UrbanRuralType { get; set; }
  134. /// <summary>
  135. /// 所属学区ID(机构ID)
  136. /// </summary>
  137. public short? SchoolDistrictId { get; set; }
  138. /// <summary>
  139. /// 状态
  140. /// </summary>
  141. public CommonStatus? Status { get; set; }
  142. }
  143. /// <summary>
  144. /// 分页查询机构输入参数
  145. /// </summary>
  146. public class SysOrgPageInput : PageInputBase
  147. {
  148. /// <summary>
  149. /// 名称
  150. /// </summary>
  151. public string Name { get; set; }
  152. /// <summary>
  153. /// 编码
  154. /// </summary>
  155. public string Code { get; set; }
  156. /// <summary>
  157. /// 机构类型
  158. /// </summary>
  159. public OrgType? OrgType { get; set; }
  160. /// <summary>
  161. /// 办学性质
  162. /// </summary>
  163. public OrgFundSource? OrgFundSource { get; set; }
  164. /// <summary>
  165. /// 学段
  166. /// </summary>
  167. public EducationStage? EducationStage { get; set; }
  168. /// <summary>
  169. /// 城乡类型
  170. /// </summary>
  171. public UrbanRuralType? UrbanRuralType { get; set; }
  172. /// <summary>
  173. /// 所属学区ID(机构ID)
  174. /// </summary>
  175. public short? SchoolDistrictId { get; set; }
  176. /// <summary>
  177. /// 状态
  178. /// </summary>
  179. public CommonStatus? Status { get; set; }
  180. }