From 90c199edf9c98a66f0ba3f42577bff797073fce1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期日, 13 四月 2025 17:11:12 +0800 Subject: [PATCH] 打印按钮自动计算,选择窗体取消分页 --- DevApp/Gs.DevApp/DevFrm/WW/SelectWwPc.cs | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs b/DevApp/Gs.DevApp/DevFrm/WW/SelectWwPc.cs similarity index 75% copy from DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs copy to DevApp/Gs.DevApp/DevFrm/WW/SelectWwPc.cs index 7c06e6a..35baa93 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs +++ b/DevApp/Gs.DevApp/DevFrm/WW/SelectWwPc.cs @@ -1,24 +1,27 @@ -锘縰sing Gs.DevApp.ToolBox; +锘縰sing DevExpress.XtraEditors; +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 SelectItemTbl : DevExpress.XtraEditors.XtraForm + public partial class SelectWwPc : DevExpress.XtraEditors.XtraForm { - private readonly string _webServiceName = "MesItemTblManager/"; - private string daaGuid = ""; - public SelectItemTbl(string _daaGuid) + + private readonly string _webServiceName = "WWPCManager/"; + private string lineId = ""; + public SelectWwPc(string _lineId) { InitializeComponent(); - this.daaGuid = _daaGuid; - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => - { - - }, null, false); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false); getPageList(1); btnIn.Click += (s, e) => { @@ -27,7 +30,7 @@ DataTable dt = this.gcMain.DataSource as DataTable;//寰楀埌GridControl鐨勬暟鎹簮 foreach (int idx in rows) { - string _guid = dt.Rows[idx]["dabGuid"].ToString(); + string _guid = dt.Rows[idx]["guid"].ToString(); list.Add(_guid); } UpdateParent?.Invoke(this, @@ -41,8 +44,6 @@ /// </summary> public event EventHandler<UpdateParentEventArgs> UpdateParent; - - /// <summary> /// </summary> /// <param name="curPage">绗嚑椤�</param> @@ -55,13 +56,14 @@ everyPageSize = 999999, sortName = "", keyWhere = "", - daaGuid = daaGuid + inBusType = "CG", + lineId = this.lineId }; var json = JsonConvert.SerializeObject(_obj); try { var strReturn = UtilityHelper.HttpPost("", - _webServiceName + "SelectPba", json); + _webServiceName + "SelectForm", json); var dd = UtilityHelper.ReturnToTablePage(strReturn); var dt = dd.rtnData.list; gcMain.BindingContext = new BindingContext(); -- Gitblit v1.9.3