1
lu
2024-11-05 da1280610c34aa29467e97fee97de89c1eae4804
DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
@@ -15,10 +15,17 @@
            new List<FilterEntity>();
        private readonly string _webServiceName = "MesRohInDataManager/";
        public SelectCgMx()
        private string suppCode = "";
        private string strWhere = "";
        /// <summary>
        /// 供应商编号
        /// </summary>
        /// <param name="supp_no"></param>
        public SelectCgMx(string _suppCode, string _strWhere)
        {
            InitializeComponent();
            this.suppCode = _suppCode;
            this.strWhere = _strWhere;
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            getPageList(1, UtilityHelper.GetPageSize());
            gridView1.IndicatorWidth = 50;
@@ -40,7 +47,6 @@
                        list.Add(_guid);
                    }
                }
                UpdateParent?.Invoke(this,
                    new UpdateParentEventArgs { StringList = list });
                Close();
@@ -69,10 +75,11 @@
        private void getPageList(int curPage, int pageSize)
        {
            var _sbSqlWhere = new StringBuilder();
            _sbSqlWhere.Append(strWhere);
            foreach (var itm in _filterList)
                _sbSqlWhere.Append(" and " + itm.fileId + itm.fileOper + "'" +
                                   itm.fileValue + "'");
            var pgq = new PageQueryModel(curPage, pageSize, "BILL_NO", "asc",
            var pgq = new PageQueryModel(curPage, pageSize, "B.BILL_NO", "asc",
                "", _sbSqlWhere.ToString());
            var json = JsonConvert.SerializeObject(pgq);
            try