From f02a4e20cb6effb2c7f5018b5b2e92b39a7f56f5 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 18 二月 2025 13:36:42 +0800
Subject: [PATCH] 保存板面
---
DevApp/Gs.DevApp/Properties/Resources.Designer.cs | 20 ++
DevApp/Gs.DevApp/UserControl/showLayOut.resx | 140 +++++++++++++++++
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs | 23 ++
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 26 ++
DevApp/Gs.DevApp/UserControl/showLayOut.cs | 68 ++++++++
DevApp/Gs.DevApp/Resources/globalcolorscheme_16x16.png | 0
DevApp/Gs.DevApp/Gs.DevApp.csproj | 11 +
DevApp/Gs.DevApp/Properties/Resources.resx | 14 +
DevApp/Gs.DevApp/UserControl/showLayOut.Designer.cs | 139 +++++++++++++++++
DevApp/Gs.DevApp/Resources/globalcolorscheme_32x32.png | 0
10 files changed, 428 insertions(+), 13 deletions(-)
diff --git a/DevApp/Gs.DevApp/Gs.DevApp.csproj b/DevApp/Gs.DevApp/Gs.DevApp.csproj
index 1e61b9f..4da37a1 100644
--- a/DevApp/Gs.DevApp/Gs.DevApp.csproj
+++ b/DevApp/Gs.DevApp/Gs.DevApp.csproj
@@ -750,6 +750,12 @@
<Compile Include="UserControl\ShowFile.Designer.cs">
<DependentUpon>ShowFile.cs</DependentUpon>
</Compile>
+ <Compile Include="UserControl\showLayOut.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UserControl\showLayOut.Designer.cs">
+ <DependentUpon>showLayOut.cs</DependentUpon>
+ </Compile>
<Compile Include="UserControl\ShowLogcs.cs">
<SubType>Form</SubType>
</Compile>
@@ -1177,6 +1183,9 @@
<EmbeddedResource Include="UserControl\ShowFile.resx">
<DependentUpon>ShowFile.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="UserControl\showLayOut.resx">
+ <DependentUpon>showLayOut.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="UserControl\ShowLogcs.resx">
<DependentUpon>ShowLogcs.cs</DependentUpon>
</EmbeddedResource>
@@ -1435,6 +1444,8 @@
<None Include="Resources\employee_32x321.png" />
<None Include="Resources\publicfix_16x16.png" />
<None Include="Resources\publicfix_32x321.png" />
+ <None Include="Resources\globalcolorscheme_32x32.png" />
+ <None Include="Resources\globalcolorscheme_16x16.png" />
<Content Include="Resources\user_16x16.png" />
</ItemGroup>
<ItemGroup />
diff --git a/DevApp/Gs.DevApp/Properties/Resources.Designer.cs b/DevApp/Gs.DevApp/Properties/Resources.Designer.cs
index eaffb6b..054e31b 100644
--- a/DevApp/Gs.DevApp/Properties/Resources.Designer.cs
+++ b/DevApp/Gs.DevApp/Properties/Resources.Designer.cs
@@ -973,6 +973,26 @@
/// <summary>
/// 鏌ユ壘 System.Drawing.Bitmap 绫诲瀷鐨勬湰鍦板寲璧勬簮銆�
/// </summary>
+ internal static System.Drawing.Bitmap globalcolorscheme_16x16 {
+ get {
+ object obj = ResourceManager.GetObject("globalcolorscheme_16x16", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// 鏌ユ壘 System.Drawing.Bitmap 绫诲瀷鐨勬湰鍦板寲璧勬簮銆�
+ /// </summary>
+ internal static System.Drawing.Bitmap globalcolorscheme_32x32 {
+ get {
+ object obj = ResourceManager.GetObject("globalcolorscheme_32x32", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// 鏌ユ壘 System.Drawing.Bitmap 绫诲瀷鐨勬湰鍦板寲璧勬簮銆�
+ /// </summary>
internal static System.Drawing.Bitmap group_32x32 {
get {
object obj = ResourceManager.GetObject("group_32x32", resourceCulture);
diff --git a/DevApp/Gs.DevApp/Properties/Resources.resx b/DevApp/Gs.DevApp/Properties/Resources.resx
index 077a934..55310a7 100644
--- a/DevApp/Gs.DevApp/Properties/Resources.resx
+++ b/DevApp/Gs.DevApp/Properties/Resources.resx
@@ -188,11 +188,14 @@
<data name="converttorange_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\converttorange_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="trackingchanges_showmarkup_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\trackingchanges_showmarkup_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
<data name="copymodeldifferences_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\copymodeldifferences_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
- <data name="trackingchanges_showmarkup_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
- <value>..\Resources\trackingchanges_showmarkup_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ <data name="publicfix_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\publicfix_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="forcetesting_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\forcetesting_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -323,6 +326,9 @@
<value>..\Resources\show_32x32.png;System.Drawing.Bitmap,
System.Drawing, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="globalcolorscheme_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\globalcolorscheme_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="lookup&reference_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\lookup&reference_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -865,7 +871,7 @@
System.Drawing, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
- <data name="publicfix_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms">
- <value>..\Resources\publicfix_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ <data name="globalcolorscheme_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\globalcolorscheme_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/Resources/globalcolorscheme_16x16.png b/DevApp/Gs.DevApp/Resources/globalcolorscheme_16x16.png
new file mode 100644
index 0000000..8b9582e
--- /dev/null
+++ b/DevApp/Gs.DevApp/Resources/globalcolorscheme_16x16.png
Binary files differ
diff --git a/DevApp/Gs.DevApp/Resources/globalcolorscheme_32x32.png b/DevApp/Gs.DevApp/Resources/globalcolorscheme_32x32.png
new file mode 100644
index 0000000..b92f19e
--- /dev/null
+++ b/DevApp/Gs.DevApp/Resources/globalcolorscheme_32x32.png
Binary files differ
diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs
index 6311fb6..202cd40 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs
@@ -63,6 +63,7 @@
this.btnJieAn = new DevExpress.XtraBars.BarLargeButtonItem();
this.btnFjieAn = new DevExpress.XtraBars.BarLargeButtonItem();
this.btnHelp = new DevExpress.XtraBars.BarLargeButtonItem();
+ this.btnLayout = new DevExpress.XtraBars.BarLargeButtonItem();
this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
@@ -110,9 +111,10 @@
this.btnKg,
this.btnZhongTai,
this.btnWg,
- this.btnHelp});
+ this.btnHelp,
+ this.btnLayout});
this.barManager1.MainMenu = this.bar2;
- this.barManager1.MaxItemId = 51;
+ this.barManager1.MaxItemId = 52;
//
// bar2
//
@@ -150,7 +152,8 @@
new DevExpress.XtraBars.LinkPersistInfo(this.btnZhongTai),
new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnJieAn, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.btnFjieAn, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
- new DevExpress.XtraBars.LinkPersistInfo(this.btnHelp)});
+ new DevExpress.XtraBars.LinkPersistInfo(this.btnHelp),
+ new DevExpress.XtraBars.LinkPersistInfo(this.btnLayout)});
this.bar2.OptionsBar.AllowQuickCustomization = false;
this.bar2.OptionsBar.MultiLine = true;
this.bar2.OptionsBar.UseWholeRow = true;
@@ -451,6 +454,14 @@
this.btnHelp.ItemAppearance.Normal.Options.UseFont = true;
this.btnHelp.Name = "btnHelp";
//
+ // btnLayout
+ //
+ this.btnLayout.Caption = "淇濆瓨鐗堥潰";
+ this.btnLayout.Id = 51;
+ this.btnLayout.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.globalcolorscheme_16x16;
+ this.btnLayout.ImageOptions.LargeImage = global::Gs.DevApp.Properties.Resources.globalcolorscheme_32x32;
+ this.btnLayout.Name = "btnLayout";
+ //
// barDockControlTop
//
this.barDockControlTop.CausesValidation = false;
@@ -463,7 +474,7 @@
//
this.barDockControlBottom.CausesValidation = false;
this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.barDockControlBottom.Location = new System.Drawing.Point(0, 60);
+ this.barDockControlBottom.Location = new System.Drawing.Point(0, 70);
this.barDockControlBottom.Manager = this.barManager1;
this.barDockControlBottom.Size = new System.Drawing.Size(1543, 0);
//
@@ -492,7 +503,7 @@
this.Controls.Add(this.barDockControlBottom);
this.Controls.Add(this.barDockControlTop);
this.Name = "UcToolBarMenu";
- this.Size = new System.Drawing.Size(1543, 60);
+ this.Size = new System.Drawing.Size(1543, 70);
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -536,6 +547,6 @@
private DevExpress.XtraBars.BarLargeButtonItem btnZhongTai;
private DevExpress.XtraBars.BarLargeButtonItem btnWg;
private DevExpress.XtraBars.BarLargeButtonItem btnHelp;
-
+ private DevExpress.XtraBars.BarLargeButtonItem btnLayout;
}
}
diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 1b963e1..d6c3dcf 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -49,6 +49,7 @@
btnZhongTai.ItemClick += BtnbZhongTai_ItemClick;
btnWg.ItemClick += BtnWg_ItemClick;
btnHelp.ItemClick += BtnHelp_ItemClick;
+ btnLayout.ItemClick += BtnLayout_ItemClick;
var lst = new List<string>();
foreach (BarItem item in barManager1.Items)
if (item is BarLargeButtonItem largeButtonItem)
@@ -482,6 +483,7 @@
lst.Add(btnLog.Name);
lst.Add(btnPiZhun.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
lst.Add(btnBoHui.Name);
lst.Add(btnTzbl.Name);
lst.Add(btnKg.Name);
@@ -523,6 +525,7 @@
lst.Add(btnWg.Name);
lst.Add(btnZhongTai.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
lst.Add(btnLoad.Name);
lst.Add(btnTzbl.Name);
_enabledBtn(lst);
@@ -547,10 +550,10 @@
lst.Add(btnSave.Name);
lst.Add(btnEsc.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
_enabledBtn(lst);
this.currentAction = "edit";
if (btnEdtClick != null) btnEdtClick(this, e);
-
}
private void BtnDel_ItemClick(object sender, ItemClickEventArgs e)
@@ -573,6 +576,7 @@
lst.Add(btnSave.Name);
lst.Add(btnEsc.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
_enabledBtn(lst);
this.currentAction = "add";
if (btnAddClick != null) btnAddClick(this, e);
@@ -645,10 +649,25 @@
return;
}
Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtnJson.rtnMsg);
-
}
-
+ private void BtnLayout_ItemClick(object sender, ItemClickEventArgs e)
+ {
+ var _formNamespace = "";
+ Control parentControl = this;
+ while (parentControl.Parent != null)
+ {
+ if (parentControl.Parent is Form parentForm)
+ {
+ var formType = parentForm.GetType();
+ _formNamespace = formType.FullName;
+ break;
+ }
+ parentControl = parentControl.Parent;
+ }
+ Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace);
+ DevFrm.ShowDialog();
+ }
private void _enabledBtn(List<string> lstBtn)
{
foreach (BarItem item in barManager1.Items)
@@ -774,6 +793,7 @@
//榛樿鍚敤鐨勬寜閽�
_enabledList.Add(btnLoad.Name);
_enabledList.Add(btnHelp.Name);
+ _enabledList.Add(btnLayout.Name);
_enabledBtn(_enabledList);
}
catch (Exception ex)
diff --git a/DevApp/Gs.DevApp/UserControl/showLayOut.Designer.cs b/DevApp/Gs.DevApp/UserControl/showLayOut.Designer.cs
new file mode 100644
index 0000000..20196f2
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/showLayOut.Designer.cs
@@ -0,0 +1,139 @@
+锘縩amespace Gs.DevApp.UserControl
+{
+ partial class showLayOut
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(showLayOut));
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
+ this.btnSave = new DevExpress.XtraEditors.SimpleButton();
+ this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
+ this.txt_layOut = new DevExpress.XtraEditors.ComboBoxEdit();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.txt_layOut.Properties)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.White;
+ this.panel1.Controls.Add(this.txt_layOut);
+ this.panel1.Controls.Add(this.btnCancel);
+ this.panel1.Controls.Add(this.btnSave);
+ this.panel1.Controls.Add(this.labelControl1);
+ this.panel1.Font = new System.Drawing.Font("Tahoma", 12F);
+ this.panel1.Location = new System.Drawing.Point(35, 12);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(282, 228);
+ this.panel1.TabIndex = 2;
+ //
+ // btnCancel
+ //
+ this.btnCancel.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.btnCancel.Appearance.Options.UseFont = true;
+ this.btnCancel.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
+ this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnCancel.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.ImageOptions.Image")));
+ this.btnCancel.Location = new System.Drawing.Point(148, 126);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(98, 37);
+ this.btnCancel.TabIndex = 238;
+ this.btnCancel.Text = "鍙栨秷 (&C)";
+ //
+ // btnSave
+ //
+ this.btnSave.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.btnSave.Appearance.Options.UseFont = true;
+ this.btnSave.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
+ this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image")));
+ this.btnSave.Location = new System.Drawing.Point(25, 126);
+ this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.btnSave.Name = "btnSave";
+ this.btnSave.Size = new System.Drawing.Size(98, 37);
+ this.btnSave.TabIndex = 237;
+ this.btnSave.Text = "纭畾 (&L)";
+ //
+ // labelControl1
+ //
+ this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Black;
+ this.labelControl1.Appearance.Options.UseFont = true;
+ this.labelControl1.Appearance.Options.UseForeColor = true;
+ this.labelControl1.Appearance.Options.UseTextOptions = true;
+ this.labelControl1.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
+ this.labelControl1.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
+ this.labelControl1.Location = new System.Drawing.Point(19, 48);
+ this.labelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.labelControl1.Name = "labelControl1";
+ this.labelControl1.Size = new System.Drawing.Size(93, 18);
+ this.labelControl1.TabIndex = 236;
+ this.labelControl1.Text = "閫傜敤鑼冨洿锛�";
+ //
+ // txt_layOut
+ //
+ this.txt_layOut.EditValue = "-璇烽�夋嫨-";
+ this.txt_layOut.Location = new System.Drawing.Point(118, 46);
+ this.txt_layOut.Name = "txt_layOut";
+ this.txt_layOut.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+ this.txt_layOut.Properties.Items.AddRange(new object[] {
+ "-璇烽�夋嫨-",
+ "淇濆瓨涓哄叕鏈�",
+ "淇濆瓨涓虹鏈�"});
+ this.txt_layOut.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
+ this.txt_layOut.Size = new System.Drawing.Size(128, 24);
+ this.txt_layOut.TabIndex = 239;
+ //
+ // showLayOut
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(355, 274);
+ this.Controls.Add(this.panel1);
+ this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "showLayOut";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "淇濆瓨鏉块潰";
+ this.panel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.txt_layOut.Properties)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private DevExpress.XtraEditors.ComboBoxEdit txt_layOut;
+ private DevExpress.XtraEditors.SimpleButton btnCancel;
+ private DevExpress.XtraEditors.SimpleButton btnSave;
+ private DevExpress.XtraEditors.LabelControl labelControl1;
+ }
+}
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/UserControl/showLayOut.cs b/DevApp/Gs.DevApp/UserControl/showLayOut.cs
new file mode 100644
index 0000000..898e65b
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/showLayOut.cs
@@ -0,0 +1,68 @@
+锘縰sing DevExpress.XtraEditors;
+using Gs.DevApp.ToolBox;
+using Newtonsoft.Json;
+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.UserControl
+{
+ public partial class showLayOut : DevExpress.XtraEditors.XtraForm
+ {
+ string formNamespace = "";
+ public showLayOut(string _formNamespace)
+ {
+ formNamespace= _formNamespace;
+ InitializeComponent();
+ this.btnCancel.Click += BtnCancel_Click;
+ this.btnSave.Click += BtnSave_Click;
+ }
+
+ private void BtnSave_Click(object sender, EventArgs e)
+ {
+ if (txt_layOut.SelectedIndex <= 0)
+ {
+ MsgHelper.Warning("璇烽�夋嫨閫傜敤鑼冨洿锛�");
+ return;
+ }
+ var _obj = new
+ {
+ applyUserGuid = txt_layOut.SelectedIndex,
+ layoutLst= "col1,100,101,102,103,104,105,1,title&gridview1=col2,100,101,102,103,104,105,1,title",
+ formPath = formNamespace
+ };
+ try
+ {
+ var strJson = UtilityHelper.HttpPost("", "Fm/EditModel",
+ JsonConvert.SerializeObject(_obj));
+ var _rtn = UtilityHelper.ReturnToDynamic(strJson);
+ MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnData.outMsg);
+ if (_rtn.rtnCode > 0)
+ {
+ DialogResult = DialogResult.OK;
+ Close();
+ }
+ else
+ {
+ DialogResult = DialogResult.None;
+ }
+ }
+ catch (Exception ex)
+ {
+ DialogResult = DialogResult.Cancel;
+ MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+ }
+ }
+
+ private void BtnCancel_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+ }
+}
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/UserControl/showLayOut.resx b/DevApp/Gs.DevApp/UserControl/showLayOut.resx
new file mode 100644
index 0000000..c0dfd5d
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/showLayOut.resx
@@ -0,0 +1,140 @@
+锘�<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="btnCancel.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABF0RVh0VGl0
+ bGUAQ2xvc2U7RXhpdDsFGf+FAAAArElEQVQ4T7XSOwoCQRCE4c0E8XEDQTMRA+/gTTykGBuYGm6olxBE
+ tP1LHGl1WoZVg2+DYrqYZrYys6/cPvVibk38teBUkkUFNcbYuGyFCXYuyxYcMYSyPlSi4fY9m+KMsECW
+ aEF5D2m4gzUeZ6MC8SXZYflU4K8taZ2nc1GBH+4i3eStJFdwwABpWNf268xwQVggW4zgd1aJnnbvsrBA
+ 9JyvWfGPVOx3Bc1ZdQWpA3U147gCvgAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="btnSave.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACB0RVh0VGl0
+ bGUATmV3O05ld0VtcGxveWVlO05ld1BlcnNvbjveWVScAAAA3ElEQVQ4T5WOPQ5BQRSF3wYsgohCJXRq
+ PRWJJaktgFLUOjsQ0egURKEgaj/NOEfuyJl5E4/iy8y5c7+Tyc6LruI0O+cKUbEVnUkhxhd4ycOcDUdL
+ cgVjULKcK1AxyCbwJBPLuYKiH/iCm+VkgZf0VJlcKJNUgRZ9sshkRpkEBRr8AmiCJ/Ay75z9XED64GQM
+ bPZGnSDYAsUjqFgmZXAAPWZ1goDHBngAfnsDqqAGtjbjW12duGBui9+YqhMXnKPlFCd14oJ9tJxip05c
+ 0AFrcLdlhbMVaKsTFPyPy16LX4vunIH/egAAAABJRU5ErkJggg==
+</value>
+ </data>
+</root>
\ No newline at end of file
--
Gitblit v1.9.3