From 00882b1b7952163bf6e2ef3e98286cd1fe22a103 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期四, 04 九月 2025 09:24:01 +0800
Subject: [PATCH] Bug修改

---
 DevApp/Gs.DevApp/UserControl/UcLookOrg.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs b/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs
index 019308e..80054cb 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs
@@ -1,10 +1,7 @@
-锘縰sing DevExpress.XtraEditors;
-using Gs.DevApp.Entity;
+锘縰sing Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
 using Newtonsoft.Json;
 using System;
-using System.Collections.Generic;
-using System.ComponentModel;
 using System.Data;
 
 
@@ -22,7 +19,7 @@
         }
 
 
-        public bool IsReadly { get; set; }
+        private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
 
         /// <summary>
         ///     鏀瑰彉浜嬩欢
@@ -37,7 +34,10 @@
 
         private void getSuppler()
         {
-            var pgq = new PageQueryModel(1, 999999, "FID", "asc", "", " and IS_STATUS=1");
+            System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder();
+            _sbSqlWhere.Append("  and IS_STATUS=1 and fid in");
+            _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere());
+            var pgq = new PageQueryModel(1, 999999, "fNumber", "asc", "", _sbSqlWhere.ToString());
             var json = JsonConvert.SerializeObject(pgq);
             try
             {
@@ -88,7 +88,7 @@
                 return;
             }
             //lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim())));
-            lookSearchSupplier.EditValue =(((Code.ToString().Trim())));
+            lookSearchSupplier.EditValue = (((Code.ToString().Trim())));
         }
 
 

--
Gitblit v1.9.3