示例#1
0
        internal Transaction CreatePaymentSlip(TransactionType transactionType, double amount, string remarks, User user, DateTime? dueDate)
        {
            // Start transaction
            var retVal = new Transaction();
            retVal.TransactionType = transactionType;
            retVal.Amount = amount;
            retVal.CreationDate = DateTime.Now;
            retVal.Remarks = remarks;
            retVal.DueDate = dueDate;
            retVal.Status = TransactionStatus.Pending.ToString();

            retVal.TransactionNo = Context.Instance.Group.NewTransactionNo();

            //TODO save transaction

            return retVal;
        }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TransactionTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTransactionTypes(TransactionType transactionType)
 {
     base.AddObject("TransactionTypes", transactionType);
 }
示例#3
0
 /// <summary>
 /// Create a new TransactionType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static TransactionType CreateTransactionType(global::System.Int32 id, global::System.String name)
 {
     TransactionType transactionType = new TransactionType();
     transactionType.Id = id;
     transactionType.Name = name;
     return transactionType;
 }