Files
WMS/HHWMS.Web/Models/Configs/Customer.cs
T
zhougf 5a04ca9d59 添加工序配置
修改入库页面,任务完成,库存页面等
2025-08-31 15:57:46 +08:00

30 lines
1.0 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("Customer")]
public class Customer : BasePoco
{
[Key]
[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; }
[Display(Name = "Customer.Type", Description = "类型")]
[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; }
}
}