コード例 #1
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1             = new System.Windows.Forms.Panel();
     this.comboBoxTreeView1  = new MaterialMIS.ComboBoxTreeView();
     this.pictureBoxGoodsPic = new System.Windows.Forms.PictureBox();
     this.label9             = new System.Windows.Forms.Label();
     this.buttonSaveAndNew   = new System.Windows.Forms.Button();
     this.btnSave            = new System.Windows.Forms.Button();
     this.textBoxLimitUP     = new System.Windows.Forms.TextBox();
     this.textBoxGoodsUnit   = new System.Windows.Forms.TextBox();
     this.textBoxGoodsPrice  = new System.Windows.Forms.TextBox();
     this.textBoxGoodsSpec   = new System.Windows.Forms.TextBox();
     this.textBoxGoodsNamePY = new System.Windows.Forms.TextBox();
     this.textBoxLimitLow    = new System.Windows.Forms.TextBox();
     this.textBoxGoodsName   = new System.Windows.Forms.TextBox();
     this.buttonClose        = new System.Windows.Forms.Button();
     this.label2             = new System.Windows.Forms.Label();
     this.label6             = new System.Windows.Forms.Label();
     this.label4             = new System.Windows.Forms.Label();
     this.label8             = new System.Windows.Forms.Label();
     this.label7             = new System.Windows.Forms.Label();
     this.label5             = new System.Windows.Forms.Label();
     this.label3             = new System.Windows.Forms.Label();
     this.label1             = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxGoodsPic)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.Controls.Add(this.comboBoxTreeView1);
     this.panel1.Controls.Add(this.pictureBoxGoodsPic);
     this.panel1.Controls.Add(this.label9);
     this.panel1.Controls.Add(this.buttonSaveAndNew);
     this.panel1.Controls.Add(this.btnSave);
     this.panel1.Controls.Add(this.textBoxLimitUP);
     this.panel1.Controls.Add(this.textBoxGoodsUnit);
     this.panel1.Controls.Add(this.textBoxGoodsPrice);
     this.panel1.Controls.Add(this.textBoxGoodsSpec);
     this.panel1.Controls.Add(this.textBoxGoodsNamePY);
     this.panel1.Controls.Add(this.textBoxLimitLow);
     this.panel1.Controls.Add(this.textBoxGoodsName);
     this.panel1.Controls.Add(this.buttonClose);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(12, 12);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(667, 254);
     this.panel1.TabIndex = 6;
     //
     // comboBoxTreeView1
     //
     this.comboBoxTreeView1.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBoxTreeView1.DropDownHeight    = 120;
     this.comboBoxTreeView1.FormattingEnabled = true;
     this.comboBoxTreeView1.IntegralHeight    = false;
     this.comboBoxTreeView1.ItemHeight        = 12;
     this.comboBoxTreeView1.Location          = new System.Drawing.Point(464, 7);
     this.comboBoxTreeView1.Name     = "comboBoxTreeView1";
     this.comboBoxTreeView1.Size     = new System.Drawing.Size(188, 20);
     this.comboBoxTreeView1.TabIndex = 19;
     //
     // pictureBoxGoodsPic
     //
     this.pictureBoxGoodsPic.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBoxGoodsPic.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pictureBoxGoodsPic.Location     = new System.Drawing.Point(532, 46);
     this.pictureBoxGoodsPic.Name         = "pictureBoxGoodsPic";
     this.pictureBoxGoodsPic.Size         = new System.Drawing.Size(120, 120);
     this.pictureBoxGoodsPic.SizeMode     = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureBoxGoodsPic.TabIndex     = 10;
     this.pictureBoxGoodsPic.TabStop      = false;
     this.pictureBoxGoodsPic.DoubleClick += new System.EventHandler(this.PictureBoxGoodsPicDoubleClick);
     //
     // label9
     //
     this.label9.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label9.Location = new System.Drawing.Point(532, 169);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(100, 23);
     this.label9.TabIndex = 18;
     this.label9.Text     = "双击图片更换";
     //
     // buttonSaveAndNew
     //
     this.buttonSaveAndNew.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonSaveAndNew.Location = new System.Drawing.Point(403, 219);
     this.buttonSaveAndNew.Name     = "buttonSaveAndNew";
     this.buttonSaveAndNew.Size     = new System.Drawing.Size(75, 23);
     this.buttonSaveAndNew.TabIndex = 16;
     this.buttonSaveAndNew.Text     = "保存/新增";
     this.buttonSaveAndNew.UseVisualStyleBackColor = true;
     this.buttonSaveAndNew.Click += new System.EventHandler(this.ButtonSaveAndNewClick);
     //
     // btnSave
     //
     this.btnSave.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSave.Location = new System.Drawing.Point(483, 219);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(75, 23);
     this.btnSave.TabIndex = 16;
     this.btnSave.Text     = "保存/关闭";
     this.btnSave.UseVisualStyleBackColor = true;
     this.btnSave.Click += new System.EventHandler(this.BtnSaveClick);
     //
     // textBoxLimitUP
     //
     this.textBoxLimitUP.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxLimitUP.Location  = new System.Drawing.Point(403, 144);
     this.textBoxLimitUP.Name      = "textBoxLimitUP";
     this.textBoxLimitUP.Size      = new System.Drawing.Size(100, 21);
     this.textBoxLimitUP.TabIndex  = 15;
     this.textBoxLimitUP.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxLimitUPKeyPress);
     //
     // textBoxGoodsUnit
     //
     this.textBoxGoodsUnit.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxGoodsUnit.Location = new System.Drawing.Point(81, 98);
     this.textBoxGoodsUnit.Name     = "textBoxGoodsUnit";
     this.textBoxGoodsUnit.Size     = new System.Drawing.Size(237, 21);
     this.textBoxGoodsUnit.TabIndex = 12;
     //
     // textBoxGoodsPrice
     //
     this.textBoxGoodsPrice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxGoodsPrice.Location  = new System.Drawing.Point(80, 144);
     this.textBoxGoodsPrice.Name      = "textBoxGoodsPrice";
     this.textBoxGoodsPrice.Size      = new System.Drawing.Size(238, 21);
     this.textBoxGoodsPrice.TabIndex  = 14;
     this.textBoxGoodsPrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxGoodsPriceKeyPress);
     //
     // textBoxGoodsSpec
     //
     this.textBoxGoodsSpec.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxGoodsSpec.Location = new System.Drawing.Point(80, 52);
     this.textBoxGoodsSpec.Name     = "textBoxGoodsSpec";
     this.textBoxGoodsSpec.Size     = new System.Drawing.Size(238, 21);
     this.textBoxGoodsSpec.TabIndex = 10;
     //
     // textBoxGoodsNamePY
     //
     this.textBoxGoodsNamePY.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxGoodsNamePY.Location = new System.Drawing.Point(403, 52);
     this.textBoxGoodsNamePY.Name     = "textBoxGoodsNamePY";
     this.textBoxGoodsNamePY.ReadOnly = true;
     this.textBoxGoodsNamePY.Size     = new System.Drawing.Size(100, 21);
     this.textBoxGoodsNamePY.TabIndex = 11;
     //
     // textBoxLimitLow
     //
     this.textBoxLimitLow.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxLimitLow.Location  = new System.Drawing.Point(403, 98);
     this.textBoxLimitLow.Name      = "textBoxLimitLow";
     this.textBoxLimitLow.Size      = new System.Drawing.Size(100, 21);
     this.textBoxLimitLow.TabIndex  = 13;
     this.textBoxLimitLow.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxLimitLowKeyPress);
     //
     // textBoxGoodsName
     //
     this.textBoxGoodsName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxGoodsName.Location     = new System.Drawing.Point(80, 6);
     this.textBoxGoodsName.Name         = "textBoxGoodsName";
     this.textBoxGoodsName.Size         = new System.Drawing.Size(303, 21);
     this.textBoxGoodsName.TabIndex     = 8;
     this.textBoxGoodsName.TextChanged += new System.EventHandler(this.TextBoxGoodsNameTextChanged);
     //
     // buttonClose
     //
     this.buttonClose.Anchor   = System.Windows.Forms.AnchorStyles.Right;
     this.buttonClose.Location = new System.Drawing.Point(577, 219);
     this.buttonClose.Name     = "buttonClose";
     this.buttonClose.Size     = new System.Drawing.Size(75, 23);
     this.buttonClose.TabIndex = 17;
     this.buttonClose.Text     = "取消";
     this.buttonClose.UseVisualStyleBackColor = true;
     this.buttonClose.Click += new System.EventHandler(this.ButtonCloseClick);
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location = new System.Drawing.Point(335, 55);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(66, 23);
     this.label2.TabIndex = 5;
     this.label2.Text     = "快捷品名:";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(13, 148);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(66, 23);
     this.label6.TabIndex = 3;
     this.label6.Text     = "参考价格:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(14, 101);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(66, 23);
     this.label4.TabIndex = 2;
     this.label4.Text     = "货品单位:";
     //
     // label8
     //
     this.label8.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label8.Location = new System.Drawing.Point(336, 148);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(66, 23);
     this.label8.TabIndex = 7;
     this.label8.Text     = "最高库存:";
     //
     // label7
     //
     this.label7.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label7.Location = new System.Drawing.Point(336, 101);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(66, 23);
     this.label7.TabIndex = 6;
     this.label7.Text     = "最低库存:";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(14, 55);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(66, 23);
     this.label5.TabIndex = 1;
     this.label5.Text     = "规格型号:";
     //
     // label3
     //
     this.label3.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location = new System.Drawing.Point(403, 11);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(66, 23);
     this.label3.TabIndex = 4;
     this.label3.Text     = "货品类别:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(14, 11);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(66, 23);
     this.label1.TabIndex = 0;
     this.label1.Text     = "货品名称:";
     //
     // FormGood
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(691, 278);
     this.Controls.Add(this.panel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name            = "FormGood";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "FormGood";
     this.Load           += new System.EventHandler(this.FormGoodLoad);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxGoodsPic)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #2
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1            = new System.Windows.Forms.Label();
     this.label2            = new System.Windows.Forms.Label();
     this.textBox1          = new System.Windows.Forms.TextBox();
     this.button1           = new System.Windows.Forms.Button();
     this.button2           = new System.Windows.Forms.Button();
     this.comboBoxTreeView1 = new MaterialMIS.ComboBoxTreeView();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(12, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(77, 23);
     this.label1.TabIndex = 0;
     this.label1.Text     = "上级类别:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(12, 67);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(77, 23);
     this.label2.TabIndex = 1;
     this.label2.Text     = "货品类别:";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(87, 62);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(181, 21);
     this.textBox1.TabIndex = 0;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(120, 185);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 0;
     this.button1.Text     = "确定";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.Button1Click);
     //
     // button2
     //
     this.button2.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.button2.Location                = new System.Drawing.Point(201, 185);
     this.button2.Name                    = "button2";
     this.button2.Size                    = new System.Drawing.Size(75, 23);
     this.button2.TabIndex                = 5;
     this.button2.Text                    = "取消";
     this.button2.UseVisualStyleBackColor = true;
     //
     // comboBoxTreeView1
     //
     this.comboBoxTreeView1.FormattingEnabled = true;
     this.comboBoxTreeView1.Location          = new System.Drawing.Point(87, 14);
     this.comboBoxTreeView1.Name     = "comboBoxTreeView1";
     this.comboBoxTreeView1.Size     = new System.Drawing.Size(181, 20);
     this.comboBoxTreeView1.TabIndex = 6;
     //
     // FormGoodType
     //
     this.AcceptButton        = this.button1;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton        = this.button2;
     this.ClientSize          = new System.Drawing.Size(316, 220);
     this.Controls.Add(this.comboBoxTreeView1);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FormGoodType";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "FormGoodType";
     this.Load           += new System.EventHandler(this.FormGoodTypeLoad);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #3
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1            = new System.Windows.Forms.Label();
     this.comboBoxTreeView1 = new MaterialMIS.ComboBoxTreeView();
     this.buttonChange      = new System.Windows.Forms.Button();
     this.buttonCancel      = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(28, 9);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(195, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "请指定将更改到的材料类别:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // comboBoxTreeView1
     //
     this.comboBoxTreeView1.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBoxTreeView1.DropDownHeight    = 120;
     this.comboBoxTreeView1.FormattingEnabled = true;
     this.comboBoxTreeView1.IntegralHeight    = false;
     this.comboBoxTreeView1.ItemHeight        = 12;
     this.comboBoxTreeView1.Location          = new System.Drawing.Point(28, 35);
     this.comboBoxTreeView1.Name     = "comboBoxTreeView1";
     this.comboBoxTreeView1.Size     = new System.Drawing.Size(353, 20);
     this.comboBoxTreeView1.TabIndex = 20;
     //
     // buttonChange
     //
     this.buttonChange.Location = new System.Drawing.Point(225, 162);
     this.buttonChange.Name     = "buttonChange";
     this.buttonChange.Size     = new System.Drawing.Size(75, 23);
     this.buttonChange.TabIndex = 21;
     this.buttonChange.Text     = "确认更改";
     this.buttonChange.UseVisualStyleBackColor = true;
     this.buttonChange.Click += new System.EventHandler(this.ButtonChangeClick);
     //
     // buttonCancel
     //
     this.buttonCancel.Location = new System.Drawing.Point(306, 162);
     this.buttonCancel.Name     = "buttonCancel";
     this.buttonCancel.Size     = new System.Drawing.Size(75, 23);
     this.buttonCancel.TabIndex = 21;
     this.buttonCancel.Text     = "取消";
     this.buttonCancel.UseVisualStyleBackColor = true;
     this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
     //
     // FormGoodsTypeChange
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(412, 199);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonChange);
     this.Controls.Add(this.comboBoxTreeView1);
     this.Controls.Add(this.label1);
     this.Name  = "FormGoodsTypeChange";
     this.Text  = "批量更改货品所属类别";
     this.Load += new System.EventHandler(this.FormGoodsTypeChangeLoad);
     this.ResumeLayout(false);
 }