增加序列号服务
This commit is contained in:
@@ -33,15 +33,15 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// <summary>
|
||||
/// 供应商Id
|
||||
/// </summary>
|
||||
public int? SupplierId { get; set; }
|
||||
public int SupplierId { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 组织Id
|
||||
/// </summary>
|
||||
public int? OrgId { get; set; }
|
||||
public int OrgId { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 完成装箱时间
|
||||
/// </summary>
|
||||
public string CompleteCartonTime { get; set; }
|
||||
public DateTime CompleteCartonTime { get; set; } = DateTime.Now;
|
||||
/// <summary>
|
||||
/// 箱子创建用户
|
||||
/// </summary>
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
public class SerialNumberOperate : EntityBase
|
||||
{
|
||||
public SerialNumberOperate() { }
|
||||
public SerialNumberOperate(string serialNumber, SerialNumberOperateType operateType, int materialId,string operateUser, string remark,
|
||||
public SerialNumberOperate(string serialNumber, SerialNumberOperateType operateType, int materialId, string operateUser, string remark,
|
||||
int? supplierId = null, int? orgId = null, int? stockId = null,
|
||||
DateTime? operateTime = null)
|
||||
{
|
||||
@@ -69,5 +69,23 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 装箱(记录)
|
||||
/// </summary>
|
||||
/// <param name="SerialNumber"></param>
|
||||
/// <param name="MaterialId"></param>
|
||||
/// <param name="box"></param>
|
||||
public void CompleteCartonBox(string serialNumber, int materialId, Box box)
|
||||
{
|
||||
this.SerialNumber = serialNumber;
|
||||
this.MaterialId = materialId;
|
||||
this.OperateType = SerialNumberOperateType.CompleteCartonBox;
|
||||
this.OperateTime = box.CompleteCartonTime;
|
||||
this.OperateUser = box.CreateUser;
|
||||
this.OrgId = box.OrgId;
|
||||
this.SupplierId = box.SupplierId;
|
||||
this.Remark = "箱号: " + box.BoxBillNo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user