75 lines
2.0 KiB
C#
75 lines
2.0 KiB
C#
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
|
||
{
|
||
/// <summary>
|
||
/// wms移箱记录
|
||
/// </summary>
|
||
[Serializable]
|
||
[Table("t_wms_movebox_record")]
|
||
public class MoveBoxRecord : EntityBase
|
||
{
|
||
public MoveBoxRecord() { }
|
||
/// <summary>
|
||
/// 主键 订单编号
|
||
/// </summary>
|
||
[Column("Id")]
|
||
public override int Id { get; set; }
|
||
/// <summary>
|
||
/// 单据编号
|
||
/// </summary>
|
||
[Column("BillNo")]
|
||
public string BillNo { get; set; }
|
||
/// <summary>
|
||
/// 箱号ID
|
||
/// </summary>
|
||
[Column("BoxId")]
|
||
public int BoxId { get; set; }
|
||
/// <summary>
|
||
/// 原仓位编码
|
||
/// </summary>
|
||
[Column("SrcSubStockId")]
|
||
public int SrcSubStockId { get; set; }
|
||
/// <summary>
|
||
/// 目标仓位编码
|
||
/// </summary>
|
||
[Column("DestSubStockId")]
|
||
public int DestSubStockId { get; set; }
|
||
/// <summary>
|
||
/// 数量
|
||
/// </summary>
|
||
[Column("Qty")]
|
||
public decimal Qty { get; set; }
|
||
/// <summary>
|
||
/// 类型:1-整箱移货上级,2-整箱移货下级
|
||
/// </summary>
|
||
[Column("Type")]
|
||
public MoveBoxType Type { get; set; } = MoveBoxType.Up;
|
||
/// <summary>
|
||
/// 操作人
|
||
/// </summary>
|
||
[Column("CreatorId")]
|
||
public int CreatorId { get; set; }
|
||
/// <summary>
|
||
/// 操作时间
|
||
/// </summary>
|
||
[Column("CreateTime")]
|
||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||
|
||
/// <summary>
|
||
/// 创建
|
||
/// </summary>
|
||
/// <param name="creatorId"></param>
|
||
public void Create(int creatorId)
|
||
{
|
||
this.CreatorId = creatorId;
|
||
this.CreateTime = DateTime.Now;
|
||
}
|
||
}
|
||
}
|