AdoS0MfgMastersAndSop.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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("WorkCenter", "S0 工作中心")]
  108. [SugarIndex("uk_WorkCenter_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  109. public class AdoS0MfgWorkCenter
  110. {
  111. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  112. public long Id { get; set; }
  113. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  114. public long CompanyRefId { get; set; }
  115. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  116. public long FactoryRefId { get; set; }
  117. [SugarColumn(ColumnDescription = "编码", Length = 100)]
  118. public string Code { get; set; } = string.Empty;
  119. [SugarColumn(ColumnDescription = "名称", Length = 200)]
  120. public string Name { get; set; } = string.Empty;
  121. [SugarColumn(ColumnDescription = "中心类型", Length = 50, IsNullable = true)]
  122. public string? CenterType { get; set; }
  123. [SugarColumn(ColumnDescription = "产能", DecimalDigits = 5, Length = 18, IsNullable = true)]
  124. public decimal? Capacity { get; set; }
  125. [SugarColumn(ColumnDescription = "部门", ColumnDataType = "bigint", IsNullable = true)]
  126. public long? DepartmentId { get; set; }
  127. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  128. public string? Remark { get; set; }
  129. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  130. public bool IsEnabled { get; set; } = true;
  131. [SugarColumn(ColumnDescription = "创建时间")]
  132. public DateTime CreatedAt { get; set; } = DateTime.Now;
  133. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  134. public DateTime? UpdatedAt { get; set; }
  135. }
  136. [SugarTable("LineMaterial", "S0 线边物料")]
  137. public class AdoS0MfgLineMaterial
  138. {
  139. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  140. public long Id { get; set; }
  141. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  142. public long CompanyRefId { get; set; }
  143. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  144. public long FactoryRefId { get; set; }
  145. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  146. public long? ProductionLineId { get; set; }
  147. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  148. public long MaterialId { get; set; }
  149. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint", IsNullable = true)]
  150. public long? OperationId { get; set; }
  151. [SugarColumn(ColumnDescription = "工作中心", ColumnDataType = "bigint", IsNullable = true)]
  152. public long? WorkCenterId { get; set; }
  153. [SugarColumn(ColumnDescription = "设备编码", Length = 100, IsNullable = true)]
  154. public string? EquipmentCode { get; set; }
  155. [SugarColumn(ColumnDescription = "标准产能", DecimalDigits = 5, Length = 18, IsNullable = true)]
  156. public decimal? StdCapacityPerUnit { get; set; }
  157. [SugarColumn(ColumnDescription = "换型时间", DecimalDigits = 5, Length = 18, IsNullable = true)]
  158. public decimal? ChangeoverTime { get; set; }
  159. [SugarColumn(ColumnDescription = "设备类型", Length = 50, IsNullable = true)]
  160. public string? EquipmentTypeCode { get; set; }
  161. [SugarColumn(ColumnDescription = "模具类型", Length = 50, IsNullable = true)]
  162. public string? MoldTypeCode { get; set; }
  163. [SugarColumn(ColumnDescription = "要求技能编码", Length = 100, IsNullable = true)]
  164. public string? RequiredSkillCode { get; set; }
  165. [SugarColumn(ColumnDescription = "物料角色", Length = 50, IsNullable = true)]
  166. public string? MaterialRole { get; set; }
  167. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  168. public string? Remark { get; set; }
  169. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  170. public bool IsEnabled { get; set; } = true;
  171. [SugarColumn(ColumnDescription = "创建时间")]
  172. public DateTime CreatedAt { get; set; } = DateTime.Now;
  173. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  174. public DateTime? UpdatedAt { get; set; }
  175. }
  176. [SugarTable("ElementParam", "S0 生产要素参数")]
  177. [SugarIndex("uk_ElementParam_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(ElementCategory), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
  178. public class AdoS0MfgElementParam
  179. {
  180. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  181. public long Id { get; set; }
  182. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  183. public long CompanyRefId { get; set; }
  184. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  185. public long FactoryRefId { get; set; }
  186. [SugarColumn(ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  187. public string? ElementCode { get; set; }
  188. [SugarColumn(ColumnDescription = "要素名称", Length = 200, IsNullable = true)]
  189. public string? ElementName { get; set; }
  190. [SugarColumn(ColumnDescription = "要素分类", Length = 50, IsNullable = true)]
  191. public string? ElementCategory { get; set; }
  192. [SugarColumn(ColumnDescription = "参数编码", Length = 100)]
  193. public string Code { get; set; } = string.Empty;
  194. [SugarColumn(ColumnDescription = "参数名称", Length = 200)]
  195. public string Name { get; set; } = string.Empty;
  196. [SugarColumn(ColumnDescription = "值类型", Length = 50, IsNullable = true)]
  197. public string? ParamType { get; set; }
  198. [SugarColumn(ColumnDescription = "单位", Length = 50, IsNullable = true)]
  199. public string? Unit { get; set; }
  200. [SugarColumn(ColumnDescription = "标准值", Length = 200, IsNullable = true)]
  201. public string? StdValue { get; set; }
  202. [SugarColumn(ColumnDescription = "上限", DecimalDigits = 6, Length = 18, IsNullable = true)]
  203. public decimal? UpperLimit { get; set; }
  204. [SugarColumn(ColumnDescription = "下限", DecimalDigits = 6, Length = 18, IsNullable = true)]
  205. public decimal? LowerLimit { get; set; }
  206. [SugarColumn(ColumnDescription = "枚举选项", Length = 2000, IsNullable = true)]
  207. public string? EnumOptions { get; set; }
  208. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  209. public string? Remark { get; set; }
  210. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  211. public bool IsEnabled { get; set; } = true;
  212. [SugarColumn(ColumnDescription = "创建时间")]
  213. public DateTime CreatedAt { get; set; } = DateTime.Now;
  214. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  215. public DateTime? UpdatedAt { get; set; }
  216. }
  217. [SugarTable("MaterialProcessElement", "S0 物料工艺要素")]
  218. public class AdoS0MfgMaterialProcessElement
  219. {
  220. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  221. public long Id { get; set; }
  222. [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
  223. public long CompanyRefId { get; set; }
  224. [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
  225. public long FactoryRefId { get; set; }
  226. [SugarColumn(ColumnDescription = "物料", ColumnDataType = "bigint")]
  227. public long MaterialId { get; set; }
  228. [SugarColumn(ColumnDescription = "工序", ColumnDataType = "bigint")]
  229. public long OperationId { get; set; }
  230. [SugarColumn(ColumnDescription = "产线", ColumnDataType = "bigint", IsNullable = true)]
  231. public long? ProductionLineId { get; set; }
  232. [SugarColumn(ColumnDescription = "要素类型", Length = 50, IsNullable = true)]
  233. public string? ElementType { get; set; }
  234. [SugarColumn(ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  235. public string? ElementCode { get; set; }
  236. [SugarColumn(ColumnDescription = "要素名称", Length = 200, IsNullable = true)]
  237. public string? ElementName { get; set; }
  238. [SugarColumn(ColumnDescription = "要素参数", ColumnDataType = "bigint")]
  239. public long ElementParamId { get; set; }
  240. [SugarColumn(ColumnDescription = "参数值", Length = 500, IsNullable = true)]
  241. public string? ParamValue { get; set; }
  242. [SugarColumn(ColumnDescription = "关键要素", ColumnDataType = "boolean")]
  243. public bool IsKeyElement { get; set; }
  244. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  245. public string? Remark { get; set; }
  246. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  247. public bool IsEnabled { get; set; } = true;
  248. [SugarColumn(ColumnDescription = "创建时间")]
  249. public DateTime CreatedAt { get; set; } = DateTime.Now;
  250. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  251. public DateTime? UpdatedAt { get; set; }
  252. }