コード例 #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);
     }
 }
コード例 #2
0
ファイル: PaymentCredits.cs プロジェクト: marioricci/erp-luma
		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);
			}	
		}
コード例 #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);
            }
        }
コード例 #4
0
ファイル: PaymentCredits.cs プロジェクト: marioricci/erp-luma
        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);
			}	
		}