Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            OrdersTable   selectedOrder    = (OrdersTable)purchasingUpdateComboBox.SelectedItem;
            EmployeeTable selectedEmployee = (EmployeeTable)EmployeeSelectionComboBox.SelectedItem;

            PurchasingCotumer.UpdatePurchaseCostumerBL(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), shippingAddress_txb.Text);
            this.Close();
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            EmployeeTable selectedEmployee = (EmployeeTable)EmployeeSelectionComboBox.SelectedItem;

            PurchasingCotumer.AddPurchaseCostumer(shippingNumber_txb.Text, receptoionNumber_txb.Text, selectedEmployee,
                                                  Convert.ToDateTime(order_datePicker.Text), Convert.ToDateTime(supplying_datePicker.Text), notes_txb.Text, this.Idlist,
                                                  shippingAddress_txb.Text);
            coc.Close();
            this.Close();
        }