iqc
lu
2024-11-06 f924cbebf1695c6323c1ed38f418dccd288fe1b9
DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using DevExpress.Utils.DirectXPaint;
using DevExpress.XtraEditors;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
@@ -15,17 +16,15 @@
            new List<FilterEntity>();
        private readonly string _webServiceName = "MesRohInDataManager/";
        private string suppCode = "";
        private string strWhere = "";
        private string suppId = "";
        /// <summary>
        /// 供应商编号
        /// </summary>
        /// <param name="supp_no"></param>
        public SelectCgMx(string _suppCode, string _strWhere)
        public SelectCgMx(string _suppId)
        {
            InitializeComponent();
            this.suppCode = _suppCode;
            this.strWhere = _strWhere;
            this.suppId = _suppId;
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            getPageList(1, UtilityHelper.GetPageSize());
            gridView1.IndicatorWidth = 50;
@@ -54,7 +53,7 @@
        }
        /// <summary>
        ///     回调事件
        ///     选择后的回调事件
        /// </summary>
        public event EventHandler<UpdateParentEventArgs> UpdateParent;
@@ -74,14 +73,16 @@
        /// <param name="pageSize">每页几条</param>
        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, "B.BILL_NO", "asc",
                "", _sbSqlWhere.ToString());
            var json = JsonConvert.SerializeObject(pgq);
            var _obj = new
            {
                currentPage = curPage,
                everyPageSize = pageSize,
                sortName = "",
                keyWhere = "",
                inBusType = "CG",
                inSupId = this.suppId
            };
            var json = JsonConvert.SerializeObject(_obj);
            try
            {
                var strReturn = UtilityHelper.HttpPost("",