From 47d90c78a5e00f50e804705aa208ff1f264cb4f6 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期日, 09 二月 2025 12:09:19 +0800
Subject: [PATCH] 工单细节

---
 DevApp/Gs.DevApp/UserControl/ShowFilter.cs |   29 +++++++++++++++++++++++++----
 1 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/ShowFilter.cs b/DevApp/Gs.DevApp/UserControl/ShowFilter.cs
index 91537cc..f0ece36 100644
--- a/DevApp/Gs.DevApp/UserControl/ShowFilter.cs
+++ b/DevApp/Gs.DevApp/UserControl/ShowFilter.cs
@@ -3,10 +3,12 @@
 using System.Data;
 using System.Text;
 using System.Windows.Forms;
+using DevExpress.Utils.DirectXPaint;
 using DevExpress.XtraEditors;
 using DevExpress.XtraEditors.Controls;
 using DevExpress.XtraGrid.Columns;
 using Gs.DevApp.ToolBox;
+using Newtonsoft.Json;
 
 namespace Gs.DevApp.UserControl
 {
@@ -97,10 +99,10 @@
                 if (col.Tag != null && col.Tag.ToString().StartsWith("query"))
                 {
                     var item = new CboItemEntity();
-                    item.Text = col.Tag.ToString().Replace("query_a.", "") +
+                    item.Text = col.Tag.ToString().Replace("query_", "") +
                                 "锛�" + col.Caption + "锛�";
                     //item.Value = col.FieldName;
-                    item.Value = col.Tag.ToString().Replace("query_a.", "");
+                    item.Value = col.Tag.ToString().Replace("query_", "");
                     repositoryItemComboBox1.Items.Add(item);
                 }
 
@@ -117,7 +119,6 @@
                 item.Value = kvp.Key;
                 repositoryItemComboBox2.Items.Add(item);
             }
-
             try
             {
                 var dt = new DataTable();
@@ -132,7 +133,6 @@
                     dr["fieldValue"] = _sql.fileValue.Replace("%", "");
                     dt.Rows.Add(dr);
                 }
-
                 gcMain.BindingContext = new BindingContext();
                 gcMain.DataSource = dt;
                 gcMain.ForceInitialize();
@@ -182,5 +182,26 @@
             EventArgs e)
         {
         }
+
+
+        /// <summary>
+        /// 绉诲嚭涓�琛�
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void repositoryItemButtonEdit1_ButtonClick(object sender, ButtonPressedEventArgs e)
+        {
+            gridView1.CloseEditor();
+            gridView1.UpdateCurrentRow();
+            var rowhandle = gridView1.FocusedRowHandle;
+            if (rowhandle < 0)
+                return;
+            if (e.Button.Index == 0)
+            {
+                var dr = gridView1.GetDataRow(rowhandle);
+                gridView1.DeleteRow(rowhandle);
+                return;
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3