Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (tableType == "Inventory")
     {
         dataGridView1.DataSource = get_services.IndexSearchInventory(textBox1.Text, StaticClass.storeId);
     }
     else if (tableType == "Employee")
     {
         dataGridView1.DataSource = get_services.IndexSearchEmp(textBox1.Text);
     }
     else if (tableType == "Department")
     {
         dataGridView1.DataSource = get_services.IndexSearchDepartment(textBox1.Text, StaticClass.storeId);
     }
     else if (tableType == "Invoices")
     {
         dataGridView1.DataSource = get_services.IndexSearchInvoices(textBox1.Text, StaticClass.storeId, "C");
     }
 }