using SqlSugar;
namespace MES.Service.Modes;
///
/// 收料单明细表(对应MES_INV_ITEM_ARN_DETAIL表)
///
[SugarTable("MES_INV_ITEM_ARN_DETAIL")]
public class MesInvItemArnDetail
{
// ///
// /// 收料通知单分录内码
// ///
// [SugarColumn(IsPrimaryKey = true)] // 默认为主键(若实际主键不是该字段,可根据业务调整主键配置)
// public int? LineNo { get; set; }
///
/// 采购单号
///
[SugarColumn(ColumnName = "ebeln")]
public string? Ebeln { get; set; }
///
/// 明细表记录唯一标识(主键)
///
[SugarColumn(ColumnName = "GUID", IsPrimaryKey = true)]
public Guid Id { get; set; }
///
/// 关联主表(MES_INV_ITEM_ARN)的 ID
///
[SugarColumn(ColumnName = "parent_Guid")]
public Guid? Mid { get; set; }
///
/// 物料编码
///
[SugarColumn(ColumnName = "item_id")]
public int? ItemId { get; set; }
///
/// 采购订单数量
///
[SugarColumn(ColumnName = "ebeln_qty")]
public decimal? EbelnQty { get; set; }
///
/// 本次应收数量
///
[SugarColumn(ColumnName = "sub_qty")]
public decimal? SubQty { get; set; }
///
/// 本次实收数量
///
[SugarColumn(ColumnName = "quantity")]
public decimal? Quantity { get; set; }
///
/// 采购单位
///
[SugarColumn(ColumnName = "PurchaseUnit")] // 未提供具体MES标识,默认按属性名映射(若实际字段名不同,需补充ColumnName)
public string? PurchaseUnit { get; set; }
///
/// 库存单位
///
[SugarColumn(ColumnName = "InventoryUnit")] // 未提供具体MES标识,默认按属性名映射(若实际字段名不同,需补充ColumnName)
public string? InventoryUnit { get; set; }
///
/// 备注
///
[SugarColumn(ColumnName = "memo")]
public string? Memo { get; set; }
///
/// 采购单ID
///
[SugarColumn(ColumnName = "ebeln_k3id")]
public int? EbelnK3id { get; set; }
///
/// 采购单行ID
///
[SugarColumn(ColumnName = "line_k3id")]
public int? LineK3id { get; set; }
///
/// 销售订单号
///
[SugarColumn (ColumnName = "SalesOrderId")] // 未提供具体MES标识,默认按属性名映射(若实际字段名不同,需补充ColumnName)
public string? SalesOrderId { get; set; }
///
/// 计划跟踪号
///
[SugarColumn(ColumnName = "MtoNo")] // 未提供具体MES标识,默认按属性名映射(若实际字段名不同,需补充ColumnName)
public string? MtoNo { get; set; }
///
/// 批号
///
[SugarColumn(ColumnName = "Lot")] // 未提供具体MES标识,默认按属性名映射(若实际字段名不同,需补充ColumnName)
public string? Lot { get; set; }
///
/// 急料标识
///
[SugarColumn(ColumnName = "urgent_flag")]
public bool? UrgentFlag { get; set; }
///
/// 收货仓库编号
///
[SugarColumn(ColumnName = "Depot_Id")]
public int? DepotId { get; set; }
///
/// 发货单行ID
///
[SugarColumn(ColumnName = "DeliveryLineID")]
public int? DeliveryLineID { get; set; }
///
/// 发货单行ID
///
[SugarColumn(ColumnName = "Eid")]
public int? Eid { get; set; }
}