From d4f02f07fdfed93cb516c463e6a76ad5f81e5edb Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Fri, 28 Feb 2025 14:58:45 +0800 Subject: [PATCH] =?UTF-8?q?20250228=20=E4=BA=BA=E5=91=98=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CQMS/Comprehensive/InspectionPersonDataInNew.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/Web.config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonDataInNew.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonDataInNew.aspx.cs index 4459f2b8..1297a1f5 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonDataInNew.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPersonDataInNew.aspx.cs @@ -347,7 +347,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive Model.Comprehensive_InspectionPerson Ins = new Model.Comprehensive_InspectionPerson(); if (!string.IsNullOrEmpty(tempData.Value1.Trim())) { - var unit = units.FirstOrDefault(x => x.UnitName == tempData.Value1.Trim()); + var unit = units.Where(x => x.UnitName == tempData.Value1.Trim()).FirstOrDefault(); if (unit == null) { errInfo += "报验单位[" + tempData.Value1.Trim() + "]不存在;"; @@ -415,7 +415,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive } if (!string.IsNullOrEmpty(tempData.Value6.Trim())) { - var post = posts.FirstOrDefault(e => e.PostName == tempData.Value6.Trim()); + var post = posts.Where(e => e.PostName == tempData.Value6.Trim()).FirstOrDefault(); if (post != null) { Ins.PostId = post.PostId; diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index 3821db51..95acff1c 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - +