AdoS0PriorityCode.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 订单优先级配置(复刻 PriorityCode)
  4. /// </summary>
  5. [SugarTable("PriorityCode", "订单优先级配置(复刻 PriorityCode)")]
  6. public class AdoS0PriorityCode
  7. {
  8. [SugarColumn(ColumnName = "RecID", ColumnDescription = "主键", IsPrimaryKey = true, Length = 36)]
  9. public string Id { get; set; } = string.Empty;
  10. [SugarColumn(ColumnName = "Domain", ColumnDescription = "工厂域编码", Length = 255, IsNullable = true)]
  11. public string? DomainCode { get; set; }
  12. [SugarColumn(ColumnName = "Descr", ColumnDescription = "名称", Length = 255, IsNullable = true)]
  13. public string Descr { get; set; } = string.Empty;
  14. [SugarColumn(ColumnName = "Value", ColumnDescription = "工单表字段", Length = 255, IsNullable = true)]
  15. public string? Value { get; set; }
  16. [SugarColumn(ColumnName = "Priority", ColumnDescription = "优先级")]
  17. public int Priority { get; set; }
  18. [SugarColumn(ColumnName = "OrderBy", ColumnDescription = "排序方式", ColumnDataType = "bit(1)", IsNullable = true)]
  19. public bool? OrderBy { get; set; }
  20. [SugarColumn(ColumnName = "SourceTable", ColumnDescription = "来源表", Length = 255, IsNullable = true)]
  21. public string? SourceTable { get; set; }
  22. [SugarColumn(ColumnName = "SourceColumn", ColumnDescription = "来源表字段", Length = 255, IsNullable = true)]
  23. public string? SourceColumn { get; set; }
  24. [SugarColumn(ColumnName = "SourceType", ColumnDescription = "来源表字段类型", Length = 255, IsNullable = true)]
  25. public string? SourceType { get; set; }
  26. [SugarColumn(ColumnName = "SourceID", ColumnDescription = "来源表关联字段", Length = 255, IsNullable = true)]
  27. public string? SourceId { get; set; }
  28. [SugarColumn(ColumnName = "ValueType", ColumnDescription = "工单表字段类型", Length = 255, IsNullable = true)]
  29. public string? ValueType { get; set; }
  30. [SugarColumn(ColumnName = "ValueID", ColumnDescription = "工单表关联字段", Length = 255, IsNullable = true)]
  31. public string? ValueId { get; set; }
  32. [SugarColumn(ColumnName = "IsActive", ColumnDescription = "是否生效", ColumnDataType = "boolean")]
  33. public bool IsActive { get; set; } = true;
  34. [SugarColumn(ColumnName = "CreateUser", ColumnDescription = "创建人", Length = 24, IsNullable = true)]
  35. public string? CreateUser { get; set; }
  36. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人(历史列)", Length = 100, IsNullable = true)]
  37. public string? LegacyCreateUser { get; set; }
  38. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间")]
  39. public DateTime CreateTime { get; set; } = DateTime.Now;
  40. [SugarColumn(ColumnName = "UpdateUser", ColumnDescription = "更新人", Length = 24, IsNullable = true)]
  41. public string? UpdateUser { get; set; }
  42. [SugarColumn(ColumnName = "UpdateTime", ColumnDescription = "更新时间", IsNullable = true)]
  43. public DateTime? UpdateTime { get; set; }
  44. /// <summary>列表展示:正序/倒序(不落库)</summary>
  45. [SugarColumn(IsIgnore = true)]
  46. public string? OrderByText { get; set; }
  47. }