lu
2025-01-21 dd7c9629d16d81bde03e42b3e9e984088f3e4d2c
DevApp/Gs.DevApp/UserControl/UcLookWorkline.cs
@@ -21,16 +21,10 @@
        {
            InitializeComponent();
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
            lookSearchSupplier.EditValueChanged += LookSearchSupplier_EditValueChanged;
        }
        public bool IsReadly { get; set; }
        private string _KeyFile = "";
        public string KeyFile
        {
            get { return _KeyFile; }
            set { _KeyFile = value; }
        }
        /// <summary>
        ///     改变事件
        /// </summary>
@@ -44,6 +38,8 @@
        public void getSuppler(string shopGuid)
        {
            if (string.IsNullOrEmpty(shopGuid))
                return;
            var _obj = new
            {
                guid = shopGuid //主建
@@ -52,18 +48,15 @@
            try
            {
                var strReturn = UtilityHelper.HttpPost("",
                    "MesWorkshopManager/GetModel", json);
                    "SysDepartmentManager/GetModel", json);
                var _job = JObject.Parse(strReturn);
                var array = new JArray();
                var d = _job["rtnData"]["list"];
                foreach (var a in d) array.Add(a);
                var dt =
                    JsonConvert.DeserializeObject<DataTable>(
                        array.ToString());
                var dt = JsonConvert.DeserializeObject<DataTable>(array.ToString());
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "name";
                // lookSearchSupplier.Properties.ValueMember = "suppNo";
                lookSearchSupplier.Properties.ValueMember = KeyFile;
                lookSearchSupplier.Properties.ValueMember = "id";
            }
            catch (Exception ex)
            {
@@ -76,7 +69,7 @@
            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
            if (row != null)
            {
                string id = row["guid"].ToString();
                string id = row["id"].ToString();
                return id;
            }
            return "";