Commit ed4a45df authored by 段廷瑞's avatar 段廷瑞

pref: 搜索框改为回车触发

parent 78b651f4
......@@ -58,3 +58,4 @@ bin
/AppHome/config/links.xml
/AppHome/config/List`1.json
/Tools/Tools.csproj.user
/Tools/.claude/settings.local.json
......@@ -124,7 +124,7 @@
this.txtSearch.Name = "txtSearch";
this.txtSearch.Size = new System.Drawing.Size(168, 23);
this.txtSearch.TabIndex = 7;
this.txtSearch.TextChanged += new System.EventHandler(this.txtSearch_TextChanged);
this.txtSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtSearch_KeyDown);
this.txtSearch.Enter += new System.EventHandler(this.txtSearch_Enter);
this.txtSearch.Leave += new System.EventHandler(this.txtSearch_Leave);
//
......
......@@ -21,6 +21,7 @@ namespace Tools.UI
public wAutoClass()
{
InitializeComponent();
new ToolTip().SetToolTip(this.txtSearch, "回车触发搜索");
}
private void tsbDB_Click(object sender, EventArgs e)
......@@ -60,12 +61,15 @@ namespace Tools.UI
}
private void txtSearch_TextChanged(object sender, EventArgs e)
private void txtSearch_KeyDown(object sender, KeyEventArgs e)
{
if (string.IsNullOrEmpty(this.tstbLinkString.Text) || txtSearch.ForeColor == Color.LightGray)
return;
if (e.KeyCode == Keys.Enter)
{
if (string.IsNullOrEmpty(this.tstbLinkString.Text) || txtSearch.ForeColor == Color.LightGray)
return;
this.RefrashData(false);
this.RefrashData(false);
}
}
Boolean textboxHasText = false;//判断输入框是否有文本
......
......@@ -318,7 +318,7 @@
this.tsmiAutoSizeColumns,
this.tsmiSaveColumnWidth});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 142);
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 136);
//
// tsmiAddRow
//
......
......@@ -107,7 +107,7 @@
this.tslDbLinkString});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(966, 25);
this.toolStrip1.Size = new System.Drawing.Size(1127, 25);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
......@@ -174,6 +174,7 @@
this.splitContainer1.BackColor = System.Drawing.Color.LightSkyBlue;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 25);
this.splitContainer1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
......@@ -186,17 +187,18 @@
//
this.splitContainer1.Panel2.BackColor = System.Drawing.SystemColors.Control;
this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1);
this.splitContainer1.Size = new System.Drawing.Size(966, 541);
this.splitContainer1.SplitterDistance = 220;
this.splitContainer1.SplitterWidth = 6;
this.splitContainer1.Size = new System.Drawing.Size(1127, 777);
this.splitContainer1.SplitterDistance = 256;
this.splitContainer1.SplitterWidth = 7;
this.splitContainer1.TabIndex = 1;
//
// myTreeView1
//
this.myTreeView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.myTreeView1.Location = new System.Drawing.Point(0, 39);
this.myTreeView1.Location = new System.Drawing.Point(0, 54);
this.myTreeView1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.myTreeView1.Name = "myTreeView1";
this.myTreeView1.Size = new System.Drawing.Size(220, 502);
this.myTreeView1.Size = new System.Drawing.Size(256, 723);
this.myTreeView1.TabIndex = 1;
//
// panelMHeader
......@@ -207,8 +209,9 @@
this.panelMHeader.Controls.Add(this.label13);
this.panelMHeader.Dock = System.Windows.Forms.DockStyle.Top;
this.panelMHeader.Location = new System.Drawing.Point(0, 0);
this.panelMHeader.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panelMHeader.Name = "panelMHeader";
this.panelMHeader.Size = new System.Drawing.Size(220, 39);
this.panelMHeader.Size = new System.Drawing.Size(256, 54);
this.panelMHeader.TabIndex = 0;
//
// tbSearch
......@@ -216,30 +219,32 @@
this.tbSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbSearch.Location = new System.Drawing.Point(52, 9);
this.tbSearch.Location = new System.Drawing.Point(61, 13);
this.tbSearch.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbSearch.Name = "tbSearch";
this.tbSearch.Size = new System.Drawing.Size(150, 21);
this.tbSearch.Size = new System.Drawing.Size(173, 23);
this.tbSearch.TabIndex = 1;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(5, 12);
this.label13.Location = new System.Drawing.Point(6, 17);
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(41, 12);
this.label13.Size = new System.Drawing.Size(44, 17);
this.label13.TabIndex = 0;
this.label13.Text = "查询:";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 8;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 75F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 88F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 75F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 88F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 75F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 88F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 75F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 88F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.Controls.Add(this.dgvDetail, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.tsFuncInfo, 0, 4);
......@@ -270,19 +275,20 @@
this.tableLayoutPanel1.Controls.Add(this.tbPrevID, 3, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 8;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(740, 541);
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(864, 777);
this.tableLayoutPanel1.TabIndex = 1;
//
// dgvDetail
......@@ -292,11 +298,12 @@
this.tableLayoutPanel1.SetColumnSpan(this.dgvDetail, 8);
this.dgvDetail.ContextMenuStrip = this.cmsDetail;
this.dgvDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvDetail.Location = new System.Drawing.Point(3, 138);
this.dgvDetail.Location = new System.Drawing.Point(4, 194);
this.dgvDetail.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dgvDetail.Name = "dgvDetail";
this.tableLayoutPanel1.SetRowSpan(this.dgvDetail, 3);
this.dgvDetail.RowTemplate.Height = 23;
this.dgvDetail.Size = new System.Drawing.Size(734, 400);
this.dgvDetail.Size = new System.Drawing.Size(856, 579);
this.dgvDetail.TabIndex = 1;
//
// cmsDetail
......@@ -336,33 +343,33 @@
this.toolStripLabel1,
this.tslbStatus,
this.tstbFocusedCellContent});
this.tsFuncInfo.Location = new System.Drawing.Point(0, 108);
this.tsFuncInfo.Location = new System.Drawing.Point(0, 152);
this.tsFuncInfo.Name = "tsFuncInfo";
this.tsFuncInfo.Size = new System.Drawing.Size(740, 27);
this.tsFuncInfo.Size = new System.Drawing.Size(864, 38);
this.tsFuncInfo.TabIndex = 1;
this.tsFuncInfo.Text = "toolStrip3";
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(56, 24);
this.toolStripLabel2.Size = new System.Drawing.Size(56, 35);
this.toolStripLabel2.Text = "功能信息";
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 27);
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 38);
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(0, 24);
this.toolStripLabel1.Size = new System.Drawing.Size(0, 35);
//
// tslbStatus
//
this.tslbStatus.ForeColor = System.Drawing.Color.Gray;
this.tslbStatus.Name = "tslbStatus";
this.tslbStatus.Size = new System.Drawing.Size(44, 24);
this.tslbStatus.Size = new System.Drawing.Size(44, 35);
this.tslbStatus.Text = "已复制";
//
// tstbFocusedCellContent
......@@ -370,7 +377,7 @@
this.tstbFocusedCellContent.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.tstbFocusedCellContent.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tstbFocusedCellContent.Name = "tstbFocusedCellContent";
this.tstbFocusedCellContent.Size = new System.Drawing.Size(300, 27);
this.tstbFocusedCellContent.Size = new System.Drawing.Size(350, 38);
//
// tsBaseInfo
//
......@@ -380,23 +387,24 @@
this.toolStripLabel3});
this.tsBaseInfo.Location = new System.Drawing.Point(0, 0);
this.tsBaseInfo.Name = "tsBaseInfo";
this.tsBaseInfo.Size = new System.Drawing.Size(740, 27);
this.tsBaseInfo.Size = new System.Drawing.Size(864, 38);
this.tsBaseInfo.TabIndex = 0;
this.tsBaseInfo.Text = "toolStrip2";
//
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(56, 24);
this.toolStripLabel3.Size = new System.Drawing.Size(56, 35);
this.toolStripLabel3.Text = "基本信息";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(3, 27);
this.label1.Location = new System.Drawing.Point(4, 38);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(69, 27);
this.label1.Size = new System.Drawing.Size(80, 38);
this.label1.TabIndex = 2;
this.label1.Text = "模块名称";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -405,9 +413,10 @@
//
this.label2.AutoSize = true;
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(3, 54);
this.label2.Location = new System.Drawing.Point(4, 76);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(69, 27);
this.label2.Size = new System.Drawing.Size(80, 38);
this.label2.TabIndex = 3;
this.label2.Text = "字符串ID";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -416,9 +425,10 @@
//
this.label3.AutoSize = true;
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Location = new System.Drawing.Point(3, 81);
this.label3.Location = new System.Drawing.Point(4, 114);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(69, 27);
this.label3.Size = new System.Drawing.Size(80, 38);
this.label3.TabIndex = 4;
this.label3.Text = "类 型";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -427,9 +437,10 @@
//
this.label4.AutoSize = true;
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Location = new System.Drawing.Point(188, 27);
this.label4.Location = new System.Drawing.Point(220, 38);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(69, 27);
this.label4.Size = new System.Drawing.Size(80, 38);
this.label4.TabIndex = 5;
this.label4.Text = "归属目录";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -438,9 +449,10 @@
//
this.label5.AutoSize = true;
this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
this.label5.Location = new System.Drawing.Point(188, 54);
this.label5.Location = new System.Drawing.Point(220, 76);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(69, 27);
this.label5.Size = new System.Drawing.Size(80, 38);
this.label5.TabIndex = 6;
this.label5.Text = "层级编号";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -449,9 +461,10 @@
//
this.label6.AutoSize = true;
this.label6.Dock = System.Windows.Forms.DockStyle.Fill;
this.label6.Location = new System.Drawing.Point(188, 81);
this.label6.Location = new System.Drawing.Point(220, 114);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(69, 27);
this.label6.Size = new System.Drawing.Size(80, 38);
this.label6.TabIndex = 7;
this.label6.Text = "条码类型";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -460,9 +473,10 @@
//
this.label7.AutoSize = true;
this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
this.label7.Location = new System.Drawing.Point(373, 27);
this.label7.Location = new System.Drawing.Point(436, 38);
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(69, 27);
this.label7.Size = new System.Drawing.Size(80, 38);
this.label7.TabIndex = 8;
this.label7.Text = "业 务 类";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -471,9 +485,10 @@
//
this.label8.AutoSize = true;
this.label8.Dock = System.Windows.Forms.DockStyle.Fill;
this.label8.Location = new System.Drawing.Point(373, 54);
this.label8.Location = new System.Drawing.Point(436, 76);
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(69, 27);
this.label8.Size = new System.Drawing.Size(80, 38);
this.label8.TabIndex = 9;
this.label8.Text = "序 号";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -482,9 +497,10 @@
//
this.label9.AutoSize = true;
this.label9.Dock = System.Windows.Forms.DockStyle.Fill;
this.label9.Location = new System.Drawing.Point(373, 81);
this.label9.Location = new System.Drawing.Point(436, 114);
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(69, 27);
this.label9.Size = new System.Drawing.Size(80, 38);
this.label9.TabIndex = 10;
this.label9.Text = "跨级报表";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -493,9 +509,10 @@
//
this.label10.AutoSize = true;
this.label10.Dock = System.Windows.Forms.DockStyle.Fill;
this.label10.Location = new System.Drawing.Point(558, 27);
this.label10.Location = new System.Drawing.Point(652, 38);
this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(69, 27);
this.label10.Size = new System.Drawing.Size(80, 38);
this.label10.TabIndex = 11;
this.label10.Text = "枚 举 值";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -504,9 +521,10 @@
//
this.label11.AutoSize = true;
this.label11.Dock = System.Windows.Forms.DockStyle.Fill;
this.label11.Location = new System.Drawing.Point(558, 54);
this.label11.Location = new System.Drawing.Point(652, 76);
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(69, 27);
this.label11.Size = new System.Drawing.Size(80, 38);
this.label11.TabIndex = 12;
this.label11.Text = "图标编号";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -515,9 +533,10 @@
//
this.label12.AutoSize = true;
this.label12.Dock = System.Windows.Forms.DockStyle.Fill;
this.label12.Location = new System.Drawing.Point(558, 81);
this.label12.Location = new System.Drawing.Point(652, 114);
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(69, 27);
this.label12.Size = new System.Drawing.Size(80, 38);
this.label12.TabIndex = 13;
this.label12.Text = "系统归属";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -525,76 +544,85 @@
// tbName
//
this.tbName.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbName.Location = new System.Drawing.Point(78, 30);
this.tbName.Location = new System.Drawing.Point(93, 44);
this.tbName.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbName.Name = "tbName";
this.tbName.Size = new System.Drawing.Size(104, 21);
this.tbName.Size = new System.Drawing.Size(118, 23);
this.tbName.TabIndex = 14;
//
// tbBusinessName
//
this.tbBusinessName.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbBusinessName.Location = new System.Drawing.Point(448, 30);
this.tbBusinessName.Location = new System.Drawing.Point(525, 44);
this.tbBusinessName.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbBusinessName.Name = "tbBusinessName";
this.tbBusinessName.ReadOnly = true;
this.tbBusinessName.Size = new System.Drawing.Size(104, 21);
this.tbBusinessName.Size = new System.Drawing.Size(118, 23);
this.tbBusinessName.TabIndex = 16;
//
// tbStringID
//
this.tbStringID.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbStringID.Location = new System.Drawing.Point(78, 57);
this.tbStringID.Location = new System.Drawing.Point(93, 82);
this.tbStringID.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbStringID.Name = "tbStringID";
this.tbStringID.Size = new System.Drawing.Size(104, 21);
this.tbStringID.Size = new System.Drawing.Size(118, 23);
this.tbStringID.TabIndex = 18;
//
// tbDocType
//
this.tbDocType.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbDocType.Location = new System.Drawing.Point(633, 30);
this.tbDocType.Location = new System.Drawing.Point(741, 44);
this.tbDocType.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbDocType.Name = "tbDocType";
this.tbDocType.Size = new System.Drawing.Size(104, 21);
this.tbDocType.Size = new System.Drawing.Size(118, 23);
this.tbDocType.TabIndex = 19;
//
// tbLevelNum
//
this.tbLevelNum.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbLevelNum.Location = new System.Drawing.Point(263, 57);
this.tbLevelNum.Location = new System.Drawing.Point(309, 82);
this.tbLevelNum.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbLevelNum.Name = "tbLevelNum";
this.tbLevelNum.Size = new System.Drawing.Size(104, 21);
this.tbLevelNum.Size = new System.Drawing.Size(118, 23);
this.tbLevelNum.TabIndex = 20;
//
// tbIndex
//
this.tbIndex.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbIndex.Location = new System.Drawing.Point(448, 57);
this.tbIndex.Location = new System.Drawing.Point(525, 82);
this.tbIndex.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbIndex.Name = "tbIndex";
this.tbIndex.Size = new System.Drawing.Size(104, 21);
this.tbIndex.Size = new System.Drawing.Size(118, 23);
this.tbIndex.TabIndex = 21;
//
// tbIcoIndex
//
this.tbIcoIndex.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbIcoIndex.Location = new System.Drawing.Point(633, 57);
this.tbIcoIndex.Location = new System.Drawing.Point(741, 82);
this.tbIcoIndex.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbIcoIndex.Name = "tbIcoIndex";
this.tbIcoIndex.Size = new System.Drawing.Size(104, 21);
this.tbIcoIndex.Size = new System.Drawing.Size(118, 23);
this.tbIcoIndex.TabIndex = 22;
//
// tbType
//
this.tbType.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbType.Location = new System.Drawing.Point(78, 84);
this.tbType.Location = new System.Drawing.Point(93, 120);
this.tbType.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbType.Name = "tbType";
this.tbType.ReadOnly = true;
this.tbType.Size = new System.Drawing.Size(104, 21);
this.tbType.Size = new System.Drawing.Size(118, 23);
this.tbType.TabIndex = 23;
//
// tbProductBarCodeType
//
this.tbProductBarCodeType.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbProductBarCodeType.Location = new System.Drawing.Point(263, 84);
this.tbProductBarCodeType.Location = new System.Drawing.Point(309, 120);
this.tbProductBarCodeType.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbProductBarCodeType.Name = "tbProductBarCodeType";
this.tbProductBarCodeType.ReadOnly = true;
this.tbProductBarCodeType.Size = new System.Drawing.Size(104, 21);
this.tbProductBarCodeType.Size = new System.Drawing.Size(118, 23);
this.tbProductBarCodeType.TabIndex = 24;
//
// ckCanPassLevelReport
......@@ -602,26 +630,29 @@
this.ckCanPassLevelReport.AutoSize = true;
this.ckCanPassLevelReport.Dock = System.Windows.Forms.DockStyle.Fill;
this.ckCanPassLevelReport.Enabled = false;
this.ckCanPassLevelReport.Location = new System.Drawing.Point(448, 84);
this.ckCanPassLevelReport.Location = new System.Drawing.Point(524, 118);
this.ckCanPassLevelReport.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.ckCanPassLevelReport.Name = "ckCanPassLevelReport";
this.ckCanPassLevelReport.Size = new System.Drawing.Size(104, 21);
this.ckCanPassLevelReport.Size = new System.Drawing.Size(120, 30);
this.ckCanPassLevelReport.TabIndex = 25;
this.ckCanPassLevelReport.UseVisualStyleBackColor = true;
//
// tbSysCode
//
this.tbSysCode.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbSysCode.Location = new System.Drawing.Point(633, 84);
this.tbSysCode.Location = new System.Drawing.Point(741, 120);
this.tbSysCode.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbSysCode.Name = "tbSysCode";
this.tbSysCode.Size = new System.Drawing.Size(104, 21);
this.tbSysCode.Size = new System.Drawing.Size(118, 23);
this.tbSysCode.TabIndex = 26;
//
// tbPrevID
//
this.tbPrevID.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbPrevID.Location = new System.Drawing.Point(263, 30);
this.tbPrevID.Location = new System.Drawing.Point(309, 44);
this.tbPrevID.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
this.tbPrevID.Name = "tbPrevID";
this.tbPrevID.Size = new System.Drawing.Size(104, 21);
this.tbPrevID.Size = new System.Drawing.Size(118, 23);
this.tbPrevID.TabIndex = 28;
//
// imgList5
......@@ -633,11 +664,12 @@
//
// wModuleManager
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(966, 566);
this.ClientSize = new System.Drawing.Size(1127, 802);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.toolStrip1);
this.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
this.Name = "wModuleManager";
this.Text = "模块管理";
this.Load += new System.EventHandler(this.wModuleManager_Load);
......
......@@ -46,6 +46,7 @@ namespace Tools.UI
public wModuleManager()
{
InitializeComponent();
new ToolTip().SetToolTip(this.tbSearch, "回车触发搜索");
}
private void wModuleManager_Load(object sender, EventArgs e)
{
......@@ -93,7 +94,7 @@ namespace Tools.UI
this.myTreeView1.SelectedNode = this.myTreeView1.Nodes[0]; //选中首节点
}
//模块查询
this.tbSearch.TextChanged += TbSearch_TextChanged;
this.tbSearch.KeyDown += TbSearch_KeyDown;
//输入模块名称,自动生成字符串ID
this.tbName.TextChanged += TbName_TextChanged;
//功能信息:单元格内容点击,自动复制内容
......@@ -208,9 +209,12 @@ namespace Tools.UI
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void TbSearch_TextChanged(object sender, EventArgs e)
private void TbSearch_KeyDown(object sender, KeyEventArgs e)
{
this.SetTreeNodeBackColor(this.myTreeView1.Nodes, this.tbSearch.Text.Trim());
if (e.KeyCode == Keys.Enter)
{
this.SetTreeNodeBackColor(this.myTreeView1.Nodes, this.tbSearch.Text.Trim());
}
}
/// <summary>
/// (查询)设置树节点背景色
......
......@@ -137,7 +137,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADo
CAAAAk1TRnQBSQFMAgEBAgEAAZABAAGQAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAZgBAAGYAQABEAEAARABAAT/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