Pokaż
Ignoruj:
Data:
2008-12-21 16:05:49 (17 years ago)
Autor:
dorota
Opis:

kod klienta jako nickname przy dodawaniu nowej reklamy

Pliki:
1 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • Baza Reklam 2 - Faktury/ClientsForm.cs

    r69 r75  
    330330            { 
    331331                DataRowView row = (DataRowView)this.kLIENCIBindingSource.Current; 
    332                 int custId = Int32.Parse(row["CustomerId"].ToString()); 
    333  
    334                 OrderDetails.getOrderDetails().dodajNoweZamowienie(custId); 
    335  
    336                 /* 
    337                 OrderDetails od = new OrderDetails(); 
    338                 od.dodajNoweZamowienie(custId); 
    339                 DialogResult result = od.ShowDialog();*/ 
     332                REKLAMADataSet.KLIENCIRow klient = (REKLAMADataSet.KLIENCIRow)row.Row; 
     333                OrderDetails.getOrderDetails().dodajNoweZamowienie(klient.CustomerID, klient.kodKlienta); 
    340334 
    341335                if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 
    342336                { 
    343337                    this.rEKLAMADataSet.REKLAMA.Clear(); 
    344                     this.rEKLAMATableAdapter.FillByCustomerId(this.rEKLAMADataSet.REKLAMA,custId); 
     338                    this.rEKLAMATableAdapter.FillByCustomerId(this.rEKLAMADataSet.REKLAMA,klient.CustomerID); 
    345339                } 
    346340            }