dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41037
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20882: pt noext
------------------------------------------------------------
revno: 20882
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-10-27 16:20:53 +0100
message:
pt noext
added:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html 1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html 2015-10-27 15:20:53 +0000
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+ <title>Pivot Table</title>
+
+ <link rel="stylesheet" type="text/css" href="../dhis-web-commons/javascripts/ext/resources/css/ext-all-gray.css"/>
+ <link rel="stylesheet" type="text/css" href="styles/style.css" />
+</head>
+
+<body>
+ <div id="init">
+ <div><span class="brand">DHIS 2</span>PIVOT TABLE</div>
+ <div class="spinner"></div>
+ </div>
+
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/ext/ext-all.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/ext-ux/layout/component/form/MultiSelect.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/ext-ux/form/MultiSelect.js"></script>
+
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.min.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/calendars/jquery.calendars.min.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/calendars/jquery.calendars.plus.min.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/calendars/jquery.calendars.picker.min.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.util.js"></script>
+ <script type="text/javascript" src="../dhis-web-commons/javascripts/date.js"></script>
+
+ <script type="text/javascript" src="scripts/core2.js"></script>
+<!--
+ <script type="text/javascript" src="scripts/app.js"></script>
+-->
+</body>
+
+</html>
=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js 1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js 2015-10-27 15:20:53 +0000
@@ -0,0 +1,3 @@
+Ext.onReady( function() {
+ var NS = PT;
+
=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js 1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js 2015-10-27 15:20:53 +0000
@@ -0,0 +1,282 @@
+$( function() {
+ var NS = PT = {};
+
+ // NS i18n
+ (function() {
+ var i18n = function(config) {
+ this.map = config || {};
+ };
+
+ i18n.prototype.get = function(key) {
+ return this.map[key];
+ };
+
+ i18n.prototype.add = function(obj) {
+ $.extend(this.map, obj);
+ };
+
+ NS.i18n = new i18n();
+ })();
+
+ // NS conf
+ (function() {
+ var conf = function() {
+ var me = this;
+
+ this.finals = {
+ dimension: {
+ data: {
+ value: 'data',
+ name: NS.i18n.data || 'Data',
+ dimensionName: 'dx',
+ objectName: 'dx'
+ },
+ category: {
+ name: NS.i18n.assigned_categories || 'Assigned categories',
+ dimensionName: 'co',
+ objectName: 'co',
+ },
+ indicator: {
+ value: 'indicators',
+ name: NS.i18n.indicators || 'Indicators',
+ dimensionName: 'dx',
+ objectName: 'in'
+ },
+ dataElement: {
+ value: 'dataElements',
+ name: NS.i18n.data_elements || 'Data elements',
+ dimensionName: 'dx',
+ objectName: 'de'
+ },
+ operand: {
+ value: 'operand',
+ name: 'Operand',
+ dimensionName: 'dx',
+ objectName: 'dc'
+ },
+ dataSet: {
+ value: 'dataSets',
+ name: NS.i18n.data_sets || 'Data sets',
+ dimensionName: 'dx',
+ objectName: 'ds'
+ },
+ eventDataItem: {
+ value: 'eventDataItem',
+ name: NS.i18n.event_data_items || 'Event data items',
+ dimensionName: 'dx',
+ objectName: 'di'
+ },
+ programIndicator: {
+ value: 'programIndicator',
+ name: NS.i18n.program_indicators || 'Program indicators',
+ dimensionName: 'dx',
+ objectName: 'pi'
+ },
+ period: {
+ value: 'period',
+ name: NS.i18n.periods || 'Periods',
+ dimensionName: 'pe',
+ objectName: 'pe'
+ },
+ fixedPeriod: {
+ value: 'periods'
+ },
+ relativePeriod: {
+ value: 'relativePeriods'
+ },
+ organisationUnit: {
+ value: 'organisationUnits',
+ name: NS.i18n.organisation_units || 'Organisation units',
+ dimensionName: 'ou',
+ objectName: 'ou'
+ },
+ dimension: {
+ value: 'dimension'
+ //objectName: 'di'
+ },
+ value: {
+ value: 'value'
+ }
+ },
+ root: {
+ id: 'root'
+ },
+ style: {
+ 'normal': 'NORMAL',
+ 'compact': 'COMPACT',
+ 'xcompact': 'XCOMPACT',
+ 'comfortable': 'COMFORTABLE',
+ 'xcomfortable': 'XCOMFORTABLE',
+ 'small': 'SMALL',
+ 'xsmall': 'XSMALL',
+ 'large': 'LARGE',
+ 'xlarge': 'XLARGE',
+ 'space': 'SPACE',
+ 'comma': 'COMMA',
+ 'none': 'NONE',
+ 'default_': 'DEFAULT'
+ }
+ };
+
+ (function() {
+ var dimConf = me.finals.dimension;
+
+ dimConf.objectNameMap = {};
+ dimConf.objectNameMap[dimConf.data.objectName] = dimConf.data;
+ dimConf.objectNameMap[dimConf.indicator.objectName] = dimConf.indicator;
+ dimConf.objectNameMap[dimConf.dataElement.objectName] = dimConf.dataElement;
+ dimConf.objectNameMap[dimConf.operand.objectName] = dimConf.operand;
+ dimConf.objectNameMap[dimConf.dataSet.objectName] = dimConf.dataSet;
+ dimConf.objectNameMap[dimConf.category.objectName] = dimConf.category;
+ dimConf.objectNameMap[dimConf.period.objectName] = dimConf.period;
+ dimConf.objectNameMap[dimConf.organisationUnit.objectName] = dimConf.organisationUnit;
+ dimConf.objectNameMap[dimConf.dimension.objectName] = dimConf.dimension;
+ })();
+
+ this.period = {
+ periodTypes: [
+ {id: 'Daily', name: NS.i18n.daily},
+ {id: 'Weekly', name: NS.i18n.weekly},
+ {id: 'Monthly', name: NS.i18n.monthly},
+ {id: 'BiMonthly', name: NS.i18n.bimonthly},
+ {id: 'Quarterly', name: NS.i18n.quarterly},
+ {id: 'SixMonthly', name: NS.i18n.sixmonthly},
+ {id: 'SixMonthlyApril', name: NS.i18n.sixmonthly_april},
+ {id: 'Yearly', name: NS.i18n.yearly},
+ {id: 'FinancialOct', name: NS.i18n.financial_oct},
+ {id: 'FinancialJuly', name: NS.i18n.financial_july},
+ {id: 'FinancialApril', name: NS.i18n.financial_april}
+ ],
+ relativePeriods: []
+ };
+
+ this.valueType = {
+ numericTypes: ['NUMBER','UNIT_INTERVAL','PERCENTAGE','INTEGER','INTEGER_POSITIVE','INTEGER_NEGATIVE','INTEGER_ZERO_OR_POSITIVE'],
+ textTypes: ['TEXT','LONG_TEXT','LETTER','PHONE_NUMBER','EMAIL'],
+ booleanTypes: ['BOOLEAN','TRUE_ONLY'],
+ dateTypes: ['DATE','DATETIME'],
+ aggregateTypes: ['NUMBER','UNIT_INTERVAL','PERCENTAGE','INTEGER','INTEGER_POSITIVE','INTEGER_NEGATIVE','INTEGER_ZERO_OR_POSITIVE','BOOLEAN','TRUE_ONLY']
+ };
+
+ this.layout = {
+ west_width: 424,
+ west_fieldset_width: 420,
+ west_width_padding: 2,
+ west_fill: 2,
+ west_fill_accordion_indicator: 81,
+ west_fill_accordion_dataelement: 81,
+ west_fill_accordion_dataset: 56,
+ west_fill_accordion_eventdataitem: 81,
+ west_fill_accordion_programindicator: 81,
+ west_fill_accordion_period: 310,
+ west_fill_accordion_organisationunit: 58,
+ west_fill_accordion_group: 31,
+ west_maxheight_accordion_indicator: 400,
+ west_maxheight_accordion_dataelement: 400,
+ west_maxheight_accordion_dataset: 400,
+ west_maxheight_accordion_period: 513,
+ west_maxheight_accordion_organisationunit: 900,
+ west_maxheight_accordion_group: 340,
+ west_maxheight_accordion_options: 449,
+ west_scrollbarheight_accordion_indicator: 300,
+ west_scrollbarheight_accordion_dataelement: 300,
+ west_scrollbarheight_accordion_dataset: 300,
+ west_scrollbarheight_accordion_period: 450,
+ west_scrollbarheight_accordion_organisationunit: 450,
+ west_scrollbarheight_accordion_group: 300,
+ east_tbar_height: 31,
+ east_gridcolumn_height: 30,
+ form_label_width: 55,
+ window_favorite_ypos: 100,
+ window_confirm_width: 250,
+ window_share_width: 500,
+ grid_favorite_width: 420,
+ grid_row_height: 27,
+ treepanel_minheight: 135,
+ treepanel_maxheight: 400,
+ treepanel_fill_default: 310,
+ treepanel_toolbar_menu_width_group: 140,
+ treepanel_toolbar_menu_width_level: 120,
+ multiselect_minheight: 100,
+ multiselect_maxheight: 250,
+ multiselect_fill_default: 345,
+ multiselect_fill_reportingrates: 315
+ };
+
+ this.style = {
+ displayDensity: {},
+ fontSize: {},
+ digitGroupSeparator: {}
+ };
+
+ (function() {
+ var map = me.finals.style,
+ displayDensity = me.style.displayDensity,
+ fontSize = me.style.fontSize,
+ digitGroupSeparator = me.style.digitGroupSeparator;
+
+ displayDensity[map.xcompact] = '2px';
+ displayDensity[map.compact] = '4px';
+ displayDensity[map.normal] = '6px';
+ displayDensity[map.comfortable] = '8px';
+ displayDensity[map.xcomfortable] = '10px';
+
+ fontSize[map.xsmall] = '9px';
+ fontSize[map.small] = '10px';
+ fontSize[map.normal] = '11px';
+ fontSize[map.large] = '12px';
+ fontSize[map.xlarge] = '14px';
+
+ digitGroupSeparator[map.space] = ' ';
+ digitGroupSeparator[map.comma] = ',';
+ digitGroupSeparator[map.none] = '';
+ })();
+
+ this.url = {
+ analysisFields: [
+ '*',
+ 'program[id,name]',
+ 'programStage[id,name]',
+ 'columns[dimension,filter,items[id,' + init.namePropertyUrl + ']]',
+ 'rows[dimension,filter,items[id,' + init.namePropertyUrl + ']]',
+ 'filters[dimension,filter,items[id,' + init.namePropertyUrl + ']]',
+ '!lastUpdated',
+ '!href',
+ '!created',
+ '!publicAccess',
+ '!rewindRelativePeriods',
+ '!userOrganisationUnit',
+ '!userOrganisationUnitChildren',
+ '!userOrganisationUnitGrandChildren',
+ '!externalAccess',
+ '!access',
+ '!relativePeriods',
+ '!columnDimensions',
+ '!rowDimensions',
+ '!filterDimensions',
+ '!user',
+ '!organisationUnitGroups',
+ '!itemOrganisationUnitGroups',
+ '!userGroupAccesses',
+ '!indicators',
+ '!dataElements',
+ '!dataElementOperands',
+ '!dataElementGroups',
+ '!dataSets',
+ '!periods',
+ '!organisationUnitLevels',
+ '!organisationUnits'
+ ]
+ };
+ };
+
+ NS.conf = new conf();
+ })();
+
+ // api
+
+
+
+
+
+});