Ejemplo n.º 1
0
        public new void createNew(int payerEntityID, int payeeEntityID, decimal amount, int currencyID, int cardID)
        {
            using (var ctx = new AccContexts())
            using (var ts = new TransactionScope())
            {
                base.createNew(payerEntityID, payeeEntityID, amount, currencyID, cardID, (int)enums.extPaymentType.CreditPayment);

                var _ccPayment = new AccountingLib.Models.ccPayment()
                {
                    extPaymentID=base.extPaymentID
                };
                ctx.ccPayment.AddObject(_ccPayment);
                ctx.SaveChanges();

                this.loadByPaymentID((int)_ccPayment.externalPayment.paymentID);

                ts.Complete();
            }
        }
Ejemplo n.º 2
0
        public new void createNew(int payerEntityID, int payeeEntityID, decimal amount, int currencyID, int cardID)
        {
            using (var ctx = new AccContexts())
                using (var ts = new TransactionScope())
                {
                    base.createNew(payerEntityID, payeeEntityID, amount, currencyID, cardID, (int)enums.extPaymentType.CreditPayment);

                    var _ccPayment = new AccountingLib.Models.ccPayment()
                    {
                        extPaymentID = base.extPaymentID
                    };
                    ctx.ccPayment.AddObject(_ccPayment);
                    ctx.SaveChanges();

                    this.loadByPaymentID((int)_ccPayment.externalPayment.paymentID);

                    ts.Complete();
                }
        }
 /// <summary>
 /// Create a new ccPayment object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static ccPayment CreateccPayment(global::System.Int32 id)
 {
     ccPayment ccPayment = new ccPayment();
     ccPayment.ID = id;
     return ccPayment;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ccPayment EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToccPayment(ccPayment ccPayment)
 {
     base.AddObject("ccPayment", ccPayment);
 }