bug
lu
2025-06-16 89776d6f53dff45b1ac0ee20438f5aa8dab2d0e5
DevApp/Gs.DevApp/UserControl/UcLookDaa.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
{
@@ -23,10 +15,10 @@
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
           // getSuppler();
            // 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>
        ///     改变事件
@@ -42,12 +34,14 @@
        /// 读取工单
        /// </summary>
        /// <param name="orgId"></param>
        public void getSuppler(string orgId,string _dftVale = "")
        public void getSuppler(string orgId, string _dftVale = "",string strWhere="")
        {
            lookSearchSupplier.EditValue = null;
            string _keyWhere = "";
            if (!string.IsNullOrEmpty(orgId))
                _keyWhere = " and a.erp_sczz ='" + orgId + "'";
            if (!string.IsNullOrEmpty(strWhere))
                _keyWhere += strWhere;
            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "",
                " and 1=1" + _keyWhere);
            var json = JsonConvert.SerializeObject(pgq);
@@ -119,7 +113,7 @@
            }
            lookSearchSupplier.EditValue = (((Code.ToString().Trim())));
        }
        /// <summary>
        /// 产品id
        /// </summary>
@@ -241,7 +235,8 @@
        /// <summary>
        /// 类型,多用于分类查询
        /// </summary>
        public string category{
        public string category
        {
            set;
            get;
        }