namespace Admin.NET.Plugin.AiDOP.Order; /// /// 销售订单主表(crm_seorder) /// [SugarTable("crm_seorder", "销售订单表")] public class SeOrder { [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = false)] public long Id { get; set; } [SugarColumn(ColumnName = "bill_no", Length = 64)] public string? BillNo { get; set; } /// 1=销售 2=计划 [SugarColumn(ColumnName = "order_type")] public int? OrderType { get; set; } [SugarColumn(ColumnName = "custom_id")] public long? CustomId { get; set; } [SugarColumn(ColumnName = "custom_no", Length = 64)] public string? CustomNo { get; set; } [SugarColumn(ColumnName = "custom_name", Length = 128)] public string? CustomName { get; set; } /// 签订日期 [SugarColumn(ColumnName = "date")] public DateTime? Date { get; set; } [SugarColumn(ColumnName = "custom_level")] public int? CustomLevel { get; set; } /// 1=加急 0=普通 [SugarColumn(ColumnName = "urgent")] public int? Urgent { get; set; } /// 客户订单号 [SugarColumn(ColumnName = "bill_from", Length = 128)] public string? BillFrom { get; set; } [SugarColumn(ColumnName = "country", Length = 64)] public string? Country { get; set; } /// 客户下单日期 [SugarColumn(ColumnName = "rdate")] public DateTime? RDate { get; set; } [SugarColumn(ColumnName = "flowstate", Length = 64)] public string? FlowState { get; set; } [SugarColumn(ColumnName = "Reason", Length = 256)] public string? Reason { get; set; } [SugarColumn(ColumnName = "IsDeleted")] public int IsDeleted { get; set; } = 0; [SugarColumn(ColumnName = "create_by_name", Length = 64)] public string? CreateByName { get; set; } [SugarColumn(ColumnName = "create_time")] public DateTime? CreateTime { get; set; } [SugarColumn(ColumnName = "update_by_name", Length = 64)] public string? UpdateByName { get; set; } [SugarColumn(ColumnName = "update_time")] public DateTime? UpdateTime { get; set; } [SugarColumn(ColumnName = "tenant_id")] public long? TenantId { get; set; } [SugarColumn(ColumnName = "factory_id")] public long? FactoryId { get; set; } }