Zbiór zmian 879
- Data:
- 2009-11-16 17:36:31 (16 years ago)
- Lokalizacja:
- branches/Abonament/BazaReklam
- Pliki:
-
- 3 zmodyfikowane
-
ClientsForm.cs (zmodyfikowane) (1 diff)
-
SubscriptionForm.cs (zmodyfikowane) (1 diff)
-
ZamowieniaForm.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/Abonament/BazaReklam/ClientsForm.cs
r839 r879 2500 2500 List<Subscription> subscriptions = customerRepository.FindSubscriptions(klient.CustomerID); 2501 2501 gridSubscriptions.AutoGenerateColumns = false; 2502 gridSubscriptions.DataSource = subscriptions; 2503 2502 gridSubscriptions.DataSource = subscriptions; 2504 2503 } 2505 2504 } -
branches/Abonament/BazaReklam/SubscriptionForm.cs
r760 r879 39 39 BindControls(); 40 40 } 41 42 41 43 42 [Obsolete("Use ComboBoxHelper after merge from ReklamaReorganizacja branch")] -
branches/Abonament/BazaReklam/ZamowieniaForm.cs
r878 r879 234 234 } 235 235 236 237 236 private bool CanAddProductToOrder(IProduct product, List<IProduct> products, REKLAMADataSet.zamowieniaRow order, out string errorMessage) 238 237 { … … 251 250 canAddProduct = false; 252 251 } 252 253 253 if (products.FindAll(delegate(IProduct p) { return p.Vat != product.Vat && p.OrderId == order.idZamowienia; }).Count > 0) 254 254 { … … 268 268 //Sprawdz czy reklamy maja takiego samego InvoiceProviders 269 269 //TODO: wywala sie przy dodawaniu abonamentu do zamowienia... 270 if (canAddProduct) 271 { 270 if (canAddProduct && products.Count > 0) 271 { 272 /* 272 273 Title title1 = _titles.Find(delegate(Title title) { return title.ShortName == product.ShortName; }); 273 274 Title title2 = _titles.Find(delegate(Title title) { return title.ShortName == product.ShortName; }); 274 if (title1.InvoiceProvider != title2.InvoiceProvider) 275 { 276 sb.AppendLine("Reklamy maj¹ ró¿nych sprzedawców. \nNa fakturze mo¿e wystêpowaæ tylko jeden sprzedawca."); 275 */ 276 Title title1 = _titles.Find(delegate(Title title) { return title.Id == product.TitleId; }); 277 Title title2 = _titles.Find(delegate(Title title) { return title.Id == products[0].TitleId; }); 278 if (title1 == null || title2 == null) 279 { 280 sb.AppendLine("Nie okrelone tytu³y produktów."); 281 canAddProduct = false; 282 } 283 else if (title1.InvoiceProvider != title2.InvoiceProvider) 284 { 285 sb.AppendLine("Produkty maj¹ ró¿nych sprzedawców.\nNa fakturze mo¿e wystêpowaæ tylko jeden sprzedawca."); 277 286 canAddProduct = false; 278 287 }
