From 05260f3d499a559cedcb0bf2d68c7b4cef8c32d8 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 7 Mar 2025 10:49:16 +0800 Subject: [PATCH] =?UTF-8?q?fix=20ValidationResult=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkGrids/Request/WorkGridScheduleSaveRequest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/WorkGrids/Request/WorkGridScheduleSaveRequest.cs b/Src/Dlhis.Basic/WorkGrids/Request/WorkGridScheduleSaveRequest.cs index c1ca7415..d0f26aef 100644 --- a/Src/Dlhis.Basic/WorkGrids/Request/WorkGridScheduleSaveRequest.cs +++ b/Src/Dlhis.Basic/WorkGrids/Request/WorkGridScheduleSaveRequest.cs @@ -18,6 +18,7 @@ public class WorkGridScheduleSaveRequest : IValidatableObject /// /// 班次 /// + [EnumDataType(typeof(WorkGridTimePeriodEnumType))] public WorkGridTimePeriodEnumType PeriodType { get; set; } /// @@ -31,7 +32,7 @@ public class WorkGridScheduleSaveRequest : IValidatableObject var now = DateTime.Now; if (Date.ToDateTime(new TimeOnly(0, 0)) < now.Date) { - yield return new ValidationResult("不可编辑历史数据"); + yield return new ValidationResult("不可编辑历史数据", new[] { nameof(Date) }); } } } \ No newline at end of file