using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
[SugarTable("Dt_DeliveryOrder_Hty", "出库单历史表")]
public class Dt_DeliveryOrder_Hty : BaseEntity
{
[SugarColumn(ColumnName = "HistoryId", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "历史记录主键")]
public int HistoryId { get; set; }
[SugarColumn(ColumnName = "Id", ColumnDescription = "原主键")]
public int Id { get; set; }
[SugarColumn(ColumnName = "Out_no", IsNullable = true, Length = 50, ColumnDescription = "出库单号")]
public string Out_no { get; set; }
[SugarColumn(ColumnName = "Out_type", IsNullable = true, Length = 3, ColumnDescription = "出库单类型")]
public string Out_type { get; set; }
[SugarColumn(ColumnName = "Client_no", IsNullable = true, Length = 50, ColumnDescription = "客户代码")]
public string Client_no { get; set; }
[SugarColumn(ColumnName = "Client_name", IsNullable = true, Length = 50, ColumnDescription = "客户名称")]
public string Client_name { get; set; }
//库房号
[SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号")]
public string Warehouse_no { get; set; }
[SugarColumn(ColumnName = "Account_time", IsNullable = true, ColumnDescription = "出库记账时间")]
public DateTime? Account_time { get; set; }
///
/// 表头状态:新建,开始,已完成 //详情表全部状态为全部,在将状态改成完成后才会上传给上游系统
///
[SugarColumn(ColumnName = "OutStatus", IsNullable = true, ColumnDescription = "状态")]
public string OutStatus { get; set; }
//是否需要下面的字段
//优先级 priority
//是否取消 Is_cancel
//优先级 priority
//[SugarColumn(ColumnName = "Priority", IsNullable = true, ColumnDescription = "优先级")]
//public int Priority { get; set; }
////是否取消 Iscancel
//[SugarColumn(ColumnName = "Iscancel", IsNullable = true, ColumnDescription = "是否取消")]
//public int Iscancel { get; set; }
[Navigate(NavigateType.OneToMany, nameof(Dt_DeliveryOrderDetail.DeliveryOrderId))]
public List Details { get; set; }
}
}