添加工序配置

修改入库页面,任务完成,库存页面等
This commit is contained in:
zhougf committed 2025-08-31 15:57:46 +08:00
1 parent c2b039ea47
commit 5a04ca9d59
41 files changed
+1151 -84

No files matched your search

+4
View File
@@ -11,6 +11,10 @@ namespace HHWMS.Web.Models
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
public LocationZone Zone { get; set; }
[Display(Name = "Location.ZoneCode", Description = "库区")]
public int ZoneId { get; set; }
[Display(Name = "Container.Code", Description = "容器编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Code { get; set; }
+2
View File
@@ -12,6 +12,7 @@ namespace HHWMS.Web.Models
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "Customer.Code", Description = "编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Code { get; set; }
@@ -20,6 +21,7 @@ namespace HHWMS.Web.Models
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Type { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "Customer.Name", Description = "名称")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Name { get; set; }
+4 -1
View File
@@ -13,10 +13,12 @@ namespace HHWMS.Web.Models
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialCode { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialType { get; set; }
@@ -48,7 +50,8 @@ namespace HHWMS.Web.Models
[StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
public string SupplierCode { get; set; }
[Display(Name = "Inventory.Qty", Description = "数量")]
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "MaterialProcess.Weight", Description = "数量")]
[Column(TypeName = "decimal(12,4)")]
public decimal? Qty { get; set; }
}
+10 -5
View File
@@ -12,20 +12,25 @@ namespace HHWMS.Web.Models
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "MaterialProcess.MaterialCode", Description = "物料编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialCode { get; set; }
[Display(Name = "MaterialProcess.ProcessOrder", Description = "工序顺序")]
public int ProcessOrder { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[RegularExpression("[0-9]{2}", ErrorMessage = "{0}必须是2位数字")]
[Display(Name = "MaterialProcess.ProcessCode", Description = "工序编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ProcessCode { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "MaterialProcess.ProcessName", Description = "工序名称")]
[StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ProcessName { get; set; }
[Display(Name = "MaterialProcess.ProcessCode", Description = "工序编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ProcessCode { get; set; }
[Required(ErrorMessage = "Validate.{0}required")]
[Display(Name = "MaterialProcess.ProcessOrder", Description = "工序顺序")]
public int ProcessOrder { get; set; }
[Display(Name = "MaterialProcess.Weight", Description = "毛重")]
[Required]
+49
View File
@@ -0,0 +1,49 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("ProcessConfig")]
public class ProcessConfig : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Display(Name = "Process.Code", Description = "工序编码")]
[Required(ErrorMessage = "Validate.{0}required")]
[RegularExpression("[0-9]{2}", ErrorMessage = "{0}必须是2位数字")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Code { get; set; }
[Display(Name = "Process.Name", Description = "工序名称")]
[Required(ErrorMessage = "Validate.{0}required")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Name { get; set; }
[Display(Name = "Process.Zone", Description = "存放区域")]
[Required(ErrorMessage = "Validate.{0}required")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Zone { get; set; }
[Display(Name = "Process.Port", Description = "出口")]
[Required(ErrorMessage = "Validate.{0}required")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Port { get; set; }
[Display(Name = "Sys.Spare", Description = "备用1")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Spare1 { get; set; }
[Display(Name = "Sys.Spare", Description = "备用2")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Spare2 { get; set; }
[Display(Name = "Sys.Spare", Description = "备用3")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Spare3 { get; set; }
}
}