Pokaż
Ignoruj:
Data:
2009-12-23 11:26:06 (16 years ago)
Autor:
marek
Opis:

re #215 - dodanie nowego projektu z lepsza nazwa i typem projektu

Lokalizacja:
trunk/eCard/eCardMVC/Platnosci/Controllers
Pliki:
3 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/eCard/eCardMVC/Platnosci/Controllers/AccountController.cs

    r950 r970  
    33using System.Web.Mvc; 
    44using System.Web.Security; 
    5 using Platnosci.Core.Linq; 
     5using adMoto.Payments.Core; 
     6using adMoto.Payments.Core.Data; 
     7using adMoto.Payments.Core.Interfaces; 
    68using Platnosci.Models; 
    7 using Platnosci.Core.Interface; 
    89 
    910namespace Platnosci.Controllers 
     
    1213    public class AccountController : Controller 
    1314    { 
    14         private readonly IRepository<vPlatnosciEcard> _repository; 
     15        private readonly IRepository<Invoice> _repository; 
    1516        private readonly FunkcjePlatnosci _funkcjePlatnosci; 
    1617 
     
    2324        public AccountController() 
    2425        { 
    25             _repository = new Repository<vPlatnosciEcard>(new DataContext()); 
     26            _repository = new Repository<Invoice>(new DataContext()); 
    2627            FormsAuth = new FormsAuthenticationService(); 
    2728            _funkcjePlatnosci = new FunkcjePlatnosci(); 
    2829        } 
    2930 
    30         public AccountController(IFormsAuthentication formsAuth, IRepository<vPlatnosciEcard> repository, FunkcjePlatnosci func) 
     31        public AccountController(IFormsAuthentication formsAuth, IRepository<Invoice> repository, FunkcjePlatnosci func) 
    3132        { 
    3233            _repository = repository; 
     
    5051        { 
    5152            _funkcjePlatnosci.SetLanguage(language); 
    52             var platnosc = new vPlatnosciEcard(); 
     53            var platnosc = new Invoice(); 
    5354            if (!ValidateLogOn(nip, numerFaktury)) 
    5455            { 
  • trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs

    r959 r970  
    22using System.Linq; 
    33using System.Web.Mvc; 
     4using adMoto.Payments.Core; 
     5using adMoto.Payments.Core.Data; 
     6using adMoto.Payments.Core.Interfaces; 
    47using 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; 
    118 
    129namespace Platnosci.Controllers 
     
    1512    public class MerchantController : Controller 
    1613    { 
    17         private readonly IRepository<vPlatnosciEcard> _repVPayment; 
     14        private readonly IRepository<Invoice> _repVPayment; 
    1815        private readonly IRepository<PlatnosciEcard> _repPayment;  
    1916        private readonly FunkcjePlatnosci _funkcjePlatnosci; 
     
    2320        public MerchantController() 
    2421        { 
    25             _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 
     22            _repVPayment = new Repository<Invoice>(new DataContext()); 
    2623            _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 
    2724            _funkcjePlatnosci = new FunkcjePlatnosci(_repPayment); 
     
    2926            _eCardData = new eCardData(_repPayment); 
    3027        } 
    31         public MerchantController(IRepository<vPlatnosciEcard> repVPayment, IRepository<PlatnosciEcard> repPayment, ITranslateManager translate) 
     28        public MerchantController(IRepository<Invoice> repVPayment, IRepository<PlatnosciEcard> repPayment, ITranslateManager translate) 
    3229        { 
    3330            _repVPayment = repVPayment; 
  • trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs

    r969 r970  
    11using System; 
    22using System.Linq; 
    3 using System.Web; 
    43using System.Web.Mvc; 
     4using adMoto.Payments.Core; 
     5using adMoto.Payments.Core.Data; 
     6using adMoto.Payments.Core.Interfaces; 
    57using Elmah; 
    68using Platnosci.Models; 
    7 using Platnosci.Core.Linq; 
    8 using Platnosci.Core.Interface; 
    9 using ApplicationException=Elmah.ApplicationException; 
    109 
    1110namespace Platnosci.Controllers 
    1211{ 
    13  
    14     //[Authorize] 
    1512    public class PlatnoscController : Controller 
    1613    { 
    1714        public const string ISPAID = "payment_deposited";       //transakcja potwierdzona do rozliczenia 
    18         private readonly IRepository<vPlatnosciEcard> _repVPayment; 
     15        private readonly IRepository<Invoice> _repVPayment; 
    1916        private readonly IRepository<PlatnosciEcard> _repPayment; 
    2017        private readonly IRepository<PotwierdzeniaEcard> _repConfirm; 
     
    2421        public PlatnoscController() 
    2522        { 
    26             _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 
     23            _repVPayment = new Repository<Invoice>(new DataContext()); 
    2724            _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 
    2825            _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext()); 
     
    3027            _translateManager = new Translation(); 
    3128        } 
    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) 
    3330        { 
    3431            _repVPayment = repVPayment; 
     
    6461            return View(invoiceDeatailsViewData); 
    6562        } 
     63 
    6664        [Authorize] 
    6765        [AcceptVerbs(HttpVerbs.Post)] 
     
    139137        public ActionResult Status() 
    140138        { 
    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); 
    142141 
    143142            var potwierdzenie = new PotwierdzeniaEcard(); 
     
    201200        } 
    202201 
    203         private InvoiceDetailsViewData InitInvoiceDetailsViewData(vPlatnosciEcard platnosc) 
     202        private InvoiceDetailsViewData InitInvoiceDetailsViewData(Invoice platnosc) 
    204203        { 
    205204            var invoiceDeatailsViewData = new InvoiceDetailsViewData();