Skip to content

Commit 6014e05

Browse files
authored
To main (#392)
2 parents e179d96 + 5b2c130 commit 6014e05

152 files changed

Lines changed: 13726 additions & 6327 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ifrs17-template/Constants/CalculationEngine.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cell_type": "code",
2121
"source": [
2222
"var projectName = \"ifrs17\";",
23-
"\nvar environmentName = \"v1.3.1\";",
23+
"\nvar environmentName = \"v1.3.2\";",
2424
"\nvar notebookName = \"CalculationEngine\";",
2525
"\nvar calculationEngine = $\"#!import \\\"//{projectName}/{environmentName}/{notebookName}\\\"\";"
2626
],
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"metadata": {
3+
"authors": [],
4+
"id": "FhSOUFpXwkCCDrVeJ6_P0g",
5+
"kernelspec": {
6+
"display_name": "Formula Framework",
7+
"language": "C#",
8+
"name": "C#"
9+
},
10+
"language_info": {
11+
"file_extension": ".cs",
12+
"mimetype": "text/plain",
13+
"name": "C#"
14+
}
15+
},
16+
"nbformat": 4,
17+
"nbformat_minor": 5,
18+
"cells": [
19+
{
20+
"cell_type": "markdown",
21+
"source": [
22+
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Sharepoint Settings </span> </p>"
23+
],
24+
"metadata": {},
25+
"execution_count": 0,
26+
"outputs": []
27+
},
28+
{
29+
"cell_type": "markdown",
30+
"source": [
31+
"This notebook allows to enter the details to connect the IFRS 17 calculation engine to your personal sharepoint. This allows the calculation engine to import data directly from your sharepoint and to export reports and other financial documents directly to your sharepoint."
32+
],
33+
"metadata": {},
34+
"execution_count": 0,
35+
"outputs": []
36+
},
37+
{
38+
"cell_type": "code",
39+
"source": [
40+
"public class Sharepoint{",
41+
"\n public const string Sites = \"sites/XXX\"; //Sharepoint sites",
42+
"\n public const string Tenant = \"systemorph.sharepoint.com\"; //Sharepoint tenant",
43+
"\n public const string Root = \"Dev/\"; //Dev main directory",
44+
"\n public const string PathToExport = Root + \"ExportFilesTest/\" //Target export directory ",
45+
"\n public const string PathToImport = Root + \"ImportFiles/\"",
46+
"\n}"
47+
],
48+
"metadata": {},
49+
"execution_count": 0,
50+
"outputs": []
51+
}
52+
]
53+
}

ifrs17-template/Database/MigrationAndScaffolding/Initial.ipynb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"cell_type": "code",
3939
"source": [
40-
"[Migration(\"20230425145745_InitialTypes\")]",
40+
"[Migration(\"20230523120744_InitialTypes\")]",
4141
"\npublic class InitialTypes : Migration",
4242
"\n{",
4343
"\n protected override void Up(MigrationBuilder migrationBuilder)",
@@ -162,7 +162,9 @@
162162
"\n ReinsuranceCoverage = table.Column<double>(type: \"float\", nullable: true),",
163163
"\n PremiumAllocation = table.Column<double>(type: \"float\", nullable: true),",
164164
"\n CashFlowPeriodicity = table.Column<int>(type: \"int\", nullable: true),",
165-
"\n InterpolationMethod = table.Column<int>(type: \"int\", nullable: true)",
165+
"\n InterpolationMethod = table.Column<int>(type: \"int\", nullable: true),",
166+
"\n EconomicBasisDriver = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
167+
"\n ReleasePattern = table.Column<byte[]>(type: \"varbinary(max)\", nullable: true)",
166168
"\n },",
167169
"\n constraints: table =>",
168170
"\n {",
@@ -421,7 +423,8 @@
421423
"\n SystemName = table.Column<string>(type: \"nvarchar(16)\", maxLength: 16, nullable: false),",
422424
"\n Shift = table.Column<int>(type: \"int\", nullable: false),",
423425
"\n TimeStep = table.Column<int>(type: \"int\", nullable: false),",
424-
"\n DisplayName = table.Column<string>(type: \"nvarchar(max)\", nullable: true)",
426+
"\n DisplayName = table.Column<string>(type: \"nvarchar(max)\", nullable: true),",
427+
"\n Order = table.Column<int>(type: \"int\", nullable: false)",
425428
"\n },",
426429
"\n constraints: table =>",
427430
"\n {",
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"metadata": {
3+
"authors": [],
4+
"id": "SW5aARBVpEi8-8zKI1xJoQ",
5+
"kernelspec": {
6+
"display_name": "Formula Framework",
7+
"language": "C#",
8+
"name": "C#"
9+
},
10+
"language_info": {
11+
"file_extension": ".cs",
12+
"mimetype": "text/plain",
13+
"name": "C#"
14+
}
15+
},
16+
"nbformat": 4,
17+
"nbformat_minor": 5,
18+
"cells": [
19+
{
20+
"cell_type": "markdown",
21+
"source": [
22+
"In order to allow direct export of the files into the sharepoint folder of choice, please comment out the first row of the following code and uncomment the rest of the code."
23+
],
24+
"metadata": {},
25+
"execution_count": 0,
26+
"outputs": []
27+
},
28+
{
29+
"cell_type": "code",
30+
"source": [
31+
"var pathToExport = \"\";",
32+
"\n//#!import \"../Constants/Sharepoint\"",
33+
"\n//var fileStorage = SharePoint.Site(Sharepoint.Sites, Sharepoint.Tenant);",
34+
"\n//var pathToExport = Sharepoint.PathToExport",
35+
"\n//Export.SetDefaultFileStorage(fileStorage);"
36+
],
37+
"metadata": {},
38+
"execution_count": 0,
39+
"outputs": []
40+
},
41+
{
42+
"cell_type": "code",
43+
"source": [
44+
""
45+
],
46+
"metadata": {},
47+
"execution_count": 0,
48+
"outputs": []
49+
}
50+
]
51+
}

ifrs17-template/Export/MapTemplate.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
{
7373
"cell_type": "code",
7474
"source": [
75-
"#!eval-notebook \"../Import/CloseImportTemplate\""
75+
"#!eval-notebook \"../Import/CloseImportTemplate\"",
76+
"\n#!eval-notebook \"ExportSettings\""
7677
],
7778
"metadata": {},
7879
"execution_count": 0,
@@ -110,7 +111,7 @@
110111
"source": [
111112
"# Map Template: Data Node",
112113
"\n",
113-
"\n[DataNodes](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.1/DataModel/DataStructure#data-node) defines the properties of [Portfolios](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.1/DataModel/DataStructure#portfolios) and [Group of Contracts](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.1/DataModel/DataStructure#group-of-contracts)."
114+
"\n[DataNodes](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.2/DataModel/DataStructure#data-node) defines the properties of [Portfolios](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.2/DataModel/DataStructure#portfolios) and [Group of Contracts](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.2/DataModel/DataStructure#group-of-contracts)."
114115
],
115116
"metadata": {},
116117
"execution_count": 0,
@@ -147,7 +148,7 @@
147148
{
148149
"cell_type": "code",
149150
"source": [
150-
"await Export.ToExcel(\"DataNodes\")",
151+
"await Export.ToExcel(pathToExport + \"DataNodes\")",
151152
"\n .WithSource(Workspace)",
152153
"\n .PortfolioConfiguration<ReinsurancePortfolio>()",
153154
"\n .PortfolioConfiguration<InsurancePortfolio>()",
@@ -166,7 +167,7 @@
166167
"source": [
167168
"# Map Template: Data Node State",
168169
"\n",
169-
"\n[Data Node State](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.1/DataModel/DataStructure#data-node-state) defines whether the instance is active (used in import/output) or inactive (present in the DataSource but not used in input/output operations)."
170+
"\n[Data Node State](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.2/DataModel/DataStructure#data-node-state) defines whether the instance is active (used in import/output) or inactive (present in the DataSource but not used in input/output operations)."
170171
],
171172
"metadata": {},
172173
"execution_count": 0,
@@ -235,7 +236,7 @@
235236
{
236237
"cell_type": "code",
237238
"source": [
238-
"await Export.ToExcel(\"DataNodeState\")",
239+
"await Export.ToExcel(pathToExport + \"DataNodeState\")",
239240
"\n .WithSource(Workspace)",
240241
"\n .StateEnumConfiguration() ",
241242
"\n .DataNodeStateConfiguration(dataNodeStates)",
@@ -252,7 +253,7 @@
252253
"source": [
253254
"# Map Template: Data Node Parameter",
254255
"\n",
255-
"\n[Data Node Parameters](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.1/DataModel/DataStructure#data-node-parameters) are defined at the Group of Contract level and are used during the import calculation. "
256+
"\n[Data Node Parameters](https://portal.systemorph.cloud/project/ifrs17/env/v1.3.2/DataModel/DataStructure#data-node-parameters) are defined at the Group of Contract level and are used during the import calculation. "
256257
],
257258
"metadata": {},
258259
"execution_count": 0,
@@ -323,7 +324,7 @@
323324
{
324325
"cell_type": "code",
325326
"source": [
326-
"await Export.ToExcel(\"DataNodeParameter\")",
327+
"await Export.ToExcel(pathToExport + \"DataNodeParameter\")",
327328
"\n .WithSource(Workspace)",
328329
"\n .DataNodeParameterConfiguration(dataNodeParameters)",
329330
"\n .MainTabConfiguration(partition)",
Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
@@Main,,
2-
ReportingNode,Year,Month
3-
CH,2020,12
4-
,,
5-
@@SingleDataNodeParameter,,
6-
DataNode,PremiumAllocation,
7-
GicComplex,0.8,
8-
DT1.1,0.8,
9-
DT1.2,0.8,
10-
DT1.3,1,
11-
DT1.4,0.8,
12-
DT1.5,0.8,
13-
DT2.1,0.8,
14-
DT2.2,0.8,
15-
DT3.1,0.8,
16-
DT4.1,0.8,
17-
,,
18-
@@InterDataNodeParameter,,
19-
DataNode,LinkedDataNode,ReinsuranceCoverage
20-
DT1.1,DTR1.1,1
21-
DT1.2,DTR1.2,1
22-
DT1.4,DTR1.3,1
23-
DT1.5,DTR1.4,1
24-
DT2.1,DTR2.1,1
25-
DT2.2,DTR2.2,1
26-
GricComplex,GicComplex,1
1+
@@Main,,,,,,,,,
2+
ReportingNode,Year,Month,,,,,,,
3+
CH,2020,12,,,,,,,
4+
,,,,,,,,,
5+
@@SingleDataNodeParameter,,,,,,,,,
6+
DataNode,PremiumAllocation,CashFlowPeriodicity,InterpolationMethod,EconomicBasisDriver,ReleasePattern0,ReleasePattern1,ReleasePattern2,ReleasePattern3,ReleasePattern4
7+
GicComplex,0.8,Monthly,,,,,,,
8+
DT1.1,0.8,Monthly,,,,,,,
9+
DT1.2,0.8,Monthly,,,,,,,
10+
DT1.3,1,Monthly,,,,,,,
11+
DT1.4,0.8,Monthly,,,,,,,
12+
DT1.5,0.8,Monthly,,,,,,,
13+
DT2.1,0.8,Monthly,,,,,,,
14+
DT2.2,0.8,Monthly,,,,,,,
15+
DT3.1,0.8,Monthly,,,,,,,
16+
DT4.1,0.8,Monthly,,,,,,,
17+
DT10.1,0,Yearly,Uniform,,,,,,
18+
DT10.2,0,Yearly,Uniform,N,1.41,1.14,0.87,0.58,
19+
,,,,,,,,,
20+
@@InterDataNodeParameter,,,,,,,,,
21+
DataNode,LinkedDataNode,ReinsuranceCoverage,,,,,,,
22+
DT1.1,DTR1.1,0.5,,,,,,,
23+
DT1.2,DTR1.2,0.5,,,,,,,
24+
DT1.4,DTR1.3,0.5,,,,,,,
25+
DT1.5,DTR1.4,0.5,,,,,,,
26+
DT2.1,DTR2.1,0.5,,,,,,,
27+
DT2.2,DTR2.2,0.5,,,,,,,
28+
GricComplex,GicComplex,0.5,,,,,,,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@@Main,,
2+
ReportingNode,Year,Month
3+
ES,2020,12
4+
,,
5+
@@SingleDataNodeParameter,,
6+
DataNode,PremiumAllocation,
7+
3BBBA.0,1,
8+
3BPAA.0,1,
9+
3BBBA.1,1,
10+
3BPAA.1,1,
11+
3BBBA.2,1,
12+
3BPAA.2,1,
13+
3BBBA.3,1,
14+
3BPAA.3,1,
15+
3BBBA.4,1,
16+
3BPAA.4,1,
17+
3BBBA.5,1,
18+
3BPAA.5,1,
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@@Main,,
2+
ReportingNode,Year,Month
3+
FR,2020,12
4+
,,
5+
@@SingleDataNodeParameter,,
6+
DataNode,PremiumAllocation,
7+
EY52BBA.1,1,
8+
EY52BBA.2,1,
9+
EY52PAA.1,0,
10+
EY57G.1,1,
11+
EY58G.1,1,
12+
EY58G.2,1,
13+
EY59G.1,1,
14+
EY59G.2,1,
15+
EY63G.1,1,
16+
,,
17+
@@InterDataNodeParameter,,
18+
DataNode,LinkedDataNode,ReinsuranceCoverage
19+
EY57G.1,EY57R.1,0.3
20+
EY58G.1,EY58R.1,0.3
21+
EY58G.2,EY58R.1,0.3
22+
EY59G.1,EY59R.1,0.3
23+
EY59G.2,EY59R.2,0.3
24+
EY63G.1,EY63R.1,0.5

ifrs17-template/Files/DataNodes/DataNodeStates_CH_2020_12.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ DTR1.4,Active,
2323
DTR2.1,Active,
2424
DTR2.2,Active,
2525
DTP1.1,Active,
26+
DT10.1,Active,
27+
DT10.2,Active,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@@Main,,
2+
ReportingNode,Year,Month
3+
ES,2020,12
4+
,,
5+
@@DataNodeState,,
6+
DataNode,State,
7+
3BBBA.0,Active,
8+
3BPAA.0,Active,
9+
3BBBA.1,Active,
10+
3BPAA.1,Active,
11+
3BBBA.2,Active,
12+
3BPAA.2,Active,
13+
3BBBA.3,Active,
14+
3BPAA.3,Active,
15+
3BBBA.4,Active,
16+
3BPAA.4,Active,
17+
3BBBA.5,Active,
18+
3BPAA.5,Active,

0 commit comments

Comments
 (0)