WEB开发网
开发学院数据库MSSQL Server 为SSIS编写自定义任务项(Task)之高级篇 阅读

为SSIS编写自定义任务项(Task)之高级篇

 2009-09-19 00:00:00 来源:WEB开发网   
核心提示: 5. 设计编辑窗体图片看不清楚?请点击这里查看原图(大图),为了让大家做练习的时候和我这边是一样的,为SSIS编写自定义任务项(Task)之高级篇(4),我把窗体设计器的代码贴在下面namespaceMySSISTaskSample{partialclassMyTaskEditor{///<

5. 设计编辑窗体

为SSIS编写自定义任务项(Task)之高级篇

图片看不清楚?请点击这里查看原图(大图)。

为了让大家做练习的时候和我这边是一样的。我把窗体设计器的代码贴在下面

namespace MySSISTaskSample
{
  partial class MyTaskEditor
  {
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.IContainer components = null;
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    {
      if (disposing && (components != null))
      {
        components.Dispose();
      }
      base.Dispose(disposing);
    }
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
      this.label1 = new System.Windows.Forms.Label();
      this.txtSource = new System.Windows.Forms.TextBox();
      this.txtOutput = new System.Windows.Forms.TextBox();
      this.label2 = new System.Windows.Forms.Label();
      this.txtxpath = new System.Windows.Forms.TextBox();
      this.label3 = new System.Windows.Forms.Label();
      this.txtDef = new System.Windows.Forms.RichTextBox();
      this.label4 = new System.Windows.Forms.Label();
      this.label5 = new System.Windows.Forms.Label();
      this.btOk = new System.Windows.Forms.Button();
      this.btCancel = new System.Windows.Forms.Button();
      this.SuspendLayout();
      // 
      // label1
      // 
      this.label1.AutoSize = true;
      this.label1.Location = new System.Drawing.Point(13, 27);
      this.label1.Name = "label1";
      this.label1.Size = new System.Drawing.Size(53, 12);
      this.label1.TabIndex = 0;
      this.label1.Text = "输入文件";
      // 
      // txtSource
      // 
      this.txtSource.Location = new System.Drawing.Point(15, 42);
      this.txtSource.Name = "txtSource";
      this.txtSource.Size = new System.Drawing.Size(448, 21);
      this.txtSource.TabIndex = 1;
      // 
      // txtOutput
      // 
      this.txtOutput.Location = new System.Drawing.Point(15, 83);
      this.txtOutput.Name = "txtOutput";
      this.txtOutput.Size = new System.Drawing.Size(448, 21);
      this.txtOutput.TabIndex = 3;
      // 
      // label2
      // 
      this.label2.AutoSize = true;
      this.label2.Location = new System.Drawing.Point(13, 68);
      this.label2.Name = "label2";
      this.label2.Size = new System.Drawing.Size(53, 12);
      this.label2.TabIndex = 2;
      this.label2.Text = "输出文件";
      // 
      // txtxpath
      // 
      this.txtxpath.Location = new System.Drawing.Point(15, 129);
      this.txtxpath.Name = "txtxpath";
      this.txtxpath.Size = new System.Drawing.Size(448, 21);
      this.txtxpath.TabIndex = 5;
      // 
      // label3
      // 
      this.label3.AutoSize = true;
      this.label3.Location = new System.Drawing.Point(13, 114);
      this.label3.Name = "label3";
      this.label3.Size = new System.Drawing.Size(59, 12);
      this.label3.TabIndex = 4;
      this.label3.Text = "XPATH语法";
      // 
      // txtDef
      // 
      this.txtDef.Location = new System.Drawing.Point(16, 175);
      this.txtDef.Name = "txtDef";
      this.txtDef.Size = new System.Drawing.Size(450, 108);
      this.txtDef.TabIndex = 6;
      this.txtDef.Text = "";
      // 
      // label4
      // 
      this.label4.AutoSize = true;
      this.label4.Location = new System.Drawing.Point(14, 160);
      this.label4.Name = "label4";
      this.label4.Size = new System.Drawing.Size(77, 12);
      this.label4.TabIndex = 7;
      this.label4.Text = "命名空间定义";
      // 
      // label5
      // 
      this.label5.AutoSize = true;
      this.label5.Location = new System.Drawing.Point(14, 286);
      this.label5.Name = "label5";
      this.label5.Size = new System.Drawing.Size(395, 12);
      this.label5.TabIndex = 8;
      this.label5.Text = "一行一个,用逗号分开。类似于这样的格式: d, http://www.xizhang.com";
      // 
      // btOk
      // 
      this.btOk.DialogResult = System.Windows.Forms.DialogResult.OK;
      this.btOk.Location = new System.Drawing.Point(480, 42);
      this.btOk.Name = "btOk";
      this.btOk.Size = new System.Drawing.Size(75, 23);
      this.btOk.TabIndex = 9;
      this.btOk.Text = "确定";
      this.btOk.UseVisualStyleBackColor = true;
      this.btOk.Click += new System.EventHandler(this.btOk_Click);
      // 
      // btCancel
      // 
      this.btCancel.Location = new System.Drawing.Point(480, 71);
      this.btCancel.Name = "btCancel";
      this.btCancel.Size = new System.Drawing.Size(75, 23);
      this.btCancel.TabIndex = 10;
      this.btCancel.Text = "取消";
      this.btCancel.UseVisualStyleBackColor = true;
      // 
      // MyTaskEditor
      // 
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ClientSize = new System.Drawing.Size(570, 317);
      this.Controls.Add(this.btCancel);
      this.Controls.Add(this.btOk);
      this.Controls.Add(this.label5);
      this.Controls.Add(this.label4);
      this.Controls.Add(this.txtDef);
      this.Controls.Add(this.txtxpath);
      this.Controls.Add(this.label3);
      this.Controls.Add(this.txtOutput);
      this.Controls.Add(this.label2);
      this.Controls.Add(this.txtSource);
      this.Controls.Add(this.label1);
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
      this.MaximizeBox = false;
      this.MinimizeBox = false;
      this.Name = "MyTaskEditor";
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
      this.Text = "我的自定义XML任务";
      this.ResumeLayout(false);
      this.PerformLayout();
    }
    #endregion
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.TextBox txtSource;
    private System.Windows.Forms.TextBox txtOutput;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.TextBox txtxpath;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.RichTextBox txtDef;
    private System.Windows.Forms.Label label4;
    private System.Windows.Forms.Label label5;
    private System.Windows.Forms.Button btOk;
    private System.Windows.Forms.Button btCancel;
  }
}

上一页  1 2 3 4 5 6 7 8  下一页

Tags:SSIS 编写 定义

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接