AdoS0MfgMastersAndSop.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
  2. [SugarTable("PersonSkillAssignment", "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("WorkOrderControl", "S0 工单控制参数")]
  31. [SugarIndex("uk_WorkOrderControl_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  32. public class AdoS0MfgWorkOrderControl
  33. {
  34. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  35. public long Id { get; set; }
  36. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  37. public long CompanyRefId { get; set; }
  38. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  39. public long FactoryRefId { get; set; }
  40. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  41. public string Code { get; set; } = string.Empty;
  42. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  43. public string Name { get; set; } = string.Empty;
  44. [SugarColumn(ColumnDescription = "控制类型", Length = 50, IsNullable = true)]
  45. public string? ControlType { get; set; }
  46. [SugarColumn(ColumnDescription = "参数值", Length = 500, IsNullable = true)]
  47. public string? ParamValue { get; set; }
  48. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  49. public string? Remark { get; set; }
  50. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  51. public bool IsEnabled { get; set; } = true;
  52. [SugarColumn(ColumnDescription = "创建时间")]
  53. public DateTime CreatedAt { get; set; } = DateTime.Now;
  54. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  55. public DateTime? UpdatedAt { get; set; }
  56. }
  57. [SugarTable("PersonSkill", "S0 人员技能主数据")]
  58. [SugarIndex("uk_PersonSkill_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  59. public class AdoS0MfgPersonSkill
  60. {
  61. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  62. public long Id { get; set; }
  63. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  64. public long CompanyRefId { get; set; }
  65. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  66. public long FactoryRefId { get; set; }
  67. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  68. public string Code { get; set; } = string.Empty;
  69. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  70. public string Name { get; set; } = string.Empty;
  71. [SugarColumn(ColumnDescription = "技能等级", Length = 50, IsNullable = true)]
  72. public string? SkillLevel { get; set; }
  73. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  74. public string? Remark { get; set; }
  75. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  76. public bool IsEnabled { get; set; } = true;
  77. [SugarColumn(ColumnDescription = "创建时间")]
  78. public DateTime CreatedAt { get; set; } = DateTime.Now;
  79. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  80. public DateTime? UpdatedAt { get; set; }
  81. }
  82. [SugarTable("LinePost", "S0 线体岗位")]
  83. [SugarIndex("uk_LinePost_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  84. public class AdoS0MfgLinePost
  85. {
  86. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  87. public long Id { get; set; }
  88. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  89. public long CompanyRefId { get; set; }
  90. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  91. public long FactoryRefId { get; set; }
  92. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  93. public string Code { get; set; } = string.Empty;
  94. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  95. public string Name { get; set; } = string.Empty;
  96. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  97. public long? ProductionLineId { get; set; }
  98. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  99. public string? Remark { get; set; }
  100. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  101. public bool IsEnabled { get; set; } = true;
  102. [SugarColumn(ColumnDescription = "创建时间")]
  103. public DateTime CreatedAt { get; set; } = DateTime.Now;
  104. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  105. public DateTime? UpdatedAt { get; set; }
  106. }
  107. [SugarTable("LinePostSkill", "S0 线体岗位技能")]
  108. public class AdoS0MfgLinePostSkill
  109. {
  110. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  111. public long Id { get; set; }
  112. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  113. public long CompanyRefId { get; set; }
  114. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  115. public long FactoryRefId { get; set; }
  116. [SugarColumn(ColumnDescription = "岗位", ColumnDataType = "bigint")]
  117. public long LinePostId { get; set; }
  118. [SugarColumn(ColumnDescription = "人员技能", ColumnDataType = "bigint")]
  119. public long PersonSkillId { get; set; }
  120. [SugarColumn(ColumnDescription = "要求等级", Length = 50, IsNullable = true)]
  121. public string? RequiredLevel { get; set; }
  122. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  123. public string? Remark { get; set; }
  124. [SugarColumn(ColumnDescription = "生效日期", IsNullable = true)]
  125. public DateTime? EffectiveDate { get; set; }
  126. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  127. public bool IsEnabled { get; set; } = true;
  128. [SugarColumn(ColumnDescription = "创建时间")]
  129. public DateTime CreatedAt { get; set; } = DateTime.Now;
  130. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  131. public DateTime? UpdatedAt { get; set; }
  132. }
  133. [SugarTable("WorkCenter", "S0 工作中心")]
  134. [SugarIndex("uk_WorkCenter_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  135. public class AdoS0MfgWorkCenter
  136. {
  137. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  138. public long Id { get; set; }
  139. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  140. public long CompanyRefId { get; set; }
  141. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  142. public long FactoryRefId { get; set; }
  143. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  144. public string Code { get; set; } = string.Empty;
  145. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  146. public string Name { get; set; } = string.Empty;
  147. [SugarColumn(ColumnDescription = "中心类型", Length = 50, IsNullable = true)]
  148. public string? CenterType { get; set; }
  149. [SugarColumn(ColumnDescription = "产能", DecimalDigits = 5, Length = 18, IsNullable = true)]
  150. public decimal? Capacity { get; set; }
  151. [SugarColumn(ColumnDescription = "部门", ColumnDataType = "bigint", IsNullable = true)]
  152. public long? DepartmentId { get; set; }
  153. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  154. public string? Remark { get; set; }
  155. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  156. public bool IsEnabled { get; set; } = true;
  157. [SugarColumn(ColumnDescription = "创建时间")]
  158. public DateTime CreatedAt { get; set; } = DateTime.Now;
  159. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  160. public DateTime? UpdatedAt { get; set; }
  161. }
  162. [SugarTable("LineMaterial", "S0 线边物料")]
  163. public class AdoS0MfgLineMaterial
  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 = "产线", ColumnDataType = "bigint", IsNullable = true)]
  172. public long? ProductionLineId { get; set; }
  173. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  174. public long MaterialId { get; set; }
  175. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint", IsNullable = true)]
  176. public long? OperationId { get; set; }
  177. [SugarColumn(ColumnDescription = "工作中心", ColumnDataType = "bigint", IsNullable = true)]
  178. public long? WorkCenterId { get; set; }
  179. [SugarColumn(ColumnDescription = "设备编码", Length = 100, IsNullable = true)]
  180. public string? EquipmentCode { get; set; }
  181. [SugarColumn(ColumnDescription = "标准产能", DecimalDigits = 5, Length = 18, IsNullable = true)]
  182. public decimal? StdCapacityPerUnit { get; set; }
  183. [SugarColumn(ColumnDescription = "换型时间", DecimalDigits = 5, Length = 18, IsNullable = true)]
  184. public decimal? ChangeoverTime { get; set; }
  185. [SugarColumn(ColumnDescription = "设备类型", Length = 50, IsNullable = true)]
  186. public string? EquipmentTypeCode { get; set; }
  187. [SugarColumn(ColumnDescription = "模具类型", Length = 50, IsNullable = true)]
  188. public string? MoldTypeCode { get; set; }
  189. [SugarColumn(ColumnDescription = "要求技能编码", Length = 100, IsNullable = true)]
  190. public string? RequiredSkillCode { get; set; }
  191. [SugarColumn(ColumnDescription = "物料角色", Length = 50, IsNullable = true)]
  192. public string? MaterialRole { get; set; }
  193. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  194. public string? Remark { get; set; }
  195. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  196. public bool IsEnabled { get; set; } = true;
  197. [SugarColumn(ColumnDescription = "创建时间")]
  198. public DateTime CreatedAt { get; set; } = DateTime.Now;
  199. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  200. public DateTime? UpdatedAt { get; set; }
  201. }
  202. [SugarTable("ElementParam", "S0 生产要素参数")]
  203. [SugarIndex("uk_ElementParam_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(ElementCategory), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  204. public class AdoS0MfgElementParam
  205. {
  206. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  207. public long Id { get; set; }
  208. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  209. public long CompanyRefId { get; set; }
  210. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  211. public long FactoryRefId { get; set; }
  212. [SugarColumn(ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  213. public string? ElementCode { get; set; }
  214. [SugarColumn(ColumnDescription = "要素名称", Length = 200, IsNullable = true)]
  215. public string? ElementName { get; set; }
  216. [SugarColumn(ColumnDescription = "要素分类", Length = 50, IsNullable = true)]
  217. public string? ElementCategory { get; set; }
  218. [SugarColumn(ColumnDescription = "参数编码", Length = 100)]
  219. public string Code { get; set; } = string.Empty;
  220. [SugarColumn(ColumnDescription = "参数名称", Length = 200)]
  221. public string Name { get; set; } = string.Empty;
  222. [SugarColumn(ColumnDescription = "值类型", Length = 50, IsNullable = true)]
  223. public string? ParamType { get; set; }
  224. [SugarColumn(ColumnDescription = "单位", Length = 50, IsNullable = true)]
  225. public string? Unit { get; set; }
  226. [SugarColumn(ColumnDescription = "标准值", Length = 200, IsNullable = true)]
  227. public string? StdValue { get; set; }
  228. [SugarColumn(ColumnDescription = "上限", DecimalDigits = 6, Length = 18, IsNullable = true)]
  229. public decimal? UpperLimit { get; set; }
  230. [SugarColumn(ColumnDescription = "下限", DecimalDigits = 6, Length = 18, IsNullable = true)]
  231. public decimal? LowerLimit { get; set; }
  232. [SugarColumn(ColumnDescription = "枚举选项", Length = 2000, IsNullable = true)]
  233. public string? EnumOptions { get; set; }
  234. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  235. public string? Remark { get; set; }
  236. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  237. public bool IsEnabled { get; set; } = true;
  238. [SugarColumn(ColumnDescription = "创建时间")]
  239. public DateTime CreatedAt { get; set; } = DateTime.Now;
  240. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  241. public DateTime? UpdatedAt { get; set; }
  242. }
  243. [SugarTable("MaterialProcessElement", "S0 物料工艺要素")]
  244. public class AdoS0MfgMaterialProcessElement
  245. {
  246. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  247. public long Id { get; set; }
  248. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  249. public long CompanyRefId { get; set; }
  250. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  251. public long FactoryRefId { get; set; }
  252. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  253. public long MaterialId { get; set; }
  254. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint")]
  255. public long OperationId { get; set; }
  256. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  257. public long? ProductionLineId { get; set; }
  258. [SugarColumn(ColumnDescription = "要素类型", Length = 50, IsNullable = true)]
  259. public string? ElementType { get; set; }
  260. [SugarColumn(ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  261. public string? ElementCode { get; set; }
  262. [SugarColumn(ColumnDescription = "要素名称", Length = 200, IsNullable = true)]
  263. public string? ElementName { get; set; }
  264. [SugarColumn(ColumnDescription = "要素参数", ColumnDataType = "bigint")]
  265. public long ElementParamId { get; set; }
  266. [SugarColumn(ColumnDescription = "参数值", Length = 500, IsNullable = true)]
  267. public string? ParamValue { get; set; }
  268. [SugarColumn(ColumnDescription = "关键要素", ColumnDataType = "boolean")]
  269. public bool IsKeyElement { get; set; }
  270. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  271. public string? Remark { get; set; }
  272. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  273. public bool IsEnabled { get; set; } = true;
  274. [SugarColumn(ColumnDescription = "创建时间")]
  275. public DateTime CreatedAt { get; set; } = DateTime.Now;
  276. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  277. public DateTime? UpdatedAt { get; set; }
  278. }