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", "出库单")]
|
public class Dt_DeliveryOrder: BaseEntity
|
{
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
[SugarColumn(ColumnName = "Out_no", IsNullable = true, Length = 50, ColumnDescription = "出库单号")]
|
public string Out_no{ get; set; }
|
/// <summary>
|
/// 盘点出库在WMS系统人工创建
|
/// </summary>
|
[SugarColumn(ColumnName = "Out_type", IsNullable = true, Length = 3, ColumnDescription = "出库单类型1正常,2出库退货,3盘点出库")]
|
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 = "库房号001给wcs")]
|
public string Warehouse_no { get; set; }
|
|
|
|
|
[SugarColumn(ColumnName = "Account_time", IsNullable = true, ColumnDescription = "出库记账时间")]
|
public DateTime?Account_time { get; set; }
|
|
/// <summary>
|
/// 表头状态:新建,开始,已完成 //详情表全部状态为全部,在将状态改成完成后才会上传给上游系统
|
/// </summary>
|
[SugarColumn(ColumnName = "OutStatus", IsNullable = true, ColumnDescription = "状态" )]
|
public string OutStatus { get; set; }
|
|
///// <summary>
|
///// 上游表头状态:未完成,部分完成,已完成
|
///// </summary>
|
//[SugarColumn(ColumnName = "UpOutStatus", IsNullable = true, ColumnDescription = "给上游入库状态,")]
|
//public string UpOutStatus { 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<Dt_DeliveryOrderDetail> Details { get; set; }
|
}
|
}
|