Zbiór zmian 888 dla trunk/eCard/eCardMVC/Platnosci
- Data:
- 2009-11-23 16:27:53 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci
- Pliki:
-
- 6 zmodyfikowane
-
Content/Site.css (zmodyfikowane) (3 diffs)
-
Controllers/PlatnoscController.cs (zmodyfikowane) (9 diffs)
-
Views/Platnosc/Paid.aspx (zmodyfikowane) (1 diff)
-
Views/Platnosc/Show.aspx (zmodyfikowane) (1 diff)
-
Views/Shared/Site.Master (zmodyfikowane) (1 diff)
-
Web.config (zmodyfikowane) (1 diff)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Content/Site.css
r886 r888 13 13 line-height: 1.6em; 14 14 } 15 h1, h2, h 4, h5, h615 h1, h2, h5, h6 16 16 { 17 17 font-size: 1.5em; … … 35 35 font-family: Arial, Helvetica, sans-serif; 36 36 } 37 h4 38 { 39 padding: 0 0 0 0; 37 .Tytul 38 { 39 font-family: Arial, Helvetica, sans-serif; 40 font-size: 1.5em; 41 padding: 20px 0 0 0; 40 42 color:#E00000; 43 font-weight: bold; 41 44 } 42 45 h5, h6 … … 78 81 #main 79 82 { 80 padding: 30px 30px 15px 30px;83 padding: 0px 30px 15px 30px; 81 84 background-color: #fff; 82 85 margin-bottom: 30px; -
trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs
r885 r888 33 33 private string err_imie; 34 34 private string err_nazwisko; 35 private int test = 0; 35 36 36 37 public PlatnoscController() … … 42 43 43 44 } 44 public PlatnoscController(IDataContext datacontext )45 public PlatnoscController(IDataContext datacontext, int czy_test) 45 46 { 46 47 _rep = new Repository<PotwierdzeniaEcard>(datacontext); … … 48 49 _context1 = datacontext; 49 50 _func = new FunkcjePlatnosci(); 51 test = czy_test; 50 52 } 51 53 public ActionResult Show(string id, string language) 52 54 { 53 55 language = _func.setLanguage(language); 54 ustawTlumaczenia( );56 ustawTlumaczenia(test); 55 57 int id1 = ConvertId(id); 56 58 … … 71 73 return View("Paid", invoiceDeatailsViewData); 72 74 } 73 return View(invoiceDeatailsViewData); 75 return View(invoiceDeatailsViewData); 74 76 } 75 77 [Authorize] … … 78 80 { 79 81 language = _func.setLanguage(language); 80 ustawTlumaczenia( );82 ustawTlumaczenia(test); 81 83 vPlatnosciEcard platnosc = _rep.FindInvoiceById(payer.Id_faktury).SingleOrDefault(); 82 84 if (!String.IsNullOrEmpty(Iserror(platnosc).error)) return View("Error1", Iserror(platnosc)); … … 107 109 { 108 110 language = _func.setLanguage(language); 109 ustawTlumaczenia( );111 ustawTlumaczenia(test); 110 112 int id1 = ConvertId(id); 111 113 vPlatnosciEcard platnosc = _rep.FindInvoiceById(id1).SingleOrDefault(); … … 118 120 { 119 121 language = _func.setLanguage(language); 120 ustawTlumaczenia( );122 ustawTlumaczenia(test); 121 123 int id1 = ConvertId(id); 122 124 vPlatnosciEcard platnosc = _rep.FindInvoiceById(id1).SingleOrDefault(); … … 182 184 return invoiceDeatailsViewData; 183 185 } 184 private void ustawTlumaczenia() 185 { 186 weryfikacja = HttpContext.GetGlobalResourceObject("tlumaczenia", "weryfikacja").ToString(); 187 brakdanych = HttpContext.GetGlobalResourceObject("tlumaczenia", "brakdanych").ToString(); 188 zaplacono = HttpContext.GetGlobalResourceObject("tlumaczenia", "zaplacono").ToString(); 189 err_imie = HttpContext.GetGlobalResourceObject("tlumaczenia", "err_imieWK").ToString(); 190 err_nazwisko = HttpContext.GetGlobalResourceObject("tlumaczenia", "err_nazwiskoWK").ToString(); 186 private void ustawTlumaczenia(int test) 187 { 188 if (test == 0) 189 { 190 weryfikacja = Resources.tlumaczenia.weryfikacja.ToString(); 191 brakdanych = Resources.tlumaczenia.brakdanych.ToString(); 192 zaplacono = Resources.tlumaczenia.zaplacono.ToString(); 193 err_imie = Resources.tlumaczenia.err_imieWK.ToString(); 194 err_nazwisko = Resources.tlumaczenia.err_nazwiskoWK.ToString(); 195 } 191 196 } 192 197 public void setWeryfikacja(string value) … … 224 229 public void UpdateStatus(int ordernumber, string currentstate) 225 230 { 226 var platnosc = _rep.FindPaymentByOrdernumber(ordernumber).SingleOrDefault();227 if (platnosc != null && platnosc.Status == true &¤tstate == ISPAID)231 PlatnosciEcard platnosc = _repPl.FindOne(ordernumber); 232 if (platnosc != null && currentstate == ISPAID) 228 233 { 229 234 platnosc.Status = true; 230 235 platnosc.Status_data = DateTime.Now; 231 _repPl.Update(platnosc); 236 _repPl.SubmitChanges(); 237 238 System.Diagnostics.Debug.WriteLine("IsUpdate"); 232 239 } 233 240 } -
trunk/eCard/eCardMVC/Platnosci/Views/Platnosc/Paid.aspx
r883 r888 7 7 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 8 8 9 < h4>9 <div class="Tytul"> 10 10 <asp:Label ID="Szczegó³y" runat="server" Text="<%$Resources:tlumaczenia,Szczegoly%>"></asp:Label> 11 </ h4>11 </div> 12 12 <p class="InfoPaid"><%=Model.info%></p> 13 13 <table cellpadding="0" cellspacing="0" border="0"> -
trunk/eCard/eCardMVC/Platnosci/Views/Platnosc/Show.aspx
r883 r888 7 7 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 8 8 9 < h4>10 <asp:Label ID="Szczeg ó³y" runat="server" Text="<%$Resources:tlumaczenia,Szczegoly%>"></asp:Label>11 </ h4>9 <div class="Tytul"> 10 <asp:Label ID="Szczegoly" runat="server" Text="<%$Resources:tlumaczenia,Szczegoly%>"></asp:Label> 11 </div> 12 12 13 13 <p class="bold"><asp:Label ID="SprDane" runat ="server" Text="<%$Resources:tlumaczenia,SprawdzDane%>"></asp:Label></p> -
trunk/eCard/eCardMVC/Platnosci/Views/Shared/Site.Master
r886 r888 10 10 </head> 11 11 <body> 12 <table class="wtab cellpadding="0" cellspacing="0" border="0">12 <table class="wtab" cellpadding="0" cellspacing="0" border="0"> 13 13 <tr> 14 14 <td class="tlo"> -
trunk/eCard/eCardMVC/Platnosci/Web.config
r881 r888 36 36 <add key="StatusLink" value="http://platnosci.admoto.pl/info.aspx"/> 37 37 <add key="Css" value="admoto"/> 38 38 39 39 <add key="Strona" value="http://pay.truck-expo.com"/> 40 40 <add key="Strona" value="http://platnosci.admoto.pl"/>
