Example #1
0
 public RootModel(
     TargetingTypeModel targetingType,
     BroadGlobalActivePortfolioModel broadGlobalActiveProtfolio,
     ChangesetModel latestTtbbvChangeset,
     ChangesetModel latestTtbptChangeset,
     ChangesetModel latestPstoChangeset,
     ChangesetModel latestPstChangeset,
     GlobeModel globe,
     CashModel cash,
     DateTime benchmarkDate,
     Boolean isModified,
     NullableExpressionModel portfolioScaledGranTotal,
     NullableExpressionModel trueExposureGrandTotal,
     NullableExpressionModel trueActiveGrandTotal,
     Boolean isUserPermittedToSave
     )
 {
     this.TargetingType = targetingType;
     this.BroadGlobalActiveProtfolio = broadGlobalActiveProtfolio;
     this.LatestTtbbvChangeset       = latestTtbbvChangeset;
     this.LatestTtbptChangeset       = latestTtbptChangeset;
     this.LatestBgapsfChangeset      = latestPstoChangeset;
     this.LatestBupstChangeset       = latestPstChangeset;
     this.Globe                     = globe;
     this.Cash                      = cash;
     this.IsModified                = isModified;
     this.BenchmarkDate             = benchmarkDate;
     this.PortfolioScaledGrandTotal = portfolioScaledGranTotal;
     this.TrueExposureGrandTotal    = trueExposureGrandTotal;
     this.TrueActiveGrandTotal      = trueActiveGrandTotal;
     this.IsUserPermittedToSave     = isUserPermittedToSave;
 }
 public PortfolioTargetModel(
     BroadGlobalActivePortfolioModel broadGlobalActivePortfolio,
     EditableExpressionModel portfolioTargetExpression
     )
 {
     this.BroadGlobalActivePortfolio = broadGlobalActivePortfolio;
     this.PortfolioTarget            = portfolioTargetExpression;
 }
Example #3
0
 public PortfolioModel(
     BroadGlobalActivePortfolioModel broadGlobalActivePortfolio,
     NullableExpressionModel portfolioTargetTotalExpression
     )
 {
     this.BroadGlobalActivePortfolio = broadGlobalActivePortfolio;
     this.PortfolioTargetTotal       = portfolioTargetTotalExpression;
 }
Example #4
0
        public BroadGlobalActivePortfolioModel SerializeBroadGlobalActivePorfolio(BroadGlobalActivePortfolio broadGlobalActivePortfolio)
        {
            var result = new BroadGlobalActivePortfolioModel(
                broadGlobalActivePortfolio.Id,
                broadGlobalActivePortfolio.Name
                );

            return(result);
        }
Example #5
0
        public BroadGlobalActivePortfolio DeserializeBroadGlobalActivePorfolio(BroadGlobalActivePortfolioModel model)
        {
            PortfolioRepository portfolioRepository;

            using (var ondemandManager = this.CreateOnDemandDataManager())
            {
                portfolioRepository = this.repositoryManager.ClaimPortfolioRepository(ondemandManager);
            }
            var result = portfolioRepository.GetBroadGlobalActivePortfolio(model.Id);

            return(result);
        }