Zbiór zmian 75 dla Baza Reklam 2 - Faktury
- Data:
- 2008-12-21 16:05:49 (17 years ago)
- Lokalizacja:
- Baza Reklam 2 - Faktury
- Pliki:
-
- 2 zmodyfikowane
-
ClientsForm.cs (zmodyfikowane) (1 diff)
-
OrderDetails.cs (zmodyfikowane) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
Baza Reklam 2 - Faktury/ClientsForm.cs
r69 r75 330 330 { 331 331 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); 340 334 341 335 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 342 336 { 343 337 this.rEKLAMADataSet.REKLAMA.Clear(); 344 this.rEKLAMATableAdapter.FillByCustomerId(this.rEKLAMADataSet.REKLAMA, custId);338 this.rEKLAMATableAdapter.FillByCustomerId(this.rEKLAMADataSet.REKLAMA,klient.CustomerID); 345 339 } 346 340 } -
Baza Reklam 2 - Faktury/OrderDetails.cs
r73 r75 823 823 } 824 824 825 public void dodajNoweZamowienie(int custId )826 { 825 public void dodajNoweZamowienie(int custId, string kodKlienta) 826 { 827 827 this.nowyRekord = true; 828 828 this.bylyZmiany = false; … … 852 852 row["CustomerId"] = this.customerId; 853 853 row["DATA ZAMÓWIENIA"] = DateTime.Now; 854 row["nick name"] = kodKlienta; 854 855 if (Utils.czyKlientMaNrVIES(this.customerId)) 855 856 {
