Pokaż
Ignoruj:
Data:
2009-12-11 16:57:08 (16 years ago)
Autor:
marek
Opis:

re #215 - drobny refactoring

Lokalizacja:
trunk/eCard/eCardMVC/Platnosci
Pliki:
4 zmodyfikowane

Legenda:

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

    r948 r949  
    2323        public AccountController() 
    2424        { 
    25             _repository = new Repository<vPlatnosciEcard>(new DataContext1()); 
     25            _repository = new Repository<vPlatnosciEcard>(new DataContext()); 
    2626            FormsAuth = new FormsAuthenticationService(); 
    2727            _funkcjePlatnosci = new FunkcjePlatnosci(); 
  • trunk/eCard/eCardMVC/Platnosci/Controllers/MerchantController.cs

    r948 r949  
    2828        public MerchantController() 
    2929        { 
    30             _repVPayment = new Repository<vPlatnosciEcard>(new DataContext1()); 
    31             _repPayment = new Repository<PlatnosciEcard>(new DataContext1()); 
     30            _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 
     31            _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 
    3232            _funkcjePlatnosci = new FunkcjePlatnosci(); 
    3333            _translateManager = new Translation(); 
     
    7979            linkOk += "/" + newPayment.IDFaktury + "?o=" + orderek; 
    8080 
    81             if (merchant != null && !String.IsNullOrEmpty(merchant.merchntId)) 
     81            if (merchant != null && !String.IsNullOrEmpty(merchant.Id)) 
    8282                SendRequest(newPayment, hash, merchant, linkFail, linkOk); 
    8383            else  
     
    130130            var dane = "&orderDescription=&amount=" + platnosc.AMOUNT; 
    131131            dane += "&currency=" + platnosc.CURRENCY; 
    132             dane += string.Format("&merchantId={0}&password={1}", merchant.merchntId, merchant.merchantPassword); 
     132            dane += string.Format("&merchantId={0}&password={1}", merchant.Id, merchant.Password); 
    133133 
    134134            var bdata = System.Text.Encoding.ASCII.GetBytes(dane); 
     
    154154            var dane = "&AMOUNT=" + m.AMOUNT + "&CURRENCY=" + m.CURRENCY + "&ORDERNUMBER=" + m.ORDERNUMBER; 
    155155            dane += "&NAME=" + m.NAME + "&SURNAME=" + m.SURNAME + "&LANGUAGE=" + m.LANGUAGE + "&CHARSET=ISO-8859-2"; 
    156             dane += "&COUNTRY=616&PAYMENTTYPE=CARDS&JS=1&HASH=" + hash + "&MERCHANTID=" + merchant.merchntId + "&AUTODEPOSIT=" + m.AUTODEPOSIT; 
     156            dane += "&COUNTRY=616&PAYMENTTYPE=CARDS&JS=1&HASH=" + hash + "&MERCHANTID=" + merchant.Id + "&AUTODEPOSIT=" + m.AUTODEPOSIT; 
    157157            dane += "&LINKFAIL=" + linkfail + "&LINKOK=" + linkok + "&SESSIONID=" + m.SESSIONID; 
    158158            Response.Redirect(adres + dane); 
     
    174174            if (systemKs == "2") 
    175175            { 
    176                 merchant.merchntId = "171485000"; 
    177                 merchant.merchantPassword = "ashSeth2"; 
     176                merchant.Id = "171485000"; 
     177                merchant.Password = "ashSeth2"; 
    178178            } 
    179179            else 
    180180            { 
    181                 merchant.merchntId = "170906000"; 
    182                 merchant.merchantPassword = "JaYpqfs0"; 
     181                merchant.Id = "170906000"; 
     182                merchant.Password = "JaYpqfs0"; 
    183183            }               
    184184            return merchant; 
  • trunk/eCard/eCardMVC/Platnosci/Controllers/PlatnoscController.cs

    r948 r949  
    2121        public PlatnoscController() 
    2222        { 
    23             _repVPayment = new Repository<vPlatnosciEcard>(new DataContext1()); 
    24             _repPayment = new Repository<PlatnosciEcard>(new DataContext1()); 
    25             _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext1()); 
     23            _repVPayment = new Repository<vPlatnosciEcard>(new DataContext()); 
     24            _repPayment = new Repository<PlatnosciEcard>(new DataContext()); 
     25            _repConfirm = new Repository<PotwierdzeniaEcard>(new DataContext()); 
    2626            _funkcjePlatnosci = new FunkcjePlatnosci(); 
    2727            _translateManager = new Translation();          
  • trunk/eCard/eCardMVC/Platnosci/Views/Platnosc/Form.aspx

    r911 r949  
    1313     <br/> 4. ValidationCode: <%=Html.TextBox("VALIDATIONCODE","000")%>       
    1414     <br/> 5. APPROVALCODE: <%=Html.TextBox("APPROVALCODE","123")%> 
    15      <br/> 6. AUTHTIME: <%=Html.TextBox("AUTHTIME")%> 
     15     <br/> 6. AUTHTIME: <%=Html.TextBox("AUTHTIME", DateTime.Now)%> 
    1616     <br/> 7. BIN: <%=Html.TextBox("BIN","1234")%> 
    1717     <br/> 8. COMMTYPE: <%=Html.TextBox("COMMTYPE","anbjbj")%>