AdoS0WarehouseBasicDtos.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Warehouse;
  2. // ========== 部门 ==========
  3. public class AdoS0DepartmentQueryDto
  4. {
  5. public long? CompanyRefId { get; set; }
  6. public long? FactoryRefId { get; set; }
  7. public string? DomainCode { get; set; }
  8. public string? Keyword { get; set; }
  9. public bool? IsActive { get; set; }
  10. public int Page { get; set; } = 1;
  11. public int PageSize { get; set; } = 20;
  12. }
  13. public class AdoS0DepartmentUpsertDto
  14. {
  15. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  16. public long CompanyRefId { get; set; }
  17. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  18. public long FactoryRefId { get; set; }
  19. public string? DomainCode { get; set; }
  20. [Required(ErrorMessage = "部门编码不能为空")]
  21. public string Department { get; set; } = string.Empty;
  22. public string? Descr { get; set; }
  23. public bool IsActive { get; set; } = true;
  24. public string? CreateUser { get; set; }
  25. public string? UpdateUser { get; set; }
  26. }
  27. // ========== 雇员 ==========
  28. public class AdoS0EmployeeQueryDto
  29. {
  30. public long? CompanyRefId { get; set; }
  31. public long? FactoryRefId { get; set; }
  32. public string? DomainCode { get; set; }
  33. public string? Keyword { get; set; }
  34. public string? Department { get; set; }
  35. public bool? IsActive { get; set; }
  36. public int Page { get; set; } = 1;
  37. public int PageSize { get; set; } = 20;
  38. }
  39. public class AdoS0EmployeeUpsertDto
  40. {
  41. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  42. public long CompanyRefId { get; set; }
  43. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  44. public long FactoryRefId { get; set; }
  45. public string? DomainCode { get; set; }
  46. [Required(ErrorMessage = "员工编码不能为空")]
  47. public string Employee { get; set; } = string.Empty;
  48. public string? Name { get; set; }
  49. public string? Sex { get; set; }
  50. public string? Phone { get; set; }
  51. public string? Email { get; set; }
  52. public DateTime? BirthDate { get; set; }
  53. public string? Department { get; set; }
  54. public DateTime? DateEmployed { get; set; }
  55. public string? EmploymentStatus { get; set; }
  56. public string? MaritalStatus { get; set; }
  57. public string? JobTitle { get; set; }
  58. public DateTime? DateTerminated { get; set; }
  59. public string? WorkCtr { get; set; }
  60. public string? CarId { get; set; }
  61. public string? DefaultWorkLocation { get; set; }
  62. public bool IsActive { get; set; } = true;
  63. public string? CreateUser { get; set; }
  64. public string? UpdateUser { get; set; }
  65. }
  66. // ========== 成本中心 ==========
  67. public class AdoS0CostCtrQueryDto
  68. {
  69. public long? CompanyRefId { get; set; }
  70. public long? FactoryRefId { get; set; }
  71. public string? DomainCode { get; set; }
  72. public string? Keyword { get; set; }
  73. public int Page { get; set; } = 1;
  74. public int PageSize { get; set; } = 20;
  75. }
  76. public class AdoS0CostCtrUpsertDto
  77. {
  78. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  79. public long CompanyRefId { get; set; }
  80. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  81. public long FactoryRefId { get; set; }
  82. public string? DomainCode { get; set; }
  83. [Required(ErrorMessage = "成本中心编码不能为空")]
  84. public string CostCtr { get; set; } = string.Empty;
  85. public string? Descr { get; set; }
  86. public string? Ufld1 { get; set; }
  87. public DateTime? EffTime { get; set; }
  88. public string? CreateUser { get; set; }
  89. public string? UpdateUser { get; set; }
  90. }
  91. // ========== 库位 ==========
  92. public class AdoS0LocationQueryDto
  93. {
  94. public long? CompanyRefId { get; set; }
  95. public long? FactoryRefId { get; set; }
  96. public string? DomainCode { get; set; }
  97. public string? Keyword { get; set; }
  98. public string? Typed { get; set; }
  99. public bool? IsActive { get; set; }
  100. public int Page { get; set; } = 1;
  101. public int PageSize { get; set; } = 20;
  102. }
  103. public class AdoS0LocationUpsertDto
  104. {
  105. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  106. public long CompanyRefId { get; set; }
  107. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  108. public long FactoryRefId { get; set; }
  109. public string? DomainCode { get; set; }
  110. [Required(ErrorMessage = "库位编码不能为空")]
  111. public string Location { get; set; } = string.Empty;
  112. public string? Descr { get; set; }
  113. public string? Storer { get; set; }
  114. public string? Typed { get; set; }
  115. public string? PhysicalAddress { get; set; }
  116. public bool IsActive { get; set; } = true;
  117. public string? CreateUser { get; set; }
  118. public string? UpdateUser { get; set; }
  119. }
  120. // ========== 货架 ==========
  121. public class AdoS0LocationShelfQueryDto
  122. {
  123. public long? CompanyRefId { get; set; }
  124. public long? FactoryRefId { get; set; }
  125. public string? DomainCode { get; set; }
  126. public string? Location { get; set; }
  127. public string? Keyword { get; set; }
  128. public int Page { get; set; } = 1;
  129. public int PageSize { get; set; } = 20;
  130. }
  131. public class AdoS0LocationShelfUpsertDto
  132. {
  133. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  134. public long CompanyRefId { get; set; }
  135. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  136. public long FactoryRefId { get; set; }
  137. public string? DomainCode { get; set; }
  138. [Required(ErrorMessage = "库位编码不能为空")]
  139. public string Location { get; set; } = string.Empty;
  140. [Required(ErrorMessage = "货架编码不能为空")]
  141. public string InvShelf { get; set; } = string.Empty;
  142. public string? Descr { get; set; }
  143. public string? Area { get; set; }
  144. public string? CreateUser { get; set; }
  145. public string? UpdateUser { get; set; }
  146. }