散料入库

This commit is contained in:
zgf committed 2023-08-23 04:10:59 +08:00
1 parent 630e33a27a
commit 2097bffabb
6 files changed
+388 -247

No files matched your search

+84 -3
View File
@@ -29,13 +29,13 @@ namespace HHWMS.Web.Models
/// 入库任务
/// </summary>
[Display(Name = "TaskType.In")]
料盒入库 = 1,
盘料盒入库 = 1,
/// <summary>
/// 出库任务
/// </summary>
[Display(Name = "TaskType.Out")]
料盒出库 = 2,
盘料盒出库 = 2,
/// <summary>
/// 盘料入库
@@ -47,7 +47,19 @@ namespace HHWMS.Web.Models
/// 盘料出库
/// </summary>
[Display(Name = "TaskType.POut")]
盘料出库 = 4
盘料出库 = 4,
/// <summary>
/// 散料入库
/// </summary>
[Display(Name = "TaskType.SIn")]
散料盒入库 = 5,
/// <summary>
/// 散料出库
/// </summary>
[Display(Name = "TaskType.SOut")]
散料盒出库 = 6
}
/// <summary>
@@ -145,6 +157,11 @@ namespace HHWMS.Web.Models
/// </summary>
public const string 有货 = "some";
/// <summary>
/// 满货 = "full";
/// </summary>
public const string 满货 = "full";
/// <summary>
/// 空容器 = "emptyContainer"
/// </summary>
@@ -257,6 +274,70 @@ namespace HHWMS.Web.Models
}
/// <summary>
/// 区域
/// </summary>
public static class ZoneCodeEnum
{
/// <summary>
/// 盘料库 = "L";
/// </summary>
public const string 盘料库 = "L";
/// <summary>
/// 散料库 = "C";
/// </summary>
public const string 散料库 = "C";
}
/// <summary>
/// 站台类型
/// </summary>
public static class StationCode
{
/// <summary>
/// 散料库左抽屉 = "C02-02-18-02";
/// </summary>
public const string 散料库左抽屉 = "C02-02-18-02";
/// <summary>
/// 散料库右抽屉 = "C02-01-18-02";
/// </summary>
public const string 散料库右抽屉 = "C02-01-18-02";
/// <summary>
/// 盘料库左工位 = "L01-02-34-02";
/// </summary>
public const string 盘料库左工位 = "L01-02-34-02";
/// <summary>
/// 盘料库右工位 = "L01-01-34-02";
/// </summary>
public const string 盘料库右工位 = "L01-01-34-02";
/// <summary>
/// 左料塔 = "L01";
/// </summary>
public const string 左料塔 = "L01";
/// <summary>
/// 右料塔 = "L02";
/// </summary>
public const string 右料塔 = "L02";
/// <summary>
/// 左料塔工位 = "L01-01";
/// </summary>
public const string 左料塔工位 = "L01-01";
/// <summary>
/// 右料塔工位 = "L01-02";
/// </summary>
public const string 右料塔工位 = "L01-02";
}
/// <summary>
/// 料塔类型
/// </summary>
+6 -2
View File
@@ -26,6 +26,10 @@ namespace HHWMS.Web.Models
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialCode { get; set; }
[Display(Name = "Inventory.UniqueCode", Description = "唯一编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string UniqueCode { get; set; }
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialType { get; set; }
@@ -65,11 +69,11 @@ namespace HHWMS.Web.Models
[Display(Name = "Receipt.CompletedQty", Description = "完成数量")]
[Column(TypeName = "decimal(12,4)")]
public decimal? CompletedQty { get; set; }
public decimal? CompletedQty { get; set; } = Decimal.Zero;
[Display(Name = "Inventory.Qty", Description = "数量")]
[Column(TypeName = "decimal(12,4)")]
public decimal? Qty { get; set; }
public decimal? Qty { get; set; } = Decimal.Zero;
[Display(Name = "Inventory.Status", Description = "物料状态")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]