Пример #1
0
 private void vts_Supplier_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Suppliers"))
     {
         Supplier _supplier = new Supplier();
         frm_Search _search = new frm_Search(_supplier.supplierDataset, "Supplier", canWrite("frm_Suppliers"));
         _search.MdiParent = this;
         _search.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
Пример #2
0
 private void vts_Sale_Find_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Sale"))
     {
         Sale _sale = new Sale("Search");
         frm_Search frmsearch = new frm_Search(_sale.saleDataset, "Sale", canWrite("frm_Sale"));
         frmsearch.MdiParent = this;
         frmsearch.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
Пример #3
0
 private void vts_RawIngredients_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_RawIngredients"))
     {
         RawIngredient ring = new RawIngredient();
         frm_Search frmsearch = new frm_Search(ring.ingredientDataSet, "RawIngredient", canWrite("frm_RawIngredients"));
         frmsearch.MdiParent = this;
         frmsearch.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
Пример #4
0
 private void vts_Product_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Product"))
     {
         Product product = new Product();
         frm_Search frmsearch = new frm_Search(product.productDataSet, "Product", canWrite("frm_Product"));
         frmsearch.MdiParent = this;
         frmsearch.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
Пример #5
0
 private void vts_Order_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Order"))
     {
         Order order = new Order("Search");
         frm_Search frmsearch = new frm_Search(order.OrderDataset, "Order", canWrite("frm_Order"));
         frmsearch.MdiParent = this;
         frmsearch.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
Пример #6
0
 /// <summary>       
 /// Description: Handles all the events called by the menu strip
 /// </summary>
 private void vts_Employee_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Employee"))
     {
         Employee _employee = new Employee();
         frm_Search _search = new frm_Search(_employee.employeeDataset, "Employee", canWrite("frm_Employee"));
         _search.MdiParent = this;
         _search.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }