From b084bd77d01a94c8f0a2d20c86a1f45ba7c8a23c Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 19 四月 2025 14:08:05 +0800
Subject: [PATCH] 页面跳转

---
 DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
index 9fcc701..2d1a967 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -1,9 +1,4 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Data;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using DevExpress.XtraEditors;
+锘縰sing DevExpress.XtraEditors;
 using DevExpress.XtraGrid.Views.Grid;
 using Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
@@ -11,6 +6,11 @@
 using MES.Service.Modes;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Linq;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Threading.Tasks;
+using System.Windows.Forms;
 
 
 namespace Gs.DevApp.DevFrm.QC
@@ -19,7 +19,8 @@
     {
         private List<FilterEntity> _filterList = new List<FilterEntity>();
         private readonly string _webServiceName = "MesQmCheckitemManager/";
-        public string strType = "";
+        public string strType = "";//iqc type
+        public decimal dfValue = 1;  //iqc鐨勬牱鍝佹暟閲忛粯璁�5锛屽惁鍒�1
         public Jyxm(string _strType)
         {
             InitializeComponent();
@@ -38,12 +39,11 @@
             toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
             toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
             toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick;
-            //iqc鐨勬牱鍝佹暟閲忛粯璁�5锛屽惁鍒�1
-            decimal _dfValue = 1;
             if (strType == "iqc")
-                _dfValue = 5;
-            this.gvMx1.InitNewRow += (s, e) => { 
-                this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", _dfValue);
+                dfValue = 5;
+            this.gvMx1.InitNewRow += (s, e) =>
+            {
+                this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue);
                 int newIndex = gvMx1.DataRowCount + 1;
                 this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex);
             };
@@ -53,7 +53,7 @@
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, parentForm, "foneChecked", "", (value) =>
             {
                 Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
-            });
+            }, tips);
             Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) =>
             {
                 getModel(value);
@@ -90,7 +90,7 @@
 
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
-            _filterList= Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
+            _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
             Task.Delay(100);
             getPageList(1);
         }
@@ -117,11 +117,10 @@
                 parentForm = this.Parent as Form;
             else
                 parentForm = this.Parent.Parent as Form;
-
             gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged;
             gridView1.ActiveFilter.Clear();
             gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
-              var frm = new ShowFilter(gridView1.Columns, _filterList, parentForm.GetType().FullName);
+            var frm = new ShowFilter(gridView1.Columns, _filterList, parentForm.GetType().FullName);
             frm.UpdateParent += Frm_UpdateParent;
             frm.ShowDialog();
         }
@@ -315,7 +314,6 @@
                         //鍋囧涓変釜閮戒负绌洪�氳繃
                         if (string.IsNullOrEmpty(_Fstand) && string.IsNullOrEmpty(_FupAllow) && string.IsNullOrEmpty(_FdownAllow))
                         {
-
                         }
                         else
                         {
@@ -425,7 +423,7 @@
                         gcMain1.DataSource = dt;
                         gcMain1.ForceInitialize();
                         gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
-                      
+
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain1, gridView1);
@@ -807,7 +805,9 @@
             var _obj = new
             {
                 sourceGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()),
-                itemGuids = _sbGuids.ToString()
+                itemGuids = _sbGuids.ToString(),
+                iqcType = this.strType,
+                ypsl = this.dfValue
             };
             try
             {

--
Gitblit v1.9.3