コード例 #1
0
ファイル: Model, Root.cs プロジェクト: leewashmore/Greenfield
 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 CashModel SerializeCash(Core.ManagingBpt.CashModel model, CalculationTicket ticket)
        {
            var result = new CashModel(
                this.serializer.SerializeNullableExpression(model.Base, ticket),
                this.serializer.SerializeNullableExpression(model.PortfolioScaled, ticket),
                this.serializer.SerializeNullableExpression(model.TrueExposure, ticket),
                this.serializer.SerializeNullableExpression(model.TrueActive, ticket)
                );

            return(result);
        }