From fd05e92ba20f48b34df46e2bc92dddd09864b668 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 17 十二月 2024 16:59:08 +0800
Subject: [PATCH] 生产补料

---
 DevApp/Gs.DevApp/UserControl/UcLookCk.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookCk.cs b/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
index 55f082d..b99b673 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -32,8 +32,11 @@
 
         public void getSuppler(string orgId)
         {
+            string _keyWhere = "";
+            if (!string.IsNullOrEmpty(orgId))
+                _keyWhere = " and a.FSubsidiary ='" + orgId + "'";
             var pgq = new PageQueryModel(1, 999999, "depot_code", "asc", "",
-                " and is_ng='A'"+"  and a.FSubsidiary ='" + orgId + "'");
+                " and is_ng='A'"+_keyWhere);
             var json = JsonConvert.SerializeObject(pgq);
             try
             {

--
Gitblit v1.9.3