AdoS0QualityEntities.cs 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Quality;
  2. // ========== 单表主数据 ==========
  3. [SugarTable("qms_lymjbmd", "原材料白名单")]
  4. public class AdoS0QmsRawWhitelist
  5. {
  6. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  7. public long Id { get; set; }
  8. [SugarColumn(ColumnName = "gysbm", ColumnDescription = "供应商编码", IsNullable = true, Length = 255)]
  9. public string? SupplierCode { get; set; }
  10. [SugarColumn(ColumnName = "gysmc", ColumnDescription = "供应商名称", IsNullable = true, Length = 255)]
  11. public string? SupplierName { get; set; }
  12. [SugarColumn(ColumnName = "wlbm", ColumnDescription = "物料编码", IsNullable = true, Length = 255)]
  13. public string? MaterialCode { get; set; }
  14. [SugarColumn(ColumnName = "wlmc", ColumnDescription = "物料名称", IsNullable = true, Length = 255)]
  15. public string? MaterialName { get; set; }
  16. [SugarColumn(ColumnName = "dim_type", ColumnDescription = "维度类型(supplier/material/material_supplier)", IsNullable = true, Length = 50)]
  17. public string? DimensionType { get; set; }
  18. }
  19. [SugarTable("qms_sampscheme", "抽样方案")]
  20. public class AdoS0QmsSamplingScheme
  21. {
  22. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  23. public long Id { get; set; }
  24. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  25. public string? Number { get; set; }
  26. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  27. public string? Name { get; set; }
  28. [SugarColumn(ColumnName = "FSAMPLINGTYPE", ColumnDescription = "抽样类型", IsNullable = true, Length = 255)]
  29. public string? SamplingType { get; set; }
  30. [SugarColumn(ColumnName = "FINSPECTIONLEVEL", ColumnDescription = "检验水准", IsNullable = true, Length = 255)]
  31. public string? InspectionLevel { get; set; }
  32. [SugarColumn(ColumnName = "FSTRICTNESS", ColumnDescription = "严格程度", IsNullable = true, Length = 255)]
  33. public string? Strictness { get; set; }
  34. [SugarColumn(ColumnName = "FAQLVALUE", ColumnDescription = "AQL值", IsNullable = true, Length = 255)]
  35. public string? AqlValue { get; set; }
  36. [SugarColumn(ColumnName = "FINSPECTIONTYPE", ColumnDescription = "检验类型", IsNullable = true, Length = 255)]
  37. public string? InspectionType { get; set; }
  38. [SugarColumn(ColumnName = "FINSPECTORGID", ColumnDescription = "检验组织", IsNullable = true, ColumnDataType = "bigint")]
  39. public long? InspectOrgId { get; set; }
  40. [SugarColumn(ColumnName = "FINSPECTUSERID", ColumnDescription = "检验员", IsNullable = true, Length = 255)]
  41. public string? InspectUserId { get; set; }
  42. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  43. public string? Status { get; set; }
  44. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  45. public string? EnableStatus { get; set; }
  46. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  47. public string? Comment { get; set; }
  48. [SugarColumn(ColumnName = "FFIXEDRATE", ColumnDescription = "固定抽样比例(%)", ColumnDataType = "decimal(10,4)", IsNullable = true)]
  49. public decimal? FixedSamplingRate { get; set; }
  50. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  51. public DateTime? CreateTime { get; set; }
  52. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  53. public DateTime? ModifyTime { get; set; }
  54. }
  55. [SugarTable("qms_inspectioninstru", "检验仪器")]
  56. public class AdoS0QmsInspectionInstrument
  57. {
  58. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  59. public long Id { get; set; }
  60. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  61. public string? Number { get; set; }
  62. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  63. public string? Name { get; set; }
  64. [SugarColumn(ColumnName = "FMODEL", ColumnDescription = "型号", IsNullable = true, Length = 255)]
  65. public string? Model { get; set; }
  66. [SugarColumn(ColumnName = "FSPECIFICATION", ColumnDescription = "规格", IsNullable = true, Length = 255)]
  67. public string? Specification { get; set; }
  68. [SugarColumn(ColumnName = "FMANUFACTURER", ColumnDescription = "生产厂家", IsNullable = true, Length = 255)]
  69. public string? Manufacturer { get; set; }
  70. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  71. public string? Status { get; set; }
  72. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  73. public string? EnableStatus { get; set; }
  74. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  75. public string? Comment { get; set; }
  76. [SugarColumn(ColumnName = "gauge_category", ColumnDescription = "计量器具分类", IsNullable = true, Length = 255)]
  77. public string? GaugeCategory { get; set; }
  78. [SugarColumn(ColumnName = "calibration_cycle_days", ColumnDescription = "校准周期(天)", IsNullable = true, ColumnDataType = "int")]
  79. public int? CalibrationCycleDays { get; set; }
  80. [SugarColumn(ColumnName = "next_calibration_date", ColumnDescription = "下次校准日期", IsNullable = true, Length = 50)]
  81. public string? NextCalibrationDate { get; set; }
  82. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  83. public DateTime? CreateTime { get; set; }
  84. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  85. public DateTime? ModifyTime { get; set; }
  86. }
  87. [SugarTable("qms_inspection_method", "检验方法")]
  88. public class AdoS0QmsInspectionMethod
  89. {
  90. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  91. public long Id { get; set; }
  92. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  93. public string? Number { get; set; }
  94. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  95. public string? Name { get; set; }
  96. [SugarColumn(ColumnName = "FCTRLSTRATEGY", ColumnDescription = "控制策略", IsNullable = true, Length = 255)]
  97. public string? ControlStrategy { get; set; }
  98. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  99. public string? Status { get; set; }
  100. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  101. public string? EnableStatus { get; set; }
  102. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  103. public string? Comment { get; set; }
  104. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  105. public DateTime? CreateTime { get; set; }
  106. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  107. public DateTime? ModifyTime { get; set; }
  108. }
  109. [SugarTable("qms_inspectionitems", "检验项目")]
  110. public class AdoS0QmsInspectionItem
  111. {
  112. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  113. public long Id { get; set; }
  114. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  115. public string? Number { get; set; }
  116. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  117. public string? Name { get; set; }
  118. [SugarColumn(ColumnName = "FCHECKMETHOD", ColumnDescription = "检验方法", IsNullable = true, ColumnDataType = "bigint")]
  119. public long? CheckMethodId { get; set; }
  120. [SugarColumn(ColumnName = "FCHECKBASIS", ColumnDescription = "检验依据", IsNullable = true, ColumnDataType = "bigint")]
  121. public long? CheckBasisId { get; set; }
  122. [SugarColumn(ColumnName = "FCHECKINSTRUCT", ColumnDescription = "检验指导书", IsNullable = true, ColumnDataType = "bigint")]
  123. public long? CheckInstructId { get; set; }
  124. [SugarColumn(ColumnName = "FRADIOGROUPFIELD", ColumnDescription = "单选组1", IsNullable = true, Length = 255)]
  125. public string? RadioGroupField { get; set; }
  126. [SugarColumn(ColumnName = "FRADIOGROUPFIELD1", ColumnDescription = "单选组2", IsNullable = true, Length = 255)]
  127. public string? RadioGroupField1 { get; set; }
  128. [SugarColumn(ColumnName = "zblx", ColumnDescription = "指标类型", IsNullable = true, ColumnDataType = "bigint")]
  129. public long? MetricType { get; set; }
  130. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  131. public string? Status { get; set; }
  132. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  133. public string? EnableStatus { get; set; }
  134. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  135. public string? Comment { get; set; }
  136. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  137. public DateTime? CreateTime { get; set; }
  138. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  139. public DateTime? ModifyTime { get; set; }
  140. }
  141. [SugarTable("qms_inspectionfreq", "检验频率")]
  142. public class AdoS0QmsInspectionFrequency
  143. {
  144. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  145. public long Id { get; set; }
  146. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  147. public string? Number { get; set; }
  148. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  149. public string? Name { get; set; }
  150. [SugarColumn(ColumnName = "FREMARK", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  151. public string? Remark { get; set; }
  152. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  153. public string? Status { get; set; }
  154. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  155. public string? EnableStatus { get; set; }
  156. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  157. public DateTime? CreateTime { get; set; }
  158. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  159. public DateTime? ModifyTime { get; set; }
  160. }
  161. // ========== 聚合头表 ==========
  162. [SugarTable("qms_inspectioncrit", "检验依据")]
  163. public class AdoS0QmsInspectionBasis
  164. {
  165. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  166. public long Id { get; set; }
  167. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  168. public string? Number { get; set; }
  169. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  170. public string? Name { get; set; }
  171. [SugarColumn(ColumnName = "FCTRLSTRATEGY", ColumnDescription = "控制策略", IsNullable = true, Length = 255)]
  172. public string? ControlStrategy { get; set; }
  173. [SugarColumn(ColumnName = "FCREATEORGID", ColumnDescription = "创建组织", IsNullable = true, ColumnDataType = "bigint")]
  174. public long? CreateOrgId { get; set; }
  175. [SugarColumn(ColumnName = "FUSEORG", ColumnDescription = "使用组织", IsNullable = true, ColumnDataType = "bigint")]
  176. public long? UseOrgId { get; set; }
  177. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  178. public string? Comment { get; set; }
  179. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  180. public string? Status { get; set; }
  181. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  182. public string? EnableStatus { get; set; }
  183. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  184. public DateTime? CreateTime { get; set; }
  185. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  186. public DateTime? ModifyTime { get; set; }
  187. }
  188. [SugarTable("qms_inspectionstd", "检验标准")]
  189. public class AdoS0QmsInspectionStandard
  190. {
  191. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  192. public long Id { get; set; }
  193. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 30)]
  194. public string? Number { get; set; }
  195. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  196. public string? Name { get; set; }
  197. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  198. public string? Comment { get; set; }
  199. [SugarColumn(ColumnName = "FCTRLSTRATEGY", ColumnDescription = "控制策略", IsNullable = true, Length = 30)]
  200. public string? ControlStrategy { get; set; }
  201. [SugarColumn(ColumnName = "FCREATEORGID", ColumnDescription = "创建组织", IsNullable = true, ColumnDataType = "bigint")]
  202. public long? CreateOrgId { get; set; }
  203. [SugarColumn(ColumnName = "FUSEORG", ColumnDescription = "使用组织", IsNullable = true, ColumnDataType = "bigint")]
  204. public long? UseOrgId { get; set; }
  205. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 30)]
  206. public string? Status { get; set; }
  207. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 30)]
  208. public string? EnableStatus { get; set; }
  209. }
  210. [SugarTable("qms_inspectpro", "检验方案")]
  211. public class AdoS0QmsInspectionPlan
  212. {
  213. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  214. public long Id { get; set; }
  215. [SugarColumn(ColumnName = "FNUMBER", ColumnDescription = "编号", IsNullable = true, Length = 255)]
  216. public string? Number { get; set; }
  217. [SugarColumn(ColumnName = "FNAME", ColumnDescription = "名称", IsNullable = true, Length = 255)]
  218. public string? Name { get; set; }
  219. [SugarColumn(ColumnName = "FBIZSTYPEID", ColumnDescription = "检验业务类型", IsNullable = true, Length = 255)]
  220. public string? BizTypeId { get; set; }
  221. [SugarColumn(ColumnName = "FCOMMENT", ColumnDescription = "备注", IsNullable = true, Length = 255)]
  222. public string? Comment { get; set; }
  223. [SugarColumn(ColumnName = "FCTRLSTRATEGY", ColumnDescription = "控制策略", IsNullable = true, Length = 255)]
  224. public string? ControlStrategy { get; set; }
  225. [SugarColumn(ColumnName = "FCREATEORGID", ColumnDescription = "创建组织", IsNullable = true, ColumnDataType = "bigint")]
  226. public long? CreateOrgId { get; set; }
  227. [SugarColumn(ColumnName = "FUSEORGID", ColumnDescription = "使用组织", IsNullable = true, ColumnDataType = "bigint")]
  228. public long? UseOrgId { get; set; }
  229. [SugarColumn(ColumnName = "FSTATUS", ColumnDescription = "状态", IsNullable = true, Length = 255)]
  230. public string? Status { get; set; }
  231. [SugarColumn(ColumnName = "FENABLE", ColumnDescription = "启用", IsNullable = true, Length = 255)]
  232. public string? EnableStatus { get; set; }
  233. [SugarColumn(ColumnName = "FCREATETIME", ColumnDescription = "创建时间", IsNullable = true)]
  234. public DateTime? CreateTime { get; set; }
  235. [SugarColumn(ColumnName = "FMODIFYTIME", ColumnDescription = "修改时间", IsNullable = true)]
  236. public DateTime? ModifyTime { get; set; }
  237. }
  238. [SugarTable("qms_jygf", "原材料检验规范")]
  239. public class AdoS0QmsRawInspectionSpec
  240. {
  241. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  242. public long Id { get; set; }
  243. [SugarColumn(ColumnName = "wjbh", ColumnDescription = "文件编号", IsNullable = true, Length = 255)]
  244. public string? FileNumber { get; set; }
  245. [SugarColumn(ColumnName = "bb", ColumnDescription = "版本", IsNullable = true, Length = 255)]
  246. public string? VersionNo { get; set; }
  247. [SugarColumn(ColumnName = "th", ColumnDescription = "图号", IsNullable = true, Length = 255)]
  248. public string? DrawingNo { get; set; }
  249. [SugarColumn(ColumnName = "yclmc", ColumnDescription = "原材料名称", IsNullable = true, Length = 255)]
  250. public string? RawMaterialName { get; set; }
  251. [SugarColumn(ColumnName = "wlbm", ColumnDescription = "物料编码", IsNullable = true, Length = 255)]
  252. public string? MaterialCode { get; set; }
  253. [SugarColumn(ColumnName = "sxrq", ColumnDescription = "生效日期", IsNullable = true, Length = 255)]
  254. public string? EffectiveDate { get; set; }
  255. [SugarColumn(ColumnName = "tzbb", ColumnDescription = "图纸版本", IsNullable = true, Length = 255)]
  256. public string? DrawingVersion { get; set; }
  257. [SugarColumn(ColumnName = "czclph", ColumnDescription = "材质/材料牌号", IsNullable = true, Length = 255)]
  258. public string? MaterialGrade { get; set; }
  259. [SugarColumn(ColumnName = "xm", ColumnDescription = "穴/模", IsNullable = true, Length = 255)]
  260. public string? CavityOrMold { get; set; }
  261. [SugarColumn(ColumnName = "fj", ColumnDescription = "附件", IsNullable = true, ColumnDataType = "text")]
  262. public string? Attachment { get; set; }
  263. [SugarColumn(ColumnName = "filename", ColumnDescription = "附件文件名", IsNullable = true, ColumnDataType = "text")]
  264. public string? FileName { get; set; }
  265. [SugarColumn(ColumnName = "title", ColumnDescription = "附件标题", IsNullable = true, Length = 255)]
  266. public string? Title { get; set; }
  267. }
  268. [SugarTable("qms_gcjygf", "过程检验规范")]
  269. public class AdoS0QmsProcessInspectionSpec
  270. {
  271. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  272. public long Id { get; set; }
  273. [SugarColumn(ColumnName = "syxh", ColumnDescription = "适用型号", IsNullable = true, Length = 255)]
  274. public string? ApplicableModel { get; set; }
  275. [SugarColumn(ColumnName = "wjbh", ColumnDescription = "文件编号", IsNullable = true, Length = 255)]
  276. public string? FileNumber { get; set; }
  277. [SugarColumn(ColumnName = "bb", ColumnDescription = "版本", IsNullable = true, Length = 255)]
  278. public string? VersionNo { get; set; }
  279. [SugarColumn(ColumnName = "sxrj", ColumnDescription = "生效日期", IsNullable = true, Length = 255)]
  280. public string? EffectiveDate { get; set; }
  281. [SugarColumn(ColumnName = "fj", ColumnDescription = "附件", IsNullable = true, ColumnDataType = "text")]
  282. public string? Attachment { get; set; }
  283. [SugarColumn(ColumnName = "wlbm", ColumnDescription = "物料编码", IsNullable = true, ColumnDataType = "text")]
  284. public string? MaterialCode { get; set; }
  285. [SugarColumn(ColumnName = "fj2", ColumnDescription = "附件2", IsNullable = true, ColumnDataType = "text")]
  286. public string? Attachment2 { get; set; }
  287. [SugarColumn(ColumnName = "version", ColumnDescription = "版本号", IsNullable = true, ColumnDataType = "int")]
  288. public int? Version { get; set; }
  289. }
  290. [SugarTable("qms_fqcjygf", "FQC检验规范")]
  291. public class AdoS0QmsFqcInspectionSpec
  292. {
  293. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  294. public long Id { get; set; }
  295. [SugarColumn(ColumnName = "syxh", ColumnDescription = "适用型号", IsNullable = true, Length = 255)]
  296. public string? ApplicableModel { get; set; }
  297. [SugarColumn(ColumnName = "wjbh", ColumnDescription = "文件编号", IsNullable = true, Length = 255)]
  298. public string? FileNumber { get; set; }
  299. [SugarColumn(ColumnName = "bb", ColumnDescription = "版本", IsNullable = true, Length = 255)]
  300. public string? VersionNo { get; set; }
  301. [SugarColumn(ColumnName = "sxrj", ColumnDescription = "生效日期", IsNullable = true, Length = 255)]
  302. public string? EffectiveDate { get; set; }
  303. [SugarColumn(ColumnName = "fj", ColumnDescription = "附件", IsNullable = true, ColumnDataType = "text")]
  304. public string? Attachment { get; set; }
  305. [SugarColumn(ColumnName = "wlbm", ColumnDescription = "物料编码", IsNullable = true, ColumnDataType = "text")]
  306. public string? MaterialCode { get; set; }
  307. [SugarColumn(ColumnName = "fj2", ColumnDescription = "附件2", IsNullable = true, ColumnDataType = "text")]
  308. public string? Attachment2 { get; set; }
  309. [SugarColumn(ColumnName = "version", ColumnDescription = "版本号", IsNullable = true, ColumnDataType = "int")]
  310. public int? Version { get; set; }
  311. }
  312. [SugarTable("qms_oqcjygf", "OQC检验规范")]
  313. public class AdoS0QmsOqcInspectionSpec
  314. {
  315. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  316. public long Id { get; set; }
  317. [SugarColumn(ColumnName = "syxh", ColumnDescription = "适用型号", IsNullable = true, Length = 255)]
  318. public string? ApplicableModel { get; set; }
  319. [SugarColumn(ColumnName = "wjbh", ColumnDescription = "文件编号", IsNullable = true, Length = 255)]
  320. public string? FileNumber { get; set; }
  321. [SugarColumn(ColumnName = "bb", ColumnDescription = "版本", IsNullable = true, Length = 255)]
  322. public string? VersionNo { get; set; }
  323. [SugarColumn(ColumnName = "sxrj", ColumnDescription = "生效日期", IsNullable = true, Length = 255)]
  324. public string? EffectiveDate { get; set; }
  325. [SugarColumn(ColumnName = "fj", ColumnDescription = "附件", IsNullable = true, ColumnDataType = "text")]
  326. public string? Attachment { get; set; }
  327. [SugarColumn(ColumnName = "wlbm", ColumnDescription = "物料编码", IsNullable = true, ColumnDataType = "text")]
  328. public string? MaterialCode { get; set; }
  329. [SugarColumn(ColumnName = "fj2", ColumnDescription = "附件2", IsNullable = true, ColumnDataType = "text")]
  330. public string? Attachment2 { get; set; }
  331. [SugarColumn(ColumnName = "version", ColumnDescription = "版本号", IsNullable = true, ColumnDataType = "int")]
  332. public int? Version { get; set; }
  333. }
  334. // ========== 聚合子表 ==========
  335. [SugarTable("qms_inspeccrit_entry", "检验依据-技术文档")]
  336. public class AdoS0QmsInspectionBasisEntry
  337. {
  338. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  339. public long Id { get; set; }
  340. [SugarColumn(ColumnName = "glid", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  341. public long? MasterId { get; set; }
  342. [SugarColumn(ColumnName = "FSEQ", ColumnDescription = "序号", IsNullable = true, ColumnDataType = "bigint")]
  343. public long? Seq { get; set; }
  344. [SugarColumn(ColumnName = "FWORDNUM", ColumnDescription = "文档编号", IsNullable = true, Length = 255)]
  345. public string? DocumentNumber { get; set; }
  346. [SugarColumn(ColumnName = "FWORDNAME", ColumnDescription = "文档名称", IsNullable = true, Length = 255)]
  347. public string? DocumentName { get; set; }
  348. [SugarColumn(ColumnName = "FJ", ColumnDescription = "附件", IsNullable = true, Length = 255)]
  349. public string? Attachment { get; set; }
  350. }
  351. [SugarTable("qms_inspectionstdentry", "检验标准-检验项目")]
  352. public class AdoS0QmsInspectionStandardEntry
  353. {
  354. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  355. public long Id { get; set; }
  356. [SugarColumn(ColumnName = "FENTRYID", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  357. public long? MasterId { get; set; }
  358. [SugarColumn(ColumnName = "FSEQ", ColumnDescription = "序号", IsNullable = true, ColumnDataType = "bigint")]
  359. public long? Seq { get; set; }
  360. [SugarColumn(ColumnName = "FCHECKITEMS", ColumnDescription = "检验项目", IsNullable = true, Length = 255)]
  361. public string? CheckItems { get; set; }
  362. [SugarColumn(ColumnName = "FCHECKCONTENT", ColumnDescription = "检验内容", IsNullable = true, Length = 255)]
  363. public string? CheckContent { get; set; }
  364. [SugarColumn(ColumnName = "FNORMTYPE", ColumnDescription = "比较符", IsNullable = true, Length = 255)]
  365. public string? NormType { get; set; }
  366. [SugarColumn(ColumnName = "FSPECVALUE", ColumnDescription = "标准", IsNullable = true, Length = 255)]
  367. public string? SpecValue { get; set; }
  368. [SugarColumn(ColumnName = "FTOPVALUE", ColumnDescription = "上限", IsNullable = true, ColumnDataType = "decimal(23,10)")]
  369. public decimal? TopValue { get; set; }
  370. [SugarColumn(ColumnName = "FDOWNVALUE", ColumnDescription = "下限", IsNullable = true, ColumnDataType = "decimal(23,10)")]
  371. public decimal? DownValue { get; set; }
  372. [SugarColumn(ColumnName = "FCHECKBASIS", ColumnDescription = "检验依据", IsNullable = true, ColumnDataType = "bigint")]
  373. public long? CheckBasisId { get; set; }
  374. [SugarColumn(ColumnName = "FCHECKMETHOD", ColumnDescription = "检验方法", IsNullable = true, ColumnDataType = "bigint")]
  375. public long? CheckMethodId { get; set; }
  376. [SugarColumn(ColumnName = "FCHECKFREQ", ColumnDescription = "检验频率", IsNullable = true, ColumnDataType = "bigint")]
  377. public long? CheckFrequencyId { get; set; }
  378. [SugarColumn(ColumnName = "FCHECKINSTRUCT", ColumnDescription = "检验指导书", IsNullable = true, ColumnDataType = "bigint")]
  379. public long? CheckInstructId { get; set; }
  380. [SugarColumn(ColumnName = "FUNITLD", ColumnDescription = "单位", IsNullable = true, Length = 255)]
  381. public string? Unit { get; set; }
  382. [SugarColumn(ColumnName = "FKEYQUALITY", ColumnDescription = "关键质量", IsNullable = true, ColumnDataType = "bigint")]
  383. public long? KeyQuality { get; set; }
  384. }
  385. [SugarTable("qms_inspro_ent", "检验方案-方案设置")]
  386. public class AdoS0QmsInspectionPlanEntry
  387. {
  388. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  389. public long Id { get; set; }
  390. [SugarColumn(ColumnName = "glid", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  391. public long? MasterId { get; set; }
  392. [SugarColumn(ColumnName = "FSEQ", ColumnDescription = "序号", IsNullable = true, ColumnDataType = "int")]
  393. public int? Seq { get; set; }
  394. [SugarColumn(ColumnName = "FSETUPTYPE", ColumnDescription = "设置类型", IsNullable = true, Length = 255)]
  395. public string? SetupType { get; set; }
  396. [SugarColumn(ColumnName = "FMATERIELID", ColumnDescription = "物料编码", IsNullable = true, Length = 255)]
  397. public string? MaterialCode { get; set; }
  398. [SugarColumn(ColumnName = "wlmc", ColumnDescription = "物料名称", IsNullable = true, Length = 255)]
  399. public string? MaterialName { get; set; }
  400. [SugarColumn(ColumnName = "FMATERIELTYPEID", ColumnDescription = "物料分类", IsNullable = true, ColumnDataType = "bigint")]
  401. public long? MaterialTypeId { get; set; }
  402. [SugarColumn(ColumnName = "FSUPPLIERID", ColumnDescription = "供应商", IsNullable = true, Length = 255)]
  403. public string? SupplierId { get; set; }
  404. [SugarColumn(ColumnName = "FSAMPLEPROID", ColumnDescription = "抽样方案", IsNullable = true, ColumnDataType = "bigint")]
  405. public long? SamplingSchemeId { get; set; }
  406. [SugarColumn(ColumnName = "FINSPECTSTDID", ColumnDescription = "检验标准", IsNullable = true, ColumnDataType = "bigint")]
  407. public long? InspectionStandardId { get; set; }
  408. [SugarColumn(ColumnName = "FINSPECTORGID", ColumnDescription = "检验组织", IsNullable = true, ColumnDataType = "bigint")]
  409. public long? InspectOrgId { get; set; }
  410. [SugarColumn(ColumnName = "FINSPECTUSERID", ColumnDescription = "检验员", IsNullable = true, ColumnDataType = "bigint")]
  411. public long? InspectUserId { get; set; }
  412. [SugarColumn(ColumnName = "FQROUTEID", ColumnDescription = "工艺路线", IsNullable = true, ColumnDataType = "bigint")]
  413. public long? QRouteId { get; set; }
  414. [SugarColumn(ColumnName = "FOPERATIONNO", ColumnDescription = "工序号", IsNullable = true, Length = 255)]
  415. public string? OperationNo { get; set; }
  416. [SugarColumn(ColumnName = "FOPROPERATION", ColumnDescription = "工序", IsNullable = true, ColumnDataType = "bigint")]
  417. public long? OperationId { get; set; }
  418. [SugarColumn(ColumnName = "FWSTRSPROID", ColumnDescription = "检验频率", IsNullable = true, ColumnDataType = "bigint")]
  419. public long? InspectionFrequencyId { get; set; }
  420. [SugarColumn(ColumnName = "FROCESSSEQ", ColumnDescription = "工序顺序", IsNullable = true, Length = 255)]
  421. public string? ProcessSeq { get; set; }
  422. [SugarColumn(ColumnName = "jylx", ColumnDescription = "检验类型", IsNullable = true, ColumnDataType = "bigint")]
  423. public long? InspectionType { get; set; }
  424. }
  425. [SugarTable("qms_jygfzb", "原材料检验规范-检验明细")]
  426. public class AdoS0QmsRawInspectionSpecEntry
  427. {
  428. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  429. public long Id { get; set; }
  430. [SugarColumn(ColumnName = "glid", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  431. public long? MasterId { get; set; }
  432. [SugarColumn(ColumnName = "xh", ColumnDescription = "序号", IsNullable = true, ColumnDataType = "int")]
  433. public int? Seq { get; set; }
  434. [SugarColumn(ColumnName = "jyxm", ColumnDescription = "检验项目", IsNullable = true, ColumnDataType = "text")]
  435. public string? InspectionItem { get; set; }
  436. [SugarColumn(ColumnName = "jybz", ColumnDescription = "检验标准", IsNullable = true, ColumnDataType = "text")]
  437. public string? InspectionStandard { get; set; }
  438. [SugarColumn(ColumnName = "jygjjyff", ColumnDescription = "检验工具/检验方法", IsNullable = true, ColumnDataType = "text")]
  439. public string? InspectionMethod { get; set; }
  440. [SugarColumn(ColumnName = "txfl", ColumnDescription = "图像分类", IsNullable = true, ColumnDataType = "text")]
  441. public string? ImageCategory { get; set; }
  442. [SugarColumn(ColumnName = "cyfa", ColumnDescription = "抽样方案", IsNullable = true, ColumnDataType = "text")]
  443. public string? SamplingScheme { get; set; }
  444. [SugarColumn(ColumnName = "zs", ColumnDescription = "注释", IsNullable = true, ColumnDataType = "text")]
  445. public string? Remark { get; set; }
  446. [SugarColumn(ColumnName = "fj", ColumnDescription = "附件", IsNullable = true, ColumnDataType = "text")]
  447. public string? Attachment { get; set; }
  448. [SugarColumn(ColumnName = "sx", ColumnDescription = "上限", IsNullable = true, Length = 50)]
  449. public string? UpperLimit { get; set; }
  450. [SugarColumn(ColumnName = "xx", ColumnDescription = "下限", IsNullable = true, Length = 50)]
  451. public string? LowerLimit { get; set; }
  452. }
  453. [SugarTable("qms_gcjygfzb", "过程检验规范-检验明细")]
  454. public class AdoS0QmsProcessInspectionSpecEntry
  455. {
  456. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  457. public long Id { get; set; }
  458. [SugarColumn(ColumnName = "glid", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  459. public long? MasterId { get; set; }
  460. [SugarColumn(ColumnName = "gxdh", ColumnDescription = "工序代号", IsNullable = true, ColumnDataType = "text")]
  461. public string? OperationCode { get; set; }
  462. [SugarColumn(ColumnName = "gxmc", ColumnDescription = "工序名称", IsNullable = true, ColumnDataType = "text")]
  463. public string? OperationName { get; set; }
  464. [SugarColumn(ColumnName = "jyxm", ColumnDescription = "检验项目", IsNullable = true, ColumnDataType = "text")]
  465. public string? InspectionItem { get; set; }
  466. [SugarColumn(ColumnName = "jyff", ColumnDescription = "检验方法", IsNullable = true, ColumnDataType = "text")]
  467. public string? InspectionMethod { get; set; }
  468. [SugarColumn(ColumnName = "jygg", ColumnDescription = "检验规格", IsNullable = true, ColumnDataType = "text")]
  469. public string? InspectionSpec { get; set; }
  470. [SugarColumn(ColumnName = "txfl", ColumnDescription = "图像分类", IsNullable = true, ColumnDataType = "text")]
  471. public string? ImageCategory { get; set; }
  472. [SugarColumn(ColumnName = "jypc", ColumnDescription = "检验频次", IsNullable = true, ColumnDataType = "text")]
  473. public string? InspectionFrequency { get; set; }
  474. [SugarColumn(ColumnName = "jsbz", ColumnDescription = "技术标准", IsNullable = true, ColumnDataType = "text")]
  475. public string? TechnicalStandard { get; set; }
  476. [SugarColumn(ColumnName = "PeelingForce", ColumnDescription = "PeelingForce", IsNullable = true, ColumnDataType = "bigint")]
  477. public long? PeelingForce { get; set; }
  478. [SugarColumn(ColumnName = "sx", ColumnDescription = "上限", IsNullable = true, Length = 50)]
  479. public string? UpperLimit { get; set; }
  480. [SugarColumn(ColumnName = "xx", ColumnDescription = "下限", IsNullable = true, Length = 50)]
  481. public string? LowerLimit { get; set; }
  482. }
  483. [SugarTable("qms_fqcjygfzb", "FQC检验规范-检验明细")]
  484. public class AdoS0QmsFqcInspectionSpecEntry
  485. {
  486. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  487. public long Id { get; set; }
  488. [SugarColumn(ColumnName = "glid", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  489. public long? MasterId { get; set; }
  490. [SugarColumn(ColumnName = "gxdh", ColumnDescription = "工序代号", IsNullable = true, ColumnDataType = "text")]
  491. public string? OperationCode { get; set; }
  492. [SugarColumn(ColumnName = "gxmc", ColumnDescription = "工序名称", IsNullable = true, ColumnDataType = "text")]
  493. public string? OperationName { get; set; }
  494. [SugarColumn(ColumnName = "jyxm", ColumnDescription = "检验项目", IsNullable = true, ColumnDataType = "text")]
  495. public string? InspectionItem { get; set; }
  496. [SugarColumn(ColumnName = "jyff", ColumnDescription = "检验方法", IsNullable = true, ColumnDataType = "text")]
  497. public string? InspectionMethod { get; set; }
  498. [SugarColumn(ColumnName = "jygg", ColumnDescription = "检验规格", IsNullable = true, ColumnDataType = "text")]
  499. public string? InspectionSpec { get; set; }
  500. [SugarColumn(ColumnName = "txfl", ColumnDescription = "图像分类", IsNullable = true, ColumnDataType = "text")]
  501. public string? ImageCategory { get; set; }
  502. [SugarColumn(ColumnName = "jypc", ColumnDescription = "检验频次", IsNullable = true, ColumnDataType = "text")]
  503. public string? InspectionFrequency { get; set; }
  504. [SugarColumn(ColumnName = "jsbz", ColumnDescription = "技术标准", IsNullable = true, ColumnDataType = "text")]
  505. public string? TechnicalStandard { get; set; }
  506. [SugarColumn(ColumnName = "PeelingForce", ColumnDescription = "PeelingForce", IsNullable = true, ColumnDataType = "bigint")]
  507. public long? PeelingForce { get; set; }
  508. [SugarColumn(ColumnName = "sx", ColumnDescription = "上限", IsNullable = true, Length = 50)]
  509. public string? UpperLimit { get; set; }
  510. [SugarColumn(ColumnName = "xx", ColumnDescription = "下限", IsNullable = true, Length = 50)]
  511. public string? LowerLimit { get; set; }
  512. }
  513. [SugarTable("qms_oqcjygfzb", "OQC检验规范-检验明细")]
  514. public class AdoS0QmsOqcInspectionSpecEntry
  515. {
  516. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  517. public long Id { get; set; }
  518. [SugarColumn(ColumnName = "glid", ColumnDescription = "主表ID", IsNullable = true, ColumnDataType = "bigint")]
  519. public long? MasterId { get; set; }
  520. [SugarColumn(ColumnName = "gxdh", ColumnDescription = "工序代号", IsNullable = true, ColumnDataType = "text")]
  521. public string? OperationCode { get; set; }
  522. [SugarColumn(ColumnName = "gxmc", ColumnDescription = "工序名称", IsNullable = true, ColumnDataType = "text")]
  523. public string? OperationName { get; set; }
  524. [SugarColumn(ColumnName = "jyxm", ColumnDescription = "检验项目", IsNullable = true, ColumnDataType = "text")]
  525. public string? InspectionItem { get; set; }
  526. [SugarColumn(ColumnName = "jyff", ColumnDescription = "检验方法", IsNullable = true, ColumnDataType = "text")]
  527. public string? InspectionMethod { get; set; }
  528. [SugarColumn(ColumnName = "jygg", ColumnDescription = "检验规格", IsNullable = true, ColumnDataType = "text")]
  529. public string? InspectionSpec { get; set; }
  530. [SugarColumn(ColumnName = "txfl", ColumnDescription = "图像分类", IsNullable = true, ColumnDataType = "text")]
  531. public string? ImageCategory { get; set; }
  532. [SugarColumn(ColumnName = "jypc", ColumnDescription = "检验频次", IsNullable = true, ColumnDataType = "text")]
  533. public string? InspectionFrequency { get; set; }
  534. [SugarColumn(ColumnName = "jsbz", ColumnDescription = "技术标准", IsNullable = true, ColumnDataType = "text")]
  535. public string? TechnicalStandard { get; set; }
  536. [SugarColumn(ColumnName = "PeelingForce", ColumnDescription = "PeelingForce", IsNullable = true, ColumnDataType = "bigint")]
  537. public long? PeelingForce { get; set; }
  538. [SugarColumn(ColumnName = "sx", ColumnDescription = "上限", IsNullable = true, Length = 50)]
  539. public string? UpperLimit { get; set; }
  540. [SugarColumn(ColumnName = "xx", ColumnDescription = "下限", IsNullable = true, Length = 50)]
  541. public string? LowerLimit { get; set; }
  542. }
  543. [SugarTable("qms_quality_base_type", "质量基础主数据")]
  544. public class AdoS0QmsQualityBaseType
  545. {
  546. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  547. public long Id { get; set; }
  548. [SugarColumn(ColumnName = "type_category", Length = 100)]
  549. public string TypeCategory { get; set; } = string.Empty;
  550. [SugarColumn(ColumnName = "type_code", Length = 100)]
  551. public string TypeCode { get; set; } = string.Empty;
  552. [SugarColumn(ColumnName = "short_name", Length = 200)]
  553. public string ShortName { get; set; } = string.Empty;
  554. [SugarColumn(ColumnName = "full_name", Length = 255, IsNullable = true)]
  555. public string? FullName { get; set; }
  556. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  557. public bool IsActive { get; set; } = true;
  558. [SugarColumn(ColumnName = "remark", Length = 500, IsNullable = true)]
  559. public string? Remark { get; set; }
  560. [SugarColumn(ColumnName = "create_time", IsNullable = true)]
  561. public DateTime? CreateTime { get; set; }
  562. [SugarColumn(ColumnName = "modify_time", IsNullable = true)]
  563. public DateTime? ModifyTime { get; set; }
  564. }