using System.ComponentModel.DataAnnotations; using Win_in.Sfs.Shared.Domain; namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad; /// /// QAD物料(Part) ItemBasicCreateInput IItemBasicAppService /// public class PartInput : EntityCreateInputBase { /// /// 公司(Company code) /// [Display(Name = "公司(Company code)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Company { get; set; } /// /// 工厂(Site) /// [Display(Name = "工厂(Site)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Site { get; set; } /// /// ERP料号(Part number) /// [Display(Name = "ERP料号(Part number)")] [Required] [StringLength(SfsEfCorePropertyConst.QtyLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Code { get; set; } /// /// 物流名称(Part name) /// [Display(Name = "物流名称(Part name)")] [Required] [StringLength(SfsEfCorePropertyConst.AddressLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Name { get; set; } /// /// 描述1(Description 1) /// [Display(Name = "描述1(Description 1)")] [StringLength(SfsEfCorePropertyConst.AddressLength, ErrorMessage = "{0}最多输入{1}个字符")] [Required] public virtual string Desc1 { get; set; } /// /// 描述2(Description 2) /// [Display(Name = "描述2(Description 2)")] [StringLength(SfsEfCorePropertyConst.AddressLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Desc2 { get; set; } /// /// 物料状态(Part Status) /// [Display(Name = "物料状态(Part Status)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Status { get; set; } /// /// 允许制造(Can make) /// [Display(Name = "允许制造(Can make)")] public virtual bool CanMake { get; set; } /// /// 允许采购(Can buy) /// [Display(Name = "允许采购(Can buy)")] public virtual bool CanBuy { get; set; } /// /// 计量单位(Unit of measure) /// [Display(Name = "计量单位(Unit of measure)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Um { get; set; } /// /// ABC类(ABC class) /// [Display(Name = "ABC类(ABC class)")] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string AbcClass { get; set; } /// /// 产品类(Product line) /// [Display(Name = "产品类(Product line)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string ProdKind { get; set; } /// /// 物品类型(Part type) /// [Display(Name = "物品类型(Part type)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string PartType { get; set; } /// /// 物品种类(Part catalog) /// [Display(Name = "物品种类(Part catalog)")] [Required] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string PartCatalog { get; set; } /// /// 物品分组(Part group) /// [Display(Name = "物品分组(Part group)")] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string PartGroup { get; set; } /// /// 虚物品 /// [Display(Name = "虚物品(Is phantom)")] public virtual bool IsPhantom { get; set; } /// /// 颜色(Color) /// [Display(Name = "颜色(Color)")] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Color { get; set; } /// /// 配置(Configuration) /// [Display(Name = "配置(Configuration)")] [StringLength(SfsEfCorePropertyConst.AddressLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Config { get; set; } /// /// 项目(Project) /// [Display(Name = "项目(Project)")] [StringLength(SfsEfCorePropertyConst.AddressLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Project { get; set; } /// /// 版本(Version) /// [Display(Name = "版本(Version)")] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Version { get; set; } /// /// 工程变更通知单(Engineering change notice) /// [Display(Name = "工程变更通知单(Engineering change notice)")] [StringLength(SfsEfCorePropertyConst.AddressLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string Eco { get; set; } /// /// 标包计量单位(Standard pack um) /// [Display(Name = "标包计量单位(Standard pack um)")] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string StdPackUm { get; set; } /// /// 标包数量(Standard pack quantity) /// [Display(Name = "标包数量(Standard pack quantity)")] public virtual decimal StdPackQty { get; set; } /// /// 替代计量单位(Extra pack um) /// [Display(Name = "替代计量单位(Extra pack um)")] [StringLength(SfsEfCorePropertyConst.ShortCodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public virtual string ExtPackUm { get; set; } /// /// 替代包装数量(Extra pack quantity) /// [Display(Name = "替代包装数量(Extra pack quantity)")] public virtual decimal ExtPackQty { get; set; } /// /// 备注(Remark) /// [Display(Name = "备注(Remark)")] public virtual string Remark { get; set; } }