'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('azienda');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); $routeProvider.when('/'+entity+'/:options', { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('attivita');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope','ParametersProvider',function($controller,$scope,ParametersProvider) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); var params = ParametersProvider.getParameters(entity); if(params['reportData']) { $scope.cleanInsertPanelData(); $scope.insertPanel.toggleCollapse(false); $scope.editObject['argomento'] = params['reportData'].refererView; if(params['reportData'].descrizione) { $scope.editObject['descrizione'] = params['reportData'].descrizione; } ParametersProvider.unsetParameter(entity,'reportData'); } //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('_view_rail_utente');//DMNK-controller-marker do not edit manually this line'use strict'; angular.module('DMNK.preferenza_utente', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/preferenza_utente', { templateUrl: 'preferenza_utente/preferenza_utente.html', controller: 'preferenza_utenteController' }); }]) .controller('preferenza_utenteController', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('preferenza_utenteStdController', {$scope: $scope})); $scope.init = function() { $scope.stdinit(); } }]);'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('_view_utente');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); $routeProvider.when('/'+entity+'/:options', { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('remote_log');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; } }]); }) ('utente');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('livello_utente');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('contatto');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); $routeProvider.when('/'+entity+'/:options', { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('progetto');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('persona');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope','DataInterface','ViewUtils','ValuesProvider',function($controller,$scope,DataInterface,ViewUtils,ValuesProvider) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); //change ticket stato to in_lavorazione $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_IN_LAVORAZIONE',function(el) { DataInterface.getActionInterface('change_rail_status_to_in_lavorazione').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-wrench', isVisible:function(el) { if( el.stato == 'APERTO' || el.stato == 'RIFIUTATO'){ return true; } return false; } }); //change ticket stato to da_caricare $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_DA_CARICARE',function(el) { DataInterface.getActionInterface('change_rail_status_to_da_caricare').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-upload', isVisible:function(el) { if( el.stato == 'IN_LAVORAZIONE'){ return true; } return false; } }); //change ticket stato to rifiutato $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_RIFIUTATO',function(el) { DataInterface.getActionInterface('change_rail_status_to_rifiutato').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-fast-backward', isVisible:function(el) { if( el.stato == 'DA_VERIFICARE'){ return true; } return false; } }); //change ticket stato to da_verificare $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_DA_VERIFICARE',function(el) { DataInterface.getActionInterface('change_rail_status_to_da_verificare').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-check-circle-o', isVisible:function(el) { if( el.stato == 'DA_CARICARE'){ return true; } return false; } }); //change ticket stato to concluso $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_CONCLUSO',function(el) { DataInterface.getActionInterface('change_rail_status_to_concluso').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-check-circle', isVisible:function(el) { if( el.stato == 'DA_VERIFICARE'){ return true; } return false; } }); //change ticket stato to non_realizzabile $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_NON_REALIZZABILE',function(el) { DataInterface.getActionInterface('change_rail_status_to_non_realizzabile').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-ban', isVisible:function(el) { if( el.stato == 'APERTO' || el.stato == 'RIFIUTATO' || el.stato == 'IN_LAVORAZIONE'){ return true; } return false; } }); //change ticket stato to non_riscontrato $scope.registerMenuAction('content._view_rail.generic.CHANGE_RAIL_STATE_TO_NON_RISCONTRATO',function(el) { DataInterface.getActionInterface('change_rail_status_to_non_riscontrato').performRequest(function(data) { ViewUtils.notify('success',ValuesProvider.get('content._view_rail.generic.CHANGE_RAIL_SUCCESS'),{timer:3000}); $scope.search.doSearch(); }, function(err){ ViewUtils.notify('error', ValuesProvider.get('content.error._view_rail.CHANGE_RAIL_STATUS.message') + ' : ' + err); },{id:el.id}); },{ icon: 'fa-ban', isVisible:function(el) { if( el.stato == 'APERTO' || el.stato == 'RIFIUTATO' || el.stato == 'IN_LAVORAZIONE'){ return true; } return false; } }); } }]); }) ('_view_rail');//DMNK-controller-marker do not edit manually this line'use strict'; (function(entity) { angular.module('DMNK.entities') .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/'+entity, { templateUrl: entity+'/'+entity+'.html', controller: entity+'Controller' }); }]) .controller(entity+'Controller', ['$controller','$scope',function($controller,$scope) { angular.extend(this, $controller('stdController', {$scope: $scope})); $scope.init = function() { //basic view configuration $scope.entity = entity; $scope.stdinit(); //add customization to this view by placing your new variables and functions in $scope.extend, //which is a protected namespace. Using scope may cause conflicts with underlying code. //A declaration should be something like this: $scope.extend.myVar = 'yattaz'; //EXAMPLE MENU ACTION COSTUMIZED // $scope.registerMenuAction('yattaz', function(el) { // console.log(el); // },{icon: 'fa-remove'}); } }]); }) ('gruppo_utente');//DMNK-controller-marker do not edit manually this line