76 lines
2.2 KiB
C#
76 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text;
|
|
using WMS.Web.Core;
|
|
|
|
namespace WMS.Web.Domain.Entitys
|
|
{
|
|
/// <summary>
|
|
/// wms改箱记录
|
|
/// </summary>
|
|
[Serializable]
|
|
[Table("t_wms_changebox_record")]
|
|
public class ChangeBoxRecord : EntityBase
|
|
{
|
|
public ChangeBoxRecord() { }
|
|
/// <summary>
|
|
/// 主键 订单编号
|
|
/// </summary>
|
|
[Column("Id")]
|
|
public override int Id { get; set; }
|
|
/// <summary>
|
|
/// 物料ID
|
|
/// </summary>
|
|
[Column("MaterialId")]
|
|
public int MaterialId { get; set; }
|
|
/// <summary>
|
|
/// 序列号
|
|
/// </summary>
|
|
[Column("SerialNumbers")]
|
|
public List<string> SerialNumbers { get; set; } = new List<string>();
|
|
/// <summary>
|
|
/// 原箱子ID
|
|
/// </summary>
|
|
[Column("SrcBoxId")]
|
|
public int SrcBoxId { get; set; }
|
|
/// <summary>
|
|
/// 数量
|
|
///</summary>
|
|
[Column("Qty")]
|
|
public decimal Qty { get; set; }
|
|
/// <summary>
|
|
/// 目标箱子ID
|
|
/// </summary>
|
|
[Column("DestBoxId")]
|
|
public int DestBoxId { get; set; }
|
|
/// <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>
|
|
/// <param name="qty"></param>
|
|
/// <param name="materialId"></param>
|
|
/// <param name="serialNumbers"></param>
|
|
public void Create(int creatorId,decimal qty,int materialId, List<string> 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;
|
|
}
|
|
}
|
|
}
|