?? pdijcmanage.cs
字號:
this.label13.Location = new System.Drawing.Point(504, 48);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(56, 23);
this.label13.TabIndex = 44;
this.label13.Text = "入庫日期";
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label6
//
this.label6.Font = new System.Drawing.Font("宋體", 9F);
this.label6.Location = new System.Drawing.Point(504, 24);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(72, 23);
this.label6.TabIndex = 29;
this.label6.Text = "發動機型號";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label4
//
this.label4.Font = new System.Drawing.Font("宋體", 9F);
this.label4.Location = new System.Drawing.Point(680, 48);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 23);
this.label4.TabIndex = 26;
this.label4.Text = "公告型號";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label11
//
this.label11.Font = new System.Drawing.Font("宋體", 9F);
this.label11.Location = new System.Drawing.Point(16, 48);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(56, 23);
this.label11.TabIndex = 38;
this.label11.Text = "下線日期";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋體", 9F);
this.label1.Location = new System.Drawing.Point(176, 72);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(64, 23);
this.label1.TabIndex = 25;
this.label1.Text = "備注";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label5
//
this.label5.Font = new System.Drawing.Font("宋體", 9F);
this.label5.Location = new System.Drawing.Point(176, 48);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(72, 23);
this.label5.TabIndex = 27;
this.label5.Text = "發動機號碼";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label2
//
this.label2.Cursor = System.Windows.Forms.Cursors.Hand;
this.label2.Font = new System.Drawing.Font("宋體", 9F);
this.label2.ForeColor = System.Drawing.SystemColors.HotTrack;
this.label2.Location = new System.Drawing.Point(16, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(61, 23);
this.label2.TabIndex = 23;
this.label2.Text = "出廠編號";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// groupControl1
//
this.groupControl1.Controls.Add(this.label9);
this.groupControl1.Controls.Add(this.cbstate);
this.groupControl1.Controls.Add(this.txtbz);
this.groupControl1.Controls.Add(this.dtrkrq);
this.groupControl1.Controls.Add(this.cbscdw);
this.groupControl1.Controls.Add(this.cbclxz);
this.groupControl1.Controls.Add(this.cbpp);
this.groupControl1.Controls.Add(this.cbys);
this.groupControl1.Controls.Add(this.dtxxrq);
this.groupControl1.Controls.Add(this.txtggxh);
this.groupControl1.Controls.Add(this.txtfdjhm);
this.groupControl1.Controls.Add(this.txtfdjxh);
this.groupControl1.Controls.Add(this.txtccbh);
this.groupControl1.Controls.Add(this.label7);
this.groupControl1.Controls.Add(this.label10);
this.groupControl1.Controls.Add(this.label3);
this.groupControl1.Controls.Add(this.label8);
this.groupControl1.Controls.Add(this.label13);
this.groupControl1.Controls.Add(this.label6);
this.groupControl1.Controls.Add(this.label4);
this.groupControl1.Controls.Add(this.label11);
this.groupControl1.Controls.Add(this.label1);
this.groupControl1.Controls.Add(this.label5);
this.groupControl1.Controls.Add(this.label2);
this.groupControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupControl1.Location = new System.Drawing.Point(0, 0);
this.groupControl1.Name = "groupControl1";
this.groupControl1.Size = new System.Drawing.Size(864, 96);
this.groupControl1.TabIndex = 17;
this.groupControl1.Text = "產品信息";
//
// groupControl3
//
this.groupControl3.Controls.Add(this.simpleButton1);
this.groupControl3.Controls.Add(this.checkBox1);
this.groupControl3.Controls.Add(this.dgPriver);
this.groupControl3.Controls.Add(this.btReset);
this.groupControl3.Controls.Add(this.btDelete);
this.groupControl3.Controls.Add(this.btSave);
this.groupControl3.Controls.Add(this.btAdd);
this.groupControl3.Controls.Add(this.gridDataFilter1);
this.groupControl3.Controls.Add(this.label40);
this.groupControl3.Controls.Add(this.mmbz);
this.groupControl3.Controls.Add(this.dtjcrq);
this.groupControl3.Controls.Add(this.txtzrcj);
this.groupControl3.Controls.Add(this.txtwtjqx);
this.groupControl3.Controls.Add(this.label38);
this.groupControl3.Controls.Add(this.label37);
this.groupControl3.Controls.Add(this.label36);
this.groupControl3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupControl3.Location = new System.Drawing.Point(0, 96);
this.groupControl3.Name = "groupControl3";
this.groupControl3.Size = new System.Drawing.Size(864, 512);
this.groupControl3.TabIndex = 19;
this.groupControl3.Text = "PDI檢查信息";
//
// simpleButton1
//
this.simpleButton1.Location = new System.Drawing.Point(768, 120);
this.simpleButton1.Name = "simpleButton1";
this.simpleButton1.TabIndex = 73;
this.simpleButton1.Text = "打印";
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
//
// checkBox1
//
this.checkBox1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
this.checkBox1.Font = new System.Drawing.Font("宋體", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.checkBox1.ForeColor = System.Drawing.Color.Black;
this.checkBox1.Location = new System.Drawing.Point(120, 166);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(48, 16);
this.checkBox1.TabIndex = 72;
this.checkBox1.Text = "全選";
this.checkBox1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// dgPriver
//
this.dgPriver.AlternatingBackColor = System.Drawing.Color.GhostWhite;
this.dgPriver.BackColor = System.Drawing.Color.GhostWhite;
this.dgPriver.BackgroundColor = System.Drawing.Color.Lavender;
this.dgPriver.CaptionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
this.dgPriver.CaptionForeColor = System.Drawing.Color.Black;
this.dgPriver.CaptionText = "PDI檢查信息列表";
this.dgPriver.DataMember = "";
this.dgPriver.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dgPriver.Font = new System.Drawing.Font("Tahoma", 8F);
this.dgPriver.ForeColor = System.Drawing.Color.MidnightBlue;
this.dgPriver.GridLineColor = System.Drawing.Color.RoyalBlue;
this.dgPriver.HeaderBackColor = System.Drawing.Color.DeepSkyBlue;
this.dgPriver.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
this.dgPriver.HeaderForeColor = System.Drawing.Color.Lavender;
this.dgPriver.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.dgPriver.LinkColor = System.Drawing.Color.Teal;
this.dgPriver.Location = new System.Drawing.Point(2, 198);
this.dgPriver.Name = "dgPriver";
this.dgPriver.ParentRowsBackColor = System.Drawing.Color.Lavender;
this.dgPriver.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
this.dgPriver.SelectionBackColor = System.Drawing.Color.Teal;
this.dgPriver.SelectionForeColor = System.Drawing.Color.PaleGreen;
this.dgPriver.Size = new System.Drawing.Size(860, 280);
this.dgPriver.TabIndex = 66;
this.dgPriver.CurrentCellChanged += new System.EventHandler(this.dgPriver_CurrentCellChanged);
//
// btReset
//
this.btReset.Location = new System.Drawing.Point(768, 96);
this.btReset.Name = "btReset";
this.btReset.TabIndex = 71;
this.btReset.Text = "清 空";
this.btReset.Click += new System.EventHandler(this.btReset_Click);
//
// btDelete
//
this.btDelete.Location = new System.Drawing.Point(768, 72);
this.btDelete.Name = "btDelete";
this.btDelete.TabIndex = 70;
this.btDelete.Text = "刪 除";
this.btDelete.Click += new System.EventHandler(this.btDelete_Click);
//
// btSave
//
this.btSave.Location = new System.Drawing.Point(768, 48);
this.btSave.Name = "btSave";
this.btSave.TabIndex = 69;
this.btSave.Text = "修 改";
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// btAdd
//
this.btAdd.Location = new System.Drawing.Point(768, 24);
this.btAdd.Name = "btAdd";
this.btAdd.TabIndex = 68;
this.btAdd.Text = "添 加";
this.btAdd.Click += new System.EventHandler(this.btAdd_Click);
//
// gridDataFilter1
//
this.gridDataFilter1.checkbox = null;
this.gridDataFilter1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gridDataFilter1.Location = new System.Drawing.Point(2, 478);
this.gridDataFilter1.Name = "gridDataFilter1";
this.gridDataFilter1.Size = new System.Drawing.Size(860, 32);
this.gridDataFilter1.TabIndex = 67;
//
// label40
//
this.label40.Location = new System.Drawing.Point(16, 112);
this.label40.Name = "label40";
this.label40.Size = new System.Drawing.Size(32, 23);
this.label40.TabIndex = 9;
this.label40.Text = "備注";
this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// mmbz
//
this.mmbz.EditValue = "";
this.mmbz.Location = new System.Drawing.Point(128, 96);
this.mmbz.Name = "mmbz";
//
// mmbz.Properties
//
this.mmbz.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.mmbz.Size = new System.Drawing.Size(624, 48);
this.mmbz.TabIndex = 8;
//
// dtjcrq
//
this.dtjcrq.EditValue = new System.DateTime(2006, 8, 29, 0, 0, 0, 0);
this.dtjcrq.Location = new System.Drawing.Point(128, 72);
this.dtjcrq.Name = "dtjcrq";
//
// dtjcrq.Properties
//
this.dtjcrq.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.dtjcrq.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.dtjcrq.Size = new System.Drawing.Size(100, 21);
this.dtjcrq.TabIndex = 7;
//
// txtzrcj
//
this.txtzrcj.EditValue = "";
this.txtzrcj.Location = new System.Drawing.Point(128, 48);
this.txtzrcj.Name = "txtzrcj";
//
// txtzrcj.Properties
//
this.txtzrcj.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.txtzrcj.Size = new System.Drawing.Size(624, 21);
this.txtzrcj.TabIndex = 5;
//
// txtwtjqx
//
this.txtwtjqx.EditValue = "";
this.txtwtjqx.Location = new System.Drawing.Point(128, 24);
this.txtwtjqx.Name = "txtwtjqx";
//
// txtwtjqx.Properties
//
this.txtwtjqx.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.txtwtjqx.Size = new System.Drawing.Size(624, 21);
this.txtwtjqx.TabIndex = 4;
//
// label38
//
this.label38.Location = new System.Drawing.Point(16, 72);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(56, 23);
this.label38.TabIndex = 2;
this.label38.Text = "檢查日期";
this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label37
//
this.label37.Location = new System.Drawing.Point(16, 48);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(112, 23);
this.label37.TabIndex = 1;
this.label37.Text = "責任廠家/配套廠家";
this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label36
//
this.label36.Location = new System.Drawing.Point(16, 24);
this.label36.Name = "label36";
this.label36.Size = new System.Drawing.Size(72, 23);
this.label36.TabIndex = 0;
this.label36.Text = "問題及缺陷";
this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// PdijcManage
//
this.Controls.Add(this.groupControl3);
this.Controls.Add(this.groupControl1);
this.Name = "PdijcManage";
this.Size = new System.Drawing.Size(864, 608);
this.Load += new System.EventHandler(this.PdijcManage_Load);
((System.ComponentModel.ISupportInitialize)(this.cbstate.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtbz.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtrkrq.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbscdw.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbclxz.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbpp.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbys.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtxxrq.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtggxh.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtfdjhm.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtfdjxh.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtccbh.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit();
this.groupControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.groupControl3)).EndInit();
this.groupControl3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgPriver)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.mmbz.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtjcrq.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtzrcj.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtwtjqx.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void label2_Click(object sender, System.EventArgs e)
{
try
{
carku=new CarkuInfo();
FrmCarkuSelect frmcarkuselect=new FrmCarkuSelect("pdi");
frmcarkuselect.ShowDialog();
carku=frmcarkuselect.getCarkuInfo();
if(carku==null)
{
return;
}
setCarkuInfo(carku);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void setCarkuInfo(CarkuInfo carku)
{
this.txtccbh.Text=Convert.ToString(carku.ccbh);
this.cbstate.Text=Convert.ToString(carku.state);
this.cbys.Text=Convert.ToString(carku.ys);
this.cbpp.Text=Convert.ToString(carku.pp);
this.cbclxz.Text=Convert.ToString(carku.clxz);
this.txtggxh.Text=Convert.ToString(carku.ggxh);
this.txtfdjxh.Text=Convert.ToString(carku.fdjxh);
this.txtfdjhm.Text=Convert.ToString(carku.fdjhm);
this.dtxxrq.Text=Convert.ToString(carku.xxrq);
this.cbscdw.Text=Convert.ToString(carku.scdw);
this.dtrkrq.Text=Convert.ToString(carku.rkrq);
this.txtbz.Text=Convert.ToString(carku.bz);
}
private void PdijcManage_Load(object sender, System.EventArgs e)
{
this.gridDataFilter1.checkbox=this.checkBox1;
ClearData();
getDataBind();
this.txtwtjqx.Focus();
}
private void btAdd_Click(object sender, System.EventArgs e)
{
try
{
insertData();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -