lu
2025-05-10 7d7f289200a8c73e7ba1ab0a4cc6f39e8c60b852
DevApp/Gs.DevApp/UserControl/UcLookItems.cs
@@ -28,17 +28,20 @@
            if (EditChanged != null) EditChanged(this, e);
        }
        public void getSuppler(string orgId)
        public void getSuppler(string orgId, string _dftVale = "",string strWhere="",string strType="")
        {
            string _keyWhere = "";
            if (!string.IsNullOrEmpty(orgId))
                _keyWhere = " and a.FSubsidiary ='" + orgId + "'";
            if (!string.IsNullOrEmpty(strWhere))
                _keyWhere += strWhere;
            var _obj = new
            {
                currentPage = 1,
                everyPageSize = 999999,
                sortName = "",
                keyWhere = _keyWhere,
                keyType= strType
            };
            var json = JsonConvert.SerializeObject(_obj);
            try
@@ -52,6 +55,8 @@
                lookSearchSupplier.Properties.ValueMember = "id";
                lookSearchSupplier.ForceInitialize();
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                if (!string.IsNullOrEmpty(_dftVale))
                    SetIdOrCode(_dftVale);
            }
            catch (Exception ex)
            {