AdoS0MfgMastersAndSop.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
  2. [SugarTable("ado_s0_mfg_person_skill_assignment", "S0 人员技能分配")]
  3. public class AdoS0MfgPersonSkillAssignment
  4. {
  5. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  8. public long CompanyRefId { get; set; }
  9. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  10. public long FactoryRefId { get; set; }
  11. [SugarColumn(ColumnDescription = "人员编码", Length = 100)]
  12. public string PersonCode { get; set; } = string.Empty;
  13. [SugarColumn(ColumnDescription = "工作组", Length = 100, IsNullable = true)]
  14. public string? WorkGroup { get; set; }
  15. [SugarColumn(ColumnDescription = "技能", ColumnDataType = "bigint")]
  16. public long SkillId { get; set; }
  17. [SugarColumn(ColumnDescription = "技能等级")]
  18. public int SkillLevel { get; set; }
  19. [SugarColumn(ColumnDescription = "生产效率", DecimalDigits = 5, Length = 18)]
  20. public decimal ProductionEfficiency { get; set; } = 1m;
  21. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  22. public string? Remark { get; set; }
  23. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  24. public bool IsEnabled { get; set; } = true;
  25. [SugarColumn(ColumnDescription = "创建时间")]
  26. public DateTime CreatedAt { get; set; } = DateTime.Now;
  27. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  28. public DateTime? UpdatedAt { get; set; }
  29. }
  30. [SugarTable("ado_s0_mfg_material_substitution", "S0 物料替代")]
  31. public class AdoS0MfgMaterialSubstitution
  32. {
  33. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  34. public long Id { get; set; }
  35. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  36. public long CompanyRefId { get; set; }
  37. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  38. public long FactoryRefId { get; set; }
  39. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  40. public long MaterialId { get; set; }
  41. [SugarColumn(ColumnDescription = "替代物料", ColumnDataType = "bigint")]
  42. public long SubstituteMaterialId { get; set; }
  43. [SugarColumn(ColumnDescription = "替代比例", DecimalDigits = 5, Length = 18)]
  44. public decimal SubstituteRatio { get; set; } = 1m;
  45. [SugarColumn(ColumnDescription = "优先级")]
  46. public int Priority { get; set; }
  47. [SugarColumn(ColumnDescription = "父物料", ColumnDataType = "bigint", IsNullable = true)]
  48. public long? ParentMaterialId { get; set; }
  49. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  50. public string? Remark { get; set; }
  51. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  52. public bool IsEnabled { get; set; } = true;
  53. [SugarColumn(ColumnDescription = "创建时间")]
  54. public DateTime CreatedAt { get; set; } = DateTime.Now;
  55. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  56. public DateTime? UpdatedAt { get; set; }
  57. }
  58. [SugarTable("ado_s0_mfg_work_order_control", "S0 工单控制参数")]
  59. [SugarIndex("uk_ado_s0_mfg_woc_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  60. public class AdoS0MfgWorkOrderControl
  61. {
  62. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  63. public long Id { get; set; }
  64. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  65. public long CompanyRefId { get; set; }
  66. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  67. public long FactoryRefId { get; set; }
  68. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  69. public string Code { get; set; } = string.Empty;
  70. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  71. public string Name { get; set; } = string.Empty;
  72. [SugarColumn(ColumnDescription = "控制类型", Length = 50, IsNullable = true)]
  73. public string? ControlType { get; set; }
  74. [SugarColumn(ColumnDescription = "参数值", Length = 500, IsNullable = true)]
  75. public string? ParamValue { get; set; }
  76. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  77. public string? Remark { get; set; }
  78. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  79. public bool IsEnabled { get; set; } = true;
  80. [SugarColumn(ColumnDescription = "创建时间")]
  81. public DateTime CreatedAt { get; set; } = DateTime.Now;
  82. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  83. public DateTime? UpdatedAt { get; set; }
  84. }
  85. [SugarTable("ado_s0_mfg_person_skill", "S0 人员技能主数据")]
  86. [SugarIndex("uk_ado_s0_mfg_ps_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  87. public class AdoS0MfgPersonSkill
  88. {
  89. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  90. public long Id { get; set; }
  91. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  92. public long CompanyRefId { get; set; }
  93. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  94. public long FactoryRefId { get; set; }
  95. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  96. public string Code { get; set; } = string.Empty;
  97. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  98. public string Name { get; set; } = string.Empty;
  99. [SugarColumn(ColumnDescription = "技能等级", Length = 50, IsNullable = true)]
  100. public string? SkillLevel { get; set; }
  101. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  102. public string? Remark { get; set; }
  103. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  104. public bool IsEnabled { get; set; } = true;
  105. [SugarColumn(ColumnDescription = "创建时间")]
  106. public DateTime CreatedAt { get; set; } = DateTime.Now;
  107. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  108. public DateTime? UpdatedAt { get; set; }
  109. }
  110. [SugarTable("ado_s0_mfg_line_post", "S0 线体岗位")]
  111. [SugarIndex("uk_ado_s0_mfg_lp_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  112. public class AdoS0MfgLinePost
  113. {
  114. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  115. public long Id { get; set; }
  116. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  117. public long CompanyRefId { get; set; }
  118. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  119. public long FactoryRefId { get; set; }
  120. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  121. public string Code { get; set; } = string.Empty;
  122. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  123. public string Name { get; set; } = string.Empty;
  124. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  125. public long? ProductionLineId { get; set; }
  126. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  127. public string? Remark { get; set; }
  128. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  129. public bool IsEnabled { get; set; } = true;
  130. [SugarColumn(ColumnDescription = "创建时间")]
  131. public DateTime CreatedAt { get; set; } = DateTime.Now;
  132. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  133. public DateTime? UpdatedAt { get; set; }
  134. }
  135. [SugarTable("ado_s0_mfg_line_post_skill", "S0 线体岗位技能")]
  136. public class AdoS0MfgLinePostSkill
  137. {
  138. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  139. public long Id { get; set; }
  140. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  141. public long CompanyRefId { get; set; }
  142. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  143. public long FactoryRefId { get; set; }
  144. [SugarColumn(ColumnDescription = "岗位", ColumnDataType = "bigint")]
  145. public long LinePostId { get; set; }
  146. [SugarColumn(ColumnDescription = "人员技能", ColumnDataType = "bigint")]
  147. public long PersonSkillId { get; set; }
  148. [SugarColumn(ColumnDescription = "要求等级", Length = 50, IsNullable = true)]
  149. public string? RequiredLevel { get; set; }
  150. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  151. public string? Remark { get; set; }
  152. [SugarColumn(ColumnDescription = "生效日期", IsNullable = true)]
  153. public DateTime? EffectiveDate { get; set; }
  154. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  155. public bool IsEnabled { get; set; } = true;
  156. [SugarColumn(ColumnDescription = "创建时间")]
  157. public DateTime CreatedAt { get; set; } = DateTime.Now;
  158. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  159. public DateTime? UpdatedAt { get; set; }
  160. }
  161. [SugarTable("ado_s0_mfg_work_center", "S0 工作中心")]
  162. [SugarIndex("uk_ado_s0_mfg_wc_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  163. public class AdoS0MfgWorkCenter
  164. {
  165. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  166. public long Id { get; set; }
  167. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  168. public long CompanyRefId { get; set; }
  169. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  170. public long FactoryRefId { get; set; }
  171. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  172. public string Code { get; set; } = string.Empty;
  173. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  174. public string Name { get; set; } = string.Empty;
  175. [SugarColumn(ColumnDescription = "中心类型", Length = 50, IsNullable = true)]
  176. public string? CenterType { get; set; }
  177. [SugarColumn(ColumnDescription = "产能", DecimalDigits = 5, Length = 18, IsNullable = true)]
  178. public decimal? Capacity { get; set; }
  179. [SugarColumn(ColumnDescription = "部门", ColumnDataType = "bigint", IsNullable = true)]
  180. public long? DepartmentId { get; set; }
  181. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  182. public string? Remark { get; set; }
  183. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  184. public bool IsEnabled { get; set; } = true;
  185. [SugarColumn(ColumnDescription = "创建时间")]
  186. public DateTime CreatedAt { get; set; } = DateTime.Now;
  187. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  188. public DateTime? UpdatedAt { get; set; }
  189. }
  190. [SugarTable("ado_s0_mfg_line_material", "S0 线边物料")]
  191. public class AdoS0MfgLineMaterial
  192. {
  193. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  194. public long Id { get; set; }
  195. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  196. public long CompanyRefId { get; set; }
  197. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  198. public long FactoryRefId { get; set; }
  199. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  200. public long? ProductionLineId { get; set; }
  201. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  202. public long MaterialId { get; set; }
  203. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint", IsNullable = true)]
  204. public long? OperationId { get; set; }
  205. [SugarColumn(ColumnDescription = "工作中心", ColumnDataType = "bigint", IsNullable = true)]
  206. public long? WorkCenterId { get; set; }
  207. [SugarColumn(ColumnDescription = "设备编码", Length = 100, IsNullable = true)]
  208. public string? EquipmentCode { get; set; }
  209. [SugarColumn(ColumnDescription = "标准产能", DecimalDigits = 5, Length = 18, IsNullable = true)]
  210. public decimal? StdCapacityPerUnit { get; set; }
  211. [SugarColumn(ColumnDescription = "换型时间", DecimalDigits = 5, Length = 18, IsNullable = true)]
  212. public decimal? ChangeoverTime { get; set; }
  213. [SugarColumn(ColumnDescription = "设备类型", Length = 50, IsNullable = true)]
  214. public string? EquipmentTypeCode { get; set; }
  215. [SugarColumn(ColumnDescription = "模具类型", Length = 50, IsNullable = true)]
  216. public string? MoldTypeCode { get; set; }
  217. [SugarColumn(ColumnDescription = "要求技能编码", Length = 100, IsNullable = true)]
  218. public string? RequiredSkillCode { get; set; }
  219. [SugarColumn(ColumnDescription = "物料角色", Length = 50, IsNullable = true)]
  220. public string? MaterialRole { get; set; }
  221. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  222. public string? Remark { get; set; }
  223. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  224. public bool IsEnabled { get; set; } = true;
  225. [SugarColumn(ColumnDescription = "创建时间")]
  226. public DateTime CreatedAt { get; set; } = DateTime.Now;
  227. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  228. public DateTime? UpdatedAt { get; set; }
  229. }
  230. [SugarTable("ado_s0_mfg_element_param", "S0 生产要素参数")]
  231. [SugarIndex("uk_ado_s0_mfg_ep_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(ElementCategory), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  232. public class AdoS0MfgElementParam
  233. {
  234. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  235. public long Id { get; set; }
  236. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  237. public long CompanyRefId { get; set; }
  238. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  239. public long FactoryRefId { get; set; }
  240. [SugarColumn(ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  241. public string? ElementCode { get; set; }
  242. [SugarColumn(ColumnDescription = "要素名称", Length = 200, IsNullable = true)]
  243. public string? ElementName { get; set; }
  244. [SugarColumn(ColumnDescription = "要素分类", Length = 50, IsNullable = true)]
  245. public string? ElementCategory { get; set; }
  246. [SugarColumn(ColumnDescription = "参数编码", Length = 100)]
  247. public string Code { get; set; } = string.Empty;
  248. [SugarColumn(ColumnDescription = "参数名称", Length = 200)]
  249. public string Name { get; set; } = string.Empty;
  250. [SugarColumn(ColumnDescription = "值类型", Length = 50, IsNullable = true)]
  251. public string? ParamType { get; set; }
  252. [SugarColumn(ColumnDescription = "单位", Length = 50, IsNullable = true)]
  253. public string? Unit { get; set; }
  254. [SugarColumn(ColumnDescription = "标准值", Length = 200, IsNullable = true)]
  255. public string? StdValue { get; set; }
  256. [SugarColumn(ColumnDescription = "上限", DecimalDigits = 6, Length = 18, IsNullable = true)]
  257. public decimal? UpperLimit { get; set; }
  258. [SugarColumn(ColumnDescription = "下限", DecimalDigits = 6, Length = 18, IsNullable = true)]
  259. public decimal? LowerLimit { get; set; }
  260. [SugarColumn(ColumnDescription = "枚举选项", Length = 2000, IsNullable = true)]
  261. public string? EnumOptions { get; set; }
  262. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  263. public string? Remark { get; set; }
  264. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  265. public bool IsEnabled { get; set; } = true;
  266. [SugarColumn(ColumnDescription = "创建时间")]
  267. public DateTime CreatedAt { get; set; } = DateTime.Now;
  268. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  269. public DateTime? UpdatedAt { get; set; }
  270. }
  271. [SugarTable("ado_s0_mfg_material_process_element", "S0 物料工艺要素")]
  272. public class AdoS0MfgMaterialProcessElement
  273. {
  274. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  275. public long Id { get; set; }
  276. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  277. public long CompanyRefId { get; set; }
  278. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  279. public long FactoryRefId { get; set; }
  280. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  281. public long MaterialId { get; set; }
  282. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint")]
  283. public long OperationId { get; set; }
  284. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  285. public long? ProductionLineId { get; set; }
  286. [SugarColumn(ColumnDescription = "要素类型", Length = 50, IsNullable = true)]
  287. public string? ElementType { get; set; }
  288. [SugarColumn(ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  289. public string? ElementCode { get; set; }
  290. [SugarColumn(ColumnDescription = "要素名称", Length = 200, IsNullable = true)]
  291. public string? ElementName { get; set; }
  292. [SugarColumn(ColumnDescription = "要素参数", ColumnDataType = "bigint")]
  293. public long ElementParamId { get; set; }
  294. [SugarColumn(ColumnDescription = "参数值", Length = 500, IsNullable = true)]
  295. public string? ParamValue { get; set; }
  296. [SugarColumn(ColumnDescription = "关键要素", ColumnDataType = "boolean")]
  297. public bool IsKeyElement { get; set; }
  298. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  299. public string? Remark { get; set; }
  300. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  301. public bool IsEnabled { get; set; } = true;
  302. [SugarColumn(ColumnDescription = "创建时间")]
  303. public DateTime CreatedAt { get; set; } = DateTime.Now;
  304. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  305. public DateTime? UpdatedAt { get; set; }
  306. }
  307. [SugarTable("ado_s0_mfg_preprocess_element", "S0 前处理要素头")]
  308. [SugarIndex("uk_ado_s0_mfg_ppe_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  309. public class AdoS0MfgPreprocessElement
  310. {
  311. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  312. public long Id { get; set; }
  313. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  314. public long CompanyRefId { get; set; }
  315. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  316. public long FactoryRefId { get; set; }
  317. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  318. public string Code { get; set; } = string.Empty;
  319. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  320. public string Name { get; set; } = string.Empty;
  321. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint", IsNullable = true)]
  322. public long? MaterialId { get; set; }
  323. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint", IsNullable = true)]
  324. public long? OperationId { get; set; }
  325. [SugarColumn(ColumnDescription = "关键要素", ColumnDataType = "boolean")]
  326. public bool IsKeyElement { get; set; }
  327. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  328. public string? Remark { get; set; }
  329. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  330. public bool IsEnabled { get; set; } = true;
  331. [SugarColumn(ColumnDescription = "创建时间")]
  332. public DateTime CreatedAt { get; set; } = DateTime.Now;
  333. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  334. public DateTime? UpdatedAt { get; set; }
  335. }
  336. [SugarTable("ado_s0_mfg_preprocess_element_param", "S0 前处理要素参数行")]
  337. public class AdoS0MfgPreprocessElementParam
  338. {
  339. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  340. public long Id { get; set; }
  341. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  342. public long CompanyRefId { get; set; }
  343. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  344. public long FactoryRefId { get; set; }
  345. [SugarColumn(ColumnDescription = "前处理要素", ColumnDataType = "bigint")]
  346. public long PreprocessElementId { get; set; }
  347. [SugarColumn(ColumnDescription = "要素参数", ColumnDataType = "bigint")]
  348. public long ElementParamId { get; set; }
  349. [SugarColumn(ColumnDescription = "参数值", Length = 500, IsNullable = true)]
  350. public string? ParamValue { get; set; }
  351. [SugarColumn(ColumnDescription = "排序")]
  352. public int SortNo { get; set; }
  353. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  354. public string? Remark { get; set; }
  355. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  356. public bool IsEnabled { get; set; } = true;
  357. [SugarColumn(ColumnDescription = "创建时间")]
  358. public DateTime CreatedAt { get; set; } = DateTime.Now;
  359. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  360. public DateTime? UpdatedAt { get; set; }
  361. }
  362. [SugarTable("ado_s0_mfg_sop_file_type", "S0 SOP 文件类型")]
  363. [SugarIndex("uk_ado_s0_mfg_sft_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  364. public class AdoS0MfgSopFileType
  365. {
  366. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  367. public long Id { get; set; }
  368. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  369. public long CompanyRefId { get; set; }
  370. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  371. public long FactoryRefId { get; set; }
  372. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  373. public string Code { get; set; } = string.Empty;
  374. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  375. public string Name { get; set; } = string.Empty;
  376. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  377. public string? Remark { get; set; }
  378. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  379. public bool IsEnabled { get; set; } = true;
  380. [SugarColumn(ColumnDescription = "创建时间")]
  381. public DateTime CreatedAt { get; set; } = DateTime.Now;
  382. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  383. public DateTime? UpdatedAt { get; set; }
  384. }
  385. [SugarTable("ado_s0_mfg_sop_document", "S0 SOP 文档")]
  386. [SugarIndex("uk_ado_s0_mfg_sd_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  387. public class AdoS0MfgSopDocument
  388. {
  389. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  390. public long Id { get; set; }
  391. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  392. public long CompanyRefId { get; set; }
  393. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  394. public long FactoryRefId { get; set; }
  395. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  396. public string Code { get; set; } = string.Empty;
  397. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  398. public string Name { get; set; } = string.Empty;
  399. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  400. public long? ProductionLineId { get; set; }
  401. [SugarColumn(ColumnDescription = "SOP 类型", ColumnDataType = "bigint")]
  402. public long SopFileTypeId { get; set; }
  403. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint", IsNullable = true)]
  404. public long? MaterialId { get; set; }
  405. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint", IsNullable = true)]
  406. public long? OperationId { get; set; }
  407. [SugarColumn(ColumnDescription = "文件版本", Length = 50, IsNullable = true)]
  408. public string? FileVersion { get; set; }
  409. [SugarColumn(ColumnDescription = "文件 ID", ColumnDataType = "bigint", IsNullable = true)]
  410. public long? FileId { get; set; }
  411. [SugarColumn(ColumnDescription = "文档状态", Length = 50)]
  412. public string DocStatus { get; set; } = "draft";
  413. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  414. public string? Remark { get; set; }
  415. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  416. public bool IsEnabled { get; set; } = true;
  417. [SugarColumn(ColumnDescription = "创建时间")]
  418. public DateTime CreatedAt { get; set; } = DateTime.Now;
  419. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  420. public DateTime? UpdatedAt { get; set; }
  421. }