Beispiel #1
0
 public void Insert(PaymentDetails Details)
 {
     try
     {
         foreach (CashPaymentDetails cashpaymentdet in Details.arrCashPaymentDetails)
         {
             new CashPayments(base.Connection, base.Transaction).Insert(cashpaymentdet);
         }
         foreach (ChequePaymentDetails chequepaymentdet in Details.arrChequePaymentDetails)
         {
             new ChequePayments(base.Connection, base.Transaction).Insert(chequepaymentdet);
         }
         foreach (CreditCardPaymentDetails cardpaymentdet in Details.arrCreditCardPaymentDetails)
         {
             new CreditCardPayments(base.Connection, base.Transaction).Insert(cardpaymentdet);
         }
         foreach (CreditPaymentDetails creditpaymentdet in Details.arrCreditPaymentDetails)
         {
             new CreditPayments(base.Connection, base.Transaction).Insert(creditpaymentdet);
         }
         foreach (DebitPaymentDetails debitpaymentdet in Details.arrDebitPaymentDetails)
         {
             new DebitPayments(base.Connection, base.Transaction).Insert(debitpaymentdet);
         }
     }
     catch (Exception ex)
     {
         throw base.ThrowException(ex);
     }
 }
Beispiel #2
0
		public void Insert(PaymentDetails Details)
		{
			try  
			{
				foreach (CashPaymentDetails cashpaymentdet in Details.arrCashPaymentDetails)
				{
                    new CashPayments(base.Connection, base.Transaction).Insert(cashpaymentdet);
				}
				foreach (ChequePaymentDetails chequepaymentdet in Details.arrChequePaymentDetails)
				{
                    new ChequePayments(base.Connection, base.Transaction).Insert(chequepaymentdet);
				}
				foreach (CreditCardPaymentDetails cardpaymentdet in Details.arrCreditCardPaymentDetails)
				{
                    new CreditCardPayments(base.Connection, base.Transaction).Insert(cardpaymentdet);
				}
				foreach (CreditPaymentDetails creditpaymentdet in Details.arrCreditPaymentDetails)
				{
                    new CreditPayments(base.Connection, base.Transaction).Insert(creditpaymentdet); 
				}
				foreach (DebitPaymentDetails debitpaymentdet in Details.arrDebitPaymentDetails)
				{
                    new DebitPayments(base.Connection, base.Transaction).Insert(debitpaymentdet); 
				}
			}
			catch (Exception ex)
			{
				throw base.ThrowException(ex);
			}	
		}
Beispiel #3
0
        public PaymentDetails Details(Int32 BranchID, string TerminalNo, Int64 TransactionID)
        {
            try
            {
                PaymentDetails Details = new PaymentDetails();
                Details.TransactionID               = TransactionID;
                Details.arrCashPaymentDetails       = new CashPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrChequePaymentDetails     = new ChequePayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrCreditCardPaymentDetails = new CreditCardPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrCreditPaymentDetails     = new CreditPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrDebitPaymentDetails      = new DebitPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);

                return(Details);
            }

            catch (Exception ex)
            {
                throw base.ThrowException(ex);
            }
        }
Beispiel #4
0
		public PaymentDetails Details(Int32 BranchID, string TerminalNo, Int64 TransactionID)
		{
			try
			{
				PaymentDetails Details = new PaymentDetails();
				Details.TransactionID = TransactionID;
                Details.arrCashPaymentDetails = new CashPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrChequePaymentDetails = new ChequePayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrCreditCardPaymentDetails = new CreditCardPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrCreditPaymentDetails = new CreditPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrDebitPaymentDetails = new DebitPayments(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);

				return Details;
			}

			catch (Exception ex)
			{
				throw base.ThrowException(ex);
			}	
		}