仓库-仓库拼箱拆箱待打印记录功能添加

This commit is contained in:
2024-05-10 14:57:47 +08:00
parent 1727cb651f
commit 1a1062fb64
10 changed files with 575 additions and 56 deletions

View File

@@ -0,0 +1,55 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.wms.Dto
{
/// <summary>
/// 拼箱/拆箱待打标签记录表查询对象
/// </summary>
public class WmPackageLclQueryDto : PagerInfo
{
public string Partnumber { get; set; }
public string PackageCode { get; set; }
public string LocationCode { get; set; }
public int Type { get; set; }
public int Status { get; set; }
}
/// <summary>
/// 拼箱/拆箱待打标签记录表输入输出对象
/// </summary>
public class WmPackageLclDto
{
public string Id { get; set; }
[Required(ErrorMessage = "零件号不能为空")]
public string Partnumber { get; set; }
public string Description { get; set; }
[Required(ErrorMessage = "外箱标签;外箱标签(外箱批次号)不能为空")]
public string PackageCode { get; set; }
public string SerialNumber { get; set; }
public string LocationCode { get; set; }
[Required(ErrorMessage = "零件数不能为空")]
public int GoodsNum { get; set; } = 0;
public string Team { get; set; } = "C";
public int Type { get; set; } = 0;
public int Status { get; set; } = 0;
public string Remark { get; set; } = string.Empty;
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,88 @@
namespace ZR.Model.MES.wms
{
/// <summary>
/// 拼箱/拆箱待打标签记录表
/// </summary>
[SugarTable("wm_package_lcl")]
public class WmPackageLcl
{
/// <summary>
/// 编码;雪花id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
public string Id { get; set; }
/// <summary>
/// 零件号
/// </summary>
public string Partnumber { get; set; }
/// <summary>
/// 外箱标签;外箱标签(干巷外箱批次号)
/// </summary>
[SugarColumn(ColumnName = "package_code")]
public string PackageCode { get; set; }
/// <summary>
/// 流水号;外箱标签流水号
/// </summary>
[SugarColumn(ColumnName = "serial_number")]
public string SerialNumber { get; set; }
/// <summary>
/// 库位号
/// </summary>
[SugarColumn(ColumnName = "location_code")]
public string LocationCode { get; set; }
/// <summary>
/// 零件数
/// </summary>
[SugarColumn(ColumnName = "goods_num")]
public int GoodsNum { get; set; } = 0;
/// <summary>
/// 班组
/// </summary>
public string Team { get; set; } = "D";
// <summary>
/// 标签类别 0-初始状态 1-拼箱 2-拆箱
/// </summary>
public int Type { get; set; } = 0;
/// <summary>
/// 是否已打;0-未打 1-已打
/// </summary>
public int Status { get; set; } = 0;
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; } = string.Empty;
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(ColumnName = "cREATED_BY")]
public string CreatedBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "cREATED_TIME")]
public DateTime? CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
[SugarColumn(ColumnName = "uPDATED_BY")]
public string UpdatedBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[SugarColumn(ColumnName = "uPDATED_TIME")]
public DateTime? UpdatedTime { get; set; }
}
}