using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using WMS.Web.Core;
using WMS.Web.Domain.Values;
namespace WMS.Web.Domain.Entitys
{
///
/// wms移箱记录
///
[Serializable]
[Table("t_wms_movebox_record")]
public class MoveBoxRecord : EntityBase
{
public MoveBoxRecord() { }
///
/// 主键 订单编号
///
[Column("Id")]
public override int Id { get; set; }
///
/// 箱号ID
///
[Column("BoxId")]
public int BoxId { get; set; }
///
/// 原仓位编码
///
[Column("SrcSubStockCode")]
public string SrcSubStockCode { get; set; }
///
/// 目标仓位编码
///
[Column("DestSubStockCode")]
public string DestSubStockCode { get; set; }
///
/// 数量
///
[Column("Qty")]
public decimal Qty { get; set; }
///
/// 类型:1-整箱移货上级,2-整箱移货下级
///
[Column("Type")]
public MoveBoxType Type { get; set; } = MoveBoxType.Up;
///
/// 操作人
///
[Column("CreatorId")]
public int CreatorId { get; set; }
///
/// 操作时间
///
[Column("CreateTime")]
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 创建
///
///
public void Create(int creatorId)
{
this.CreatorId = creatorId;
this.CreateTime = DateTime.Now;
}
}
}