예제 #1
0
        public UserControlBatch()
        {
            InitializeComponent();

            SmartDeviceProjectBll.Bll.ConnecBll _bll = new SmartDeviceProjectBll.Bll.ConnecBll();
            comboBox1.DataSource    = _bll.GetDataTableLotId();
            comboBox1.DisplayMember = "BAR007";
        }
예제 #2
0
파일: Form3.cs 프로젝트: icprog/HaiTian
 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();
         }
     }
 }