From 1e4aa24d929f0a20e2a1f6b86cb62d067d53695a Mon Sep 17 00:00:00 2001
From: zhaoxinyu <89237069@qq.com>
Date: Fri, 8 Mar 2024 13:29:40 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Equipments/DTOs/EquipmentDTO.cs | 32 ++++++++++---------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Equipments/DTOs/EquipmentDTO.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Equipments/DTOs/EquipmentDTO.cs
index d6b8b07b6..f9af753d9 100644
--- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Equipments/DTOs/EquipmentDTO.cs
+++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Equipments/DTOs/EquipmentDTO.cs
@@ -11,16 +11,26 @@ using System.Collections.Generic;
public class EquipmentDTO : SfsBaseDataDTOBase, IHasCode
{
+ ///
+ /// 类型
+ ///
+ [Display(Name = "类型")]
+ public string Type { get; set; } = string.Empty;
///
/// 器具编号
///
- [Display(Name = "器具编号")]
+ [Display(Name = "器具代码")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string Code { get; set; }
+
+
///
- /// 类型
+ /// 标包数量
///
- [Display(Name = "类型")]
- public string Type { get; set; } = string.Empty;
+ [Display(Name = "标包数")]
+ [Required(ErrorMessage = "{0}是必填项")]
+ public decimal StdQty { get; set; }
+
///
/// 型号
///
@@ -29,16 +39,16 @@ public class EquipmentDTO : SfsBaseDataDTOBase, IHasCode
///
/// 库位编号
///
- [Display(Name = "库位编号")]
+ [Display(Name = "库位代码")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string LocCode { get; set; } = string.Empty;
///
/// 状态
///
+
[Display(Name = "状态")]
public int State { get; set; } = 0;
-
-
///
/// 创建人
///
@@ -50,12 +60,4 @@ public class EquipmentDTO : SfsBaseDataDTOBase, IHasCode
///
[Display(Name = "创建时间")]
public DateTime CreatTime { get; set; } = DateTime.Now;
-
-
- ///
- /// 标包数量
- ///
- [Display(Name = "标包数")]
- public decimal StdQty { get; set; }
-
}