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); } diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 070a5f8..1b40665 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -67,7 +67,7 @@ - +