Ejemplo n.º 1
0
 private void btn_saveBrand_Click(object sender, RoutedEventArgs e)
 {
     db.insertBrand(txt_bID.Text, txt_brandID.Text, txt_brandName.Text);
     updateData();
     ClearText();
     notify.Title   = "Brand Form";
     notify.Message = "Save Data in Database Successful...";
     notify.ShowNotfySucess();
 }
Ejemplo n.º 2
0
 private void btn_saveCategory_Click(object sender, RoutedEventArgs e)
 {
     db.insertCategory(txt_Id.Text, txt_categoryId.Text, txt_categoryName.Text, txt_categoryDescrip.Text);
     showData();
     Clear();
     notify.Title   = "Categorys Form";
     notify.Message = "Save Data in Database Successful...";
     notify.ShowNotfySucess();
 }
Ejemplo n.º 3
0
 private void ShowNotfication()
 {
     notify.Title   = "Login";
     notify.Message = "User Login Successful...";
     notify.ShowNotfySucess();
     notify.Title   = "Login";
     notify.Message = "Your Change Password in Acount Form";
     notify.ShowNotfyInformation();
 }
Ejemplo n.º 4
0
 private void SaveOrderCart()
 {
     try
     {
         if (string.IsNullOrEmpty(txt_discount.Text))
         {
             var db = new DbManagement();
             var d  = DateTime.Now.ToString("dd/MMM/yyy");
             db.InserCart(tranNO, pId, price, txt_quantity.Text, 0.0, 0.0, d, "Pending");
             notify.Title   = "POS Management Form";
             notify.Message = "Sales Products Successful...";
             notify.ShowNotfySucess();
             notify.Title   = "POS Management Form";
             notify.Message = "Product :" + txt_product_name.Text + " Quantity :" + txt_quantity.Text;
             notify.ShowNotfyInformation();
             this.Dispatcher.BeginInvoke(new Action(() =>
             {
                 this.Close();
             }));
         }
         else
         {
             var db = new DbManagement();
             var d  = DateTime.Now.ToString("dd/MMM/yyy");
             db.InserCart(tranNO, pId, price, txt_quantity.Text, Convert.ToDouble(txt_discount.Text), 0.0, d, "Pending");
             notify.Title   = "POS Management Form";
             notify.Message = "Sales Products Successful...";
             notify.ShowNotfySucess();
             notify.Title   = "POS Management Form";
             notify.Message = "Product :" + txt_product_name.Text + " Quantity :" + txt_quantity.Text;
             notify.ShowNotfyInformation();
             this.Dispatcher.BeginInvoke(new Action(() =>
             {
                 this.Close();
             }));
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }
Ejemplo n.º 5
0
 private void checkClose()
 {
     if (string.IsNullOrEmpty(tran_no))
     {
         this.Dispatcher.BeginInvoke(new Action(() =>
         {
             this.Close();
             var notify     = new SetNotify();
             notify.Title   = "POS Management Form";
             notify.Message = "Transaction No Null or Product Id have value null";
             notify.ShowNotfySucess();
         }));
     }
 }
Ejemplo n.º 6
0
 private void btn_restor_data_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var db = new DbManagement();
         db.InsertStock(sid, cateId, proId, unit, date, quantity, emid, bal);
         db.RemoveHistoryStock(sid);
         notify.Title   = "Stock Management Form";
         notify.Message = "Restore Products Successful...";
         notify.ShowNotfySucess();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "");
     }
 }