示例#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;
 }
示例#2
0
        protected GlobeModel SerializeGlobe(Core.ManagingBpt.GlobeModel model, CalculationTicket ticket)
        {
            var residents = this.SerializeGlobeResidents(model.Residents, ticket);
            var result    = new GlobeModel(
                residents,
                this.serializer.SerializeNullableExpression(model.Base, ticket),
                this.serializer.SerializeExpression(model.Benchmark, ticket),
                this.serializer.SerializeExpression(model.Overlay, ticket),
                this.serializer.SerializeNullableExpression(model.PortfolioAdjustment, ticket),
                this.serializer.SerializeNullableExpression(model.PortfolioScaled, ticket),
                this.serializer.SerializeNullableExpression(model.TrueActive, ticket),
                this.serializer.SerializeNullableExpression(model.TrueExposure, ticket)
                );

            return(result);
        }