private void btnSearch_Click(object sender, EventArgs e) { workerPicker frm = new workerPicker(); tbNo.Text = frm.show(); if (tbNo.Text != "") { tbName.Text = db.dbScalar("select 姓名 from worker where 编号='" + tbNo.Text + "'").ToString(); } }
private void button1_Click(object sender, EventArgs e) { workerPicker frm = new workerPicker(); workerNo = frm.show(); if (workerNo != "") { workerName = db.dbScalar("select 姓名 from worker where 编号='" + workerNo + "'").ToString(); } else { workerName = ""; } updateView(); }
private void button1_Click(object sender, EventArgs e) { workerPicker frm = new workerPicker(); tbNo.Text = frm.show(); if (tbNo.Text != "") { tbName.Text = db.dbScalar("select 姓名 from worker where 编号='" + tbNo.Text + "'").ToString(); } dvData.DataSource = null; }
private void button2_Click(object sender, EventArgs e) { workerPicker frm = new workerPicker(); workerNo = frm.show(); if (workerNo != "") { textBox3.Text = db.dbScalar("select 姓名 from worker where 编号='" + workerNo + "'").ToString(); } init(); }