11
啊鑫
2024-10-25 f3ed5fb06c000785f8b32b86c03ced31d6963a0f
DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -41,7 +41,7 @@
                var dt = rtn.rtnData.list;
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "depotName";
                lookSearchSupplier.Properties.ValueMember = "depotId";
                lookSearchSupplier.Properties.ValueMember = "depotsCode";
            }
            catch (Exception ex)
            {
@@ -55,18 +55,15 @@
        /// <return>Object</return>
        public string[] GetValue()
        {
            var id = lookSearchSupplier.EditValue.ToString();
            var code = lookSearchSupplier.EditValue.ToString();
            var name = lookSearchSupplier.Text.Trim();
            var code = "";
            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
            if (row != null) code = row["depotCode"].ToString();
            string[] _ary = { id, name, code };
            string[] _ary = { code, name };
            return _ary;
        }
        public void SetId(string id)
        public void SetCode(string Code)
        {
            lookSearchSupplier.EditValue = long.Parse(id);
            lookSearchSupplier.EditValue = Code;
        }
    }
}