添加wcs任务下发测试

修改入库功能
重新生成material页面
This commit is contained in:
zhougf committed 2025-05-26 19:06:50 +08:00
1 parent 541fb5df6e
commit 2b01cc7584
20 files changed
+518 -60

No files matched your search

-12
View File
@@ -13,18 +13,6 @@ namespace HHWMS.Web.Models
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Display(Name = "Inventory.UniqueCode", Description = "唯一码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string UniqueCode { get; set; }
[Display(Name = "Inventory.QRCode", Description = "二维码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string QRCode { get; set; }
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string SourceCode { get; set; }
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialCode { get; set; }
+39
View File
@@ -273,5 +273,44 @@ namespace HHWMS.Web.Models
public const string 任务中 = "lock";
}
/// <summary>
/// 拣货口
/// </summary>
public static class PickingLocation
{
/// <summary>
/// 拣货口1
/// </summary>
public const string Picking_1 = "EnterExit_P2001";
/// <summary>
/// 拣货口2
/// </summary>
public const string Picking_2 = "EnterExit_P2003";
/// <summary>
/// 拣货口3
/// </summary>
public const string Picking_3 = "EnterExit_P2005";
/// <summary>
/// 拣货口4
/// </summary>
public const string Picking_4 = "EnterExit_P2007";
/// <summary>
/// 拣货口5
/// </summary>
public const string Picking_5 = "EnterExit_P2009";
/// <summary>
/// 拣货口6
/// </summary>
public const string Picking_6 = "EnterExit_P2011";
/// <summary>
/// 拣货口7
/// </summary>
public const string Picking_7 = "EnterExit_P2013";
}
}
+33
View File
@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
namespace HHWMS.Web.Models
{
/// <summary>
/// WCS任务下发模型
/// </summary>
public class WCSTaskModel
{
/// <summary>
/// 任务号(选填)
/// </summary>
public string TaskNo { get; set; }
/// <summary>
/// 托盘号
/// </summary>
[Required(ErrorMessage = "托盘号不能为空")]
public string PalletNo { get; set; }
/// <summary>
/// 起始位置
/// </summary>
[Required(ErrorMessage = "起始位置不能为空")]
public string FromLocation { get; set; }
/// <summary>
/// 目标位置
/// </summary>
[Required(ErrorMessage = "目标位置不能为空")]
public string ToLocation { get; set; }
}
}
+23
View File
@@ -0,0 +1,23 @@
namespace HHWMS.Web.Models
{
/// <summary>
/// WCS任务响应模型
/// </summary>
public class WCSTaskResponse
{
/// <summary>
/// 是否成功
/// </summary>
public bool Success { get; set; }
/// <summary>
/// 消息
/// </summary>
public string Msg { get; set; }
/// <summary>
/// 数据
/// </summary>
public object Data { get; set; }
}
}