Files
WMS-Api/src/WMS.Web.Domain/Entitys/MoveBoxRecord.cs
2023-11-11 18:00:00 +08:00

75 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}
}
}