From ec6d16309d0c78491c2e4badf052ca12667565c4 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Tue, 18 Aug 2026 16:45:23 +0800 Subject: [PATCH] 11 --- .../HJGL/DataIn/DrawingRecognitionContent.aspx.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs index 0e44d45..b628a14 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs @@ -399,8 +399,11 @@ namespace FineUIPro.Web.HJGL.DataIn row["remark"] = item.Value("remark"); if (string.IsNullOrEmpty(row["drawing_number"].ToString())) { - var rowOther = dtOther.Select("page= " + row["page_no"].ToString()).FirstOrDefault(); - row["drawing_number"] = rowOther["text"]; + var rowOther = dtOther.Select("page= '" + row["page_no"].ToString()+ "'").FirstOrDefault(); + if (rowOther != null) + { + row["drawing_number"] = rowOther["text"]; + } } dt.Rows.Add(row); }