lu
2024-12-03 b94097020bf79e3d5f046ac4fbd3c05efcda30b3
DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -15,19 +15,10 @@
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
            getSuppler();
        }
        public bool IsReadly { get; set; }
        private string _KeyFile = "";
        public string KeyFile
        {
            get { return _KeyFile; }
            set
            {
                _KeyFile = value;
                getSuppler();
            }
        }
        /// <summary>
        ///     改变事件
        /// </summary>
@@ -52,8 +43,7 @@
                var dt = rtn.rtnData.list;
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "depotName";
                // lookSearchSupplier.Properties.ValueMember = "depotId";
                lookSearchSupplier.Properties.ValueMember = KeyFile;
                 lookSearchSupplier.Properties.ValueMember = "depotId";
            }
            catch (Exception ex)
            {
@@ -94,10 +84,7 @@
                lookSearchSupplier.EditValue = null;
                return;
            }
            if (KeyFile.ToUpper() == "depotId".ToUpper())
                lookSearchSupplier.EditValue =Int64.Parse( ((Code.ToString().Trim())));
            else
                lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
            lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim())));
        }
    }
}