Exemplo n.º 1
0
        internal void MailInsertChange(InsertChange change, IDataManager dataManager, SecurityRepository securityRepository, List <String> mailMessage, String username, DateTime date, String portfolioName, PortfolioRepository portfolioRepository)
        {
            StringBuilder bodyAppendix = new StringBuilder("\n");

            bodyAppendix.AppendLine("---" + date + ", Approved by: " + username + "---");
            var portfolio = portfolioRepository.ResolveToBottomUpPortfolio(change.SecurityId);

            bodyAppendix.AppendLine(portfolioName + " Adjustment in " + portfolio.Name + " from [empty] to " + MailSender.TransformTargetToString(change.TargetOverlayAfter));
            bodyAppendix.AppendLine("COMMENT: " + change.Comment);
            mailMessage.Add(bodyAppendix.ToString());
        }
Exemplo n.º 2
0
        protected void ApplyInsertChange(InsertChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager)
        {
            var changeInfo = new BgaPortfolioSecurityFactorChangeInfo(
                changeId,
                changeset.PortfolioId,
                change.SecurityId,
                null,
                change.TargetOverlayAfter,
                change.Comment,
                changesetId
                );

            manager.InsertBgaPortfolioSecurityFactorChange(changeInfo);

            var info = new BgaPortfolioSecurityFactorInfo(
                changeset.PortfolioId,
                change.SecurityId,
                change.TargetOverlayAfter,
                changeId
                );

            manager.InsertBgaPortfolioSecurityFactor(info);
        }
Exemplo n.º 3
0
 public void Resolve(InsertChange change)
 {
     this.applier.ApplyInsertChange(change, this.changeset, this.changeId, this.changesetId, this.manager);
 }
Exemplo n.º 4
0
 public void Resolve(InsertChange change)
 {
     this.applier.MailInsertChange(change, this.manager, this.securityRepository, this.mail, this.username, this.date, this.portfolioName, this.portfolioRepository);
 }