快乐的昕的电脑
2025-11-22 2e3496c2bc19c1dcb25dbbde0022a6a6d2b4ff7b
DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
@@ -1,14 +1,8 @@
using DevExpress.XtraEditors;
using Gs.DevApp.ToolBox;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.DevFrm.WW
@@ -16,10 +10,12 @@
    public partial class UcWwBlclSelectAll : DevExpress.XtraEditors.XtraForm
    {
        private readonly string _webServiceName = "WWBlManager/";
        private string _gysId = "";
        private string _orgId = "";
        /// <summary>
        /// 
        /// </summary>
        public UcWwBlclSelectAll()
        public UcWwBlclSelectAll(string orgId = null, string gysId = null)
        {
            InitializeComponent();
            this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); };
@@ -29,6 +25,8 @@
            this.colChkInt.OptionsFilter.AllowFilter = false;
            this.colChkInt.OptionsFilter.AllowInHeaderSearch = DevExpress.Utils.DefaultBoolean.False;
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false);
            _gysId = gysId;
            _orgId = orgId;
            getPageList(1);
            btnIn.Click += (s, e) =>
            {
@@ -72,12 +70,21 @@
        /// <param name="pageSize">每页几条</param>
        private void getPageList(int curPage)
        {
            var keyWhere = "";
            if (!string.IsNullOrEmpty(_orgId))
            {
                keyWhere += " and  i.FSubsidiary = '" + _orgId + "'";
            }
            if (!string.IsNullOrEmpty(_gysId))
            {
                keyWhere += " and (SUPPLIERID is null or SUPPLIERID='" + _gysId + "') ";
            }
            var _obj = new
            {
                currentPage = 1,
                everyPageSize = 999999,
                sortName = "",
                keyWhere = "",
                keyWhere = keyWhere,
            };
            var json = JsonConvert.SerializeObject(_obj);
            try