Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
7534ed0e
Commit
7534ed0e
authored
Sep 02, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、模块管理:明细信息单元格内容点击,自动复制内容
parent
f477d6be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
17 deletions
+74
-17
Tools.exe.config
AppHome/Tools.exe.config
+1
-1
links.xml
AppHome/config/links.xml
+6
-0
wModuleManager.Designer.cs
Tools/UI/wModuleManager.Designer.cs
+51
-14
wModuleManager.cs
Tools/UI/wModuleManager.cs
+15
-1
wModuleManager.resx
Tools/UI/wModuleManager.resx
+1
-1
No files found.
AppHome/Tools.exe.config
View file @
7534ed0e
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configuration
>
<
appSettings
>
<
appSettings
>
<
add
key
=
"UpdateTime"
value
=
"2021-08-25 1
3:49:29.88
3"
/>
<
add
key
=
"UpdateTime"
value
=
"2021-08-25 1
5:50:30.64
3"
/>
</
appSettings
>
</
appSettings
>
<
startup
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/>
...
...
AppHome/config/links.xml
View file @
7534ed0e
...
@@ -66,4 +66,10 @@
...
@@ -66,4 +66,10 @@
<UserId>
sa
</UserId>
<UserId>
sa
</UserId>
<Pwd>
sa
</Pwd>
<Pwd>
sa
</Pwd>
</links>
</links>
<links>
<Link>
27.154.225.54,49296
</Link>
<DbName>
FTT_U6_0813
</DbName>
<UserId>
sa
</UserId>
<Pwd>
a*1
</Pwd>
</links>
</DocumentElement>
</DocumentElement>
\ No newline at end of file
Tools/UI/wModuleManager.Designer.cs
View file @
7534ed0e
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
this
.
tsbDbSetting
=
new
System
.
Windows
.
Forms
.
ToolStripButton
();
this
.
tsbDbSetting
=
new
System
.
Windows
.
Forms
.
ToolStripButton
();
this
.
tslDbLinkString
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
tslDbLinkString
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
splitContainer1
=
new
System
.
Windows
.
Forms
.
SplitContainer
();
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
.
panelMHeader
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
tbSearch
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tbSearch
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label13
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label13
=
new
System
.
Windows
.
Forms
.
Label
();
...
@@ -77,7 +77,11 @@
...
@@ -77,7 +77,11 @@
this
.
ckCanPassLevelReport
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
ckCanPassLevelReport
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
tbSysCode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tbSysCode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tbPrevID
=
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
();
this
.
toolStrip1
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
splitContainer1
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
splitContainer1
)).
BeginInit
();
this
.
splitContainer1
.
Panel1
.
SuspendLayout
();
this
.
splitContainer1
.
Panel1
.
SuspendLayout
();
...
@@ -187,12 +191,13 @@
...
@@ -187,12 +191,13 @@
this
.
splitContainer1
.
SplitterWidth
=
6
;
this
.
splitContainer1
.
SplitterWidth
=
6
;
this
.
splitContainer1
.
TabIndex
=
1
;
this
.
splitContainer1
.
TabIndex
=
1
;
//
//
//
imgList5
//
myTreeView1
//
//
this
.
imgList5
.
ImageStream
=
((
System
.
Windows
.
Forms
.
ImageListStreamer
)(
resources
.
GetObject
(
"imgList5.ImageStream"
)));
this
.
myTreeView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
imgList5
.
TransparentColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
myTreeView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
39
);
this
.
imgList5
.
Images
.
SetKeyName
(
0
,
"tv5-gray.png"
);
this
.
myTreeView1
.
Name
=
"myTreeView1"
;
this
.
imgList5
.
Images
.
SetKeyName
(
1
,
"tv5-red.png"
);
this
.
myTreeView1
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
502
);
this
.
myTreeView1
.
TabIndex
=
1
;
//
//
// panelMHeader
// panelMHeader
//
//
...
@@ -326,7 +331,11 @@
...
@@ -326,7 +331,11 @@
this
.
tableLayoutPanel1
.
SetColumnSpan
(
this
.
tsFuncInfo
,
8
);
this
.
tableLayoutPanel1
.
SetColumnSpan
(
this
.
tsFuncInfo
,
8
);
this
.
tsFuncInfo
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tsFuncInfo
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tsFuncInfo
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
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
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
108
);
this
.
tsFuncInfo
.
Name
=
"tsFuncInfo"
;
this
.
tsFuncInfo
.
Name
=
"tsFuncInfo"
;
this
.
tsFuncInfo
.
Size
=
new
System
.
Drawing
.
Size
(
740
,
27
);
this
.
tsFuncInfo
.
Size
=
new
System
.
Drawing
.
Size
(
740
,
27
);
...
@@ -591,13 +600,37 @@
...
@@ -591,13 +600,37 @@
this
.
tbPrevID
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
21
);
this
.
tbPrevID
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
21
);
this
.
tbPrevID
.
TabIndex
=
28
;
this
.
tbPrevID
.
TabIndex
=
28
;
//
//
//
myTreeView1
//
imgList5
//
//
this
.
myTreeView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
imgList5
.
ImageStream
=
((
System
.
Windows
.
Forms
.
ImageListStreamer
)(
resources
.
GetObject
(
"imgList5.ImageStream"
)));
this
.
myTreeView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
39
);
this
.
imgList5
.
TransparentColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
myTreeView1
.
Name
=
"myTreeView1"
;
this
.
imgList5
.
Images
.
SetKeyName
(
0
,
"tv5-gray.png"
);
this
.
myTreeView1
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
502
);
this
.
imgList5
.
Images
.
SetKeyName
(
1
,
"tv5-red.png"
);
this
.
myTreeView1
.
TabIndex
=
1
;
//
// 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
// wModuleManager
//
//
...
@@ -680,5 +713,9 @@
...
@@ -680,5 +713,9 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
tsmiCopy
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
tsmiCopy
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbGenSQL
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbGenSQL
;
private
MyCommon
.
controls
.
MyTreeView
myTreeView1
;
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
Tools/UI/wModuleManager.cs
View file @
7534ed0e
...
@@ -83,7 +83,6 @@ namespace Tools.UI
...
@@ -83,7 +83,6 @@ namespace Tools.UI
this
.
dgvDetail
.
AllowUserToAddRows
=
false
;
this
.
dgvDetail
.
AllowUserToAddRows
=
false
;
this
.
dgvDetail
.
DataSource
=
this
.
_dtDetail
.
DefaultView
;
this
.
dgvDetail
.
DataSource
=
this
.
_dtDetail
.
DefaultView
;
//初始化树形图
//初始化树形图
//初始化树节点
this
.
myTreeView1
.
DataSource
=
this
.
_dtModel
;
this
.
myTreeView1
.
DataSource
=
this
.
_dtModel
;
//添加选择后事件
//添加选择后事件
this
.
myTreeView1
.
AfterSelect
+=
Tv_AfterSelect
;
this
.
myTreeView1
.
AfterSelect
+=
Tv_AfterSelect
;
...
@@ -97,6 +96,8 @@ namespace Tools.UI
...
@@ -97,6 +96,8 @@ namespace Tools.UI
this
.
tbSearch
.
TextChanged
+=
TbSearch_TextChanged
;
this
.
tbSearch
.
TextChanged
+=
TbSearch_TextChanged
;
//输入模块名称,自动生成字符串ID
//输入模块名称,自动生成字符串ID
this
.
tbName
.
TextChanged
+=
TbName_TextChanged
;
this
.
tbName
.
TextChanged
+=
TbName_TextChanged
;
//功能信息:单元格内容点击,自动复制内容
this
.
dgvDetail
.
CellContentClick
+=
DgvDetail_CellContentClick
;
}
}
#
region
工具栏事件
#
region
工具栏事件
...
@@ -261,6 +262,19 @@ namespace Tools.UI
...
@@ -261,6 +262,19 @@ namespace Tools.UI
#
endregion
#
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
-
自动生成
#
region
便捷操作:字符串
ID
-
自动生成
private
void
TbName_TextChanged
(
object
sender
,
EventArgs
e
)
private
void
TbName_TextChanged
(
object
sender
,
EventArgs
e
)
...
...
Tools/UI/wModuleManager.resx
View file @
7534ed0e
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADo
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADo
CAAAAk1TRnQBSQFMAgEBAgEAAY
ABAAGA
AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAY
gBAAGI
AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment