Пример #1
0
 void timkiem()
 {
     if (comboBox1.Text == "Sản Phẩm")
     {
         dtgHangHoa.DataSource = hanghoaBUS.SearchData(textBox1.Text);
     }
     else if (comboBox1.Text == "Đơn Vị Tính")
     {
         dtgHangHoa.DataSource = hanghoaBUS.SearchData1(textBox1.Text);
     }
     else if (comboBox1.Text == "Giá Bán")
     {
         dtgHangHoa.DataSource = hanghoaBUS.SearchData2(textBox1.Text);
     }
     else if (comboBox1.Text == "Giá Mua")
     {
         dtgHangHoa.DataSource = hanghoaBUS.SearchData3(textBox1.Text);
     }
     else if (comboBox1.Text == "SL")
     {
         dtgHangHoa.DataSource = hanghoaBUS.SearchData4(textBox1.Text);
     }
     else if (comboBox1.Text == "Ghi Chú")
     {
         dtgHangHoa.DataSource = hanghoaBUS.SearchData5(textBox1.Text);
     }
 }