From 0182a12e08e1253e9fb2d1b4dabb353babf1feea Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期六, 25 十月 2025 09:01:49 +0800
Subject: [PATCH] 更新操作人
---
DevApp/Gs.DevApp/UserControl/SelectCk.cs | 36 +++++++++++++++++-------------------
1 files changed, 17 insertions(+), 19 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/SelectCk.cs b/DevApp/Gs.DevApp/UserControl/SelectCk.cs
index 66d5c5b..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,7 +105,8 @@
{
guid = mxGuid,
name = mxName,
- });
+ kcQty = dr["kcQty"].ToString()
+ });
UpdateParent?.Invoke(this, new UpdateParentEventArgs { DynamicList = list });
Close();
}
--
Gitblit v1.9.3