SeOrder.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. namespace Admin.NET.Plugin.AiDOP.Order;
  2. /// <summary>
  3. /// 销售订单主表(crm_seorder)
  4. /// </summary>
  5. [IgnoreTable]
  6. [SugarTable("crm_seorder", "销售订单表")]
  7. public class SeOrder
  8. {
  9. [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = false)]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "bill_no", Length = 64)]
  12. public string? BillNo { get; set; }
  13. /// <summary>1=销售 2=计划</summary>
  14. [SugarColumn(ColumnName = "order_type")]
  15. public int? OrderType { get; set; }
  16. [SugarColumn(ColumnName = "custom_id")]
  17. public long? CustomId { get; set; }
  18. [SugarColumn(ColumnName = "custom_no", Length = 64)]
  19. public string? CustomNo { get; set; }
  20. [SugarColumn(ColumnName = "custom_name", Length = 128)]
  21. public string? CustomName { get; set; }
  22. /// <summary>签订日期</summary>
  23. [SugarColumn(ColumnName = "date")]
  24. public DateTime? Date { get; set; }
  25. [SugarColumn(ColumnName = "custom_level")]
  26. public int? CustomLevel { get; set; }
  27. /// <summary>1=加急 0=普通</summary>
  28. [SugarColumn(ColumnName = "urgent")]
  29. public int? Urgent { get; set; }
  30. /// <summary>客户订单号</summary>
  31. [SugarColumn(ColumnName = "bill_from", Length = 128)]
  32. public string? BillFrom { get; set; }
  33. [SugarColumn(ColumnName = "country", Length = 64)]
  34. public string? Country { get; set; }
  35. /// <summary>客户下单日期</summary>
  36. [SugarColumn(ColumnName = "rdate")]
  37. public DateTime? RDate { get; set; }
  38. [SugarColumn(ColumnName = "flowstate", Length = 64)]
  39. public string? FlowState { get; set; }
  40. [SugarColumn(ColumnName = "Reason", Length = 256)]
  41. public string? Reason { get; set; }
  42. [SugarColumn(ColumnName = "IsDeleted")]
  43. public int IsDeleted { get; set; } = 0;
  44. [SugarColumn(ColumnName = "create_by_name", Length = 64)]
  45. public string? CreateByName { get; set; }
  46. [SugarColumn(ColumnName = "create_time")]
  47. public DateTime? CreateTime { get; set; }
  48. [SugarColumn(ColumnName = "update_by_name", Length = 64)]
  49. public string? UpdateByName { get; set; }
  50. [SugarColumn(ColumnName = "update_time")]
  51. public DateTime? UpdateTime { get; set; }
  52. [SugarColumn(ColumnName = "tenant_id")]
  53. public long? TenantId { get; set; }
  54. [SugarColumn(ColumnName = "factory_id")]
  55. public long? FactoryId { get; set; }
  56. }