fqc
lu
2025-04-05 f12cc5610aea3ad0e569da1a007feafa3ac8c7a4
DevApp/Gs.DevApp/UserControl/UcLookWorkshop.cs
@@ -22,7 +22,7 @@
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
            getSuppler();
          //  getSuppler();
        }
        public bool IsReadly { get; set; }
@@ -38,9 +38,14 @@
            if (EditChanged != null) EditChanged(this, e);
        }
        private void getSuppler()
        /// <summary>
        /// 读取车间
        /// </summary>
        /// <param name="orgId"></param>
        public void getSuppler(string orgId="", string _dftVale = "")
        {
            var pgq = new PageQueryModel(1, 999999, "a.departmentid", "asc", "", " and 1=1");
            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)
            {