📄 requireplan.cs
字号:
this.dataGridTextBoxColumn4.Width = 75;
//
// dataGridTextBoxColumn5
//
this.dataGridTextBoxColumn5.Format = "";
this.dataGridTextBoxColumn5.FormatInfo = null;
this.dataGridTextBoxColumn5.HeaderText = "状态";
this.dataGridTextBoxColumn5.MappingName = "状态";
this.dataGridTextBoxColumn5.Width = 75;
//
// label5
//
this.label5.Location = new System.Drawing.Point(456, 384);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(32, 16);
this.label5.TabIndex = 43;
this.label5.Text = "备注";
//
// label2
//
this.label2.Location = new System.Drawing.Point(448, 160);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 16);
this.label2.TabIndex = 41;
this.label2.Text = "物料名称";
//
// txtMemo
//
this.txtMemo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.备注"));
this.txtMemo.Location = new System.Drawing.Point(504, 392);
this.txtMemo.Name = "txtMemo";
this.txtMemo.ReadOnly = true;
this.txtMemo.Size = new System.Drawing.Size(100, 48);
this.txtMemo.TabIndex = 38;
this.txtMemo.Text = "";
//
// txt2
//
this.txt2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "工厂日历.计划期"));
this.txt2.Enabled = false;
this.txt2.Location = new System.Drawing.Point(504, 152);
this.txt2.Name = "txt2";
this.txt2.ReadOnly = true;
this.txt2.TabIndex = 37;
this.txt2.Text = "";
//
// txt1
//
this.txt1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.物料编号"));
this.txt1.Enabled = false;
this.txt1.Location = new System.Drawing.Point(504, 120);
this.txt1.Name = "txt1";
this.txt1.ReadOnly = true;
this.txt1.TabIndex = 34;
this.txt1.Text = "";
this.txt1.TextChanged += new System.EventHandler(this.txt1_TextChanged);
//
// txt3
//
this.txt3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.年份"));
this.txt3.Enabled = false;
this.txt3.Location = new System.Drawing.Point(504, 184);
this.txt3.Name = "txt3";
this.txt3.ReadOnly = true;
this.txt3.TabIndex = 35;
this.txt3.Text = "";
//
// txt4
//
this.txt4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.计划期"));
this.txt4.Enabled = false;
this.txt4.Location = new System.Drawing.Point(504, 216);
this.txt4.Name = "txt4";
this.txt4.ReadOnly = true;
this.txt4.TabIndex = 36;
this.txt4.Text = "";
//
// label3
//
this.label3.Location = new System.Drawing.Point(448, 120);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 16);
this.label3.TabIndex = 39;
this.label3.Text = "物料编号";
//
// label4
//
this.label4.Location = new System.Drawing.Point(448, 288);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 16);
this.label4.TabIndex = 40;
this.label4.Text = "结束日期";
//
// label8
//
this.label8.Location = new System.Drawing.Point(448, 264);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(56, 16);
this.label8.TabIndex = 42;
this.label8.Text = "开始日期";
//
// label9
//
this.label9.Location = new System.Drawing.Point(448, 224);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(56, 16);
this.label9.TabIndex = 41;
this.label9.Text = "计划期";
//
// label10
//
this.label10.Location = new System.Drawing.Point(456, 192);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(56, 16);
this.label10.TabIndex = 39;
this.label10.Text = "年份";
//
// txt5
//
this.txt5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.开始日期"));
this.txt5.Enabled = false;
this.txt5.Location = new System.Drawing.Point(504, 248);
this.txt5.Name = "txt5";
this.txt5.ReadOnly = true;
this.txt5.TabIndex = 35;
this.txt5.Text = "";
//
// txt6
//
this.txt6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.结束日期"));
this.txt6.Enabled = false;
this.txt6.Location = new System.Drawing.Point(504, 280);
this.txt6.Name = "txt6";
this.txt6.ReadOnly = true;
this.txt6.TabIndex = 36;
this.txt6.Text = "";
//
// txt7
//
this.txt7.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.需求数量"));
this.txt7.Location = new System.Drawing.Point(504, 312);
this.txt7.Name = "txt7";
this.txt7.ReadOnly = true;
this.txt7.TabIndex = 36;
this.txt7.Text = "";
//
// label11
//
this.label11.Location = new System.Drawing.Point(448, 320);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(56, 16);
this.label11.TabIndex = 40;
this.label11.Text = "需求数量";
//
// cm1
//
this.cm1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "主需求计划.状态"));
this.cm1.Items.AddRange(new object[] {
"正常",
"无效"});
this.cm1.Location = new System.Drawing.Point(504, 352);
this.cm1.Name = "cm1";
this.cm1.Size = new System.Drawing.Size(104, 20);
this.cm1.TabIndex = 44;
//
// selBtn1
//
this.selBtn1.Enabled = false;
this.selBtn1.Image = ((System.Drawing.Image)(resources.GetObject("selBtn1.Image")));
this.selBtn1.Location = new System.Drawing.Point(608, 120);
this.selBtn1.Name = "selBtn1";
this.selBtn1.Size = new System.Drawing.Size(24, 23);
this.selBtn1.TabIndex = 45;
this.selBtn1.Click += new System.EventHandler(this.selBtn1_Click);
this.selBtn1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.selBtn1_MouseUp);
//
// selBtn2
//
this.selBtn2.Enabled = false;
this.selBtn2.Image = ((System.Drawing.Image)(resources.GetObject("selBtn2.Image")));
this.selBtn2.Location = new System.Drawing.Point(608, 184);
this.selBtn2.Name = "selBtn2";
this.selBtn2.Size = new System.Drawing.Size(24, 23);
this.selBtn2.TabIndex = 46;
this.selBtn2.Click += new System.EventHandler(this.selBtn2_Click);
this.selBtn2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.selBtn2_MouseUp);
//
// label12
//
this.label12.Location = new System.Drawing.Point(456, 352);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(32, 16);
this.label12.TabIndex = 43;
this.label12.Text = "状态";
//
// RequirePlan
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(696, 453);
this.Controls.Add(this.selBtn2);
this.Controls.Add(this.selBtn1);
this.Controls.Add(this.cm1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label2);
this.Controls.Add(this.txtMemo);
this.Controls.Add(this.txt2);
this.Controls.Add(this.txt1);
this.Controls.Add(this.txt3);
this.Controls.Add(this.txt4);
this.Controls.Add(this.txt5);
this.Controls.Add(this.txt6);
this.Controls.Add(this.txt7);
this.Controls.Add(this.label3);
this.Controls.Add(this.label4);
this.Controls.Add(this.label8);
this.Controls.Add(this.dataGrid1);
this.Controls.Add(this.toolBar1);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.label9);
this.Controls.Add(this.label10);
this.Controls.Add(this.label11);
this.Controls.Add(this.label12);
this.Name = "RequirePlan";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "【主需求计划】";
this.Load += new System.EventHandler(this.RequirePlan_Load);
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
this.ResumeLayout(false);
}
#endregion
//--------------创建窗体时,将表中数据全部读入------------
private void RequirePlan_Load(object sender, System.EventArgs e)
{
da1.SelectCommand.Parameters[0].Value="%%";
da1.SelectCommand.Parameters[1].Value="%%";
da1.SelectCommand.Parameters[2].Value="%%";
da1.Fill(dataSet11);
cmOrders=(CurrencyManager) BindingContext[dataSet11,"主需求计划"];
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -