lu
2025-03-22 cddeb04d1d702e5d9b3b6173f0f9304c6bdf1c47
DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
@@ -33,8 +33,14 @@
            if (EditChanged != null) EditChanged(this, e);
        }
        public void getSuppler(string orgId)
        /// <summary>
        /// 读供应商
        /// </summary>
        /// <param name="orgId"></param>
        /// <param name="_dftVale"></param>
        public void getSuppler(string orgId, string _dftVale = "")
        {
            lookSearchSupplier.EditValue = null;
            string _keyWhere = "";
            if (!string.IsNullOrEmpty(orgId))
                _keyWhere = " and a.FSubsidiary ='" + orgId + "'";
@@ -55,9 +61,10 @@
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "suppName";
                lookSearchSupplier.Properties.ValueMember = "id";
                //MessageBox.Show(dt.Rows.Count.ToString());
                //SetIdOrCode("143895".ToString().Trim());
                //MessageBox.Show("2");
                lookSearchSupplier.ForceInitialize();
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                if (!string.IsNullOrEmpty(_dftVale))
                    SetIdOrCode(_dftVale);
            }
            catch (Exception ex)
            {