lu
2025-01-13 08108c3ed78d2c40fcfdc8e1f4bd8376f7b1d3c8
DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
@@ -22,7 +22,7 @@
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
            getSuppler();
           // getSuppler();
        }
        public bool IsReadly { get; set; }
@@ -38,9 +38,13 @@
            if (EditChanged != null) EditChanged(this, e);
        }
        private void getSuppler()
        public void getSuppler(string orgId)
        {
            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1");
            string _keyWhere = "";
            if (!string.IsNullOrEmpty(orgId))
                _keyWhere = " and a.erp_sczz ='" + orgId + "'";
            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "",
                " and 1=1" + _keyWhere);
            var json = JsonConvert.SerializeObject(pgq);
            try
            {
@@ -194,5 +198,20 @@
            }
            return "";
        }
        /// <summary>
        /// 线别
        /// </summary>
        /// <returns></returns>
        public string GetRwd()
        {
            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
            if (row != null)
            {
                string id = row["daa021"].ToString();
                return id;
            }
            return "";
        }
    }
}