lu
2025-04-06 4a8df7e654aa502694bcff271b216c46e26c788b
DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
@@ -25,7 +25,7 @@
           // getSuppler();
        }
        public bool IsReadly { get; set; }
          private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
        /// <summary>
        ///     改变事件
@@ -37,9 +37,13 @@
        {
            if (EditChanged != null) EditChanged(this, e);
        }
        public void getSuppler(string orgId)
        /// <summary>
        /// 读取工单
        /// </summary>
        /// <param name="orgId"></param>
        public void getSuppler(string orgId,string _dftVale = "")
        {
            lookSearchSupplier.EditValue = null;
            string _keyWhere = "";
            if (!string.IsNullOrEmpty(orgId))
                _keyWhere = " and a.erp_sczz ='" + orgId + "'";
@@ -54,6 +58,10 @@
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "daa001";
                lookSearchSupplier.Properties.ValueMember = "guid";
                lookSearchSupplier.ForceInitialize();
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                if (!string.IsNullOrEmpty(_dftVale))
                    SetIdOrCode(_dftVale);
            }
            catch (Exception ex)
            {
@@ -200,7 +208,7 @@
        }
        /// <summary>
        /// 线别
        /// 任务单号
        /// </summary>
        /// <returns></returns>
        public string GetRwd()
@@ -213,5 +221,20 @@
            }
            return "";
        }
        /// <summary>
        /// 投料单号
        /// </summary>
        /// <returns></returns>
        public string GetTldh()
        {
            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
            if (row != null)
            {
                string id = row["daa014"].ToString();
                return id;
            }
            return "";
        }
    }
}