Commit 7534ed0e authored by tr's avatar tr

1、模块管理:明细信息单元格内容点击,自动复制内容

parent f477d6be
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="UpdateTime" value="2021-08-25 13:49:29.883" />
<add key="UpdateTime" value="2021-08-25 15:50:30.643" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
......
......@@ -66,4 +66,10 @@
<UserId>sa</UserId>
<Pwd>sa</Pwd>
</links>
<links>
<Link>27.154.225.54,49296</Link>
<DbName>FTT_U6_0813</DbName>
<UserId>sa</UserId>
<Pwd>a*1</Pwd>
</links>
</DocumentElement>
\ No newline at end of file
......@@ -39,7 +39,7 @@
this.tsbDbSetting = new System.Windows.Forms.ToolStripButton();
this.tslDbLinkString = new System.Windows.Forms.ToolStripLabel();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.imgList5 = new System.Windows.Forms.ImageList(this.components);
this.myTreeView1 = new Tools.MyCommon.controls.MyTreeView();
this.panelMHeader = new System.Windows.Forms.Panel();
this.tbSearch = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
......@@ -77,7 +77,11 @@
this.ckCanPassLevelReport = new System.Windows.Forms.CheckBox();
this.tbSysCode = new System.Windows.Forms.TextBox();
this.tbPrevID = new System.Windows.Forms.TextBox();
this.myTreeView1 = new Tools.MyCommon.controls.MyTreeView();
this.imgList5 = new System.Windows.Forms.ImageList(this.components);
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.tstbFocusedCellContent = new System.Windows.Forms.ToolStripTextBox();
this.tslbStatus = new System.Windows.Forms.ToolStripLabel();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
......@@ -187,12 +191,13 @@
this.splitContainer1.SplitterWidth = 6;
this.splitContainer1.TabIndex = 1;
//
// imgList5
// myTreeView1
//
this.imgList5.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList5.ImageStream")));
this.imgList5.TransparentColor = System.Drawing.Color.Transparent;
this.imgList5.Images.SetKeyName(0, "tv5-gray.png");
this.imgList5.Images.SetKeyName(1, "tv5-red.png");
this.myTreeView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.myTreeView1.Location = new System.Drawing.Point(0, 39);
this.myTreeView1.Name = "myTreeView1";
this.myTreeView1.Size = new System.Drawing.Size(220, 502);
this.myTreeView1.TabIndex = 1;
//
// panelMHeader
//
......@@ -326,7 +331,11 @@
this.tableLayoutPanel1.SetColumnSpan(this.tsFuncInfo, 8);
this.tsFuncInfo.Dock = System.Windows.Forms.DockStyle.Fill;
this.tsFuncInfo.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel2});
this.toolStripLabel2,
this.toolStripSeparator1,
this.toolStripLabel1,
this.tslbStatus,
this.tstbFocusedCellContent});
this.tsFuncInfo.Location = new System.Drawing.Point(0, 108);
this.tsFuncInfo.Name = "tsFuncInfo";
this.tsFuncInfo.Size = new System.Drawing.Size(740, 27);
......@@ -591,13 +600,37 @@
this.tbPrevID.Size = new System.Drawing.Size(104, 21);
this.tbPrevID.TabIndex = 28;
//
// myTreeView1
// imgList5
//
this.myTreeView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.myTreeView1.Location = new System.Drawing.Point(0, 39);
this.myTreeView1.Name = "myTreeView1";
this.myTreeView1.Size = new System.Drawing.Size(220, 502);
this.myTreeView1.TabIndex = 1;
this.imgList5.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList5.ImageStream")));
this.imgList5.TransparentColor = System.Drawing.Color.Transparent;
this.imgList5.Images.SetKeyName(0, "tv5-gray.png");
this.imgList5.Images.SetKeyName(1, "tv5-red.png");
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 27);
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(0, 24);
//
// tstbFocusedCellContent
//
this.tstbFocusedCellContent.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.tstbFocusedCellContent.Enabled = false;
this.tstbFocusedCellContent.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tstbFocusedCellContent.Name = "tstbFocusedCellContent";
this.tstbFocusedCellContent.Size = new System.Drawing.Size(300, 27);
//
// tslbStatus
//
this.tslbStatus.ForeColor = System.Drawing.Color.Gray;
this.tslbStatus.Name = "tslbStatus";
this.tslbStatus.Size = new System.Drawing.Size(44, 24);
this.tslbStatus.Text = "已复制";
//
// wModuleManager
//
......@@ -680,5 +713,9 @@
private System.Windows.Forms.ToolStripMenuItem tsmiCopy;
private System.Windows.Forms.ToolStripButton tsbGenSQL;
private MyCommon.controls.MyTreeView myTreeView1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripTextBox tstbFocusedCellContent;
private System.Windows.Forms.ToolStripLabel tslbStatus;
}
}
\ No newline at end of file
......@@ -83,7 +83,6 @@ namespace Tools.UI
this.dgvDetail.AllowUserToAddRows = false;
this.dgvDetail.DataSource = this._dtDetail.DefaultView;
//初始化树形图
//初始化树节点
this.myTreeView1.DataSource = this._dtModel;
//添加选择后事件
this.myTreeView1.AfterSelect += Tv_AfterSelect;
......@@ -97,6 +96,8 @@ namespace Tools.UI
this.tbSearch.TextChanged += TbSearch_TextChanged;
//输入模块名称,自动生成字符串ID
this.tbName.TextChanged += TbName_TextChanged;
//功能信息:单元格内容点击,自动复制内容
this.dgvDetail.CellContentClick += DgvDetail_CellContentClick;
}
#region 工具栏事件
......@@ -261,6 +262,19 @@ namespace Tools.UI
#endregion
#region 便捷功能:单元格内容点击,自动复制内容
//单元格内容点击,自动复制内容
private void DgvDetail_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0 || e.ColumnIndex < 0)
return;
var content = this.dgvDetail.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
this.tstbFocusedCellContent.Text = content;
Clipboard.SetText(content);
}
#endregion
#region 便捷操作:字符串ID-自动生成
private void TbName_TextChanged(object sender, EventArgs e)
......
......@@ -137,7 +137,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADo
CAAAAk1TRnQBSQFMAgEBAgEAAYABAAGAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAYgBAAGIAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment