예제 #1
0
 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();
     }
 }
예제 #2
0
 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();
 }
예제 #3
0
 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;
 }
예제 #4
0
 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();
 }