private void txt_OldLoc_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (KuWeiManager.IsExists(this.txt_OldLoc.Text.Trim())) { this.txt_Product.Focus(); } else { MessageBox.Show("库位:" + this.txt_OldLoc.Text.Trim() + "已经不再使用!"); } } }
private void txt_NewLoc_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { //txt_SN.Focus(); if (KuWeiManager.IsExists(this.txt_NewLoc.Text.Trim())) { if (!this.cb_Rollback.Checked) { this.SaveData(); this.RebindData(); } } else { MessageBox.Show("库位:" + this.txt_NewLoc.Text.Trim() + "已经不再使用!"); } ClearInput(); txt_TrayNo.Focus(); //this.txt_TrayNo.Enabled = false; } }