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
08397c08
Commit
08397c08
authored
Dec 30, 2021
by
段廷瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、Excel导出配置优化
parent
5f62e208
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
195 additions
and
137 deletions
+195
-137
wExcelExportSetting.Designer.cs
Tools/UI/wExcelExportSetting.Designer.cs
+171
-113
wExcelExportSetting.cs
Tools/UI/wExcelExportSetting.cs
+2
-2
wExcelExportSetting.resx
Tools/UI/wExcelExportSetting.resx
+22
-22
No files found.
Tools/UI/wExcelExportSetting.Designer.cs
View file @
08397c08
...
...
@@ -30,10 +30,16 @@
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle5
=
new
System
.
Windows
.
Forms
.
DataGridViewCellStyle
();
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle
4
=
new
System
.
Windows
.
Forms
.
DataGridViewCellStyle
();
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle
6
=
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
.
dgvCardInfo
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
contextMenuStrip1
=
new
System
.
Windows
.
Forms
.
ContextMenuStrip
(
this
.
components
);
this
.
tsmiAddRow
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsmiDelRow
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStrip4
=
new
System
.
Windows
.
Forms
.
ToolStrip
();
this
.
tslCardInfo
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
dgvTables
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
Column10
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column1
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
...
...
@@ -43,12 +49,8 @@
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
();
this
.
toolStrip3
=
new
System
.
Windows
.
Forms
.
ToolStrip
();
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
();
...
...
@@ -66,9 +68,6 @@
this
.
tslDbLink
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
toolStripSeparator2
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
tsbHelp
=
new
System
.
Windows
.
Forms
.
ToolStripButton
();
this
.
toolStrip4
=
new
System
.
Windows
.
Forms
.
ToolStrip
();
this
.
tslCardInfo
=
new
System
.
Windows
.
Forms
.
ToolStripLabel
();
this
.
dgvCardInfo
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
cbTemplateName
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
dataGridViewTextBoxColumn2
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
dataGridViewCheckBoxColumn1
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
...
...
@@ -77,25 +76,33 @@
this
.
dataGridViewTextBoxColumn4
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
dataGridViewTextBoxColumn5
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
dataGridViewTextBoxColumn6
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel2
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel3
=
new
System
.
Windows
.
Forms
.
Panel
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
splitContainer1
)).
BeginInit
();
this
.
splitContainer1
.
Panel1
.
SuspendLayout
();
this
.
splitContainer1
.
Panel2
.
SuspendLayout
();
this
.
splitContainer1
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgv
Tables
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgv
CardInfo
)).
BeginInit
();
this
.
contextMenuStrip1
.
SuspendLayout
();
this
.
toolStrip4
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvTables
)).
BeginInit
();
this
.
toolStrip3
.
SuspendLayout
();
this
.
panel2
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvTemplates
)).
BeginInit
();
this
.
toolStrip2
.
SuspendLayout
();
this
.
toolStrip1
.
SuspendLayout
();
this
.
toolStrip4
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvCardInfo
)).
BeginInit
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
panel2
.
SuspendLayout
();
this
.
panel3
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// splitContainer1
//
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
...
...
@@ -105,22 +112,19 @@
//
// splitContainer1.Panel2
//
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
dgvCardInfo
);
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
toolStrip4
);
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
dgvTables
);
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
toolStrip3
);
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
panel2
);
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
toolStrip2
);
this
.
splitContainer1
.
Size
=
new
System
.
Drawing
.
Size
(
881
,
518
);
this
.
splitContainer1
.
SplitterDistance
=
251
;
this
.
splitContainer1
.
Panel2
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
splitContainer1
.
Size
=
new
System
.
Drawing
.
Size
(
850
,
488
);
this
.
splitContainer1
.
SplitterDistance
=
242
;
this
.
splitContainer1
.
SplitterWidth
=
5
;
this
.
splitContainer1
.
TabIndex
=
0
;
//
// myTreeView1
//
this
.
myTreeView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
myTreeView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
23
);
this
.
myTreeView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
33
);
this
.
myTreeView1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
myTreeView1
.
Name
=
"myTreeView1"
;
this
.
myTreeView1
.
Size
=
new
System
.
Drawing
.
Size
(
2
51
,
49
5
);
this
.
myTreeView1
.
Size
=
new
System
.
Drawing
.
Size
(
2
42
,
45
5
);
this
.
myTreeView1
.
TabIndex
=
2
;
//
// label1
...
...
@@ -129,12 +133,74 @@
this
.
label1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Top
;
this
.
label1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑 Light"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
label1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
0
,
4
,
0
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
2
51
,
2
3
);
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
2
42
,
3
3
);
this
.
label1
.
TabIndex
=
1
;
this
.
label1
.
Text
=
"*请先选择一个模块"
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// dgvCardInfo
//
this
.
dgvCardInfo
.
BackgroundColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
dgvCardInfo
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
AutoSize
;
this
.
dgvCardInfo
.
Columns
.
AddRange
(
new
System
.
Windows
.
Forms
.
DataGridViewColumn
[]
{
this
.
cbTemplateName
,
this
.
dataGridViewTextBoxColumn2
,
this
.
dataGridViewCheckBoxColumn1
,
this
.
dataGridViewCheckBoxColumn2
,
this
.
dataGridViewTextBoxColumn3
,
this
.
dataGridViewTextBoxColumn4
,
this
.
dataGridViewTextBoxColumn5
,
this
.
dataGridViewTextBoxColumn6
});
this
.
dgvCardInfo
.
ContextMenuStrip
=
this
.
contextMenuStrip1
;
this
.
dgvCardInfo
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvCardInfo
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
dgvCardInfo
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
dgvCardInfo
.
Name
=
"dgvCardInfo"
;
this
.
dgvCardInfo
.
RowTemplate
.
Height
=
23
;
this
.
dgvCardInfo
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
158
);
this
.
dgvCardInfo
.
TabIndex
=
7
;
//
// contextMenuStrip1
//
this
.
contextMenuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
tsmiAddRow
,
this
.
tsmiDelRow
});
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
101
,
48
);
this
.
contextMenuStrip1
.
Opening
+=
new
System
.
ComponentModel
.
CancelEventHandler
(
this
.
contextMenuStrip1_Opening
);
//
// tsmiAddRow
//
this
.
tsmiAddRow
.
Name
=
"tsmiAddRow"
;
this
.
tsmiAddRow
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
22
);
this
.
tsmiAddRow
.
Text
=
"増行"
;
this
.
tsmiAddRow
.
Click
+=
new
System
.
EventHandler
(
this
.
tsmiAddRow_Click
);
//
// tsmiDelRow
//
this
.
tsmiDelRow
.
Name
=
"tsmiDelRow"
;
this
.
tsmiDelRow
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
22
);
this
.
tsmiDelRow
.
Text
=
"删行"
;
this
.
tsmiDelRow
.
Click
+=
new
System
.
EventHandler
(
this
.
tsmiDelRow_Click
);
//
// toolStrip4
//
this
.
toolStrip4
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
tslCardInfo
});
this
.
toolStrip4
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
toolStrip4
.
Name
=
"toolStrip4"
;
this
.
toolStrip4
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
25
);
this
.
toolStrip4
.
TabIndex
=
5
;
this
.
toolStrip4
.
Text
=
"toolStrip4"
;
//
// tslCardInfo
//
this
.
tslCardInfo
.
Name
=
"tslCardInfo"
;
this
.
tslCardInfo
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
22
);
this
.
tslCardInfo
.
Text
=
"卡片模板配置"
;
//
// dgvTables
//
this
.
dgvTables
.
BackgroundColor
=
System
.
Drawing
.
SystemColors
.
Window
;
...
...
@@ -149,11 +215,12 @@
this
.
Column5
,
this
.
Column9
});
this
.
dgvTables
.
ContextMenuStrip
=
this
.
contextMenuStrip1
;
this
.
dgvTables
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Top
;
this
.
dgvTables
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
217
);
this
.
dgvTables
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvTables
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
dgvTables
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
dgvTables
.
Name
=
"dgvTables"
;
this
.
dgvTables
.
RowTemplate
.
Height
=
23
;
this
.
dgvTables
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
17
6
);
this
.
dgvTables
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
15
6
);
this
.
dgvTables
.
TabIndex
=
0
;
//
// Column10
...
...
@@ -217,36 +284,13 @@
this
.
Column9
.
Name
=
"Column9"
;
this
.
Column9
.
Width
=
200
;
//
// contextMenuStrip1
//
this
.
contextMenuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
tsmiAddRow
,
this
.
tsmiDelRow
});
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
101
,
48
);
this
.
contextMenuStrip1
.
Opening
+=
new
System
.
ComponentModel
.
CancelEventHandler
(
this
.
contextMenuStrip1_Opening
);
//
// tsmiAddRow
//
this
.
tsmiAddRow
.
Name
=
"tsmiAddRow"
;
this
.
tsmiAddRow
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
22
);
this
.
tsmiAddRow
.
Text
=
"増行"
;
this
.
tsmiAddRow
.
Click
+=
new
System
.
EventHandler
(
this
.
tsmiAddRow_Click
);
//
// tsmiDelRow
//
this
.
tsmiDelRow
.
Name
=
"tsmiDelRow"
;
this
.
tsmiDelRow
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
22
);
this
.
tsmiDelRow
.
Text
=
"删行"
;
this
.
tsmiDelRow
.
Click
+=
new
System
.
EventHandler
(
this
.
tsmiDelRow_Click
);
//
// toolStrip3
//
this
.
toolStrip3
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
tslTables
});
this
.
toolStrip3
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
192
);
this
.
toolStrip3
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
toolStrip3
.
Name
=
"toolStrip3"
;
this
.
toolStrip3
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
25
);
this
.
toolStrip3
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
25
);
this
.
toolStrip3
.
TabIndex
=
4
;
this
.
toolStrip3
.
Text
=
"toolStrip3"
;
//
...
...
@@ -256,15 +300,6 @@
this
.
tslTables
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
22
);
this
.
tslTables
.
Text
=
"数据源绑定"
;
//
// panel2
//
this
.
panel2
.
Controls
.
Add
(
this
.
dgvTemplates
);
this
.
panel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Top
;
this
.
panel2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
25
);
this
.
panel2
.
Name
=
"panel2"
;
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
167
);
this
.
panel2
.
TabIndex
=
3
;
//
// dgvTemplates
//
this
.
dgvTemplates
.
BackgroundColor
=
System
.
Drawing
.
SystemColors
.
Window
;
...
...
@@ -280,9 +315,10 @@
this
.
dgvTemplates
.
ContextMenuStrip
=
this
.
contextMenuStrip1
;
this
.
dgvTemplates
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvTemplates
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
dgvTemplates
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
dgvTemplates
.
Name
=
"dgvTemplates"
;
this
.
dgvTemplates
.
RowTemplate
.
Height
=
23
;
this
.
dgvTemplates
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
167
);
this
.
dgvTemplates
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
156
);
this
.
dgvTemplates
.
TabIndex
=
5
;
//
// Column11
...
...
@@ -337,7 +373,7 @@
this
.
tslTemplates
});
this
.
toolStrip2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
toolStrip2
.
Name
=
"toolStrip2"
;
this
.
toolStrip2
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
25
);
this
.
toolStrip2
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
25
);
this
.
toolStrip2
.
TabIndex
=
2
;
this
.
toolStrip2
.
Text
=
"toolStrip2"
;
//
...
...
@@ -358,7 +394,7 @@
this
.
tsbHelp
});
this
.
toolStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
toolStrip1
.
Name
=
"toolStrip1"
;
this
.
toolStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
8
81
,
25
);
this
.
toolStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
8
50
,
25
);
this
.
toolStrip1
.
TabIndex
=
3
;
this
.
toolStrip1
.
Text
=
"toolStrip1"
;
//
...
...
@@ -407,43 +443,6 @@
this
.
tsbHelp
.
Text
=
"使用说明"
;
this
.
tsbHelp
.
Click
+=
new
System
.
EventHandler
(
this
.
tsbHelp_Click
);
//
// toolStrip4
//
this
.
toolStrip4
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
tslCardInfo
});
this
.
toolStrip4
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
393
);
this
.
toolStrip4
.
Name
=
"toolStrip4"
;
this
.
toolStrip4
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
25
);
this
.
toolStrip4
.
TabIndex
=
5
;
this
.
toolStrip4
.
Text
=
"toolStrip4"
;
//
// tslCardInfo
//
this
.
tslCardInfo
.
Name
=
"tslCardInfo"
;
this
.
tslCardInfo
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
22
);
this
.
tslCardInfo
.
Text
=
"卡片模板配置"
;
//
// dgvCardInfo
//
this
.
dgvCardInfo
.
BackgroundColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
dgvCardInfo
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
AutoSize
;
this
.
dgvCardInfo
.
Columns
.
AddRange
(
new
System
.
Windows
.
Forms
.
DataGridViewColumn
[]
{
this
.
cbTemplateName
,
this
.
dataGridViewTextBoxColumn2
,
this
.
dataGridViewCheckBoxColumn1
,
this
.
dataGridViewCheckBoxColumn2
,
this
.
dataGridViewTextBoxColumn3
,
this
.
dataGridViewTextBoxColumn4
,
this
.
dataGridViewTextBoxColumn5
,
this
.
dataGridViewTextBoxColumn6
});
this
.
dgvCardInfo
.
ContextMenuStrip
=
this
.
contextMenuStrip1
;
this
.
dgvCardInfo
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvCardInfo
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
418
);
this
.
dgvCardInfo
.
Name
=
"dgvCardInfo"
;
this
.
dgvCardInfo
.
RowTemplate
.
Height
=
23
;
this
.
dgvCardInfo
.
Size
=
new
System
.
Drawing
.
Size
(
626
,
100
);
this
.
dgvCardInfo
.
TabIndex
=
7
;
//
// cbTemplateName
//
this
.
cbTemplateName
.
DataPropertyName
=
"TemplateName"
;
...
...
@@ -465,6 +464,7 @@
this
.
dataGridViewCheckBoxColumn1
.
HeaderText
=
"每行卡片数量"
;
this
.
dataGridViewCheckBoxColumn1
.
Name
=
"dataGridViewCheckBoxColumn1"
;
this
.
dataGridViewCheckBoxColumn1
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
dataGridViewCheckBoxColumn1
.
Width
=
108
;
//
// dataGridViewCheckBoxColumn2
//
...
...
@@ -472,7 +472,7 @@
this
.
dataGridViewCheckBoxColumn2
.
HeaderText
=
"是否停用"
;
this
.
dataGridViewCheckBoxColumn2
.
Name
=
"dataGridViewCheckBoxColumn2"
;
this
.
dataGridViewCheckBoxColumn2
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
dataGridViewCheckBoxColumn2
.
Width
=
6
0
;
this
.
dataGridViewCheckBoxColumn2
.
Width
=
7
0
;
//
// dataGridViewTextBoxColumn3
//
...
...
@@ -499,40 +499,95 @@
// dataGridViewTextBoxColumn6
//
this
.
dataGridViewTextBoxColumn6
.
DataPropertyName
=
"ColumnSpan"
;
dataGridViewCellStyle
4
.
Alignment
=
System
.
Windows
.
Forms
.
DataGridViewContentAlignment
.
TopLeft
;
dataGridViewCellStyle
4
.
WrapMode
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
dataGridViewTextBoxColumn6
.
DefaultCellStyle
=
dataGridViewCellStyle
4
;
dataGridViewCellStyle
6
.
Alignment
=
System
.
Windows
.
Forms
.
DataGridViewContentAlignment
.
TopLeft
;
dataGridViewCellStyle
6
.
WrapMode
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
dataGridViewTextBoxColumn6
.
DefaultCellStyle
=
dataGridViewCellStyle
6
;
this
.
dataGridViewTextBoxColumn6
.
HeaderText
=
"列跨度"
;
this
.
dataGridViewTextBoxColumn6
.
Name
=
"dataGridViewTextBoxColumn6"
;
this
.
dataGridViewTextBoxColumn6
.
Width
=
80
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
ColumnCount
=
1
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
20F
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
panel1
,
0
,
0
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
panel2
,
0
,
1
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
panel3
,
0
,
2
);
this
.
tableLayoutPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
3
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
33.33333F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
33.33333F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
33.33333F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
603
,
488
);
this
.
tableLayoutPanel1
.
TabIndex
=
8
;
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
toolStrip2
);
this
.
panel1
.
Controls
.
Add
(
this
.
dgvTemplates
);
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
156
);
this
.
panel1
.
TabIndex
=
0
;
//
// panel2
//
this
.
panel2
.
Controls
.
Add
(
this
.
toolStrip3
);
this
.
panel2
.
Controls
.
Add
(
this
.
dgvTables
);
this
.
panel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
165
);
this
.
panel2
.
Name
=
"panel2"
;
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
156
);
this
.
panel2
.
TabIndex
=
1
;
//
// panel3
//
this
.
panel3
.
Controls
.
Add
(
this
.
toolStrip4
);
this
.
panel3
.
Controls
.
Add
(
this
.
dgvCardInfo
);
this
.
panel3
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
327
);
this
.
panel3
.
Name
=
"panel3"
;
this
.
panel3
.
Size
=
new
System
.
Drawing
.
Size
(
597
,
158
);
this
.
panel3
.
TabIndex
=
2
;
//
// wExcelExportSetting
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12
F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17
F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
8
81
,
54
3
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
8
50
,
51
3
);
this
.
Controls
.
Add
(
this
.
splitContainer1
);
this
.
Controls
.
Add
(
this
.
toolStrip1
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
Name
=
"wExcelExportSetting"
;
this
.
Text
=
"Excel导出数据源配置"
;
this
.
splitContainer1
.
Panel1
.
ResumeLayout
(
false
);
this
.
splitContainer1
.
Panel2
.
ResumeLayout
(
false
);
this
.
splitContainer1
.
Panel2
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
splitContainer1
)).
EndInit
();
this
.
splitContainer1
.
ResumeLayout
(
false
);
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgv
Tables
)).
EndInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgv
CardInfo
)).
EndInit
();
this
.
contextMenuStrip1
.
ResumeLayout
(
false
);
this
.
toolStrip4
.
ResumeLayout
(
false
);
this
.
toolStrip4
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvTables
)).
EndInit
();
this
.
toolStrip3
.
ResumeLayout
(
false
);
this
.
toolStrip3
.
PerformLayout
();
this
.
panel2
.
ResumeLayout
(
false
);
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvTemplates
)).
EndInit
();
this
.
toolStrip2
.
ResumeLayout
(
false
);
this
.
toolStrip2
.
PerformLayout
();
this
.
toolStrip1
.
ResumeLayout
(
false
);
this
.
toolStrip1
.
PerformLayout
();
this
.
toolStrip4
.
ResumeLayout
(
false
);
this
.
toolStrip4
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvCardInfo
)).
EndInit
();
this
.
tableLayoutPanel1
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
panel2
.
ResumeLayout
(
false
);
this
.
panel2
.
PerformLayout
();
this
.
panel3
.
ResumeLayout
(
false
);
this
.
panel3
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
@@ -544,7 +599,6 @@
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
ToolStrip
toolStrip3
;
private
System
.
Windows
.
Forms
.
ToolStripLabel
tslTables
;
private
System
.
Windows
.
Forms
.
Panel
panel2
;
private
System
.
Windows
.
Forms
.
ToolStrip
toolStrip2
;
private
System
.
Windows
.
Forms
.
ToolStripLabel
tslTemplates
;
private
System
.
Windows
.
Forms
.
DataGridView
dgvTemplates
;
...
...
@@ -586,5 +640,9 @@
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
dataGridViewTextBoxColumn4
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
dataGridViewTextBoxColumn5
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
dataGridViewTextBoxColumn6
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Panel
panel2
;
private
System
.
Windows
.
Forms
.
Panel
panel3
;
}
}
\ No newline at end of file
Tools/UI/wExcelExportSetting.cs
View file @
08397c08
...
...
@@ -180,7 +180,7 @@ namespace Tools.UI
if
(
this
.
dgvTables
.
Columns
[
e
.
ColumnIndex
].
DataPropertyName
.
Equals
(
"TpNames"
))
{
var
items
=
this
.
_ds
.
Tables
[
"ModuleTemplate"
].
DefaultView
.
Cast
<
DataRowView
>().
Select
(
r
=>
r
[
"TpName"
].
ToString
());
wSelectTemplates
frm
=
new
wSelectTemplates
(
items
);
wSelectTemplates
frm
=
new
wSelectTemplates
(
items
,
false
);
if
(
frm
.
ShowDialog
()
==
DialogResult
.
OK
)
{
var
drNow
=
this
.
_ds
.
Tables
[
"ModuleTemplateCardInfo"
].
DefaultView
[
e
.
RowIndex
];
...
...
@@ -232,7 +232,7 @@ namespace Tools.UI
drv
.
EndEdit
();
}
//清除卡片设置
foreach
(
DataRowView
drv
in
this
.
_ds
.
Tables
[
"ModuleTemplate
Table
"
].
DefaultView
)
foreach
(
DataRowView
drv
in
this
.
_ds
.
Tables
[
"ModuleTemplate
CardInfo
"
].
DefaultView
)
{
drv
[
"TemplateName"
]
=
drv
[
"TemplateName"
].
ToString
().
Replace
(
tpName
,
""
);
drv
.
EndEdit
();
...
...
Tools/UI/wExcelExportSetting.resx
View file @
08397c08
...
...
@@ -117,35 +117,35 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<metadata
name=
"
cbTemplateName.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
"
>
<value>
True
</value>
<metadata
name=
"
toolStrip2.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
"
>
<value>
127, 17
</value>
</metadata>
<metadata
name=
"
dataGridViewTextBoxColumn2
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column11
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
dataGridViewCheckBoxColumn1
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column7
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
dataGridViewCheckBoxColumn2
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column14
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
dataGridViewTextBoxColumn3
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column15
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
dataGridViewTextBoxColumn4
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column8
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
dataGridViewTextBoxColumn5
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column12
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
dataGridViewTextBoxColumn6
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
Column13
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"contextMenuStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
347, 17
</value>
</metadata>
<metadata
name=
"toolStrip
4
.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
622
, 17
</value>
<metadata
name=
"toolStrip
3
.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
237
, 17
</value>
</metadata>
<metadata
name=
"Column10.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
...
...
@@ -171,31 +171,31 @@
<metadata
name=
"Column9.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"toolStrip
3
.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
237
, 17
</value>
<metadata
name=
"toolStrip
4
.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
622
, 17
</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
name=
"
cbTemplateName.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
Column11
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
dataGridViewTextBoxColumn2
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
Column7
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
dataGridViewCheckBoxColumn1
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
Column14
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
dataGridViewCheckBoxColumn2
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
Column15
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
dataGridViewTextBoxColumn3
.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"
>
<metadata
name=
"
dataGridViewTextBoxColumn4
.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"
>
<metadata
name=
"
dataGridViewTextBoxColumn5
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"
Column13
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<metadata
name=
"
dataGridViewTextBoxColumn6
.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"toolStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
...
...
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