|
@ -1,3 +1,4 @@ |
|
|
|
|
|
using System; |
|
|
using System.ComponentModel.DataAnnotations; |
|
|
using System.ComponentModel.DataAnnotations; |
|
|
using Win_in.Sfs.Shared.Application.Contracts; |
|
|
using Win_in.Sfs.Shared.Application.Contracts; |
|
|
using Win_in.Sfs.Shared.Domain; |
|
|
using Win_in.Sfs.Shared.Domain; |
|
@ -78,6 +79,10 @@ public class ItemBasicImportInput : SfsBaseDataImportInputBase |
|
|
/// 类型
|
|
|
/// 类型
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "类型")] |
|
|
[Display(Name = "类型")] |
|
|
|
|
|
[ValueMapping("成品", "成品")] |
|
|
|
|
|
[ValueMapping("原料", "原料")] |
|
|
|
|
|
[ValueMapping("物料", "物料")] |
|
|
|
|
|
[ValueMapping("半成品", "半成品")] |
|
|
public string Type { get; set; } |
|
|
public string Type { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -121,6 +126,10 @@ public class ItemBasicImportInput : SfsBaseDataImportInputBase |
|
|
[Display(Name = "ABC类")] |
|
|
[Display(Name = "ABC类")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
|
|
|
[ValueMapping("A类", "A类")] |
|
|
|
|
|
[ValueMapping("B类", "B类")] |
|
|
|
|
|
[ValueMapping("C类", "C类")] |
|
|
|
|
|
[ValueMapping("其他", "其他")] |
|
|
public string AbcClass { get; set; } |
|
|
public string AbcClass { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|