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
|
{
|
/// <summary>
|
/// 调拨单明细
|
/// </summary>
|
[SugarTable(nameof(Dt_AllocateOrderDetail), "调拨单明细")]
|
public class Dt_AllocateOrderDetail : BaseEntity
|
{
|
/// <summary>
|
/// 主键ID(自增)
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 关联订单ID(对应Dt_AllocateOrder.Id)
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "关联订单ID")]
|
public int OrderId { get; set; }
|
|
/// <summary>
|
/// 物料编码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编码")]
|
public string MaterielCode { get; set; }
|
|
|
/// <summary>
|
/// 批次号
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "批次号")]
|
public string BatchNo { get; set; }
|
|
/// <summary>
|
/// 订单数量
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "订单数量")]
|
public decimal OrderQuantity { get; set; }
|
|
/// <summary>
|
/// 收货数量
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "收货数量")]
|
public decimal ReceiptQuantity { get; set; }
|
|
/// <summary>
|
/// 超额入库数量
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "超额入库数量")]
|
public decimal OverInQuantity { get; set; }
|
|
/// <summary>
|
/// 明细状态
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "明细状态")]
|
public int OrderDetailStatus { get; set; }
|
|
/// <summary>
|
/// 单位
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "单位")]
|
public string Unit { get; set; }
|
|
/// <summary>
|
/// 行号
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "行号")]
|
public string LineNo { get; set; }
|
|
/// <summary>
|
/// 仓库编码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "仓库编码")]
|
public string WarehouseCode { get; set; }
|
|
/// <summary>
|
/// 条形码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码")]
|
public string Barcode { get; set; }
|
|
|
/// <summary>
|
/// 供应商编号
|
/// 默认值:
|
///</summary>
|
[SugarColumn(ColumnName = "supplyCode", ColumnDescription = "供应商编号")]
|
public string? SupplyCode { get; set; }
|
|
/// <summary>
|
/// 条形码数量
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "条形码数量")]
|
public decimal? BarcodeQty { get; set; }
|
|
/// <summary>
|
/// 条形码单位
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码单位")]
|
public string BarcodeUnit { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 255, ColumnDescription = "备注")]
|
public string Remark { get; set; }
|
|
/// <summary>
|
/// 回传MES
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "回传MES")]
|
public int ReturnToMESStatus { get; set; } = 0;
|
}
|
}
|