From 132e1a7f96a7f69a4c344f51fa1492a9a167008f Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 18 二月 2025 16:00:22 +0800
Subject: [PATCH] 保存板面
---
DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
index a33b101..9e6d33a 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
@@ -4,8 +4,10 @@
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
+using DevExpress.XtraGrid.Columns;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
+using Gs.DevApp.UserControl;
using Newtonsoft.Json;
namespace Gs.DevApp.DevFrm.Sys
@@ -23,10 +25,11 @@
toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick;
toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
+ toolBarMenu1.btnLayoutClick += ToolBarMenu1_btnLayoutClick;
Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) =>
{
Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
- });
+ },this.GetType().FullName);
Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) =>
{
getModel(value);
@@ -48,6 +51,8 @@
txt_isSpilit.CheckedChanged += (s, e) => { DoPreviewCode(); };
}
+
+
/// <summary>
/// 鍒嗛〉浜嬩欢
/// </summary>
@@ -57,7 +62,14 @@
{
getPageList(1);
}
-
+ private void ToolBarMenu1_btnLayoutClick(object sender, EventArgs e)
+ {
+ string _formNamespace=this.GetType().FullName;
+ List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
+ gvList.Add(gridView1);
+ Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace, gvList);
+ DevFrm.ShowDialog();
+ }
/// <summary>
/// 鍙嶅鏍�
/// </summary>
@@ -171,7 +183,7 @@
return;
}
Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3);
- if (xtraTabControl1.SelectedTabPageIndex == 1)
+ if (xtraTabControl1.SelectedTabPageIndex == 1)
{
getModel(lbGuid.Text.Trim());
}
@@ -330,7 +342,7 @@
txxtItem3.Text = "<" + _ary[2];
if (_ary.Length > 3)
txxtItem4.Text = "<" + _ary[3];
- if (_ary.Length >4)
+ if (_ary.Length > 4)
txxtItem5.Text = "<" + _ary[4];
txxtItem1.Enabled = txxtItem2.Enabled = txxtItem3.Enabled = txxtItem4.Enabled = panelControl1.Enabled = false;
}
@@ -396,7 +408,7 @@
txt_docCode.Properties.ValueMember = "docCode"; // 瀹為檯鍊肩殑鍒�
txt_docCode.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
}
-
+
private void DoPreviewCode()
{
if (txt_docCode.Enabled == false
@@ -484,5 +496,6 @@
MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
}
}
+
}
}
\ No newline at end of file
--
Gitblit v1.9.3