Zbiór zmian 970 dla trunk/eCard/eCardMVC/Platnosci/Controllers
- Data:
- 2009-12-23 11:26:06 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci/Controllers
- Pliki:
-
- 3 zmodyfikowane
-
AccountController.cs (zmodyfikowane) (4 diffs)
-
MerchantController.cs (zmodyfikowane) (4 diffs)
-
PlatnoscController.cs (zmodyfikowane) (6 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs
r950 r970 3 3 using System.Web.Mvc; 4 4 using System.Web.Security; 5 using Platnosci.Core.Linq; 5 using adMoto.Payments.Core; 6 using adMoto.Payments.Core.Data; 7 using adMoto.Payments.Core.Interfaces; 6 8 using Platnosci.Models; 7 using Platnosci.Core.Interface;8 9 9 10 namespace Platnosci.Controllers … … 12 13 public class AccountController : Controller 13 14 { 14 private readonly IRepository< vPlatnosciEcard> _repository;15 private readonly IRepository<Invoice> _repository; 15 16 private readonly FunkcjePlatnosci _funkcjePlatnosci; 16 17 … … 23 24 public AccountController() 24 25 { 25 _repository = new Repository< vPlatnosciEcard>(new DataContext());26 _repository = new Repository<Invoice>(new DataContext()); 26 27 FormsAuth = new FormsAuthenticationService(); 27 28 _funkcjePlatnosci = new FunkcjePlatnosci(); 28 29 } 29 30 30 public AccountController(IFormsAuthentication formsAuth, IRepository< vPlatnosciEcard> repository, FunkcjePlatnosci func)31 public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, FunkcjePlatnosci func) 31 32 { 32 33 _repository = repository; … … 50 51 { 51 52 _funkcjePlatnosci.SetLanguage(language); 52 var platnosc = new vPlatnosciEcard();53 var platnosc = new Invoice(); 53 54 if (!ValidateLogOn(nip, numerFaktury)) 54 55 { -
trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs
r959 r970 2 2 using System.Linq; 3 3 using System.Web.Mvc; 4 using adMoto.Payments.Core; 5 using adMoto.Payments.Core.Data; 6 using adMoto.Payments.Core.Interfaces; 4 7 using Platnosci.Models; 5 using Platnosci.Core.Linq;6 using Platnosci.Core.Interface;7 using System.Configuration;8 using System.Net;9 using System.IO;10 using System.Threading;11 8 12 9 namespace Platnosci.Controllers … … 15 12 public class MerchantController : Controller 16 13 { 17 private readonly IRepository< vPlatnosciEcard> _repVPayment;14 private readonly IRepository<Invoice> _repVPayment; 18 15 private readonly IRepository<PlatnosciEcard> _repPayment; 19 16 private readonly FunkcjePlatnosci _funkcjePlatnosci; … … 23 20 public MerchantController() 24 21 { 25 _repVPayment = new Repository< vPlatnosciEcard>(new DataContext());22 _repVPayment = new Repository<Invoice>(new DataContext()); 26 23 _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 27 24 _funkcjePlatnosci = new FunkcjePlatnosci(_repPayment); … … 29 26 _eCardData = new eCardData(_repPayment); 30 27 } 31 public MerchantController(IRepository< vPlatnosciEcard> repVPayment, IRepository<PlatnosciEcard> repPayment, ITranslateManager translate)28 public MerchantController(IRepository<Invoice> repVPayment, IRepository<PlatnosciEcard> repPayment, ITranslateManager translate) 32 29 { 33 30 _repVPayment = repVPayment; -
trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs
r969 r970 1 1 using System; 2 2 using System.Linq; 3 using System.Web;4 3 using System.Web.Mvc; 4 using adMoto.Payments.Core; 5 using adMoto.Payments.Core.Data; 6 using adMoto.Payments.Core.Interfaces; 5 7 using Elmah; 6 8 using Platnosci.Models; 7 using Platnosci.Core.Linq;8 using Platnosci.Core.Interface;9 using ApplicationException=Elmah.ApplicationException;10 9 11 10 namespace Platnosci.Controllers 12 11 { 13 14 //[Authorize]15 12 public class PlatnoscController : Controller 16 13 { 17 14 public const string ISPAID = "payment_deposited"; //transakcja potwierdzona do rozliczenia 18 private readonly IRepository< vPlatnosciEcard> _repVPayment;15 private readonly IRepository<Invoice> _repVPayment; 19 16 private readonly IRepository<PlatnosciEcard> _repPayment; 20 17 private readonly IRepository<PotwierdzeniaEcard> _repConfirm; … … 24 21 public PlatnoscController() 25 22 { 26 _repVPayment = new Repository< vPlatnosciEcard>(new DataContext());23 _repVPayment = new Repository<Invoice>(new DataContext()); 27 24 _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 28 25 _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext()); … … 30 27 _translateManager = new Translation(); 31 28 } 32 public PlatnoscController(IRepository< vPlatnosciEcard> repVPayment, IRepository<PlatnosciEcard> repPayment, IRepository<PotwierdzeniaEcard> repConfirm, ITranslateManager translate)29 public PlatnoscController(IRepository<Invoice> repVPayment, IRepository<PlatnosciEcard> repPayment, IRepository<PotwierdzeniaEcard> repConfirm, ITranslateManager translate) 33 30 { 34 31 _repVPayment = repVPayment; … … 64 61 return View(invoiceDeatailsViewData); 65 62 } 63 66 64 [Authorize] 67 65 [AcceptVerbs(HttpVerbs.Post)] … … 139 137 public ActionResult Status() 140 138 { 141 ErrorSignal.FromCurrentContext().Raise(new Exception(), System.Web.HttpContext.Current); 139 if (System.Web.HttpContext.Current != null) 140 ErrorSignal.FromCurrentContext().Raise(new Exception(), System.Web.HttpContext.Current); 142 141 143 142 var potwierdzenie = new PotwierdzeniaEcard(); … … 201 200 } 202 201 203 private InvoiceDetailsViewData InitInvoiceDetailsViewData( vPlatnosciEcardplatnosc)202 private InvoiceDetailsViewData InitInvoiceDetailsViewData(Invoice platnosc) 204 203 { 205 204 var invoiceDeatailsViewData = new InvoiceDetailsViewData();
