From 8f6b41bbf338fc89d8908cc94a76b5cb52c29d67 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 21 一月 2025 09:29:40 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API

---
 WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs |   52 ++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 48 insertions(+), 4 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs b/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs
index aa3b9a4..aad3df7 100644
--- a/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs
@@ -250,10 +250,7 @@
             }
         }
 
-        /// <summary>
-        /// 鍖呰鏂瑰紡鍒楄〃鍒犻櫎鍔熻兘
-        /// </summary>
-        /// <returns></returns>
+      
         [Route("DeltetGy_ConkType")]
         [HttpGet]
         public object DeltetGy_ConkType(string HItemID, string user)
@@ -339,5 +336,52 @@
             }
         }
 
+
+
+
+        [Route("Gy_ConkType/List_PDA")]
+        [HttpGet]
+        public object List_PDA(string sWhere, string user)
+        {
+            try
+            {
+                List<object> columnNameList = new List<object>();
+                if (sWhere != "" && sWhere != null) 
+                {
+                    sWhere = " and 绂佺敤鏍囧織=''  and ( 鏁呴殰绫诲埆浠g爜 like '%" + sWhere + "%' or 鏁呴殰绫诲埆 like '%" + sWhere + "%' ) ";
+                }
+                else
+                {
+                    sWhere = " and 绂佺敤鏍囧織='' ";
+                }
+                string sql1 = string.Format(@"select * from h_v_Gy_ConkTypeList where 1=1 ");
+                ds = oCN.RunProcReturn(sql1 + sWhere + " order by 鏁呴殰绫诲埆浠g爜 ", "h_v_Gy_ConkTypeList");
+
+                //娣诲姞鍒楀悕
+                foreach (DataColumn col in ds.Tables[0].Columns)
+                {
+                    Type dataType = col.DataType;
+                    string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
+                    columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕
+                }
+
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "Sucess锛�";
+                objJsonResult.data = ds.Tables[0];
+                objJsonResult.list = columnNameList;
+                return objJsonResult;
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "Exception锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1