添加序列号记录

This commit is contained in:
18942506660
2023-11-08 16:50:30 +08:00
parent 98a7f3f68a
commit 3f124a12b9
10 changed files with 186 additions and 23 deletions

View File

@@ -26,7 +26,6 @@ namespace WMS.Web.Domain.Entitys
/// 对应老OPS的箱ID
/// </summary>
public int OpsBoxId { get; set; }
/// <summary>
/// 箱编号老OPS生成的箱号
/// </summary>
@@ -40,6 +39,14 @@ namespace WMS.Web.Domain.Entitys
/// </summary>
public int? OrgId { get; set; }
/// <summary>
/// 完成装箱时间
/// </summary>
public string CompleteCartonTime { get; set; }
/// <summary>
/// 箱子创建用户
/// </summary>
public string CreateUser { get; set; }
/// <summary>
/// 创建时间对应老OPS的创建时间
/// </summary>
public DateTime CreateTime { get; set; } = DateTime.Now;

View File

@@ -0,0 +1,68 @@
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>
/// 序列号操作记录表
/// </summary>
[Serializable]
[Table("t_wms_serialnumberoperate")]
public class SerialNumberOperate : EntityBase
{
public SerialNumberOperate() { }
public SerialNumberOperate(string serialNumber, SerialNumberOperateType operateType, string operateUser, string remark,
int? supplierId = null, int? orgId = null, int? stockId = null,
DateTime? operateTime = null)
{
this.SerialNumber = serialNumber;
this.OperateType = operateType;
this.OperateUser = operateUser;
this.Remark = remark;
this.SupplierId = supplierId == null ? 0 : (int)supplierId;
this.OrgId = orgId == null ? 0 : (int)orgId;
this.StockId = stockId == null ? 0 : (int)stockId;
this.OperateTime = operateTime == null ? DateTime.Now : (DateTime)operateTime;
}
/// <summary>
/// ID
/// </summary>
public override int Id { get; set; }
/// <summary>
/// 序列号
/// </summary>
public string SerialNumber { get; set; }
/// <summary>
/// 序列号操作类型
/// </summary>
public SerialNumberOperateType OperateType { get; set; } = SerialNumberOperateType.Generate;
/// <summary>
/// 供应商Id
/// </summary>
public int SupplierId { get; set; } = 0;
/// <summary>
/// 组织Id
/// </summary>
public int OrgId { get; set; } = 0;
/// <summary>
/// 仓库Id
/// </summary>
public int StockId { get; set; } = 0;
/// <summary>
/// 操作时间
/// </summary>
public DateTime OperateTime { get; set; } = DateTime.Now;
/// <summary>
/// 操作人
/// </summary>
public string OperateUser { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}