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
67ef7ac7
Commit
67ef7ac7
authored
May 28, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、通用Excel导出配置工具优化
parent
98e8d9cd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
122 additions
and
92 deletions
+122
-92
wExcelExportSetting.Designer.cs
Tools/UI/wExcelExportSetting.Designer.cs
+113
-91
wExcelExportSetting.cs
Tools/UI/wExcelExportSetting.cs
+3
-1
wExcelExportSetting.resx
Tools/UI/wExcelExportSetting.resx
+6
-0
No files found.
Tools/UI/wExcelExportSetting.Designer.cs
View file @
67ef7ac7
...
...
@@ -29,18 +29,11 @@
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle1
=
new
System
.
Windows
.
Forms
.
DataGridViewCellStyle
();
this
.
splitContainer1
=
new
System
.
Windows
.
Forms
.
SplitContainer
();
this
.
myTreeView1
=
new
Tools
.
MyCommon
.
controls
.
MyTreeView
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
dgvTables
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
Column10
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column1
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column6
=
new
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
();
this
.
Column2
=
new
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
();
this
.
Column3
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column4
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column5
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column9
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
contextMenuStrip1
=
new
System
.
Windows
.
Forms
.
ContextMenuStrip
(
this
.
components
);
this
.
tsmiAddRow
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsmiDelRow
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -48,8 +41,6 @@
this
.
tslTables
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
panel2
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
dgvTemplates
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
Column11
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column7
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
toolStrip2
=
new
System
.
Windows
.
Forms
.
ToolStrip
();
this
.
tslTemplates
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
toolStrip1
=
new
System
.
Windows
.
Forms
.
ToolStrip
();
...
...
@@ -59,6 +50,18 @@
this
.
tslDbLink
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
toolStripSeparator2
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
tsbHelp
=
new
System
.
Windows
.
Forms
.
ToolStripButton
();
this
.
Column11
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column7
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column8
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column12
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column10
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column1
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column6
=
new
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
();
this
.
Column2
=
new
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
();
this
.
Column3
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column4
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column5
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column9
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
splitContainer1
)).
BeginInit
();
this
.
splitContainer1
.
Panel1
.
SuspendLayout
();
this
.
splitContainer1
.
Panel2
.
SuspendLayout
();
...
...
@@ -134,64 +137,6 @@
this
.
dgvTables
.
Size
=
new
System
.
Drawing
.
Size
(
561
,
269
);
this
.
dgvTables
.
TabIndex
=
0
;
//
// Column10
//
this
.
Column10
.
DataPropertyName
=
"TpNames"
;
this
.
Column10
.
HeaderText
=
"绑定模板"
;
this
.
Column10
.
Name
=
"Column10"
;
this
.
Column10
.
ReadOnly
=
true
;
this
.
Column10
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column10
.
Width
=
150
;
//
// Column1
//
this
.
Column1
.
DataPropertyName
=
"TpTableName"
;
this
.
Column1
.
HeaderText
=
"表名称"
;
this
.
Column1
.
Name
=
"Column1"
;
this
.
Column1
.
Width
=
150
;
//
// Column6
//
this
.
Column6
.
DataPropertyName
=
"IsRtf"
;
this
.
Column6
.
HeaderText
=
"是否富文本"
;
this
.
Column6
.
Name
=
"Column6"
;
this
.
Column6
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column6
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
Automatic
;
//
// Column2
//
this
.
Column2
.
DataPropertyName
=
"IsConvert"
;
this
.
Column2
.
HeaderText
=
"是否行转列"
;
this
.
Column2
.
Name
=
"Column2"
;
this
.
Column2
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column2
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
Automatic
;
//
// Column3
//
this
.
Column3
.
DataPropertyName
=
"CrtNameCol"
;
this
.
Column3
.
HeaderText
=
"名称列"
;
this
.
Column3
.
Name
=
"Column3"
;
this
.
Column3
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
//
// Column4
//
this
.
Column4
.
DataPropertyName
=
"CrtValueCol"
;
this
.
Column4
.
HeaderText
=
"值列"
;
this
.
Column4
.
Name
=
"Column4"
;
//
// Column5
//
this
.
Column5
.
DataPropertyName
=
"CrtSumCol"
;
this
.
Column5
.
HeaderText
=
"合计列"
;
this
.
Column5
.
Name
=
"Column5"
;
//
// Column9
//
this
.
Column9
.
DataPropertyName
=
"SelectSQL"
;
this
.
Column9
.
HeaderText
=
"SQL脚本"
;
this
.
Column9
.
Name
=
"Column9"
;
this
.
Column9
.
Width
=
200
;
//
// contextMenuStrip1
//
this
.
contextMenuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
...
...
@@ -246,7 +191,9 @@
this
.
dgvTemplates
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
AutoSize
;
this
.
dgvTemplates
.
Columns
.
AddRange
(
new
System
.
Windows
.
Forms
.
DataGridViewColumn
[]
{
this
.
Column11
,
this
.
Column7
});
this
.
Column7
,
this
.
Column8
,
this
.
Column12
});
this
.
dgvTemplates
.
ContextMenuStrip
=
this
.
contextMenuStrip1
;
this
.
dgvTemplates
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvTemplates
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
...
...
@@ -255,21 +202,6 @@
this
.
dgvTemplates
.
Size
=
new
System
.
Drawing
.
Size
(
561
,
167
);
this
.
dgvTemplates
.
TabIndex
=
5
;
//
// Column11
//
this
.
Column11
.
DataPropertyName
=
"Prefix"
;
this
.
Column11
.
HeaderText
=
"前缀"
;
this
.
Column11
.
Name
=
"Column11"
;
this
.
Column11
.
ReadOnly
=
true
;
this
.
Column11
.
Width
=
150
;
//
// Column7
//
this
.
Column7
.
DataPropertyName
=
"TpName"
;
this
.
Column7
.
HeaderText
=
"模板名称"
;
this
.
Column7
.
Name
=
"Column7"
;
this
.
Column7
.
Width
=
150
;
//
// toolStrip2
//
this
.
toolStrip2
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
...
...
@@ -346,6 +278,94 @@
this
.
tsbHelp
.
Text
=
"使用说明"
;
this
.
tsbHelp
.
Click
+=
new
System
.
EventHandler
(
this
.
tsbHelp_Click
);
//
// Column11
//
this
.
Column11
.
DataPropertyName
=
"Prefix"
;
this
.
Column11
.
HeaderText
=
"前缀"
;
this
.
Column11
.
Name
=
"Column11"
;
this
.
Column11
.
ReadOnly
=
true
;
this
.
Column11
.
Width
=
150
;
//
// Column7
//
this
.
Column7
.
DataPropertyName
=
"TpName"
;
this
.
Column7
.
HeaderText
=
"模板名称"
;
this
.
Column7
.
Name
=
"Column7"
;
this
.
Column7
.
Width
=
150
;
//
// Column8
//
this
.
Column8
.
DataPropertyName
=
"GrpTableName"
;
this
.
Column8
.
HeaderText
=
"分组表名"
;
this
.
Column8
.
Name
=
"Column8"
;
//
// Column12
//
this
.
Column12
.
DataPropertyName
=
"GrpColumnName"
;
this
.
Column12
.
HeaderText
=
"分组列名"
;
this
.
Column12
.
Name
=
"Column12"
;
//
// Column10
//
this
.
Column10
.
DataPropertyName
=
"TpNames"
;
this
.
Column10
.
HeaderText
=
"绑定模板"
;
this
.
Column10
.
Name
=
"Column10"
;
this
.
Column10
.
ReadOnly
=
true
;
this
.
Column10
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column10
.
Width
=
150
;
//
// Column1
//
this
.
Column1
.
DataPropertyName
=
"TpTableName"
;
this
.
Column1
.
HeaderText
=
"表名称"
;
this
.
Column1
.
Name
=
"Column1"
;
this
.
Column1
.
Width
=
150
;
//
// Column6
//
this
.
Column6
.
DataPropertyName
=
"IsRtf"
;
this
.
Column6
.
HeaderText
=
"是否富文本"
;
this
.
Column6
.
Name
=
"Column6"
;
this
.
Column6
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column6
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
Automatic
;
//
// Column2
//
this
.
Column2
.
DataPropertyName
=
"IsConvert"
;
this
.
Column2
.
HeaderText
=
"是否行转列"
;
this
.
Column2
.
Name
=
"Column2"
;
this
.
Column2
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column2
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
Automatic
;
//
// Column3
//
this
.
Column3
.
DataPropertyName
=
"CrtNameCol"
;
this
.
Column3
.
HeaderText
=
"名称列"
;
this
.
Column3
.
Name
=
"Column3"
;
this
.
Column3
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
//
// Column4
//
this
.
Column4
.
DataPropertyName
=
"CrtValueCol"
;
this
.
Column4
.
HeaderText
=
"值列"
;
this
.
Column4
.
Name
=
"Column4"
;
//
// Column5
//
this
.
Column5
.
DataPropertyName
=
"CrtSumCol"
;
this
.
Column5
.
HeaderText
=
"合计列"
;
this
.
Column5
.
Name
=
"Column5"
;
//
// Column9
//
this
.
Column9
.
DataPropertyName
=
"SelectSQL"
;
dataGridViewCellStyle1
.
Alignment
=
System
.
Windows
.
Forms
.
DataGridViewContentAlignment
.
TopLeft
;
dataGridViewCellStyle1
.
WrapMode
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column9
.
DefaultCellStyle
=
dataGridViewCellStyle1
;
this
.
Column9
.
HeaderText
=
"SQL脚本"
;
this
.
Column9
.
Name
=
"Column9"
;
this
.
Column9
.
Width
=
200
;
//
// wExcelExportSetting
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
...
...
@@ -392,6 +412,15 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
tsmiDelRow
;
private
System
.
Windows
.
Forms
.
ToolStrip
toolStrip1
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbSave
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator1
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbDb
;
private
System
.
Windows
.
Forms
.
ToolStripLabel
tslDbLink
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator2
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbHelp
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column11
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column7
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column8
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column12
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column10
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column1
;
private
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
Column6
;
...
...
@@ -400,12 +429,5 @@
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column4
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column5
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column9
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column11
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column7
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator1
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbDb
;
private
System
.
Windows
.
Forms
.
ToolStripLabel
tslDbLink
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator2
;
private
System
.
Windows
.
Forms
.
ToolStripButton
tsbHelp
;
}
}
\ No newline at end of file
Tools/UI/wExcelExportSetting.cs
View file @
67ef7ac7
...
...
@@ -36,7 +36,9 @@ namespace Tools.UI
ID INT IDENTITY(1,1) PRIMARY KEY,
ModuleID INT NULL,
Prefix VARCHAR(50) NULL,
TpName VARCHAR(50) NULL
TpName VARCHAR(50) NULL,
GrpTableName VARCHAR(50) NULL,
GrpColumnName VARCHAR(50) NULL
)
CREATE TABLE ModuleTemplateTable
...
...
Tools/UI/wExcelExportSetting.resx
View file @
67ef7ac7
...
...
@@ -153,6 +153,12 @@
<metadata
name=
"Column7.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"Column8.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"Column12.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"toolStrip2.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
127, 17
</value>
</metadata>
...
...
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