private void Button_Click(object sender, RoutedEventArgs e)
        {
            orderFromSupplierTable selectedOrder    = (orderFromSupplierTable)purchasingUpdateComboBox.SelectedItem;
            EmployeeTable          selectedEmployee = (EmployeeTable)EmployeeSelectionComboBox.SelectedItem;

            PurchasingFromSupplierBL.UpdateBL(selectedOrder, shippingNumber_txb.Text, receptoionNumber_txb.Text, selectedEmployee, Convert.ToDateTime(order_datepicker.Text), Convert.ToDateTime(supplying_datepicker.Text), notes_txb.Text, Convert.ToInt32(activity_txb.Text));
            this.Close();
        }
Esempio n. 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     PurchasingFromSupplierBL.AddPurchaseFromSupplier(shippingNumber_txb.Text, receptoionNumber_txb.Text, (EmployeeTable)EmployeeSelectionComboBox.SelectedItem, Convert.ToDateTime(order_datePicker.Text), Convert.ToDateTime(supplying_datePicker.Text), notes_txb.Text, Idlist);
     com.Close();
     this.Close();
 }