using System; using System.ComponentModel.DataAnnotations; using Win_in.Sfs.Shared.Domain; using Win_in.Sfs.Shared.Domain.Shared; namespace Win_in.Sfs.Basedata.Application.Contracts; [Serializable] public class PositionCodeEditInput : SfsBaseDataCreateOrUpdateInputBase { #region Base /// /// 物料号 /// [Display(Name = "物料号")] public string PartCode { get; set; } /// /// 物料名称 /// [Display(Name = "物料名称")] public string PartName { get; set; } /// /// 物料描述 /// [Display(Name = "物料描述")] public string PartDesc { get; set; } /// /// 基本计量单位 /// [Display(Name = "基本计量单位")] public string BasicUom { get; set; } /// /// 库位 /// [Display(Name = "库位")] public string LocationCode { get; set; } /// /// 库位名称 /// [Display(Name = "库位名称")] public string LocationName { get; set; } /// /// 标包数量 /// [Display(Name = "标包数量")] public decimal StdPackQty { get; set; } /// /// 类型 /// [Display(Name = "类型")] public EnumRecommendType Type { get; set; } #endregion #region Create /// /// 代码 /// [Display(Name = "代码")] [Required(ErrorMessage = "{0}是必填项")] [StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] public string Code { get; set; } #endregion }