AdoS0QualityDtos.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Quality;
  2. public class AdoS0QualityPagedQueryDto
  3. {
  4. public string? Keyword { get; set; }
  5. public int Page { get; set; } = 1;
  6. public int PageSize { get; set; } = 20;
  7. }
  8. public class AdoS0QualitySimpleOptionDto
  9. {
  10. public long Value { get; set; }
  11. public string Label { get; set; } = string.Empty;
  12. }
  13. public class AdoS0QmsRawWhitelistUpsertDto
  14. {
  15. public string? SupplierCode { get; set; }
  16. public string? SupplierName { get; set; }
  17. public string? MaterialCode { get; set; }
  18. public string? MaterialName { get; set; }
  19. public string? DimensionType { get; set; }
  20. }
  21. public class AdoS0QmsSamplingSchemeUpsertDto
  22. {
  23. [Required(ErrorMessage = "编号不能为空")]
  24. public string Number { get; set; } = string.Empty;
  25. [Required(ErrorMessage = "名称不能为空")]
  26. public string Name { get; set; } = string.Empty;
  27. public string? SamplingType { get; set; }
  28. public string? InspectionLevel { get; set; }
  29. public string? Strictness { get; set; }
  30. public string? AqlValue { get; set; }
  31. public string? InspectionType { get; set; }
  32. public long? InspectOrgId { get; set; }
  33. public string? InspectUserId { get; set; }
  34. public string? Status { get; set; }
  35. public string? EnableStatus { get; set; }
  36. public string? Comment { get; set; }
  37. public decimal? FixedSamplingRate { get; set; }
  38. }
  39. public class AdoS0QmsInspectionInstrumentUpsertDto
  40. {
  41. [Required(ErrorMessage = "编号不能为空")]
  42. public string Number { get; set; } = string.Empty;
  43. [Required(ErrorMessage = "名称不能为空")]
  44. public string Name { get; set; } = string.Empty;
  45. public string? Model { get; set; }
  46. public string? Specification { get; set; }
  47. public string? Manufacturer { get; set; }
  48. public string? Status { get; set; }
  49. public string? EnableStatus { get; set; }
  50. public string? Comment { get; set; }
  51. public string? GaugeCategory { get; set; }
  52. public int? CalibrationCycleDays { get; set; }
  53. public string? NextCalibrationDate { get; set; }
  54. }
  55. public class AdoS0QmsQualityBaseTypeUpsertDto
  56. {
  57. [Required(ErrorMessage = "类型分类不能为空")]
  58. public string TypeCategory { get; set; } = string.Empty;
  59. [Required(ErrorMessage = "类型编码不能为空")]
  60. public string TypeCode { get; set; } = string.Empty;
  61. [Required(ErrorMessage = "简称不能为空")]
  62. public string ShortName { get; set; } = string.Empty;
  63. public string? FullName { get; set; }
  64. public bool IsActive { get; set; } = true;
  65. public string? Remark { get; set; }
  66. }
  67. public class AdoS0QmsInspectionMethodUpsertDto
  68. {
  69. [Required(ErrorMessage = "编号不能为空")]
  70. public string Number { get; set; } = string.Empty;
  71. [Required(ErrorMessage = "名称不能为空")]
  72. public string Name { get; set; } = string.Empty;
  73. public string? ControlStrategy { get; set; }
  74. public string? Status { get; set; }
  75. public string? EnableStatus { get; set; }
  76. public string? Comment { get; set; }
  77. }
  78. public class AdoS0QmsInspectionItemUpsertDto
  79. {
  80. [Required(ErrorMessage = "编号不能为空")]
  81. public string Number { get; set; } = string.Empty;
  82. [Required(ErrorMessage = "名称不能为空")]
  83. public string Name { get; set; } = string.Empty;
  84. public long? CheckMethodId { get; set; }
  85. public long? CheckBasisId { get; set; }
  86. public long? CheckInstructId { get; set; }
  87. public string? RadioGroupField { get; set; }
  88. public string? RadioGroupField1 { get; set; }
  89. public long? MetricType { get; set; }
  90. public string? Status { get; set; }
  91. public string? EnableStatus { get; set; }
  92. public string? Comment { get; set; }
  93. }
  94. public class AdoS0QmsInspectionFrequencyUpsertDto
  95. {
  96. [Required(ErrorMessage = "编号不能为空")]
  97. public string Number { get; set; } = string.Empty;
  98. [Required(ErrorMessage = "名称不能为空")]
  99. public string Name { get; set; } = string.Empty;
  100. public string? Remark { get; set; }
  101. public string? Status { get; set; }
  102. public string? EnableStatus { get; set; }
  103. }
  104. public class AdoS0QmsInspectionBasisEntryDto
  105. {
  106. public long? Id { get; set; }
  107. public long? Seq { get; set; }
  108. public string? DocumentNumber { get; set; }
  109. public string? DocumentName { get; set; }
  110. public string? Attachment { get; set; }
  111. }
  112. public class AdoS0QmsInspectionBasisUpsertDto
  113. {
  114. [Required(ErrorMessage = "编号不能为空")]
  115. public string Number { get; set; } = string.Empty;
  116. [Required(ErrorMessage = "名称不能为空")]
  117. public string Name { get; set; } = string.Empty;
  118. public string? ControlStrategy { get; set; }
  119. public long? CreateOrgId { get; set; }
  120. public long? UseOrgId { get; set; }
  121. public string? Comment { get; set; }
  122. public string? Status { get; set; }
  123. public string? EnableStatus { get; set; }
  124. public List<AdoS0QmsInspectionBasisEntryDto> Items { get; set; } = [];
  125. }
  126. public class AdoS0QmsInspectionStandardEntryDto
  127. {
  128. public long? Id { get; set; }
  129. public long? Seq { get; set; }
  130. public string? CheckItems { get; set; }
  131. public string? CheckContent { get; set; }
  132. public string? NormType { get; set; }
  133. public string? SpecValue { get; set; }
  134. public decimal? TopValue { get; set; }
  135. public decimal? DownValue { get; set; }
  136. public long? CheckBasisId { get; set; }
  137. public long? CheckMethodId { get; set; }
  138. public long? CheckFrequencyId { get; set; }
  139. public long? CheckInstructId { get; set; }
  140. public string? Unit { get; set; }
  141. public long? KeyQuality { get; set; }
  142. }
  143. public class AdoS0QmsInspectionStandardUpsertDto
  144. {
  145. [Required(ErrorMessage = "编号不能为空")]
  146. public string Number { get; set; } = string.Empty;
  147. [Required(ErrorMessage = "名称不能为空")]
  148. public string Name { get; set; } = string.Empty;
  149. public string? Comment { get; set; }
  150. public string? ControlStrategy { get; set; }
  151. public long? CreateOrgId { get; set; }
  152. public long? UseOrgId { get; set; }
  153. public string? Status { get; set; }
  154. public string? EnableStatus { get; set; }
  155. public List<AdoS0QmsInspectionStandardEntryDto> Items { get; set; } = [];
  156. }
  157. public class AdoS0QmsInspectionPlanEntryDto
  158. {
  159. public long? Id { get; set; }
  160. public int? Seq { get; set; }
  161. public string? SetupType { get; set; }
  162. public string? MaterialCode { get; set; }
  163. public string? MaterialName { get; set; }
  164. public long? MaterialTypeId { get; set; }
  165. public string? SupplierId { get; set; }
  166. public long? SamplingSchemeId { get; set; }
  167. public long? InspectionStandardId { get; set; }
  168. public long? InspectOrgId { get; set; }
  169. public long? InspectUserId { get; set; }
  170. public long? QRouteId { get; set; }
  171. public string? OperationNo { get; set; }
  172. public long? OperationId { get; set; }
  173. public long? InspectionFrequencyId { get; set; }
  174. public string? ProcessSeq { get; set; }
  175. public long? InspectionType { get; set; }
  176. }
  177. public class AdoS0QmsInspectionPlanUpsertDto
  178. {
  179. [Required(ErrorMessage = "编号不能为空")]
  180. public string Number { get; set; } = string.Empty;
  181. [Required(ErrorMessage = "名称不能为空")]
  182. public string Name { get; set; } = string.Empty;
  183. public string? BizTypeId { get; set; }
  184. public string? Comment { get; set; }
  185. public string? ControlStrategy { get; set; }
  186. public long? CreateOrgId { get; set; }
  187. public long? UseOrgId { get; set; }
  188. public string? Status { get; set; }
  189. public string? EnableStatus { get; set; }
  190. public List<AdoS0QmsInspectionPlanEntryDto> Items { get; set; } = [];
  191. }
  192. public class AdoS0QmsRawInspectionSpecEntryDto
  193. {
  194. public long? Id { get; set; }
  195. public int? Seq { get; set; }
  196. public string? InspectionItem { get; set; }
  197. public string? InspectionStandard { get; set; }
  198. public string? InspectionMethod { get; set; }
  199. public string? ImageCategory { get; set; }
  200. public string? SamplingScheme { get; set; }
  201. public string? Remark { get; set; }
  202. public string? Attachment { get; set; }
  203. public string? UpperLimit { get; set; }
  204. public string? LowerLimit { get; set; }
  205. }
  206. public class AdoS0QmsRawInspectionSpecUpsertDto
  207. {
  208. [Required(ErrorMessage = "文件编号不能为空")]
  209. public string FileNumber { get; set; } = string.Empty;
  210. public string? VersionNo { get; set; }
  211. public string? DrawingNo { get; set; }
  212. public string? RawMaterialName { get; set; }
  213. public string? MaterialCode { get; set; }
  214. public string? EffectiveDate { get; set; }
  215. public string? DrawingVersion { get; set; }
  216. public string? MaterialGrade { get; set; }
  217. public string? CavityOrMold { get; set; }
  218. public string? Attachment { get; set; }
  219. public string? FileName { get; set; }
  220. public string? Title { get; set; }
  221. public List<AdoS0QmsRawInspectionSpecEntryDto> Items { get; set; } = [];
  222. }
  223. public class AdoS0QmsProcessInspectionSpecEntryDto
  224. {
  225. public long? Id { get; set; }
  226. public string? OperationCode { get; set; }
  227. public string? OperationName { get; set; }
  228. public string? InspectionItem { get; set; }
  229. public string? InspectionMethod { get; set; }
  230. public string? InspectionSpec { get; set; }
  231. public string? ImageCategory { get; set; }
  232. public string? InspectionFrequency { get; set; }
  233. public string? TechnicalStandard { get; set; }
  234. public long? PeelingForce { get; set; }
  235. public string? UpperLimit { get; set; }
  236. public string? LowerLimit { get; set; }
  237. }
  238. public class AdoS0QmsProcessInspectionSpecUpsertDto
  239. {
  240. public string? ApplicableModel { get; set; }
  241. [Required(ErrorMessage = "文件编号不能为空")]
  242. public string FileNumber { get; set; } = string.Empty;
  243. public string? VersionNo { get; set; }
  244. public string? EffectiveDate { get; set; }
  245. public string? Attachment { get; set; }
  246. public string? MaterialCode { get; set; }
  247. public string? Attachment2 { get; set; }
  248. public int? Version { get; set; }
  249. public List<AdoS0QmsProcessInspectionSpecEntryDto> Items { get; set; } = [];
  250. }
  251. public class AdoS0QmsFqcInspectionSpecEntryDto
  252. {
  253. public long? Id { get; set; }
  254. public string? OperationCode { get; set; }
  255. public string? OperationName { get; set; }
  256. public string? InspectionItem { get; set; }
  257. public string? InspectionMethod { get; set; }
  258. public string? InspectionSpec { get; set; }
  259. public string? ImageCategory { get; set; }
  260. public string? InspectionFrequency { get; set; }
  261. public string? TechnicalStandard { get; set; }
  262. public long? PeelingForce { get; set; }
  263. public string? UpperLimit { get; set; }
  264. public string? LowerLimit { get; set; }
  265. }
  266. public class AdoS0QmsFqcInspectionSpecUpsertDto
  267. {
  268. public string? ApplicableModel { get; set; }
  269. [Required(ErrorMessage = "文件编号不能为空")]
  270. public string FileNumber { get; set; } = string.Empty;
  271. public string? VersionNo { get; set; }
  272. public string? EffectiveDate { get; set; }
  273. public string? Attachment { get; set; }
  274. public string? MaterialCode { get; set; }
  275. public string? Attachment2 { get; set; }
  276. public int? Version { get; set; }
  277. public List<AdoS0QmsFqcInspectionSpecEntryDto> Items { get; set; } = [];
  278. }
  279. public class AdoS0QmsOqcInspectionSpecEntryDto
  280. {
  281. public long? Id { get; set; }
  282. public string? OperationCode { get; set; }
  283. public string? OperationName { get; set; }
  284. public string? InspectionItem { get; set; }
  285. public string? InspectionMethod { get; set; }
  286. public string? InspectionSpec { get; set; }
  287. public string? ImageCategory { get; set; }
  288. public string? InspectionFrequency { get; set; }
  289. public string? TechnicalStandard { get; set; }
  290. public long? PeelingForce { get; set; }
  291. public string? UpperLimit { get; set; }
  292. public string? LowerLimit { get; set; }
  293. }
  294. public class AdoS0QmsOqcInspectionSpecUpsertDto
  295. {
  296. public string? ApplicableModel { get; set; }
  297. [Required(ErrorMessage = "文件编号不能为空")]
  298. public string FileNumber { get; set; } = string.Empty;
  299. public string? VersionNo { get; set; }
  300. public string? EffectiveDate { get; set; }
  301. public string? Attachment { get; set; }
  302. public string? MaterialCode { get; set; }
  303. public string? Attachment2 { get; set; }
  304. public int? Version { get; set; }
  305. public List<AdoS0QmsOqcInspectionSpecEntryDto> Items { get; set; } = [];
  306. }