using MailKit.Search;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
///
/// 调拨单
///
[SugarTable(nameof(Dt_AllocateOrder), "调拨单")]
public class Dt_AllocateOrder : BaseEntity
{
///
/// 主键ID(自增)
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 仓库ID
///
[SugarColumn(IsNullable = false, ColumnDescription = "仓库ID")]
public int WarehouseId { get; set; }
///
/// 订单编号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "订单编号")]
public string OrderNo { get; set; }
///
/// 上级订单编号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "上级订单编号")]
public string UpperOrderNo { get; set; }
///
/// 供应商ID
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "供应商ID")]
public string SupplierId { get; set; }
///
/// 订单类型
///
[SugarColumn(IsNullable = false, ColumnDescription = "订单类型")]
public int OrderType { get; set; }
///
/// 订单状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "订单状态")]
public int OrderStatus { get; set; }
///
/// 创建类型
///
[SugarColumn(IsNullable = false, ColumnDescription = "创建类型")]
public int CreateType { get; set; }
///
/// 业务类型
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "业务类型")]
public string BusinessType { get; set; }
///
/// 来源仓库
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "来源仓库")]
public string FromWarehouse { get; set; }
///
/// 目标仓库
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "目标仓库")]
public string ToWarehouse { get; set; }
///
/// 是否批次
///
[SugarColumn(IsNullable = false, ColumnDescription = "是否批次")]
public int IsBatch { get; set; }
///
/// 厂区
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "厂区")]
public string FactoryArea { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "备注")]
public string Remark { get; set; }
///
/// 回传MES
///
[SugarColumn(IsNullable = true, ColumnDescription = "回传MES")]
public int ReturnToMESStatus { get; set; } = 0;
///
/// 调拨单明细
///
[Navigate(NavigateType.OneToMany, nameof(Dt_AllocateOrderDetail.OrderId), nameof(Id))]
public List Details { get; set; }
}
}