lu
2025-02-19 9bf3c63bde1ecbcd13a21c297ae7abe991aece5d
DevApp/Gs.DevApp/UserControl/UcLookWorkshop.cs
@@ -38,8 +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;
            var pgq = new PageQueryModel(1, 999999, "a.departmentid", "asc", "", " and 1=1 and a.FSubsidiary=" + orgId);
            var json = JsonConvert.SerializeObject(pgq);
            try
@@ -50,6 +55,9 @@
                lookSearchSupplier.Properties.DataSource = dt;
                lookSearchSupplier.Properties.DisplayMember = "departmentname";
                lookSearchSupplier.Properties.ValueMember = "departmentid";
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                if (!string.IsNullOrEmpty(_dftVale))
                    SetIdOrCode(_dftVale);
            }
            catch (Exception ex)
            {