using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Admin.NET.Core
{
///
/// 单据明细表
///
[Table("wms_order_details")]
[Comment("单据明细表")]
public class WmsOrderDetails : DEntityBase
{
///
/// 单据Id
///
[Comment("单据Id")]
[MaxLength(50)]
public long OrderId { get; set; }
///
/// 上位系统单据明细唯一识别码
///
[Comment("上位系统单据明细唯一识别码")]
public long OID { get; set; }
///
/// 物料编号
///
[Comment("物料编号")]
[MaxLength(255)]
public string Materialcode { get; set; }
///
/// 物料名称
///
[Comment("物料名称")]
[MaxLength(255)]
public string Materialname { get; set; }
///
/// 基本单位
///
[Comment("基本单位")]
[MaxLength(255)]
public string Unit { get; set; }
///
/// 数量
///
[Comment("数量")]
public decimal Qty { get; set; }
///
/// 入库数量
///
[Comment("入库数量")]
public decimal InventoryQty { get; set; }
///
/// 单根长度
///
[Comment("单根长度")]
public decimal SingleLength { get; set; }
///
/// 理论重量
///
[Comment("理论重量")]
public decimal TheoreticalWeight { get; set; }
///
/// 不含税单价
///
[Comment("不含税单价")]
public decimal Price { get; set; }
///
/// 成本金额
///
[Comment("成本金额")]
public decimal SumPrice { get; set; }
///
/// 项目编号
///
[Comment("项目编号")]
[MaxLength(255)]
public string ProjectCode { get; set; }
///
/// 合同编号
///
[Comment("合同编号")]
[MaxLength(255)]
public string ContractCode { get; set; }
///
/// TA号
///
[Comment("TA号")]
[MaxLength(255)]
public string TACode { get; set; }
///
/// 报关品名
///
[Comment("报关品名")]
[MaxLength(255)]
public string TradeName { get; set; }
///
/// 报关项号
///
[Comment("报关项号")]
[MaxLength(255)]
public string ItemNo { get; set; }
///
/// 报关单位
///
[Comment("报关单位")]
[MaxLength(255)]
public string CustomsUnitName { get; set; }
///
/// 报关数量
///
[Comment("报关数量")]
public decimal CustomsNum { get; set; }
///
/// 报关金额
///
[Comment("报关金额")]
public decimal CustomsPrices { get; set; }
///
/// 特殊要求
///
[Comment("特殊要求")]
[MaxLength(255)]
public string SpecialNeeds { get; set; }
///
/// 单据状态
///
[Comment("单据状态")]
[Required]
public OrderDetailsStatusEnum OrderStatus { get; set; } = OrderDetailsStatusEnum.WEIZHIXING;
///
/// 检验结果
///
[Comment("检验结果")]
[Required]
public InspectionResultsEnum InspectionResults { get; set; } = InspectionResultsEnum.WEIJIANYAN;
///
/// 托盘编码
///
[Comment("托盘编码")]
[MaxLength(50)]
public string ContainerCode { get; set; }
///
/// 库位编码
///
[Comment("库位编码")]
[MaxLength(50)]
public string PlaceCode { get; set; }
///
/// 单据主表
///
public WmsOrder WareOrder { get; set; }
}
}