private void lblVerifyCustomer_Click(object sender, EventArgs e) { DataTable customersTable = dataAccess.GetData <Customers>($"where Is_verified = '{false}'"); EmpShowForm es = new EmpShowForm(usersTable, customersTable, (int)Entities.Show.EmployeeShow.varifyCustomers); es.Show(); this.Hide(); }
private void lblViewCustomersIcon_Click(object sender, EventArgs e) { DataTable customersTable = dataAccess.GetData <Customers>($"where Is_verified = '{true}'"); EmpShowForm sh = new EmpShowForm(usersTable, customersTable, (int)Entities.Show.EmployeeShow.viewCustomers); sh.Show(); this.Hide(); }
private void lblServiceHistory_Click(object sender, EventArgs e) { string sql = $"select * from Product where Sending_Manager_id = '{usersTable.Rows[0].Field<int>("Id")}' or Receiving_Manager_id = '{usersTable.Rows[0].Field<int>("Id")}'"; DataTable productsTable = dataAccess.Execute(sql); EmpShowForm es = new EmpShowForm(usersTable, productsTable, (int)Entities.Show.EmployeeShow.serviceHistory); es.Show(); this.Hide(); }
private void lblShipOrder_Click(object sender, EventArgs e) { DataTable productsTable = dataAccess.GetData <Product>($"where Product_State = '{(int)Product.ProductStateEnum.Received}' and Sending_B_id = '{EmployeeTable.Rows[0].Field<int>("Branch_id")}'"); if (productsTable.Rows.Count > 0) { EmpShowForm es = new EmpShowForm(usersTable, productsTable, (int)Entities.Show.EmployeeShow.shippedOrders); es.Show(); this.Hide(); } else { MessageBox.Show("No Product to ship"); } }