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 @@ - +