From 88f69448fd3fb65d437c0b258ea93a3055017abd Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 27 二月 2025 13:39:26 +0800
Subject: [PATCH] 退货申请
---
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 758f5ad..00a0424 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -4,15 +4,21 @@
using System.Data;
using System.Linq;
using System.Net;
+using System.Windows.Controls.Primitives;
using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Commands;
using DevExpress.XtraEditors;
+using DevExpress.XtraGrid;
+using DevExpress.XtraGrid.Columns;
+using DevExpress.XtraGrid.Menu;
+using DevExpress.XtraGrid.Views.Grid;
using Gs.DevApp.DevFrm.Rpt;
using Gs.DevApp.DevFrm.Sys;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
namespace Gs.DevApp.UserControl
{
@@ -652,9 +658,25 @@
Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtnJson.rtnMsg);
}
- private void BtnLayout_ItemClick(object sender, ItemClickEventArgs e)
+ private void BtnLayout_ItemClick(object sender, ItemClickEventArgs ee)
{
- if (btnLayoutClick != null) btnLayoutClick(this, e);
+ Form parentForm = this.Parent as Form;
+ string _formNamespace = parentForm.GetType().FullName;
+ if (parentForm != null)
+ {
+ List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
+ GridControl gcMain = parentForm.Controls.Find("gcMain", true).OfType<GridControl>().FirstOrDefault();
+ if (gcMain != null) {
+ GridView gv1 = gcMain.MainView as GridView;
+ if (gv1 != null)
+ {
+ gvList.Add(gv1);
+ }
+ }
+ Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace, gvList);
+ DevFrm.ShowDialog();
+ }
+ if (btnLayoutClick != null) btnLayoutClick(this, ee);
}
private void _enabledBtn(List<string> lstBtn)
{
--
Gitblit v1.9.3