private void btnSerach_BtnClick(object sender, EventArgs e)
 {
     if (txtCardID.Text != "")
     {
         dgvCustomerList.DataSource = CustoService.SelectCustoInfoByCardId(txtCardID.Text);
     }
     else
     {
         MessageBox.Show("请输入证件号码!");
     }
 }
 private void picSearch_Click(object sender, EventArgs e)
 {
     picAddCusto.BackgroundImage = Resources.添_加a;
     picSearch.BackgroundImage   = Resources.搜索__1a;
     if (txtCardID.Text != "")
     {
         Custo c = CustoService.SelectCustoInfoByCardId(txtCardID.Text);
         if (c != null)
         {
             dgvCustomerList.DataSource = c;
         }
         else
         {
             MessageBox.Show("用户不存在!", "来自小T的提示");
         }
     }
     else
     {
         MessageBox.Show("请输入证件号码!", "来自小T的提示");
         txtCardID.Focus();
     }
 }
Пример #3
0
 private void picSearch_Click_1(object sender, EventArgs e)
 {
     picAddCusto.BackgroundImage = Resources.添_加a;
     picSearch.BackgroundImage   = Resources.搜索__1a;
     dgvCustomerList.DataSource  = CustoService.SelectCustoInfoByCardId(txtSerach.Text);
 }