using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using WMS.Web.Core;
namespace WMS.Web.Domain.Entitys
{
///
/// wms改箱记录
///
[Serializable]
[Table("t_wms_changebox_record")]
public class ChangeBoxRecord : EntityBase
{
public ChangeBoxRecord() { }
///
/// 主键 订单编号
///
[Column("Id")]
public override int Id { get; set; }
///
/// 物料ID
///
[Column("MaterialId")]
public int MaterialId { get; set; }
///
/// 序列号
///
[Column("SerialNumbers")]
public List SerialNumbers { get; set; } = new List();
///
/// 原箱子ID
///
[Column("SrcBoxId")]
public int SrcBoxId { get; set; }
///
/// 数量
///
[Column("Qty")]
public decimal Qty { get; set; }
///
/// 目标箱子ID
///
[Column("DestBoxId")]
public int DestBoxId { get; set; }
///
/// 操作人
///
[Column("CreatorId")]
public int CreatorId { get; set; }
///
/// 操作时间
///
[Column("CreateTime")]
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 创建
///
///
///
///
///
public void Create(int creatorId,decimal qty,int materialId, List serialNumbers,int srcBoxId,int destBoxId)
{
this.SrcBoxId = srcBoxId;
this.DestBoxId = destBoxId;
this.SerialNumbers = serialNumbers;
this.MaterialId = materialId;
this.Qty = qty;
this.CreatorId = creatorId;
this.CreateTime = DateTime.Now;
}
}
}