bug
lu
2025-08-25 d5e5d25e25799fb798648819fe18a5a429e30beb
DevApp/Gs.DevApp/UserControl/UcLookWwgd.cs
@@ -1,16 +1,8 @@
using DevExpress.XtraEditors;
using Gs.DevApp.Entity;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.UserControl
{
@@ -25,7 +17,7 @@
            getSuppler();
        }
          private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
        private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
        /// <summary>
        ///     改变事件
@@ -40,7 +32,10 @@
        private void getSuppler()
        {
            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1");
            string _keyWhere = "";
            _keyWhere += (" and rwd.STOCKOWNER  in");
            _keyWhere += (ToolBox.UtilityHelper.GetOrgWhere());
            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1" + _keyWhere);
            var json = JsonConvert.SerializeObject(pgq);
            try
            {
@@ -50,6 +45,7 @@
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "daa001";
                lookSearchSupplier.Properties.ValueMember = "id";
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
            }
            catch (Exception ex)
            {