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); } }
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); } }
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); } }