app.controller('BacktestBankCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["N_Jaar"] = "2014"; $scope.page.titles["N_Scenario"] = "ACT"; $scope.page.titles["N_Rekening"] = "Totaal Rekeningen"; $scope.page.titles["N_Product"] = "Totaal Producten en Overige"; $scope.page.titles["N_RapporteringsStandaard"] = "Solo"; $scope.page.titles["N_Bedrijfseconomisch"] = "Bedrijfseconomisch resultaat"; $scope.page.titles["N_Meetwaarden P&L"] = "EUR"; // Populate the column subsets $scope.page["N_Maand"] = []; $scope.page["N_Maand"].push({key: "Jan", alias: "Jan", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Feb", alias: "Feb", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mrt", alias: "Mrt", level: 0, index: 3, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Apr", alias: "Apr", level: 0, index: 4, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mei", alias: "Mei", level: 0, index: 5, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jun", alias: "Jun", level: 0, index: 6, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jul", alias: "Jul", level: 0, index: 7, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Aug", alias: "Aug", level: 0, index: 8, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Sep", alias: "Sep", level: 0, index: 9, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Okt", alias: "Okt", level: 0, index: 10, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Nov", alias: "Nov", level: 0, index: 11, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Dec", alias: "Dec", level: 0, index: 12, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Adj", alias: "Adj", level: 0, index: 13, type: "N", isLeaf: 0 == 0}); // Populate the row subsets $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('BalansDBCtrl', ['$scope', '$rootScope', '$log', '$tm1Ui', function($scope, $rootScope, $log, $tm1Ui) { /* * defaults.* are variables that are declared once and are changed in the page, otherwise known as constants in programming languages * lists.* should be used to store any lists that are used with ng-repeat, i.e. tm1-ui-element-list * selections.* should be used for all selections that are made by a user in the page * values.* should store the result of any dbr, dbra or other values from server that you want to store to use elsewhere, i.e. in a calculation * * For more information: https://github.com/cubewise-code/canvas-best-practice */ $scope.defaults = {}; $scope.selections = {}; $scope.lists = {}; $scope.values = {}; }]); app.controller('BalansSimpelCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["N_Maatschappij"] = "11"; $scope.page.titles["N_Scenario"] = "ACT"; $scope.page.titles["N_Jaar"] = "2017"; $scope.page.titles["N_Kantoren"] = "Totaal Kantoren"; $scope.page.titles["N_Product"] = "Totaal Producten"; $scope.page.titles["N_Rekening"] = "Totaal Rekeningen"; $scope.page.titles["N_RapporteringsStandaard"] = "BGAAP Groep"; $scope.page.titles["N_Bewegingen"] = "Eindsaldo na winstverdeling AV"; $scope.page.titles["N_Afdelingen"] = "Totaal Afdelingen"; $scope.page.titles["N_Meetwaarden Balans"] = "EUR"; // Populate the column subsets // Populate the row subsets $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('BalanssimpleCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["N_Maatschappij"] = "ARGENTA GROEP excl GA"; $scope.page.titles["N_Scenario"] = "ACT"; $scope.page.titles["N_Jaar"] = "2017"; $scope.page.titles["N_Kantoren"] = "Totaal Kantoren"; $scope.page.titles["N_Product"] = "Totaal Producten en Overige"; $scope.page.titles["N_Rekening"] = "Totaal Rekeningen"; $scope.page.titles["N_RapporteringsStandaard"] = "Solo"; $scope.page.titles["N_Bewegingen"] = "Eindsaldo na winstverdeling AV"; $scope.page.titles["N_Afdelingen"] = "Totaal Afdelingen"; $scope.page.titles["N_Meetwaarden Balans"] = "EUR"; // Populate the column subsets $scope.page["N_Maand"] = []; $scope.page["N_Maand"].push({key: "Jan", alias: "Jan", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Feb", alias: "Feb", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mrt", alias: "Mrt", level: 0, index: 3, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Apr", alias: "Apr", level: 0, index: 4, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mei", alias: "Mei", level: 0, index: 5, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jun", alias: "Jun", level: 0, index: 6, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jul", alias: "Jul", level: 0, index: 7, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Aug", alias: "Aug", level: 0, index: 8, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Sep", alias: "Sep", level: 0, index: 9, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Okt", alias: "Okt", level: 0, index: 10, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Nov", alias: "Nov", level: 0, index: 11, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Dec", alias: "Dec", level: 0, index: 12, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Adj", alias: "Adj", level: 0, index: 13, type: "N", isLeaf: 0 == 0}); // Populate the row subsets $scope.page.rows = []; $scope.page.rows.push({key: "MB", alias: "Management Balans", level: 7, index: 1847, type: "C", isLeaf: 7 == 0}); $scope.page.rows.push({key: "MBAB", alias: "MBAB - Andere Balansrekeningen", level: 6, index: 1848, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBBB", alias: "MBBB - Schulden mbt belastingen, bezoldigingen en sociale lasten", level: 6, index: 1857, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBBD", alias: "MBBD - Bail-in-debt", level: 6, index: 1864, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBEV", alias: "MBEV - Eigen vermogen", level: 6, index: 1871, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBOA", alias: "MBOA - Overige Activa", level: 6, index: 1887, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBOR", alias: "MBOR - Overlopende rekeningen", level: 6, index: 1894, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBPR", alias: "MBPR - Producten", level: 6, index: 1903, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBRR", alias: "MBRR - Algemene Risico Reserves", level: 6, index: 2033, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSA", alias: "MBSA - Balanstotaal Schema A", level: 6, index: 2042, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSB", alias: "MBSB - Balanstotaal Schema B", level: 6, index: 2050, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSF", alias: "MBSF - Structured Finance", level: 6, index: 2057, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBUB", alias: "MBUB - Unmapped Balansrekeningen", level: 6, index: 2064, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBVA", alias: "MBVA - Vaste Activa", level: 6, index: 2071, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBVA1", alias: "MBVA1 - Vaste Activa", level: 5, index: 2072, type: "C", isLeaf: 5 == 0}); $scope.page.rows.push({key: "MBVA10", alias: "MBVA10 - Vaste Activa", level: 4, index: 2073, type: "C", isLeaf: 4 == 0}); $scope.page.rows.push({key: "MBVA100", alias: "MBVA100 - IVA", level: 3, index: 2074, type: "C", isLeaf: 3 == 0}); $scope.page.rows.push({key: "MBVA110", alias: "MBVA110 - MVA", level: 3, index: 2093, type: "C", isLeaf: 3 == 0}); $scope.page.rows.push({key: "MBVA1110", alias: "MBVA1110 - Terreinen en gebouwen", level: 2, index: 2094, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA11110", alias: "MBVA11110 - Vastgoed eigen gebruik", level: 1, index: 2095, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "MBVA11120", alias: "MBVA11120 - Vastgoedbeleggingen", level: 1, index: 2097, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "MBVA11130", alias: "MBVA11130 - Terreinen en gebouwen AW", level: 1, index: 2099, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "MBVA111301", alias: "MBVA111301 - Terreinen en gebouwen AW", level: 0, index: 2100, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "MBVA11140", alias: "MBVA11140 - Terreinen en gebouwen AF", level: 1, index: 2101, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "MBVA111401", alias: "MBVA111401 - Terreinen en gebouwen AF", level: 0, index: 2102, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "MBVA1120", alias: "MBVA1120 - Installaties, machines en uitrusting", level: 2, index: 2103, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA1130", alias: "MBVA1130 - Meubilair en Rollend materiaal", level: 2, index: 2110, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA1140", alias: "MBVA1140 - Overige materiële vaste activa", level: 2, index: 2117, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA1150", alias: "MBVA1150 - Activa in aanbouw en vooruitbetalingen", level: 2, index: 2120, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA1160", alias: "MBVA1160 - Kosten voor gehuurde gebouwen", level: 2, index: 2125, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA120", alias: "MBVA120 - FVA", level: 3, index: 2130, type: "C", isLeaf: 3 == 0}); $scope.page.rows.push({key: "MBVA1200", alias: "MBVA1200 - FVA", level: 2, index: 2131, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "MBVA130", alias: "MBVA130 - Oprichtingskosten", level: 3, index: 2134, type: "C", isLeaf: 3 == 0}); $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('BalansDefaultCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["N_Maatschappij"] = "11"; $scope.page.titles["N_Scenario"] = "ACT"; $scope.page.titles["N_Jaar"] = "2017"; $scope.page.titles["N_Kantoren"] = "Totaal Kantoren"; $scope.page.titles["N_Product"] = "Totaal Producten"; $scope.page.titles["N_Rekening"] = "Totaal Rekeningen"; $scope.page.titles["N_RapporteringsStandaard"] = "BGAAP Groep"; $scope.page.titles["N_Bewegingen"] = "Eindsaldo na winstverdeling AV"; $scope.page.titles["N_Afdelingen"] = "Totaal Afdelingen"; $scope.page.titles["N_Meetwaarden Balans"] = "EUR"; // Populate the column subsets // Populate the row subsets $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('Balans2Ctrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["N_Maatschappij"] = "ARGENTA GROEP excl GA"; $scope.page.titles["N_Scenario"] = "ACT"; $scope.page.titles["N_Jaar"] = "2017"; $scope.page.titles["N_Kantoren"] = "Totaal Kantoren"; $scope.page.titles["N_Product"] = "Totaal Producten en Overige"; $scope.page.titles["N_Rekening"] = "Totaal Rekeningen"; $scope.page.titles["N_RapporteringsStandaard"] = "Solo"; $scope.page.titles["N_Bewegingen"] = "Eindsaldo na winstverdeling AV"; $scope.page.titles["N_Afdelingen"] = "Totaal Afdelingen"; $scope.page.titles["N_Meetwaarden Balans"] = "EUR"; // Populate the column subsets $scope.page["N_Maand"] = []; $scope.page["N_Maand"].push({key: "Jan", alias: "Jan", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Feb", alias: "Feb", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mrt", alias: "Mrt", level: 0, index: 3, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Apr", alias: "Apr", level: 0, index: 4, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mei", alias: "Mei", level: 0, index: 5, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jun", alias: "Jun", level: 0, index: 6, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jul", alias: "Jul", level: 0, index: 7, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Aug", alias: "Aug", level: 0, index: 8, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Sep", alias: "Sep", level: 0, index: 9, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Okt", alias: "Okt", level: 0, index: 10, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Nov", alias: "Nov", level: 0, index: 11, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Dec", alias: "Dec", level: 0, index: 12, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Adj", alias: "Adj", level: 0, index: 13, type: "N", isLeaf: 0 == 0}); // Populate the row subsets $scope.page.rows = []; $scope.page.rows.push({key: "MB", alias: "Management Balans", level: 7, index: 1725, type: "C", isLeaf: 7 == 0}); $scope.page.rows.push({key: "MBAB", alias: "MBAB - Andere Balansrekeningen", level: 6, index: 1726, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBBB", alias: "MBBB - Schulden mbt belastingen, bezoldigingen en sociale lasten", level: 6, index: 1735, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBBD", alias: "MBBD - Bail-in-debt", level: 6, index: 1742, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBEV", alias: "MBEV - Eigen vermogen", level: 6, index: 1749, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBOA", alias: "MBOA - Overige Activa", level: 6, index: 1765, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBOR", alias: "MBOR - Overlopende rekeningen", level: 6, index: 1772, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBPR", alias: "MBPR - Producten", level: 6, index: 1781, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBRR", alias: "MBRR - Algemene Risico Reserves", level: 6, index: 1911, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSA", alias: "MBSA - Balanstotaal Schema A", level: 6, index: 1920, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSB", alias: "MBSB - Balanstotaal Schema B", level: 6, index: 1928, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSF", alias: "MBSF - Structured Finance", level: 6, index: 1935, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBUB", alias: "MBUB - Unmapped Balansrekeningen", level: 6, index: 1942, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBVA", alias: "MBVA - Vaste Activa", level: 6, index: 1949, type: "C", isLeaf: 6 == 0}); $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('PageBlankCanvasExampleCtrl', ['$scope', '$rootScope', '$log', '$tm1Ui', function($scope, $rootScope, $log, $tm1Ui) { /* * defaults.* are variables that are declared once and are changed in the page, otherwise known as constants in programming languages * lists.* should be used to store any lists that are used with ng-repeat, i.e. tm1-ui-element-list * selections.* should be used for all selections that are made by a user in the page * values.* should store the result of any dbr, dbra or other values from server that you want to store to use elsewhere, i.e. in a calculation * * For more information: https://github.com/cubewise-code/canvas-best-practice */ $scope.defaults = {}; $scope.selections = {}; $scope.lists = {}; $scope.values = {}; }]); app.controller('PageNameExampleCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values // Populate the column subsets $scope.page["Product Measure"] = []; $scope.page["Product Measure"].push({key: "Standard Cost", alias: "Standard Cost", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page["Product Measure"].push({key: "List Price", alias: "List Price", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); // Populate the row subsets $scope.page.rows = []; $scope.page.rows.push({key: "All Products by Category", alias: "All Products by Category", level: 3, index: 1, type: "C", isLeaf: 3 == 0}); $scope.page.rows.push({key: "Accessories", alias: "Accessories", level: 2, index: 2, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "Bike Racks", alias: "Bike Racks", level: 1, index: 3, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Bike Stands", alias: "Bike Stands", level: 1, index: 5, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Bottles and Cages", alias: "Bottles and Cages", level: 1, index: 7, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Cleaners", alias: "Cleaners", level: 1, index: 11, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Fenders", alias: "Fenders", level: 1, index: 13, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Helmets", alias: "Helmets", level: 1, index: 15, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Hydration Packs", alias: "Hydration Packs", level: 1, index: 25, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Lights", alias: "Lights", level: 1, index: 27, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Locks", alias: "Locks", level: 1, index: 31, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Panniers", alias: "Panniers", level: 1, index: 33, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Pumps", alias: "Pumps", level: 1, index: 35, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Tires and Tubes", alias: "Tires and Tubes", level: 1, index: 38, type: "C", isLeaf: 1 == 0}); $scope.page.rows.push({key: "Bikes", alias: "Bikes", level: 2, index: 50, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "Clothing", alias: "Clothing", level: 2, index: 179, type: "C", isLeaf: 2 == 0}); $scope.page.rows.push({key: "Components", alias: "Components", level: 2, index: 236, type: "C", isLeaf: 2 == 0}); $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('PageNameSliceTM1ViewCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["Period"] = "Year"; $scope.page.titles["Currency"] = "Local"; $scope.page.titles["Employee"] = "All Employees"; $scope.page.titles["Region"] = "1"; $scope.page.titles["Reseller"] = "All Resellers"; $scope.page.titles["Product"] = "All Products by Category"; $scope.page.titles["Sales Measure"] = "Net Margin"; // Populate the column subsets $scope.page["Year"] = []; $scope.page["Year"].push({key: "2006", alias: "2006", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2007", alias: "2007", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2008", alias: "2008", level: 0, index: 3, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2009", alias: "2009", level: 0, index: 4, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2010", alias: "2010", level: 0, index: 5, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2011", alias: "2011", level: 0, index: 6, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2012", alias: "2012", level: 0, index: 7, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2013", alias: "2013", level: 0, index: 8, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2014", alias: "2014", level: 0, index: 9, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2015", alias: "2015", level: 0, index: 10, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2016", alias: "2016", level: 0, index: 11, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2017", alias: "2017", level: 0, index: 12, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2018", alias: "2018", level: 0, index: 13, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "2019", alias: "2019", level: 0, index: 14, type: "N", isLeaf: 0 == 0}); $scope.page["Year"].push({key: "Select", alias: "Select", level: 0, index: 15, type: "N", isLeaf: 0 == 0}); // Populate the row subsets $scope.page.rows = []; $scope.page.rows.push({key: "1", alias: "1", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "2", alias: "2", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "3", alias: "3", level: 0, index: 3, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "Quota", alias: "Quota", level: 0, index: 4, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "Last Year", alias: "Last Year", level: 0, index: 5, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "Var %", alias: "Var %", level: 0, index: 6, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "LY %", alias: "LY %", level: 0, index: 7, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "[bad", alias: "[bad", level: 0, index: 8, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "bad]", alias: "bad]", level: 0, index: 9, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "[bad]", alias: "[bad]", level: 0, index: 10, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "{bad}", alias: "{bad}", level: 0, index: 11, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "{'Bad', "Element"!#%}", alias: "{'Bad', "Element"!#%}", level: 0, index: 12, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "{'Baddes', /\ "Element"!#%}", alias: "{'Baddes', /\ "Element"!#%}", level: 0, index: 13, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "{['Bad', "Element"!#%]}", alias: "{['Bad', "Element"!#%]}", level: 0, index: 14, type: "N", isLeaf: 0 == 0}); $scope.page.rows.push({key: "{['Baddes', /\ "Element"!#%]}", alias: "{['Baddes', /\ "Element"!#%]}", level: 0, index: 15, type: "N", isLeaf: 0 == 0}); $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('SystemInfoCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { /* * defaults.* are variables that are declared once and are changed in the page, otherwise known as constants in programming languages * lists.* should be used to store any lists that are used with ng-repeat, i.e. tm1-ui-element-list * selections.* should be used for all selections that are made by a user in the page * values.* should store the result of any dbr, dbra or other values from server that you want to store to use elsewhere, i.e. in a calculation * * For more information: https://github.com/cubewise-code/canvas-best-practice */ $scope.defaults = {}; $scope.selections = {}; $scope.lists = {}; $scope.values = {}; }]); app.controller('baljdCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { $scope.page = { titles: {}, rows: [] }; // Set default title values $scope.page.titles["N_Maatschappij"] = "ARGENTA GROEP excl GA"; $scope.page.titles["N_Scenario"] = "ACT"; $scope.page.titles["N_Jaar"] = "2017"; $scope.page.titles["N_Kantoren"] = "Totaal Kantoren"; $scope.page.titles["N_Product"] = "Totaal Producten en Overige"; $scope.page.titles["N_Rekening"] = "Totaal Rekeningen"; $scope.page.titles["N_RapporteringsStandaard"] = "Solo"; $scope.page.titles["N_Bewegingen"] = "Eindsaldo na winstverdeling AV"; $scope.page.titles["N_Afdelingen"] = "Totaal Afdelingen"; $scope.page.titles["N_Meetwaarden Balans"] = "EUR"; // Populate the column subsets $scope.page["N_Maand"] = []; $scope.page["N_Maand"].push({key: "Jan", alias: "Jan", level: 0, index: 1, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Feb", alias: "Feb", level: 0, index: 2, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mrt", alias: "Mrt", level: 0, index: 3, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Apr", alias: "Apr", level: 0, index: 4, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Mei", alias: "Mei", level: 0, index: 5, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jun", alias: "Jun", level: 0, index: 6, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Jul", alias: "Jul", level: 0, index: 7, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Aug", alias: "Aug", level: 0, index: 8, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Sep", alias: "Sep", level: 0, index: 9, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Okt", alias: "Okt", level: 0, index: 10, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Nov", alias: "Nov", level: 0, index: 11, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Dec", alias: "Dec", level: 0, index: 12, type: "N", isLeaf: 0 == 0}); $scope.page["N_Maand"].push({key: "Adj", alias: "Adj", level: 0, index: 13, type: "N", isLeaf: 0 == 0}); // Populate the row subsets $scope.page.rows = []; $scope.page.rows.push({key: "MB", alias: "Management Balans", level: 7, index: 1725, type: "C", isLeaf: 7 == 0}); $scope.page.rows.push({key: "MBAB", alias: "MBAB - Andere Balansrekeningen", level: 6, index: 1726, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBBB", alias: "MBBB - Schulden mbt belastingen, bezoldigingen en sociale lasten", level: 6, index: 1735, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBBD", alias: "MBBD - Bail-in-debt", level: 6, index: 1742, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBEV", alias: "MBEV - Eigen vermogen", level: 6, index: 1749, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBOA", alias: "MBOA - Overige Activa", level: 6, index: 1765, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBOR", alias: "MBOR - Overlopende rekeningen", level: 6, index: 1772, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBPR", alias: "MBPR - Producten", level: 6, index: 1781, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBRR", alias: "MBRR - Algemene Risico Reserves", level: 6, index: 1911, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSA", alias: "MBSA - Balanstotaal Schema A", level: 6, index: 1920, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSB", alias: "MBSB - Balanstotaal Schema B", level: 6, index: 1928, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBSF", alias: "MBSF - Structured Finance", level: 6, index: 1935, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBUB", alias: "MBUB - Unmapped Balansrekeningen", level: 6, index: 1942, type: "C", isLeaf: 6 == 0}); $scope.page.rows.push({key: "MBVA", alias: "MBVA - Vaste Activa", level: 6, index: 1949, type: "C", isLeaf: 6 == 0}); $scope.table = $tm1Ui.tableCreate($scope, $scope.page.rows, {preload: false}); }]); app.controller('HomeCtrl', ['$scope', '$rootScope', '$interval', '$timeout', '$state', '$stateParams', '$http', function($scope, $rootScope, $interval, $timeout, $state, $stateParams, $http) { }]); app.controller('LoginCtrl', ['$scope', '$rootScope', '$state', '$stateParams', '$timeout', '$http', '$localStorage', '$base64', function($scope, $rootScope, $state, $stateParams, $timeout, $http, $localStorage, $base64) { }]); app.controller('testCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { /* * defaults.* are variables that are declared once and are changed in the page, otherwise known as constants in programming languages * lists.* should be used to store any lists that are used with ng-repeat, i.e. tm1-ui-element-list * selections.* should be used for all selections that are made by a user in the page * values.* should store the result of any dbr, dbra or other values from server that you want to store to use elsewhere, i.e. in a calculation * * For more information: https://github.com/cubewise-code/canvas-best-practice */ $scope.defaults = {}; $scope.selections = {}; $scope.lists = {}; $scope.values = {}; }]); app.controller('xxxCtrl', ['$scope', '$rootScope', '$tm1Ui', function($scope, $rootScope, $tm1Ui) { /* * defaults.* are variables that are declared once and are changed in the page, otherwise known as constants in programming languages * lists.* should be used to store any lists that are used with ng-repeat, i.e. tm1-ui-element-list * selections.* should be used for all selections that are made by a user in the page * values.* should store the result of any dbr, dbra or other values from server that you want to store to use elsewhere, i.e. in a calculation * * For more information: https://github.com/cubewise-code/canvas-best-practice */ $scope.defaults = {}; $scope.selections = {}; $scope.lists = {}; $scope.values = {}; }]);