SeOrder.cs 2.3 KB

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