Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ifrs17-template/Report/ParameterReports.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
"await Report.ForObjects(lockedPartnerRatings)",
"\n .WithQuerySource(Workspace)",
"\n .GroupRowsBy(x => x.Partner)",
"\n .GroupColumnsBy(x => x.PartnerRatingType).GroupColumnsBy(x => \"Initial Year: \" + x.InitialYear.ToString())",
"\n .GroupColumnsBy(x => x.PartnerRatingType).GroupColumnsBy(x => \"Initial Year: \" + x.InitialYear)",
"\n .ToTable()",
"\n .ExecuteAsync()"
],
Expand Down
6 changes: 4 additions & 2 deletions ifrs17/Constants/Consts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@
"\n public const string YieldCurves = nameof(YieldCurves);",
"\n public const string SingleDataNodeParameters = nameof(SingleDataNodeParameters);",
"\n public const string InterDataNodeParameters = nameof(InterDataNodeParameters);",
"\n public const string PartnerRating = nameof(PartnerRating);",
"\n public const string PartnerDefaultRates = nameof(PartnerDefaultRates);",
"\n public const string CurrentPartnerRating = nameof(CurrentPartnerRating);",
"\n public const string CurrentPartnerDefaultRates = nameof(CurrentPartnerDefaultRates);",
"\n public const string LockedInPartnerRating = nameof(LockedInPartnerRating);",
"\n public const string LockedInPartnerDefaultRates = nameof(LockedInPartnerDefaultRates);",
"\n}"
],
"metadata": {},
Expand Down
36 changes: 32 additions & 4 deletions ifrs17/Report/ParameterReportMutableScopeInteractive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"\n .ExecuteAsync();",
"\n }",
"\n",
"\n async Task<GridOptions> GetPartnerRatingReport()",
"\n async Task<GridOptions> GetCurrentPartnerRatingReport()",
"\n {",
"\n await GetStorage().InitializeAsync((Year, Month), ReportingNode, Scenario, CurrencyType);",
"\n var data = await workspace.GetCurrentPartnerRatingsReportParametersAsync(GetArgs());",
Expand All @@ -163,7 +163,7 @@
"\n .ExecuteAsync();",
"\n }",
"\n",
"\n async Task<GridOptions> GetDefaultRatesReport()",
"\n async Task<GridOptions> GetCurrentDefaultRatesReport()",
"\n {",
"\n await GetStorage().InitializeAsync((Year, Month), ReportingNode, Scenario, CurrencyType);",
"\n var data = await workspace.GetCurrentCreditDefaultRatesReportParametersAsync(GetArgs());",
Expand All @@ -175,15 +175,43 @@
"\n .ExecuteAsync();",
"\n }",
"\n",
"\n async Task<GridOptions> GetLockedInPartnerRatingReport()",
"\n {",
"\n await GetStorage().InitializeAsync((Year, Month), ReportingNode, Scenario, CurrencyType);",
"\n var data = await workspace.GetLockedInPartnerRatingsReportParametersAsync(GetArgs());",
"\n return await report.ForObjects(data)",
"\n .WithQuerySource(workspace)",
"\n .GroupRowsBy(x => x.Partner)",
"\n .GroupColumnsBy(x => x.PartnerRatingType)",
"\n .GroupColumnsBy(x => \"Initial Year: \" + x.InitialYear)",
"\n .ToTable()",
"\n .ExecuteAsync();",
"\n }",
"\n",
"\n async Task<GridOptions> GetLockedInDefaultRatesReport()",
"\n {",
"\n await GetStorage().InitializeAsync((Year, Month), ReportingNode, Scenario, CurrencyType);",
"\n var data = await workspace.GetLockedInCreditDefaultRatesReportParametersAsync(GetArgs());",
"\n return await report.ForObjects(data)",
"\n .WithQuerySource(workspace)",
"\n .GroupRowsBy(x => x.CreditRiskRating)",
"\n .GroupColumnsBy(x => x.CreditDefaultRatesType)",
"\n .GroupColumnsBy(x => \"Initial Year: \" + x.InitialYear)",
"\n .ToTable()",
"\n .ExecuteAsync();",
"\n }",
"\n",
"\n async Task<GridOptions> ToReport() => ReportType switch",
"\n {",
"\n ParameterReportType.DataNode => await GetDataNodeReport(), ",
"\n ParameterReportType.DataNodeState => await GetDataNodeStatesReport(), ",
"\n ParameterReportType.YieldCurves => await GetYieldCurvesReport(), ",
"\n ParameterReportType.SingleDataNodeParameters => await GetSingleDataNodeReport(), ",
"\n ParameterReportType.InterDataNodeParameters => await GetInterDataNodeParametersReport(), ",
"\n ParameterReportType.PartnerRating => await GetPartnerRatingReport(), ",
"\n ParameterReportType.PartnerDefaultRates => await GetDefaultRatesReport(),",
"\n ParameterReportType.CurrentPartnerRating => await GetCurrentPartnerRatingReport(), ",
"\n ParameterReportType.CurrentPartnerDefaultRates => await GetCurrentDefaultRatesReport(),",
"\n ParameterReportType.LockedInPartnerRating => await GetLockedInPartnerRatingReport(), ",
"\n ParameterReportType.LockedInPartnerDefaultRates => await GetLockedInDefaultRatesReport(),",
"\n _ => null",
"\n };",
"\n",
Expand Down