private void button1_Click(object sender, EventArgs e) { cleaning(); if (!String.IsNullOrEmpty(txtBarCode.Text)) { Specs spec = DbFactory.Find(txtBarCode.Text, CurrentJob.IsFull); if (spec != null) { //first process last spec; /* * if ((CurrentJob.IsFull==false) && (spec.IsFull)) * { * if (MessageBox.Show("此项检查是牵引变检查项目,是否继续检查?", "请确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.No) * return; * }*/ CurrentSpecs = spec; InitView(); } else { MessageBox.Show("输入的编码不存在,请重新输入"); } } }
private void button1_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(txtBarCode.Text)) { Specs spec = DbFactory.Find(txtBarCode.Text); if (spec != null) { //first process last spec; CurrentSpecs = spec; InitView(); } } }