コード例 #1
0
ファイル: Saving.cs プロジェクト: Ramazanov/FomsNet
        public override List<SavingEvent> DebitTransfer(OCurrency pAmount, ISavingsContract pCreditAccount, DateTime pDate, 
            string pDescription, User pUser, bool pIsDesactivateFees)
        {
            List<SavingEvent> events = new List<SavingEvent>();
            SavingDebitTransferEvent transferEvent = new SavingDebitTransferEvent
            {
                Amount = pAmount,
                Date = pDate,
                Description = pDescription,
                User = pUser,
                Cancelable = false,
                RelatedContractCode = pCreditAccount.Code,
                ProductType = typeof(SavingBookProduct)
            };
            events.Add(transferEvent);
            _events.Add(transferEvent);

            if (Status != OSavingsStatus.Closed && !pIsDesactivateFees)
                    transferEvent.Fee = Product.TransferFeesType == OSavingsFeesType.Flat ? FlatTransferFees : pAmount * RateTransferFees.Value;

            return events;
        }
コード例 #2
0
ファイル: SavingDeposit.cs プロジェクト: Ramazanov/FomsNet
        public override List<SavingEvent> DebitTransfer(OCurrency pAmount, ISavingsContract pCreditAccount, DateTime pDate, string pDescription, User pUser, bool pIsDesactivateFees)
        {
            List<SavingEvent> events = new List<SavingEvent>();
            SavingDebitTransferEvent transferEvent = new SavingDebitTransferEvent
            {
                Amount = pAmount,
                Date = pDate,
                Description = pDescription,
                User = pUser,
                Cancelable = false,
                RelatedContractCode = pCreditAccount.Code,
                ProductType = typeof(TermDepositProduct)
            };
            events.Add(transferEvent);
            _events.Add(transferEvent);
            events.AddRange(_calculateWithdrawFees(pDate, pUser, transferEvent, pIsDesactivateFees));

            return events;
        }
コード例 #3
0
ファイル: SavingsContract.cs プロジェクト: Ramazanov/FomsNet
        public virtual List<SavingEvent> DebitTransfer(OCurrency pAmount, ISavingsContract pCreditAccount, DateTime pDate, string pDescription, User pUser, bool pIsDesactivateFees)
        {
            List<SavingEvent> events = new List<SavingEvent>();
            SavingDebitTransferEvent transferEvent = new SavingDebitTransferEvent
            {
                Amount = pAmount,
                Date = pDate,
                Description = pDescription,
                User = pUser,
                Cancelable = false,
                RelatedContractCode = pCreditAccount.Code,
                ProductType = Product.GetType()
            };
            events.Add(transferEvent);
            _events.Add(transferEvent);

            return events;
        }