Zbiór zmian 621 dla trunk/BazaReklam/Facturer.cs
- Data:
- 2009-04-28 16:31:20 (17 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/BazaReklam/Facturer.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/BazaReklam/Facturer.cs
r602 r621 4 4 using System.Windows.Forms; 5 5 using Baza_Reklam.Classes.Helpers; 6 using Baza_Reklam.Classes.Interfaces; 7 using Baza_Reklam.Classes.Model; 8 using Baza_Reklam.Classes.Repositories; 6 9 7 10 namespace Baza_Reklam … … 67 70 else 68 71 { 72 Agent agent = new AgentRepository().FindByShortName(row["SYMBOL AKWIZYTORA"].ToString()); 73 74 IInvoiceProvider invoiceProvider = InvoiceProviderFactory.GetInvoiceProviderById(agent.InvoiceProvider); 75 69 76 nUMER_ROZTextBox.Text = DbUtils.tagAgenta(row["SYMBOL AKWIZYTORA"].ToString()); 70 nUMERTextBox.Text = DbUtils.numerNowejFaktury(nUMER_ROZTextBox.Text, DateTime.Today.Year ).ToString();77 nUMERTextBox.Text = DbUtils.numerNowejFaktury(nUMER_ROZTextBox.Text, DateTime.Today.Year, invoiceProvider.SystemKsiegowyId).ToString(); 71 78 72 79 if (row["FAKTURA DATA SPRZEDA¯Y"] == DBNull.Value) … … 402 409 403 410 //ustawienie pól formularza na dodanie nowej faktury 404 411 412 Agent agent = new AgentRepository().FindByShortName(row["SYMBOL AKWIZYTORA"].ToString()); 413 IInvoiceProvider invoiceProvider = InvoiceProviderFactory.GetInvoiceProviderById(agent.InvoiceProvider); 414 405 415 nUMER_ROZTextBox.Text = DbUtils.tagAgenta(row["SYMBOL AKWIZYTORA"].ToString()); 406 nUMERTextBox.Text = DbUtils.numerNowejFaktury(nUMER_ROZTextBox.Text, DateTime.Today.Year ).ToString();416 nUMERTextBox.Text = DbUtils.numerNowejFaktury(nUMER_ROZTextBox.Text, DateTime.Today.Year, invoiceProvider.SystemKsiegowyId).ToString(); 407 417 408 418 if (row["FAKTURA DATA SPRZEDA¯Y"] == DBNull.Value)
