|
@ -57,14 +57,15 @@ namespace ExportDataToFile |
|
|
this.dgvExportList = new System.Windows.Forms.DataGridView(); |
|
|
this.dgvExportList = new System.Windows.Forms.DataGridView(); |
|
|
this.label11 = new System.Windows.Forms.Label(); |
|
|
this.label11 = new System.Windows.Forms.Label(); |
|
|
this.dgvColumnMapping = new System.Windows.Forms.DataGridView(); |
|
|
this.dgvColumnMapping = new System.Windows.Forms.DataGridView(); |
|
|
this.txtWhere = new System.Windows.Forms.TextBox(); |
|
|
|
|
|
this.label13 = new System.Windows.Forms.Label(); |
|
|
|
|
|
this.label14 = new System.Windows.Forms.Label(); |
|
|
|
|
|
this.cbTargetTable = new System.Windows.Forms.ComboBox(); |
|
|
|
|
|
this.clExpColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); |
|
|
this.clExpColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); |
|
|
this.clClean = new System.Windows.Forms.DataGridViewButtonColumn(); |
|
|
this.clClean = new System.Windows.Forms.DataGridViewButtonColumn(); |
|
|
this.clSourceColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
this.clSourceColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
this.clTargetColumn = new System.Windows.Forms.DataGridViewComboBoxColumn(); |
|
|
this.clTargetColumn = new System.Windows.Forms.DataGridViewComboBoxColumn(); |
|
|
|
|
|
this.txtWhere = new System.Windows.Forms.TextBox(); |
|
|
|
|
|
this.label13 = new System.Windows.Forms.Label(); |
|
|
|
|
|
this.label14 = new System.Windows.Forms.Label(); |
|
|
|
|
|
this.cbTargetTable = new System.Windows.Forms.ComboBox(); |
|
|
|
|
|
this.btnMapping = new System.Windows.Forms.Button(); |
|
|
this.clExport = new System.Windows.Forms.DataGridViewCheckBoxColumn(); |
|
|
this.clExport = new System.Windows.Forms.DataGridViewCheckBoxColumn(); |
|
|
this.clCancel = new System.Windows.Forms.DataGridViewButtonColumn(); |
|
|
this.clCancel = new System.Windows.Forms.DataGridViewButtonColumn(); |
|
|
this.clSourceTable = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
this.clSourceTable = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
@ -381,11 +382,42 @@ namespace ExportDataToFile |
|
|
this.dgvColumnMapping.Location = new System.Drawing.Point(1297, 180); |
|
|
this.dgvColumnMapping.Location = new System.Drawing.Point(1297, 180); |
|
|
this.dgvColumnMapping.Name = "dgvColumnMapping"; |
|
|
this.dgvColumnMapping.Name = "dgvColumnMapping"; |
|
|
this.dgvColumnMapping.RowTemplate.Height = 25; |
|
|
this.dgvColumnMapping.RowTemplate.Height = 25; |
|
|
this.dgvColumnMapping.Size = new System.Drawing.Size(487, 373); |
|
|
|
|
|
|
|
|
this.dgvColumnMapping.Size = new System.Drawing.Size(487, 342); |
|
|
this.dgvColumnMapping.TabIndex = 45; |
|
|
this.dgvColumnMapping.TabIndex = 45; |
|
|
this.dgvColumnMapping.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellContentClick); |
|
|
this.dgvColumnMapping.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellContentClick); |
|
|
this.dgvColumnMapping.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellEndEdit); |
|
|
this.dgvColumnMapping.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellEndEdit); |
|
|
//
|
|
|
//
|
|
|
|
|
|
// clExpColumn
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clExpColumn.HeaderText = "匯出"; |
|
|
|
|
|
this.clExpColumn.Name = "clExpColumn"; |
|
|
|
|
|
this.clExpColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
|
|
this.clExpColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; |
|
|
|
|
|
this.clExpColumn.Width = 65; |
|
|
|
|
|
//
|
|
|
|
|
|
// clClean
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clClean.HeaderText = "清除"; |
|
|
|
|
|
this.clClean.Name = "clClean"; |
|
|
|
|
|
this.clClean.Width = 50; |
|
|
|
|
|
//
|
|
|
|
|
|
// clSourceColumn
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clSourceColumn.DataPropertyName = "COLUMN_NAME"; |
|
|
|
|
|
this.clSourceColumn.HeaderText = "來源欄位"; |
|
|
|
|
|
this.clSourceColumn.Name = "clSourceColumn"; |
|
|
|
|
|
this.clSourceColumn.ReadOnly = true; |
|
|
|
|
|
this.clSourceColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
|
|
this.clSourceColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
|
|
|
|
this.clSourceColumn.Width = 200; |
|
|
|
|
|
//
|
|
|
|
|
|
// clTargetColumn
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clTargetColumn.HeaderText = "目標欄位"; |
|
|
|
|
|
this.clTargetColumn.Name = "clTargetColumn"; |
|
|
|
|
|
this.clTargetColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
|
|
this.clTargetColumn.Width = 200; |
|
|
|
|
|
//
|
|
|
// txtWhere
|
|
|
// txtWhere
|
|
|
//
|
|
|
//
|
|
|
this.txtWhere.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
this.txtWhere.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
@ -434,45 +466,31 @@ namespace ExportDataToFile |
|
|
this.cbTargetTable.ValueMember = "TableName"; |
|
|
this.cbTargetTable.ValueMember = "TableName"; |
|
|
this.cbTargetTable.SelectedIndexChanged += new System.EventHandler(this.cbTargetTable_SelectedIndexChanged); |
|
|
this.cbTargetTable.SelectedIndexChanged += new System.EventHandler(this.cbTargetTable_SelectedIndexChanged); |
|
|
//
|
|
|
//
|
|
|
// clExpColumn
|
|
|
|
|
|
|
|
|
// btnMapping
|
|
|
//
|
|
|
//
|
|
|
this.clExpColumn.HeaderText = "匯出"; |
|
|
|
|
|
this.clExpColumn.Name = "clExpColumn"; |
|
|
|
|
|
this.clExpColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
|
|
this.clExpColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; |
|
|
|
|
|
this.clExpColumn.Width = 65; |
|
|
|
|
|
//
|
|
|
|
|
|
// clClean
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clClean.HeaderText = "清除"; |
|
|
|
|
|
this.clClean.Name = "clClean"; |
|
|
|
|
|
this.clClean.Width = 50; |
|
|
|
|
|
//
|
|
|
|
|
|
// clSourceColumn
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clSourceColumn.DataPropertyName = "COLUMN_NAME"; |
|
|
|
|
|
this.clSourceColumn.HeaderText = "來源欄位"; |
|
|
|
|
|
this.clSourceColumn.Name = "clSourceColumn"; |
|
|
|
|
|
this.clSourceColumn.ReadOnly = true; |
|
|
|
|
|
this.clSourceColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
|
|
this.clSourceColumn.Width = 200; |
|
|
|
|
|
//
|
|
|
|
|
|
// clTargetColumn
|
|
|
|
|
|
//
|
|
|
|
|
|
this.clTargetColumn.HeaderText = "目標欄位"; |
|
|
|
|
|
this.clTargetColumn.Name = "clTargetColumn"; |
|
|
|
|
|
this.clTargetColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
|
|
this.clTargetColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; |
|
|
|
|
|
this.clTargetColumn.Width = 200; |
|
|
|
|
|
|
|
|
this.btnMapping.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
|
this.btnMapping.Location = new System.Drawing.Point(1697, 528); |
|
|
|
|
|
this.btnMapping.Name = "btnMapping"; |
|
|
|
|
|
this.btnMapping.Size = new System.Drawing.Size(87, 33); |
|
|
|
|
|
this.btnMapping.TabIndex = 50; |
|
|
|
|
|
this.btnMapping.Text = "欄位對應"; |
|
|
|
|
|
this.btnMapping.UseVisualStyleBackColor = true; |
|
|
|
|
|
this.btnMapping.Click += new System.EventHandler(this.btnMapping_Click); |
|
|
//
|
|
|
//
|
|
|
// clExport
|
|
|
// clExport
|
|
|
//
|
|
|
//
|
|
|
|
|
|
this.clExport.FalseValue = "false"; |
|
|
|
|
|
this.clExport.Frozen = true; |
|
|
this.clExport.HeaderText = "匯出"; |
|
|
this.clExport.HeaderText = "匯出"; |
|
|
|
|
|
this.clExport.IndeterminateValue = "false"; |
|
|
this.clExport.Name = "clExport"; |
|
|
this.clExport.Name = "clExport"; |
|
|
|
|
|
this.clExport.ReadOnly = true; |
|
|
|
|
|
this.clExport.TrueValue = "true"; |
|
|
this.clExport.Width = 55; |
|
|
this.clExport.Width = 55; |
|
|
//
|
|
|
//
|
|
|
// clCancel
|
|
|
// clCancel
|
|
|
//
|
|
|
//
|
|
|
|
|
|
this.clCancel.Frozen = true; |
|
|
this.clCancel.HeaderText = "清除"; |
|
|
this.clCancel.HeaderText = "清除"; |
|
|
this.clCancel.Name = "clCancel"; |
|
|
this.clCancel.Name = "clCancel"; |
|
|
this.clCancel.Text = "Clean"; |
|
|
this.clCancel.Text = "Clean"; |
|
@ -481,12 +499,13 @@ namespace ExportDataToFile |
|
|
// clSourceTable
|
|
|
// clSourceTable
|
|
|
//
|
|
|
//
|
|
|
this.clSourceTable.DataPropertyName = "TableName"; |
|
|
this.clSourceTable.DataPropertyName = "TableName"; |
|
|
|
|
|
this.clSourceTable.Frozen = true; |
|
|
this.clSourceTable.HeaderText = "來源資料表名稱"; |
|
|
this.clSourceTable.HeaderText = "來源資料表名稱"; |
|
|
this.clSourceTable.Name = "clSourceTable"; |
|
|
this.clSourceTable.Name = "clSourceTable"; |
|
|
this.clSourceTable.ReadOnly = true; |
|
|
this.clSourceTable.ReadOnly = true; |
|
|
this.clSourceTable.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
this.clSourceTable.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
this.clSourceTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
|
this.clSourceTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
|
this.clSourceTable.Width = 200; |
|
|
|
|
|
|
|
|
this.clSourceTable.Width = 250; |
|
|
//
|
|
|
//
|
|
|
// clTargetTable
|
|
|
// clTargetTable
|
|
|
//
|
|
|
//
|
|
@ -495,7 +514,7 @@ namespace ExportDataToFile |
|
|
this.clTargetTable.ReadOnly = true; |
|
|
this.clTargetTable.ReadOnly = true; |
|
|
this.clTargetTable.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
this.clTargetTable.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
this.clTargetTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
|
this.clTargetTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
|
this.clTargetTable.Width = 130; |
|
|
|
|
|
|
|
|
this.clTargetTable.Width = 250; |
|
|
//
|
|
|
//
|
|
|
// clTableDel
|
|
|
// clTableDel
|
|
|
//
|
|
|
//
|
|
@ -532,6 +551,7 @@ namespace ExportDataToFile |
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
|
this.BackColor = System.Drawing.SystemColors.ControlDarkDark; |
|
|
this.BackColor = System.Drawing.SystemColors.ControlDarkDark; |
|
|
this.ClientSize = new System.Drawing.Size(1796, 1061); |
|
|
this.ClientSize = new System.Drawing.Size(1796, 1061); |
|
|
|
|
|
this.Controls.Add(this.btnMapping); |
|
|
this.Controls.Add(this.cbTargetTable); |
|
|
this.Controls.Add(this.cbTargetTable); |
|
|
this.Controls.Add(this.label14); |
|
|
this.Controls.Add(this.label14); |
|
|
this.Controls.Add(this.txtWhere); |
|
|
this.Controls.Add(this.txtWhere); |
|
@ -570,6 +590,7 @@ namespace ExportDataToFile |
|
|
this.Name = "Form1"; |
|
|
this.Name = "Form1"; |
|
|
this.Text = "資料匯出程式"; |
|
|
this.Text = "資料匯出程式"; |
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|
|
|
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); |
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvExportList)).EndInit(); |
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvExportList)).EndInit(); |
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvColumnMapping)).EndInit(); |
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvColumnMapping)).EndInit(); |
|
|
this.ResumeLayout(false); |
|
|
this.ResumeLayout(false); |
|
@ -614,6 +635,7 @@ namespace ExportDataToFile |
|
|
private System.Windows.Forms.DataGridViewButtonColumn clClean; |
|
|
private System.Windows.Forms.DataGridViewButtonColumn clClean; |
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn clSourceColumn; |
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn clSourceColumn; |
|
|
private System.Windows.Forms.DataGridViewComboBoxColumn clTargetColumn; |
|
|
private System.Windows.Forms.DataGridViewComboBoxColumn clTargetColumn; |
|
|
|
|
|
private System.Windows.Forms.Button btnMapping; |
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn clExport; |
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn clExport; |
|
|
private System.Windows.Forms.DataGridViewButtonColumn clCancel; |
|
|
private System.Windows.Forms.DataGridViewButtonColumn clCancel; |
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn clSourceTable; |
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn clSourceTable; |
|
|