From 9702c6a4dc358c7bff2eb18c8426229a0140e34a Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期一, 15 九月 2025 08:29:16 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/UserControl/SelectCk.cs |   38 +++++++++++++++++---------------------
 1 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/SelectCk.cs b/DevApp/Gs.DevApp/UserControl/SelectCk.cs
index feb746a..b769a17 100644
--- a/DevApp/Gs.DevApp/UserControl/SelectCk.cs
+++ b/DevApp/Gs.DevApp/UserControl/SelectCk.cs
@@ -1,32 +1,31 @@
-锘縰sing DevExpress.XtraEditors;
-using Gs.DevApp.Entity;
+锘縰sing Gs.DevApp.Entity;
 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.UserControl
 {
     public partial class SelectCk : DevExpress.XtraEditors.XtraForm
     {
+        /// <summary>
+        /// 缁勭粐id
+        /// </summary>
         string _strGuid = "";
+        /// <summary>
+        /// 鐗╂枡id锛屼负浜嗘煡璇㈠簱瀛�
+        /// </summary>
+        string _itemId = "";
         private List<FilterEntity> _filterList = new List<FilterEntity>();
-        public SelectCk(string strGuid)
+        public SelectCk(string strGuid, string itemId="")
         {
             _strGuid = strGuid;
+            _itemId = itemId;
             InitializeComponent();
-            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
-            gvList.Add(gridView1);
-            Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList);
             getPageList(1);
-            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false);
         }
         /// <summary>
         /// 鏌ヨ浜嬩欢
@@ -54,14 +53,14 @@
         /// <param name="pageSize">姣忛〉鍑犳潯</param>
         private void getPageList(int curPage)
         {
-            var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
-            _sbSqlWhere += (" and org.fid='" + _strGuid+"'");
-            var pgq = new PageQueryModel(curPage, 999999, "org.FNumber asc ,a.depot_code", "asc", "", _sbSqlWhere.ToString());
+            gcMain.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
+            _sbSqlWhere += (" and org.fid='" + _strGuid + "'");
+            var pgq = new PageQueryModel(curPage, 999999, "org.FNumber asc ,a.depot_code", "asc", this._itemId, _sbSqlWhere.ToString());
             var json = JsonConvert.SerializeObject(pgq);
             try
             {
                 var strReturn =
-                    UtilityHelper.HttpPost("", "MesDepotsManager/GetListPage", json);
+                    UtilityHelper.HttpPost("", "MesDepotsManager/GetListPage2", json);
                 var dd = UtilityHelper.ReturnToTablePage(strReturn);
                 if (dd.rtnCode > 0)
                 {
@@ -87,8 +86,6 @@
             }
         }
 
-
-
         private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
         {
             var rowhandle = gridView1.FocusedRowHandle;
@@ -108,12 +105,11 @@
                 {
                     guid = mxGuid,
                     name = mxName,
-                });
+                    kcQty = dr["kcQty"].ToString()
+            });
                 UpdateParent?.Invoke(this, new UpdateParentEventArgs { DynamicList = list });
                 Close();
             }
-
-
         }
 
         /// <summary>

--
Gitblit v1.9.3