From 5ef89d0a2eb4d8b0980f07d1a8d8c3111bcf6f45 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期五, 28 六月 2024 18:07:39 +0800
Subject: [PATCH] 1

---
 DBUtility/基础资料/ClsGy_Base_View.cs |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git "a/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_View.cs" "b/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_View.cs"
index 9e8c477..552245f 100644
--- "a/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_View.cs"
+++ "b/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_View.cs"
@@ -555,7 +555,21 @@
         //鏍规嵁鍚嶇О杩斿洖椤圭洰淇℃伅
         public virtual bool GetInfoByName(string sName)
         {
-            return true;
+            DataSet DS;
+            try
+            {
+                DS = oCN.RunProcReturn("Select * from " + MvarItemKey + " Where HName='" + sName + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo);
+                if (DS.Tables[0].Rows.Count == 0)
+                    return false;
+                else
+                {
+                    return GetInfo(DS);
+                }
+            }
+            catch (Exception e)
+            {
+                throw (e);
+            }
         }
         //杩斿洖椤圭洰淇℃伅
         public virtual bool GetInfo(DataSet DS)

--
Gitblit v1.9.1