Commit 7e478410 authored by tr's avatar tr

1、通用Excel配置工具优化

parent 0322031b
...@@ -34,6 +34,14 @@ ...@@ -34,6 +34,14 @@
this.myTreeView1 = new Tools.MyCommon.controls.MyTreeView(); this.myTreeView1 = new Tools.MyCommon.controls.MyTreeView();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.dgvTables = new System.Windows.Forms.DataGridView(); 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.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.tsmiAddRow = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiAddRow = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiDelRow = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiDelRow = new System.Windows.Forms.ToolStripMenuItem();
...@@ -54,14 +62,7 @@ ...@@ -54,14 +62,7 @@
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column13 = 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(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
...@@ -137,6 +138,67 @@ ...@@ -137,6 +138,67 @@
this.dgvTables.Size = new System.Drawing.Size(561, 269); this.dgvTables.Size = new System.Drawing.Size(561, 269);
this.dgvTables.TabIndex = 0; 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";
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;
//
// contextMenuStrip1 // contextMenuStrip1
// //
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
...@@ -193,7 +255,8 @@ ...@@ -193,7 +255,8 @@
this.Column11, this.Column11,
this.Column7, this.Column7,
this.Column8, this.Column8,
this.Column12}); this.Column12,
this.Column13});
this.dgvTemplates.ContextMenuStrip = this.contextMenuStrip1; this.dgvTemplates.ContextMenuStrip = this.contextMenuStrip1;
this.dgvTemplates.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvTemplates.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvTemplates.Location = new System.Drawing.Point(0, 0); this.dgvTemplates.Location = new System.Drawing.Point(0, 0);
...@@ -305,66 +368,11 @@ ...@@ -305,66 +368,11 @@
this.Column12.HeaderText = "分组列名"; this.Column12.HeaderText = "分组列名";
this.Column12.Name = "Column12"; this.Column12.Name = "Column12";
// //
// Column10 // Column13
//
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.Column13.DataPropertyName = "ExportNameSOL";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft; this.Column13.HeaderText = "导出名称SQL";
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.Column13.Name = "Column13";
this.Column9.DefaultCellStyle = dataGridViewCellStyle1;
this.Column9.HeaderText = "SQL脚本";
this.Column9.Name = "Column9";
this.Column9.Width = 200;
// //
// wExcelExportSetting // wExcelExportSetting
// //
...@@ -417,10 +425,6 @@ ...@@ -417,10 +425,6 @@
private System.Windows.Forms.ToolStripLabel tslDbLink; private System.Windows.Forms.ToolStripLabel tslDbLink;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripButton tsbHelp; 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 Column10;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column6; private System.Windows.Forms.DataGridViewCheckBoxColumn Column6;
...@@ -429,5 +433,10 @@ ...@@ -429,5 +433,10 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column9; private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
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 Column13;
} }
} }
\ No newline at end of file
...@@ -159,6 +159,9 @@ ...@@ -159,6 +159,9 @@
<metadata name="Column12.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> <value>True</value>
</metadata> </metadata>
<metadata name="Column13.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"> <metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>127, 17</value> <value>127, 17</value>
</metadata> </metadata>
......
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