bug
lu
7 天以前 98e93a53c3407b9785eba27faec13fe7afc1255b
DevApp/Gs.DevApp/UserControl/UcLookItems.cs
@@ -28,17 +28,27 @@
            if (EditChanged != null) EditChanged(this, e);
        }
        public void getSuppler(string orgId)
        /// <summary>
        ///
        /// </summary>
        /// <param name="orgId">组织</param>
        /// <param name="_dftVale">默认选中值</param>
        /// <param name="strWhere">查询条件</param>
        /// <param name="strType">附加类型:当为:iqc,ipqc,fqc时,免检,特别加上过滤条件</param>
        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 +62,8 @@
                lookSearchSupplier.Properties.ValueMember = "id";
                lookSearchSupplier.ForceInitialize();
                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                if (!string.IsNullOrEmpty(_dftVale))
                    SetIdOrCode(_dftVale);
            }
            catch (Exception ex)
            {