AdoS0PreprocessEntities.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
  2. /// <summary>
  3. /// 前处理要素独立表。
  4. /// </summary>
  5. [SugarTable("PreprocessElement", "前处理要素表")]
  6. public class AdoS0MfgPreprocessElement
  7. {
  8. [SugarColumn(ColumnName = "id", ColumnDescription = "前处理要素主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnName = "item_num", ColumnDescription = "物料编码", Length = 100)]
  11. public string ItemNum { get; set; } = string.Empty;
  12. [SugarColumn(ColumnName = "op", ColumnDescription = "工序编码", Length = 100, IsNullable = true)]
  13. public string? Op { get; set; }
  14. [SugarColumn(ColumnName = "line", ColumnDescription = "生产线编码", Length = 100, IsNullable = true)]
  15. public string? Line { get; set; }
  16. [SugarColumn(ColumnName = "typed", ColumnDescription = "类型编码", Length = 100, IsNullable = true)]
  17. public string? Typed { get; set; }
  18. [SugarColumn(ColumnName = "item_code", ColumnDescription = "要素编码", Length = 100, IsNullable = true)]
  19. public string? ItemCode { get; set; }
  20. [SugarColumn(ColumnName = "descr", ColumnDescription = "描述", Length = 255, IsNullable = true)]
  21. public string? Descr { get; set; }
  22. [SugarColumn(ColumnName = "is_main", ColumnDescription = "是否关键", ColumnDataType = "boolean")]
  23. public bool IsMain { get; set; }
  24. [SugarColumn(ColumnName = "domain", ColumnDescription = "工厂域编码", Length = 50)]
  25. public string Domain { get; set; } = string.Empty;
  26. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 64, IsNullable = true)]
  27. public string? CreateUser { get; set; }
  28. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间", IsNullable = true)]
  29. public DateTime? CreateTime { get; set; }
  30. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 64, IsNullable = true)]
  31. public string? UpdateUser { get; set; }
  32. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  33. public DateTime? UpdateTime { get; set; }
  34. }
  35. /// <summary>
  36. /// 前处理要素参数独立表。
  37. /// </summary>
  38. [SugarTable("PreprocessElementParam", "前处理要素参数表")]
  39. public class AdoS0MfgPreprocessElementParam
  40. {
  41. [SugarColumn(ColumnName = "id", ColumnDescription = "前处理要素参数主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  42. public long Id { get; set; }
  43. [SugarColumn(ColumnName = "device_number", ColumnDescription = "要素编码", Length = 100)]
  44. public string DeviceNumber { get; set; } = string.Empty;
  45. [SugarColumn(ColumnName = "device_descr", ColumnDescription = "要素描述", Length = 255, IsNullable = true)]
  46. public string? DeviceDescr { get; set; }
  47. [SugarColumn(ColumnName = "message_code", ColumnDescription = "参数编码", Length = 100)]
  48. public string MessageCode { get; set; } = string.Empty;
  49. [SugarColumn(ColumnName = "code_descr", ColumnDescription = "参数描述", Length = 255, IsNullable = true)]
  50. public string? CodeDescr { get; set; }
  51. [SugarColumn(ColumnName = "value_type", ColumnDescription = "值类型", Length = 50, IsNullable = true)]
  52. public string? ValueType { get; set; }
  53. [SugarColumn(ColumnName = "std_value", ColumnDescription = "标准值", Length = 255, IsNullable = true)]
  54. public string? StdValue { get; set; }
  55. [SugarColumn(ColumnName = "top_limit", ColumnDescription = "上限值", DecimalDigits = 6, Length = 18, IsNullable = true)]
  56. public decimal? TopLimit { get; set; }
  57. [SugarColumn(ColumnName = "low_limit", ColumnDescription = "下限值", DecimalDigits = 6, Length = 18, IsNullable = true)]
  58. public decimal? LowLimit { get; set; }
  59. [SugarColumn(ColumnName = "ufld1", ColumnDescription = "值选择数据", Length = 1000, IsNullable = true)]
  60. public string? Ufld1 { get; set; }
  61. [SugarColumn(ColumnName = "um", ColumnDescription = "单位", Length = 50, IsNullable = true)]
  62. public string? UM { get; set; }
  63. [SugarColumn(ColumnName = "domain", ColumnDescription = "工厂域编码", Length = 50)]
  64. public string Domain { get; set; } = string.Empty;
  65. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 64, IsNullable = true)]
  66. public string? CreateUser { get; set; }
  67. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间", IsNullable = true)]
  68. public DateTime? CreateTime { get; set; }
  69. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 64, IsNullable = true)]
  70. public string? UpdateUser { get; set; }
  71. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  72. public DateTime? UpdateTime { get; set; }
  73. }