lu
2025-04-12 9ec7cf906a983509fccd9ab360e1ac0e46a904eb
DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
@@ -16,6 +16,7 @@
{
    public partial class UcLookDaa : DevExpress.XtraEditors.XtraUserControl
    {
        public UcLookDaa()
        {
            InitializeComponent();
@@ -25,7 +26,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 +38,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 + "'";
@@ -56,6 +61,8 @@
                lookSearchSupplier.Properties.ValueMember = "guid";
                lookSearchSupplier.ForceInitialize();
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                if (!string.IsNullOrEmpty(_dftVale))
                    SetIdOrCode(_dftVale);
            }
            catch (Exception ex)
            {
@@ -202,7 +209,7 @@
        }
        /// <summary>
        /// 线别
        /// 任务单号
        /// </summary>
        /// <returns></returns>
        public string GetRwd()
@@ -215,5 +222,28 @@
            }
            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 "";
        }
        /// <summary>
        /// 类型,多用于分类查询
        /// </summary>
        public string category{
            set;
            get;
        }
    }
}