Zbiór zmian 951 dla trunk/eCard/eCardMVC/Platnosci/Models
- Data:
- 2009-12-14 16:03:54 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci/Models
- Pliki:
-
- 1 dodane
- 2 zmodyfikowane
-
FunkcjePlatnosci.cs (zmodyfikowane) (4 diffs)
-
InvoiceDetailsViewData.cs (zmodyfikowane) (1 diff)
-
eCardData.cs (dodane)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Models/FunkcjePlatnosci.cs
r950 r951 6 6 using System.Configuration; 7 7 using System.Security.Principal; 8 using Platnosci.Core.Interface; 8 9 9 10 … … 16 17 private const string USD = "789"; 17 18 private const string PLN = "985"; 19 public const string CARDS = "CARDS"; //obsługa tylko kart płatniczych 20 public const string KOD_POLSKA = "616"; //kod kraju Akceptanta - Polska 21 public const string KODOWANIE = "ISO-8859-2"; 18 22 19 23 public string BruttoToString(decimal? kwota, decimal? waluta, string miano) … … 39 43 if (!String.IsNullOrEmpty(platnosc.waluta_miano) && platnosc.waluta_miano != "PLN") 40 44 { 45 waluta.Amount = Convert.ToInt32(platnosc.waluta_brutto * 100); 41 46 switch (platnosc.waluta_miano) 42 47 { … … 118 123 return er; 119 124 } 125 public PlatnosciEcard CreateAndAddNewPyment(vPlatnosciEcard platnosc, Waluta waluta, Payer payer, IRepository<PlatnosciEcard> _repPayment, string sessionId) 126 { 127 var newPayment = new PlatnosciEcard(); 128 newPayment.IDFaktury = platnosc.ID_faktury; 129 newPayment.ORDERDESCRIPTION = platnosc.Faktura_Numer; 130 newPayment.nip = platnosc.nip; 131 newPayment.nrZlecenia = ""; 132 newPayment.AMOUNT = waluta.Amount; 133 newPayment.CURRENCY = waluta.Currency; 134 newPayment.SESSIONID = sessionId; 135 newPayment.NAME = payer.FirstName; 136 newPayment.SURNAME = payer.LastName; 137 newPayment.AUTODEPOSIT = true; 138 newPayment.LANGUAGE = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToUpper(); 139 newPayment.CHARSET = KODOWANIE; 140 newPayment.COUNTRY = KOD_POLSKA; 141 newPayment.JS = true; 142 newPayment.PAYMENTTYPE = CARDS; 143 newPayment.Data = DateTime.Now; 144 newPayment.Status = null; 145 newPayment.Status_data = null; 120 146 147 if (newPayment != null) 148 { 149 _repPayment.Insert(newPayment); 150 return newPayment; 151 } 152 return null; 153 } 121 154 } 122 155 } -
trunk/eCard/eCardMVC/Platnosci/Models/InvoiceDetailsViewData.cs
r883 r951 13 13 public vPlatnosciEcard vPlatnosciEcard { get; set; } 14 14 public Payer Payer {get; set;} 15 public string Status { get; set; }16 15 public string brutto { get; set; } 17 16 public string termin { get; set; }
