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_CabinOrder", "入库单表")]
public class Dt_CabinOrder:BaseEntity
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
[SugarColumn(IsNullable =true,Length =50,ColumnDescription ="入库单号")]
public string Order_no { get; set; }
///
/// 上游入库单类型为:1正常入库/3入库退货
///
[SugarColumn(IsNullable = true, Length = 3, ColumnDescription = "入库类型:1正常/3退货")]
public string Order_type { get; set; }
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "供应商代码")]
public string Supplier_no { get; set; }
[SugarColumn(IsNullable = true, Length = 100, ColumnDescription = "供应商名称")]
public string Supplier_name { get; set; }
//库房号
[SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号001")]
public string Warehouse_no { get; set; }
[SugarColumn(IsNullable = true, ColumnDescription = "入库记账时间")]
public DateTime?Account_tiem { get; set; }
///
/// 下游状态 新建,开始,已完成
/// 下游下发(新建)
/// 详情开始(开始)
/// 详情全部完成(已完成,上传给上游系统,移入历史表删除信息)
///
[SugarColumn(ColumnName = "OdrderStatus",IsNullable = true,Length =50, ColumnDescription = "表头状态")]
public string OdrderStatus { get; set; }
//下面是否需要这些字段?
//优先级 priority
//[SugarColumn(ColumnName ="Priority",IsNullable =true,ColumnDescription ="优先级")]
//public int Priority { get; set; }
//是否取消 Iscancel
//[SugarColumn(ColumnName = "Iscancel", IsNullable = true, ColumnDescription = "是否取消(1是0否)")]
//public int Iscancel { get; set; }
[Navigate(NavigateType.OneToMany,nameof(Dt_CabinOrderDetail.OrderId))]
public List Details { get; set; }
}
}