WMS/HHWMS.Web/Models/Configs/MaterialProcess.cs
zhougf c2b039ea47 添加客户管理
修改入库页面
修改 库存 物料 工序等页面
2025-07-25 04:35:31 +08:00

41 lines
1.6 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("MaterialProcess")]
public class MaterialProcess : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[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; }
[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; }
[Display(Name = "MaterialProcess.Weight", Description = "毛重")]
[Required]
public int? Weight { get; set; }
[Display(Name = "MaterialProcess.Description", Description = "工序描述")]
[StringLength(500, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Description { get; set; }
[Display(Name = "MaterialProcess.IsActive", Description = "是否启用")]
public bool IsActive { get; set; } = true;
}
}