Ejemplo n.º 1
0
        /// <summary>
        /// Updates the card holder payment status.
        /// </summary>
        /// <param name="transaction_number">The transaction_number.</param>
        /// <param name="accountNumber">The account number.</param>
        /// <param name="amountDue">The amount due.</param>
        /// <param name="TxnRefrenceNo">The TXN refrence no.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public string UpdateCardHolderPaymentStatus(string transaction_number, string BillDeskOnlineID, double amountDue, string TxnRefrenceNo,
                                                    string paymentStatus, string BankRefNo, string BankId, string AuthStatus) // Add BillDeskOnlineID instead of Accnum 20-jan-2015
        {
            //commented by abhijeet on 21/08/2019
            //string Transaction_number = "";
            //CH_PaymentStatus_Dtl obj = repCardHolderPaymentStatus.SingleOrDefault(c => c.BillDeskOnlineID == BillDeskOnlineID
            //                            && c.Transaction_number == transaction_number
            //                            && c.AmountDue == amountDue && c.PaymentStatus.Trim().ToLower() == "unsuccessful");
            //if (obj != null)
            //{
            //    obj.PaymentStatus = paymentStatus;
            //    obj.TxnReferenceNo = TxnRefrenceNo;
            //    obj.Updated_by = CardHolderManager.GetLoggedInUser().CardHolder_Id;
            //    obj.Updated_dt = DateTime.Now;
            //    obj.BankRefNo = BankRefNo;
            //    obj.BankId = BankId;
            //    obj.AuthStatus = AuthStatus;
            //    GeneralManager.Commit();
            //    Transaction_number = obj.Transaction_number;
            //}
            //return Transaction_number;

            //Added by abhijeet on 21/08/2019
            BOBCardEntities _db = new BOBCardEntities();

            _db.UpdatePaymentStatus_Dtl(BillDeskOnlineID, transaction_number, amountDue, paymentStatus, TxnRefrenceNo,
                                        CardHolderManager.GetLoggedInUser().CardHolder_Id, DateTime.Now, BankRefNo, BankId, AuthStatus);
            return(transaction_number);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Updates the card holder payment status bobibanking.
        /// </summary>
        /// <param name="prn">The PRN.</param>
        /// <param name="accountNumber">The account number.</param>
        /// <param name="amountDue">The amount due.</param>
        /// <param name="bid">The bid.</param>
        /// <param name="debtAccountNo">The debt account no.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public string UpdateCardHolderPaymentStatusBobibanking(string prn, string accountNumber, double amountDue, string PID, string bid,
                                                               string debtAccountNo, string status)
        {
            //commented by abhijeet on 21/08/2019
            //string Transaction_number = "";
            //CH_BobibankingPaymentStatus_Dtl obj = repCardHolderBobibankingPaymentStatus.SingleOrDefault(c => c.Creditcard_acc_number == accountNumber
            //                                      && c.PRN == prn && c.AmountDue == amountDue && c.PaymentStatus.Trim() == "unsuccessful");
            //if (obj != null)
            //{
            //    obj.PaymentStatus = status;
            //    obj.BID = bid;
            //    obj.DebtAccountNo = debtAccountNo;
            //    obj.Updated_by = CardHolderManager.GetLoggedInUser().CardHolder_Id;
            //    obj.Updated_dt = DateTime.Now;
            //    GeneralManager.Commit();
            //    Transaction_number = obj.PRN;
            //}
            //return Transaction_number;
            BOBCardEntities _db = new BOBCardEntities();

            _db.Update_BobibankingPaymentStatus_Dtl(accountNumber, prn, amountDue, status, bid, debtAccountNo, DateTime.Now, CardHolderManager.GetLoggedInUser().CardHolder_Id.ToString());
            return(prn);
        }
Ejemplo n.º 3
0
 //public IRepository<CH_Sessions_Dtl> repCHSessionDtl
 //{
 //    get
 //    {
 //        return ObjectFactory.GetInstance<IRepository<CH_Sessions_Dtl>>();
 //    }
 //}
 /// <summary>
 /// Updates the card holder.
 /// </summary>
 /// <param name="userDTO">The user DTO.</param>
 /// <returns></returns>
 /// <remarks></remarks>
 public string UpdateCardHolder(CardHolder_MstDTO userDTO)
 {
     try
     {
         //commented by Avani on 21-08-2019
         //IPAddress localAddress = Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork);
         //CardHolder_Mst user = repCardHolder_Mst.SingleOrDefault(u => u.CardHolder_Id == userDTO.CardHolder_Id);
         //user.User_pwd = userDTO.User_pwd;
         //user.Local_IpAddress = Convert.ToString(localAddress);
         //user.Updated_by = CardHolderManager.GetLoggedInUser().CardHolder_Id;
         //user.Updated_dt = DateTime.Now;
         //GeneralManager.Commit();
         //return "0";
         /***/
         // Added by Avani on 21-08-2019
         BOBCardEntities _db          = new BOBCardEntities();
         IPAddress       localAddress = Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork);
         _db.UpdateCardHolderPasswordDetail(userDTO.CardHolder_Id, userDTO.User_pwd, localAddress.ToString(), CardHolderManager.GetLoggedInUser().CardHolder_Id, DateTime.Now);
         return("0");
     }
     catch (Exception exp)
     {
         return(Constants.GeneralErrorMessage);
     }
 }