Exemplo n.º 1
0
 public void Insert(PaymentCreditDetails Details)
 {
     try
     {
         foreach (CreditPaymentCashDetails cashCreditPaymentdet in Details.arrCreditPaymentCashDetails)
         {
             new CreditPaymentCash(base.Connection, base.Transaction).Insert(cashCreditPaymentdet);
         }
         foreach (CreditPaymentChequeDetails chequeCreditPaymentdet in Details.arrCreditPaymentChequeDetails)
         {
             new CreditPaymentCheque(base.Connection, base.Transaction).Insert(chequeCreditPaymentdet);
         }
     }
     catch (Exception ex)
     {
         throw base.ThrowException(ex);
     }
 }
Exemplo n.º 2
0
		public void Insert(PaymentCreditDetails Details)
		{
			try  
			{
                foreach (CreditPaymentCashDetails cashCreditPaymentdet in Details.arrCreditPaymentCashDetails)
				{
                    new CreditPaymentCash(base.Connection, base.Transaction).Insert(cashCreditPaymentdet);
				}
                foreach (CreditPaymentChequeDetails chequeCreditPaymentdet in Details.arrCreditPaymentChequeDetails)
				{
                    new CreditPaymentCheque(base.Connection, base.Transaction).Insert(chequeCreditPaymentdet);
				}
			}
			catch (Exception ex)
			{
				throw base.ThrowException(ex);
			}	
		}
Exemplo n.º 3
0
        public PaymentCreditDetails Details(Int32 BranchID, string TerminalNo, Int64 TransactionID)
        {
            try
            {
                PaymentCreditDetails Details = new PaymentCreditDetails();
                Details.BranchID      = BranchID;
                Details.TerminalNo    = TerminalNo;
                Details.TransactionID = TransactionID;
                Details.arrCreditPaymentCashDetails   = new CreditPaymentCash(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrCreditPaymentChequeDetails = new CreditPaymentCheque(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);

                return(Details);
            }

            catch (Exception ex)
            {
                throw base.ThrowException(ex);
            }
        }
Exemplo n.º 4
0
        public PaymentCreditDetails Details(Int32 BranchID, string TerminalNo, Int64 TransactionID)
		{
			try
			{
                PaymentCreditDetails Details = new PaymentCreditDetails();
                Details.BranchID = BranchID;
                Details.TerminalNo = TerminalNo;
                Details.TransactionID = TransactionID;
                Details.arrCreditPaymentCashDetails = new CreditPaymentCash(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);
                Details.arrCreditPaymentChequeDetails = new CreditPaymentCheque(base.Connection, base.Transaction).Details(BranchID, TerminalNo, TransactionID);

				return Details;
			}

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