From d102e42c79061597bf9a0ca6d5761184d0351ff2 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 11 二月 2025 08:07:21 +0800 Subject: [PATCH] 工单细节 --- DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtDj.cs | 47 ++++++++++++++++++++++++++++++----------------- 1 files changed, 30 insertions(+), 17 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtCk.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtDj.cs similarity index 89% rename from DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtCk.cs rename to DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtDj.cs index 211f9e8..7d02caa 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtCk.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQtDj.cs @@ -1,27 +1,21 @@ -锘縰sing DevExpress.RichEdit.Export; -using DevExpress.XtraEditors; -using Gs.DevApp.Entity; +锘縰sing Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; using Newtonsoft.Json; using Newtonsoft.Json.Linq; 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.Ck { - public partial class Frm_MesItemQtCk : DevExpress.XtraEditors.XtraForm + public partial class Frm_MesItemQtDj : DevExpress.XtraEditors.XtraForm { - string _webServiceName = "MesItemQtCkManager/"; + string _webServiceName = "MesItemQtDJManager/"; List<FilterEntity> _filterList = new List<FilterEntity>(); - public Frm_MesItemQtCk() + public Frm_MesItemQtDj() { InitializeComponent(); this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; @@ -29,6 +23,9 @@ this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; + toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "statusChk", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); @@ -51,7 +48,19 @@ Task.Delay(100); getPageList(1); } - + /// <summary> + /// 鏃ュ織 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLogClick(object sender, EventArgs e) + { + toolBarMenu1.guidKey = ""; + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, + lbGuid, txt_itemOutNo, gridView1); + toolBarMenu1.guidKey = rowGuid; + } /// <summary> /// 鍒嗛〉浜嬩欢 @@ -163,6 +172,7 @@ { gcMain.DataSource = dt; gcMain.ForceInitialize(); + gridView1.BestFitColumns(); } else UtilityHelper.SetDefaultTable(gcMain, gridView1); @@ -219,6 +229,7 @@ gcMx1.BindingContext = new BindingContext(); gcMx1.DataSource = dt; gcMx1.ForceInitialize(); + gvMx1.BestFitColumns(); } else { @@ -235,6 +246,7 @@ gcMx2.BindingContext = new BindingContext(); gcMx2.DataSource = dt1; gcMx2.ForceInitialize(); + gvMx2.BestFitColumns(); } else { @@ -249,7 +261,6 @@ ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { gvMx2.CloseEditor(); @@ -313,7 +324,6 @@ } if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾" + strMsg + "鍚楋紵")) return; - var _obj = new { guid = rowGuid, @@ -326,19 +336,22 @@ JsonConvert.SerializeObject(_obj)); var _rtn = UtilityHelper.ReturnToDynamic(strJson); MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); - if (_rtn.rtnCode > 0) + if (_rtn.rtnCode > 0 && _rtn.rtnData.outSum * 1 > 0) { if (xtraTabControl1.SelectedTabPageIndex == 1) + { getModel(lbGuid.Text.Trim()); - else - getPageList(this.pageBar1.CurrentPage); + } + int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); + gridView1.FocusedRowHandle = rowHandle; + Form parentForm = this.FindForm(); + UtilityHelper.SetCheckIco(gridView1, "statusChk", "checkUser", "checkDate", picCheckBox, parentForm, _inFieldValue.ToString()); } } catch (Exception ex) { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - } } } \ No newline at end of file -- Gitblit v1.9.3