Commit 08397c08 authored by 段廷瑞's avatar 段廷瑞

1、Excel导出配置优化

parent 5f62e208
...@@ -30,10 +30,16 @@ ...@@ -30,10 +30,16 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
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.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.dgvTables = new System.Windows.Forms.DataGridView();
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
...@@ -43,12 +49,8 @@ ...@@ -43,12 +49,8 @@
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column9 = 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.toolStrip3 = new System.Windows.Forms.ToolStrip();
this.tslTables = new System.Windows.Forms.ToolStripLabel(); this.tslTables = new System.Windows.Forms.ToolStripLabel();
this.panel2 = new System.Windows.Forms.Panel();
this.dgvTemplates = new System.Windows.Forms.DataGridView(); this.dgvTemplates = new System.Windows.Forms.DataGridView();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
...@@ -66,9 +68,6 @@ ...@@ -66,9 +68,6 @@
this.tslDbLink = new System.Windows.Forms.ToolStripLabel(); this.tslDbLink = new System.Windows.Forms.ToolStripLabel();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.tsbHelp = new System.Windows.Forms.ToolStripButton(); 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.cbTemplateName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
...@@ -77,25 +76,33 @@ ...@@ -77,25 +76,33 @@
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = 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(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout(); this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvTables)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvCardInfo)).BeginInit();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
this.toolStrip4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvTables)).BeginInit();
this.toolStrip3.SuspendLayout(); this.toolStrip3.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvTemplates)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvTemplates)).BeginInit();
this.toolStrip2.SuspendLayout(); this.toolStrip2.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
this.toolStrip4.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvCardInfo)).BeginInit(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// splitContainer1 // splitContainer1
// //
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 25); 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"; this.splitContainer1.Name = "splitContainer1";
// //
// splitContainer1.Panel1 // splitContainer1.Panel1
...@@ -105,22 +112,19 @@ ...@@ -105,22 +112,19 @@
// //
// splitContainer1.Panel2 // splitContainer1.Panel2
// //
this.splitContainer1.Panel2.Controls.Add(this.dgvCardInfo); this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1);
this.splitContainer1.Panel2.Controls.Add(this.toolStrip4); this.splitContainer1.Size = new System.Drawing.Size(850, 488);
this.splitContainer1.Panel2.Controls.Add(this.dgvTables); this.splitContainer1.SplitterDistance = 242;
this.splitContainer1.Panel2.Controls.Add(this.toolStrip3); this.splitContainer1.SplitterWidth = 5;
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.TabIndex = 0; this.splitContainer1.TabIndex = 0;
// //
// myTreeView1 // myTreeView1
// //
this.myTreeView1.Dock = System.Windows.Forms.DockStyle.Fill; 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.Name = "myTreeView1";
this.myTreeView1.Size = new System.Drawing.Size(251, 495); this.myTreeView1.Size = new System.Drawing.Size(242, 455);
this.myTreeView1.TabIndex = 2; this.myTreeView1.TabIndex = 2;
// //
// label1 // label1
...@@ -129,12 +133,74 @@ ...@@ -129,12 +133,74 @@
this.label1.Dock = System.Windows.Forms.DockStyle.Top; 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.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.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.Name = "label1";
this.label1.Size = new System.Drawing.Size(251, 23); this.label1.Size = new System.Drawing.Size(242, 33);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
this.label1.Text = "*请先选择一个模块"; this.label1.Text = "*请先选择一个模块";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 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 // dgvTables
// //
this.dgvTables.BackgroundColor = System.Drawing.SystemColors.Window; this.dgvTables.BackgroundColor = System.Drawing.SystemColors.Window;
...@@ -149,11 +215,12 @@ ...@@ -149,11 +215,12 @@
this.Column5, this.Column5,
this.Column9}); this.Column9});
this.dgvTables.ContextMenuStrip = this.contextMenuStrip1; this.dgvTables.ContextMenuStrip = this.contextMenuStrip1;
this.dgvTables.Dock = System.Windows.Forms.DockStyle.Top; this.dgvTables.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvTables.Location = new System.Drawing.Point(0, 217); 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.Name = "dgvTables";
this.dgvTables.RowTemplate.Height = 23; this.dgvTables.RowTemplate.Height = 23;
this.dgvTables.Size = new System.Drawing.Size(626, 176); this.dgvTables.Size = new System.Drawing.Size(597, 156);
this.dgvTables.TabIndex = 0; this.dgvTables.TabIndex = 0;
// //
// Column10 // Column10
...@@ -217,36 +284,13 @@ ...@@ -217,36 +284,13 @@
this.Column9.Name = "Column9"; this.Column9.Name = "Column9";
this.Column9.Width = 200; 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 // toolStrip3
// //
this.toolStrip3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStrip3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tslTables}); 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.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.TabIndex = 4;
this.toolStrip3.Text = "toolStrip3"; this.toolStrip3.Text = "toolStrip3";
// //
...@@ -256,15 +300,6 @@ ...@@ -256,15 +300,6 @@
this.tslTables.Size = new System.Drawing.Size(68, 22); this.tslTables.Size = new System.Drawing.Size(68, 22);
this.tslTables.Text = "数据源绑定"; 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 // dgvTemplates
// //
this.dgvTemplates.BackgroundColor = System.Drawing.SystemColors.Window; this.dgvTemplates.BackgroundColor = System.Drawing.SystemColors.Window;
...@@ -280,9 +315,10 @@ ...@@ -280,9 +315,10 @@
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);
this.dgvTemplates.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dgvTemplates.Name = "dgvTemplates"; this.dgvTemplates.Name = "dgvTemplates";
this.dgvTemplates.RowTemplate.Height = 23; 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; this.dgvTemplates.TabIndex = 5;
// //
// Column11 // Column11
...@@ -337,7 +373,7 @@ ...@@ -337,7 +373,7 @@
this.tslTemplates}); this.tslTemplates});
this.toolStrip2.Location = new System.Drawing.Point(0, 0); this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2"; 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.TabIndex = 2;
this.toolStrip2.Text = "toolStrip2"; this.toolStrip2.Text = "toolStrip2";
// //
...@@ -358,7 +394,7 @@ ...@@ -358,7 +394,7 @@
this.tsbHelp}); this.tsbHelp});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(881, 25); this.toolStrip1.Size = new System.Drawing.Size(850, 25);
this.toolStrip1.TabIndex = 3; this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1"; this.toolStrip1.Text = "toolStrip1";
// //
...@@ -407,43 +443,6 @@ ...@@ -407,43 +443,6 @@
this.tsbHelp.Text = "使用说明"; this.tsbHelp.Text = "使用说明";
this.tsbHelp.Click += new System.EventHandler(this.tsbHelp_Click); 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 // cbTemplateName
// //
this.cbTemplateName.DataPropertyName = "TemplateName"; this.cbTemplateName.DataPropertyName = "TemplateName";
...@@ -465,6 +464,7 @@ ...@@ -465,6 +464,7 @@
this.dataGridViewCheckBoxColumn1.HeaderText = "每行卡片数量"; this.dataGridViewCheckBoxColumn1.HeaderText = "每行卡片数量";
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1"; this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewCheckBoxColumn1.Width = 108;
// //
// dataGridViewCheckBoxColumn2 // dataGridViewCheckBoxColumn2
// //
...@@ -472,7 +472,7 @@ ...@@ -472,7 +472,7 @@
this.dataGridViewCheckBoxColumn2.HeaderText = "是否停用"; this.dataGridViewCheckBoxColumn2.HeaderText = "是否停用";
this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2"; this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2";
this.dataGridViewCheckBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.dataGridViewCheckBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewCheckBoxColumn2.Width = 60; this.dataGridViewCheckBoxColumn2.Width = 70;
// //
// dataGridViewTextBoxColumn3 // dataGridViewTextBoxColumn3
// //
...@@ -499,40 +499,95 @@ ...@@ -499,40 +499,95 @@
// dataGridViewTextBoxColumn6 // dataGridViewTextBoxColumn6
// //
this.dataGridViewTextBoxColumn6.DataPropertyName = "ColumnSpan"; this.dataGridViewTextBoxColumn6.DataPropertyName = "ColumnSpan";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft; dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle4; this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle6;
this.dataGridViewTextBoxColumn6.HeaderText = "列跨度"; this.dataGridViewTextBoxColumn6.HeaderText = "列跨度";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.Width = 80; 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 // wExcelExportSetting
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(881, 543); this.ClientSize = new System.Drawing.Size(850, 513);
this.Controls.Add(this.splitContainer1); this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.toolStrip1); 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.Name = "wExcelExportSetting";
this.Text = "Excel导出数据源配置"; this.Text = "Excel导出数据源配置";
this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false); this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvTables)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvCardInfo)).EndInit();
this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false);
this.toolStrip4.ResumeLayout(false);
this.toolStrip4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvTables)).EndInit();
this.toolStrip3.ResumeLayout(false); this.toolStrip3.ResumeLayout(false);
this.toolStrip3.PerformLayout(); this.toolStrip3.PerformLayout();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvTemplates)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvTemplates)).EndInit();
this.toolStrip2.ResumeLayout(false); this.toolStrip2.ResumeLayout(false);
this.toolStrip2.PerformLayout(); this.toolStrip2.PerformLayout();
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
this.toolStrip4.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
this.toolStrip4.PerformLayout(); this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvCardInfo)).EndInit(); this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -544,7 +599,6 @@ ...@@ -544,7 +599,6 @@
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.ToolStrip toolStrip3; private System.Windows.Forms.ToolStrip toolStrip3;
private System.Windows.Forms.ToolStripLabel tslTables; private System.Windows.Forms.ToolStripLabel tslTables;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.ToolStrip toolStrip2; private System.Windows.Forms.ToolStrip toolStrip2;
private System.Windows.Forms.ToolStripLabel tslTemplates; private System.Windows.Forms.ToolStripLabel tslTemplates;
private System.Windows.Forms.DataGridView dgvTemplates; private System.Windows.Forms.DataGridView dgvTemplates;
...@@ -586,5 +640,9 @@ ...@@ -586,5 +640,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; 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
...@@ -180,7 +180,7 @@ namespace Tools.UI ...@@ -180,7 +180,7 @@ namespace Tools.UI
if (this.dgvTables.Columns[e.ColumnIndex].DataPropertyName.Equals("TpNames")) if (this.dgvTables.Columns[e.ColumnIndex].DataPropertyName.Equals("TpNames"))
{ {
var items = this._ds.Tables["ModuleTemplate"].DefaultView.Cast<DataRowView>().Select(r => r["TpName"].ToString()); 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) if (frm.ShowDialog() == DialogResult.OK)
{ {
var drNow = this._ds.Tables["ModuleTemplateCardInfo"].DefaultView[e.RowIndex]; var drNow = this._ds.Tables["ModuleTemplateCardInfo"].DefaultView[e.RowIndex];
...@@ -232,7 +232,7 @@ namespace Tools.UI ...@@ -232,7 +232,7 @@ namespace Tools.UI
drv.EndEdit(); drv.EndEdit();
} }
//清除卡片设置 //清除卡片设置
foreach (DataRowView drv in this._ds.Tables["ModuleTemplateTable"].DefaultView) foreach (DataRowView drv in this._ds.Tables["ModuleTemplateCardInfo"].DefaultView)
{ {
drv["TemplateName"] = drv["TemplateName"].ToString().Replace(tpName, ""); drv["TemplateName"] = drv["TemplateName"].ToString().Replace(tpName, "");
drv.EndEdit(); drv.EndEdit();
......
...@@ -117,35 +117,35 @@ ...@@ -117,35 +117,35 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="cbTemplateName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>True</value> <value>127, 17</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>347, 17</value> <value>347, 17</value>
</metadata> </metadata>
<metadata name="toolStrip4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>622, 17</value> <value>237, 17</value>
</metadata> </metadata>
<metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
...@@ -171,31 +171,31 @@ ...@@ -171,31 +171,31 @@
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>237, 17</value> <value>622, 17</value>
</metadata> </metadata>
<metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="cbTemplateName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>127, 17</value> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </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> <value>True</value>
</metadata> </metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
......
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