public UserControlBatch() { InitializeComponent(); SmartDeviceProjectBll.Bll.ConnecBll _bll = new SmartDeviceProjectBll.Bll.ConnecBll(); comboBox1.DataSource = _bll.GetDataTableLotId(); comboBox1.DisplayMember = "BAR007"; }
private void textBox3_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { comboBox1.Text = _bll.zh(textBox3.Text); this.textBox2.Select(0, 0); DataTable dt = _bll.GetDataTableLotId(textBox3.Text); if (dt != null && dt.Rows.Count > 0) { textBox1.Text = dt.Rows[0]["BAR008"].ToString(); } } }