AdoS0MfgMastersAndSop.cs 15 KB

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