From 0605260d8529635c9dbef283bb5f6b85300a3503 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期三, 14 一月 2026 10:24:10 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/WebAPIController.cs |   44 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index 764ccdc..c2b4a06 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -1424,6 +1424,48 @@
             }
         }
 
+        /// <summary>
+        /// 鑾峰彇鐢熶骇璧勬簮鍒楄〃涓嬫媺妗�
+        /// </summary>
+        /// <returns></returns>
+        [Route("Web/GetSouceList_Select")]
+        [HttpGet]
+        public object GetSouceList_Select(string HMaterID,Int64 HOrgID)
+        {
+            sWhere = " and HStopFlag=0 and HUSEORGID =" + HOrgID + "";            
+            try
+            {
+                string sql = "EXEC h_p_Gy_SouceList_PC " + HMaterID + ",'" + sWhere + "'";
+                ds = oCN.RunProcReturn(sql, "h_p_Gy_SouceList_PC");
+
+                if (ds == null || ds.Tables[0].Rows.Count <= 0)
+                {
+                    objjson.code = "0";
+                    objjson.count = 0;
+                    objjson.Message = "鑾峰彇澶辫触" + DBUtility.ClsPub.sErrInfo;
+                    objjson.data = null;
+                    return objjson;
+                }
+                else
+                {
+                    objjson.code = "1";
+                    objjson.count = 1;
+                    objjson.Message = "鑾峰彇鎴愬姛!";
+                    objjson.data = ds.Tables[0];
+                    return objjson;
+                }
+            }
+            catch (Exception ex)
+            {
+
+                objjson.code = "0";
+                objjson.count = 0;
+                objjson.Message = "鑾峰彇澶辫触" + ex.ToString();
+                objjson.data = null;
+                return objjson;
+            }
+        }
+
 
         /// <summary>
         /// 鑾峰彇鑱屽憳鍒楄〃
@@ -20028,7 +20070,7 @@
                 List<object> columnNameList = new List<object>();
 
                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
-                string sql = "Select * from h_v_Gy_GetSampleSchemeListView where 1 = 1 " + sWhere + "Order by hmainid ";
+                string sql = "Select * from h_v_Gy_GetSampleSchemeListView where 1 = 1 and HUSEORGID = "+OrganizationID + sWhere + "Order by hmainid ";
                 ds = oCN.RunProcReturn(sql, "h_v_Gy_GetSampleSchemeListView");
 
                 //娣诲姞鍒楀悕

--
Gitblit v1.9.1