| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501 |
- //Setting up the application services.....
- function transformToInteger(data, headersGetter, status) {
- return {value:parseInt(data)}
- }
- function transformToString(data, headersGetter, status) {
- return {value:data.substring(1,data.length-1)} // strips the quotes
- }
- function transformToBoolean(data, headersGetter, status){
- return {value: data=="true"};
- }
- angular.module('services', ['ngResource'])
- // Define the API
- .factory('UserManager', function($resource,$q) {
- var data = $resource(AppConfig.url + 'user/:action/:user', {}, {
- GetUserInfo: {method:'GET', params:{action:'userinfo'}, cache:false},
- Login: {method: 'POST', params: {action: 'login'}, cache:false},
- AutenticationGroups: {method: 'POST', params:{action: 'authentication_groups'}, isArray: true, cache:false},
- Logout: {method: 'GET', params: {action: 'logout'}, cache:false},
- AppVariables: {method:'GET', params:{action:'appvariables'}, cache:false},
- ValidSession: {method:'GET',params:{action:'validSession'},cache:false,transformResponse: transformToBoolean},
- List: {
- method:'GET',
- url:AppConfig.url + 'user/:action/:start-:size?orderField=:orderField&filter=:filter',
- params:{action:'list',start:'@start',size:'@size', orderField:'@orderField', filter:'@filter'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- New: {
- method:'GET',
- url:AppConfig.url + 'user/:action',
- params:{action:'new'},
- hasBody: true,
- cache:false,
- isArray:false
- },
- Count: {
- method:'GET',
- url:AppConfig.url + 'user/:action?filter=:filter',
- params:{action:'count', filter:'@filter'},
- isArray:false,
- cache:false,
- transformResponse: transformToInteger
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'user/:action/:id',
- params:{action: 'delete', id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
- }
- });
- return data;
- })
- .factory('ComboManager', function($resource){
- var data = $resource(AppConfig.url + 'combo/:type/:tipologia', {}, {
- List: {method:'GET', isArray: true, cache:false},
- Count: {method:'GET', url: AppConfig.url + 'combo/:type/count', params:{tipologia:'@tipologia', type:'@type'}, isArray:false, cache:false,
- transformResponse: transformToInteger},
- CausaliEsiti:{
- method:'GET',
- url: AppConfig.url + 'combo/causaliEsiti',
- isArray: true,
- cache: false
- }
- });
- return data;
- })
- .factory('DisposizioniRid', function($resource) {
- var data = $resource(AppConfig.url + 'DisposizioniRid/:action', {}, {
- Get: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniRid/:id',
- params:{id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
-
- },
- Count: {
- method:'POST',
- params: {action: 'count'},
- isArray:false,
- hasBody: true,
- cache:false,
- transformResponse: transformToInteger
- },
- List: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniRid/:action/:start-:size',
- params:{action:'list',start:'@start',size:'@size'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- Export: {method:'POST', url:AppConfig.url + 'DisposizioniRid/:action',
- params:{action:'export',start:'@start',size:'@size', ids:'@ids'},
- cache:false,
- isArray:false,
- tresponseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
- },
- ExportFiltered: {method:'POST', url:AppConfig.url + 'DisposizioniRid/:action',
- params:{action:'exportFiltered', ids:'@ids'},
- cache:false,
- isArray:false,
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
- },
- Print: {method:'POST', url:AppConfig.url + 'DisposizioniRid/:action?label=:label',
- params:{action:'print', label:'@label'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- PrintFiltered: {method:'POST', url:AppConfig.url + 'DisposizioniRid/:action?label=:label',
- params:{action:'printFiltered', label:'@label'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
-
- },
- MassDelete: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniRid/:action/',
- params:{action:'massDelete'},
- hasBody: true,
- cache:false,
- isArray:false,
- transformResponse: transformToBoolean
- },
- LogStati: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniRid/:action/:id',
- params:{action:'logStati', id:'@id'},
- cache:false,
- isArray:true
- },
- LogVariazioni: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniRid/:action/:id',
- params:{action:'logVariazioni', id:'@id'},
- cache:false,
- isArray:true
- },
- Filter: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniRid/:action/:start-:size?orderField=:orderField',
- params:{action:'filter',start:'@start',size:'@size',orderField:'@orderField'},
- cache:false,
- hasBody: true,
- isArray:true
- },
- CountFiltered: {
- method:'POST',
- params: {action: 'countfilter'},
- isArray:false,
- hasBody: true,
- cache:false,
- transformResponse: transformToInteger
- }
- });
- return data;
- })
- .factory('DisposizioniAea', function($resource) {
- var data = $resource(AppConfig.url + 'DisposizioniAea/:action', {}, {
- Get: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniAea/:id',
- params:{id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
-
- },
- Count: {
- method:'POST',
- params: {action: 'count'},
- isArray:false,
- hasBody: true,
- cache:false,
- transformResponse: transformToInteger
- },
- List: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniAea/:action/:start-:size',
- params:{action:'list',start:'@start',size:'@size'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- Export: {method:'POST', url:AppConfig.url + 'DisposizioniAea/:action',
- params:{action:'export',start:'@start',size:'@size'},
- cache:false,
- isArray:false,
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
- },
- ExportFiltered: {method:'POST', url:AppConfig.url + 'DisposizioniAea/:action',
- params:{action:'exportFiltered'},
- cache:false,
- isArray:false,
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
- },
- Print: {method:'POST', url:AppConfig.url + 'DisposizioniAea/:action',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- PrintFiltered: {method:'POST', url:AppConfig.url + 'DisposizioniAea/:action',
- params:{action:'printFiltered'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
-
- },
- MassDelete: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniAea/:action/',
- params:{action:'massDelete'},
- hasBody: true,
- cache:false,
- isArray:false,
- transformResponse: transformToBoolean
- },
- LogStati: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniAea/:action/:id',
- params:{action:'logStati', id:'@id'},
- cache:false,
- isArray:true
- },
- LogVariazioni: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniAea/:action/:id',
- params:{action:'logVariazioni', id:'@id'},
- cache:false,
- isArray:true
- },
- Filter: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniAea/:action/:start-:size?orderField=:orderField',
- params:{action:'filter',start:'@start',size:'@size',orderField:'@orderField'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- CountFiltered: {
- method:'POST',
- params: {action: 'countfilter'},
- isArray:false,
- cache:false,
- hasBody: true,
- transformResponse: transformToInteger
- }
- });
- return data;
- })
- .factory('DisposizioniBonifici', function($resource) {
- var data = $resource(AppConfig.url + 'DisposizioniBonifici/:action', {}, {
- Get: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniBonifici/:id',
- params:{id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
-
- },
- Count: {
- method:'POST',
- params: {action: 'count'},
- isArray:false,
- hasBody: true,
- cache:false,
- transformResponse: transformToInteger
- },
- List: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:start-:size',
- params:{action:'list',start:'@start',size:'@size'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- Export: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniBonifici/:action',
- params:{action:'export'},
- cache:false,
- isArray:false,
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
- },
- ExportFiltered: {method:'POST', url:AppConfig.url + 'DisposizioniBonifici/:action',
- params:{action:'exportFiltered'},
- cache:false,
- isArray:false,
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
- },
- Filter: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:start-:size?orderField=:orderField',
- params:{action:'filter',start:'@start',size:'@size',orderField:'@orderField'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- CountFiltered: {
- method:'POST',
- params: {action: 'countfilter'},
- isArray:false,
- cache:false,
- hasBody: true,
- transformResponse: transformToInteger
- },
- Print: {method:'POST', url:AppConfig.url + 'DisposizioniBonifici/:action',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- PrintFiltered: {method:'POST', url:AppConfig.url + 'DisposizioniBonifici/:action',
- params:{action:'printFiltered'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
-
- },
- StampaContabile:{
- Method:'GET',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:id',
- params:{id:'@id', action:'stampaContabile'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- StampaRichiamo:{
- method:'POST',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:id',
- params:{id:'@id', action:'stampaRichiamo'},
- cache:false,
- hasBody: true,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- MassDelete: {
- method:'POST',
- url:AppConfig.url + 'DisposizioniBonifici/:action/',
- params:{action:'massDelete'},
- hasBody: true,
- cache:false,
- isArray:false,
- transformResponse: transformToBoolean
- },
- LogStati: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:id',
- params:{action:'logStati', id:'@id'},
- cache:false,
- isArray:true
- },
- LogVariazioni: {
- method:'GET',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:id',
- params:{action:'logVariazioni', id:'@id'},
- cache:false,
- isArray:true
- },
- GeneraRichiamo:{
- method:'GET',
- url:AppConfig.url + 'DisposizioniBonifici/:action/:idDistinta/:idDisposizione',
- params:{action:'generaRichiamo', idDistinta:'@idDistinta', idDisposizione:'@idDisposizione'},
- cache: false,
- isArray: false,
- transformResponse: transformToInteger
- }
- });
- return data;
- })
- .factory('DelegheSepa', function($resource) {
- var data = $resource(AppConfig.url + 'delegheSepa/:action', {}, {
- Count: {
- method:'POST',
- params: {action: 'count'},
- isArray:false,
- hasBody: true,
- cache:false,
- transformResponse: transformToInteger
- },
- List: {
- method:'POST',
- url:AppConfig.url + 'delegheSepa/:action/:start-:size',
- params:{action:'list',start:'@start',size:'@size'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- Print: {method:'POST', url:AppConfig.url + 'delegheSepa/:action',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- Export: {method:'POST', url:AppConfig.url + 'delegheSepa/:action',
- params:{action:'export'},
- cache:false,
- isArray:false,
- tresponseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'text/csv'
- });
- }
- return {
- response: pdf
- };
- }
-
- },
- })
- return data;
- })
- .factory('Banche', function($resource) {
- var data = $resource(AppConfig.url + 'abi/:action', {}, {
- AutocompleteIstituti: {
- method:'GET',
- url:AppConfig.url + 'abi/autocomplete/:filter',
- params:{filter:'@filter'},
- cache:false,
- isArray:true
- },
- GetByAbi: {
- method:'GET',
- url:AppConfig.url + 'abi/:action/:abi',
- params:{action: 'byAbi', abi:'@abi'},
- cache:false,
- isArray:false
- },
- FilterFiliali: {
- method:'POST',
- url:AppConfig.url + 'abi/filiali/',
- hasBody: true,
- cache:false,
- isArray: true
- },
- SaveBanca: {
- method:'POST',
- params:{action: 'saveBanca'},
- hasBody: true,
- cache:false,
- transformResponse: transformToString
- },
- NuovaBanca:{
- method:'GET',
- params:{action: 'nuovaBanca'},
- hasBody: true,
- cache:false
- },
- NuovoSportello:{
- method:'GET',
- params:{action: 'nuovaFiliale'},
- hasBody: true,
- cache:false,
- isArray: false
- },
- SaveFiliale: {
- method:'POST',
- params:{action: 'saveFiliale'},
- hasBody: true,
- cache:false,
- transformResponse: transformToString
- },
- EliminaFiliale:{
- method:'GET',
- url:AppConfig.url + 'abi/:action/:id',
- params:{action: 'eliminaFiliale', id:'@id'},
- cache:false,
- transformResponse: transformToString
- }
-
-
- });
- return data;
- })
- .factory('Deleghe', function($resource) {
- var data = $resource(AppConfig.url + 'deleghe/:codiceClienteDebitore/:action', {}, {
- ListAea: {
- method:'POST',
- url:AppConfig.url + 'deleghe/:action/:codiceClienteDebitore',
- params:{action:'listAea', codiceClienteDebitore: '@codiceClienteDebitore'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- ListRid: {
- method:'POST',
- url:AppConfig.url + 'deleghe/:action/:codiceClienteDebitore',
- params:{action:'listRid', codiceClienteDebitore: '@codiceClienteDebitore'},
- hasBody: true,
- cache:false,
- isArray:true
- }
- });
- return data;
- })
- .factory('LogSicuraScheduler', function($resource) {
- var data = $resource(AppConfig.url + 'logSicura/:action?inputFile=:inputFile', {}, {
- Count: {
- method:'POST',
- params: {action: 'count', inputFile: '@inputFile'},
- isArray:false,
- cache:false,
- hasBody: true,
- transformResponse: transformToInteger
- },
- List: {
- method:'POST',
- url:AppConfig.url + 'logSicura/:action/:start-:size?inputFile=:inputFile&orderBy=:orderBy',
- params:{action:'list',start:'@start',size:'@size', inputFile: '@inputFile', orderBy: '@orderBy'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- LogDetail: {
- method:'GET',
- url:AppConfig.url + 'logSicura/:action/:id',
- params:{action:'details',id:'@id'},
- hasBody: true,
- cache:false,
- transformResponse: transformToString
- }
- });
- return data;
- })
- .factory('PianiEstrazioneDistinte', function($resource) {
- var data = $resource(AppConfig.url + 'pianiEstrazione/:action?orderBy=:orderBy', {}, {
- List: {
- method:'GET',
- params:{action:'list',orderBy: '@orderBy'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- Save: {
- method:'POST',
- url: AppConfig.url + 'pianiEstrazione',
- hasBody: true,
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- New: {
- method:'GET',
- url:AppConfig.url + 'pianiEstrazione/:action',
- params:{action:'new'},
- cache:false,
- isArray: false
- },
- Delete: {
- method:'DELETE',
- url:AppConfig.url + 'pianiEstrazione/:id',
- params:{id:'@id'},
- cache:false,
- isArray: false,
- transformResponse: transformToInteger
- },
- Istruzioni: {
- method:'GET',
- url:AppConfig.url + 'pianiEstrazione/:action/:id',
- params:{action:'istruzioni',id:'@id'},
- hasBody: true,
- cache:false,
- isArray: true
- },
- NewIstruzione: {
- method:'GET',
- url:AppConfig.url + 'pianiEstrazione/:action/new/:id',
- params:{action:'istruzioni',id:'@id'},
- hasBody: true,
- cache:false,
- isArray: false
- }
- ,
- Exec: {
- method:'GET',
- url:AppConfig.url + 'pianiEstrazione/:action/:id',
- params:{action:'exec',id:'@id'},
- hasBody: true,
- cache:false,
- isArray: false,
- transformResponse: transformToString
- }
- });
- return data;
- })
- .factory('FunzioniOrdinanti', function($resource) {
- var data = $resource(AppConfig.url + 'funzioniOrdinanti/:action', {}, {
- List: {
- method:'GET',
- params:{action:'list',orderBy: '@orderBy', filter:'@filter'},
- cache:false,
- isArray:true
- },
- ListItems: {
- method:'GET',
- url:AppConfig.url + 'funzioniOrdinanti/:action/:start-:size',
- params:{action:'list',orderBy: '@orderBy', filter:'@filter'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- params:{action:'count',filter:'@filter'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- save: {
- method:'POST',
- cache:false,
- isArray:false,
- transformResponse: transformToString
- },
- New: {
- method:'GET',
- params:{action:'new'},
- cache:false,
- isArray:false,
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'funzioniOrdinanti/:id',
- params:{id:'@id'},
- cache:false,
- isArray:false,
- },
- ListForUser: {
- method:'GET',
- params:{action:'utente',orderBy:'FunzioneOrdinante'},
- cache:false,
- isArray: true
- },
- ListAllForUser: {
- method:'GET',
- params:{action:'all',orderBy:'FunzioneOrdinante'},
- cache:false,
- isArray: true
- }
-
- });
- return data;
- })
- .factory('ProvenienzaDisposizioni', function($resource) {
- var data = $resource(AppConfig.url + 'provenienza/:type', {}, {
- List: {
- method:'GET',
- params:{type: '@type'},
- cache:false,
- isArray:true
- },
- });
- return data;
- })
- .factory('Conti', function($resource) {
- var data = $resource(AppConfig.url + 'conti/:action', {}, {
- List: {
- method:'POST',
- params:{action:'list'},
- isBody: true,
- cache:false,
- isArray:true
- }
- });
- return data;
- })
- .factory('Remuneration', function($resource) {
- var data = $resource(AppConfig.url + 'remuneration/:action', {}, {
- HeaderCount: {
- method:'GET',
- params:{action:'headercount'},
- cache:false,
- transformResponse: transformToInteger
- },
- Header: {
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:start-:size?orderBy=:orderBy',
- params:{action:'header',start:'@start',size:'@size',orderBy: '@orderBy'},
- cache:false,
- isArray:true
- },
- ExportMessaggi:{
- method:'GET',
- url: AppConfig.url + 'remuneration/:action/:idremuneration',
- params:{action:'exportMessaggi', idremuneration:'@idremuneration'},
- cache:false,
- isArray:false,
- transformResponse: function (data) {
- return {
-
- response: data //new Blob([data], {type: 'text/csv'})
- }
- }
- },
- ProvisioningCount:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id',
- params:{action:'provisioningcount',id:'@id'},
- cache:false,
- transformResponse: transformToInteger
- },
- Provisioning:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id/:start-:size?orderBy=:orderBy',
- params:{action:'provisioning',id:'@id', start:'@start',size:'@size',orderBy: '@orderBy'},
- cache:false,
- isArray:true
- },
- DetailCount:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id',
- params:{action:'detailCount',id:'@id'},
- cache:false,
- transformResponse: transformToInteger
- },
- Detail:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id/:start-:size?orderBy=:orderBy',
- params:{action:'detail',id:'@id', start:'@start',size:'@size',orderBy: '@orderBy'},
- cache:false,
- isArray:true
- },
- GeneraRichiestaDettagli:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id',
- params:{action:'generaRichiestaDettagli', id:'@id'},
- isArray:false,
- cache:false,
- transformResponse: transformToString
- },
- GeneraRichiestaDettagliTrimestre:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id/:idDettaglio',
- params:{action:'generaRichiestaDettagli', id:'@id', idDettaglio:'@idDettaglio'},
- isArray:false,
- cache:false,
- transformResponse: transformToString
- },
- QuadraRemuneration:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id',
- params:{action:'quadra', id:'@id'},
- isArray:false,
- cache:false,
- transformResponse: transformToString
- },
- QuadraDetail:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action/:id/:idDettaglio',
- params:{action:'quadra', id:'@id', idDettaglio:'@idDettaglio'},
- isArray:false,
- cache:false,
- transformResponse: transformToString
- },
- CodiciSia:{
- method:'GET',
- url:AppConfig.url + 'remuneration/:action',
- params:{action:'codiciSia'},
- cache:false,
- isArray: true
- },
- PrintPrevisioning: {method:'POST', url:AppConfig.url + 'remuneration/:action/:id',
- params:{action:'print',id:'@id'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- PrintDetails: {method:'POST', url:AppConfig.url + 'remuneration/:action/:id',
- params:{action:'printDetails',id:'@id'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- });
- return data;
- })
- .factory('DistinteBanca', function($resource) {
- var data = $resource(AppConfig.url + 'distinte/:action', {}, {
- Count:{
- method:'POST',
- url:AppConfig.url + 'distinte/:action',
- params:{action:'count'},
- hasBody: true,
- cache:false,
- transformResponse: transformToInteger
- },
- List: {
- method:'POST',
- url:AppConfig.url + 'distinte/:action/:start-:size?orderBy=:orderBy',
- params:{action:'list',start:'@start',size:'@size',orderBy: '@orderBy'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- FirmaDistinta: {
- method:'GET',
- url:AppConfig.url + 'distinte/:action/:tipoFirma/:generaFlusso/:idDistintaBanca',
- params:{action:'firmaDistinta',tipoFirma:'@tipoFirma',idDistintaBanca:'@idDistintaBanca'},
- cache:false,
- isArray:false
- },
- LogStati: {
- method:'GET',
- url:AppConfig.url + 'distinte/:action/:id',
- params:{action:'logStati', id:'@id', generaFlusso:'@generaFlusso', idDistintaBanca:'@idDistintaBanca'},
- cache:false,
- isArray:true
- },
- AnnullaDistinta: {
- method:'POST',
- params:{action:'annulla'},
- hasBody: true,
- cache:false,
- isArray: false
- },
- ModificaContoDistinta: {
- method:'POST',
- params:{action:'modificaConto'},
- hasBody: true,
- cache:false,
- isArray: false
- },
- ModificaDataValuta: {
- method:'POST',
- params:{action:'modificaDataValuta'},
- hasBody: true,
- cache:false,
- isArray: false
- },
- ModificaDataEsecuzione: {
- method:'POST',
- params:{action:'modificaDataEsecuzione'},
- hasBody: true,
- cache:false,
- isArray: false
- },
- ValidaEGeneraFlusso: {
- method:'GET',
- url:AppConfig.url + 'distinte/:action/:id',
- params:{action:'validaEGenera', id:'@id'},
- isArray: false,
- cache:false,
- transformResponse: transformToString
- },
- GeneraFlusso: {
- method:'GET',
- url:AppConfig.url + 'distinte/:action/:id',
- params:{action:'genera', id:'@id'},
- isArray: false,
- cache:false,
- transformResponse: transformToString
- },
- EsportaTASC: {
- method:'POST',
- url:AppConfig.url + 'distinte/:action',
- params:{action:'esportaTASC'},
- hasBody: true,
- cache: false,
- transformResponse: function (data) {
- return {
-
- response: data //new Blob([data], {type: 'text/csv'})
- }
- }
- },
- Print: {method:'POST', url:AppConfig.url + 'distinte/:action',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- },
- ForzaturaInviata: {
- method:'GET',
- url:AppConfig.url + 'distinte/forzaturaInviata/:id',
- params:{id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- }
- });
- return data;
- })
- .factory('DistintaFlussiInput', function($resource) {
- var data = $resource(AppConfig.url + 'DistintaFlussiInput/', {}, {
- Count:{
- method:'GET',
- url:AppConfig.url + 'DistintaFlussiInput/:action',
- params:{action:'count'},
- cache:false,
- transformResponse: transformToInteger
- },
- List: {
- method:'GET',
- url:AppConfig.url + 'DistintaFlussiInput/:action/:start-:size?orderBy=:orderBy',
- params:{action:'list',start:'@start',size:'@size',orderBy: '@orderBy'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- Annulla: {
- method: 'GET',
- url:AppConfig.url + 'DistintaFlussiInput/:action/:id',
- params:{action:'annulla', id:'@id'},
- cache:false,
- transformResponse: transformToString
- },
- LogStati: {
- method:'GET',
- url:AppConfig.url + 'DistintaFlussiInput/:action/:id',
- params:{action:'logStati', id:'@id'},
- cache:false,
- isArray:true
- },
- Print: {method:'POST', url:AppConfig.url + 'DistintaFlussiInput/:action',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- }
- });
- return data;
- })
- .factory('LogModifiche', function($resource) {
- var data = $resource(AppConfig.url + 'logModifiche/:idDisposizione', {}, {
- SaveAll: {
- method:'POST',
- url:AppConfig.url + 'logModifiche/:idDisposizione',
- hasBody: true,
- cache:false,
- isArray:true
- }
- });
- return data;
- })
- .factory('DelegatoFirma', function($resource) {
- var data = $resource(AppConfig.url + 'delegato/:action', {}, {
- List: {
- method:'GET',
- params:{action: 'list'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- SetStatus: {
- method:'GET',
- url:AppConfig.url + 'delegato/:action/:id/:status',
- params:{action: 'setStatus', id:'@id', status:'@status'},
- hasBody: true,
- cache:false,
- isArray:true
-
- }
- });
- return data;
- })
- .factory('PianoEstrazioneTipoFlusso', function($resource) {
- var data = $resource(AppConfig.url + 'tipoFlusso/:action', {}, {
- List: {
- method:'GET',
- url: AppConfig.url + 'tipoFlusso/:action/:id',
- params:{action: 'list', id:'@id'},
- hasBody: true,
- cache:false,
- isArray:true
- },
- New: {
- method:'GET',
- url: AppConfig.url + 'tipoFlusso/:action/:id',
- params:{action: 'new', id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
- },
- Save: {
- method:'POST',
- url: AppConfig.url + 'tipoFlusso/:action/:idPiano',
- params:{action: 'save', idPiano:'@idPiano'},
- hasBody: true,
- cache:false,
- isArray:false
- }
- ,
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'tipoFlusso/:action/:idPiano/:id',
- params:{action: 'delete', idPiano:'@idPiano', id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
- }
- });
- return data;
- })
- .factory('Tipologie', function($resource) {
- var data = $resource(AppConfig.url + 'tipologie/:action', {}, {
- List: {
- method:'GET',
- params:{action:'list'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- params:{action:'count',filter:'@filter'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- }
- });
- return data;
- })
- .factory('Firme', function($resource) {
- var data = $resource(AppConfig.url + 'firme/:action', {}, {
- List: {
- method:'GET',
- params:{action:'list'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- params:{action:'count',filter:'@filter'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- New: {
- method:'GET',
- params:{action: 'new'},
- hasBody: true,
- cache:false,
- isArray:false
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'firme/:id',
- params:{id: '@id'},
- hasBody: true,
- cache:false,
- isArray:false
- }
- });
- return data;
- })
- .factory('FlussiNonSeda', function($resource) {
- var data = $resource(AppConfig.url + 'flussiNonSeda/:action', {}, {
- List: {
- method:'GET',
- params:{action:'list'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- params:{action:'count',filter:'@filter'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- New: {
- method:'GET',
- params:{action: 'new'},
- hasBody: true,
- cache:false,
- isArray:false
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'flussiNonSeda/:id',
- params:{id: '@id'},
- hasBody: true,
- cache:false,
- isArray:false
- }
- });
- return data;
- })
- .factory('Ordinanti', function($resource) {
- var data = $resource(AppConfig.url + 'ordinanti/:action', {}, {
- List: {
- url: AppConfig.url + 'ordinanti/:action?filter=:filter',
- method:'GET',
- params:{action:'list'},
- cache:false,
- isArray:true
- },
- Count: {
- url: AppConfig.url + 'ordinanti/:action?filter=:filter',
- method:'GET',
- params:{action:'count'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- New: {
- method:'GET',
- params:{action:'new'},
- cache:false,
- isArray:false,
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'ordinanti/:id',
- params:{id:'@id'},
- cache:false,
- isArray:false,
- },
- Print: {
- method:'GET',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- }
- });
- return data;
- })
- .factory('Destinatari', function($resource) {
- var data = $resource(AppConfig.url + 'destinatari/:action/:idOrdinante', {}, {
- List: {
- method:'GET',
- url: AppConfig.url + 'destinatari/:action/:idOrdinante/:start-:size?filter=:filter&orderBy=:orderBy',
- params:{action:'list', idOrdinante: '@idOrdinante'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- url: AppConfig.url + 'destinatari/:action/:idOrdinante?filter=:filter&orderBy=:orderBy',
- params:{action:'count', idOrdinante: '@idOrdinante'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- New: {
- method:'GET',
- params:{action:'new'},
- cache:false,
- isArray:false
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'destinatari/:idDestinatario',
- cache:false,
- isArray:false
- },
- CambioOrdinanti:{
- method:'POST',
- url: AppConfig.url + 'destinatari/:action',
- params:{action:'cambioOrdinante'},
- cache:false,
- isArray:false
- },
- Print:{
- method:'GET',
- params:{action:'print'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var pdf;
- if (data) {
- pdf = new Blob([data], {
- type: 'application/pdf'
- });
- }
- return {
- response: pdf
- };
- }
- }
- });
- return data;
- })
- .factory('ContiDestinatario', function($resource) {
- var data = $resource(AppConfig.url + 'contiDestinatario/:action/:idDestinatario', {}, {
- List: {
- method:'GET',
- url: AppConfig.url + 'contiDestinatario/:action/:idDestinatario/:start-:size?orderBy=:orderBy',
- params:{action:'list', idDestinatario: '@idDestinatario',start:'@start',size:'@size',orderBy: '@orderBy'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- params:{action:'count', idDestinatario: '@idDestinatario'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- Save: {
- method:'POST',
- url: AppConfig.url + 'contiDestinatario',
- cache:false,
- isArray:false,
- transformResponse: transformToString
- },
- New: {
- method:'GET',
- params:{action:'new'},
- cache:false,
- isArray:false
- },
- Delete: {
- method:'DELETE',
- url: AppConfig.url + 'contiDestinatario/:idConto',
- cache:false,
- isArray:false
- }
- });
- return data;
- })
- .factory('ReportPagamenti', function($resource) {
- var data = $resource(AppConfig.url + 'reportPagamenti/:action', {}, {
- Get: {
- method:'GET',
- url:AppConfig.url + 'reportPagamenti/:id',
- params:{id:'@id'},
- hasBody: true,
- cache:false,
- isArray:false
-
- },
- List: {
- method:'GET',
- params:{action:'list'},
- cache:false,
- isArray:true
- },
- Count: {
- method:'GET',
- params:{action:'count',filter:'@filter'},
- cache:false,
- isArray:false,
- transformResponse: transformToInteger
- },
- Download: {method:'GET', url:AppConfig.url + 'reportPagamenti/:action/:id',
- params:{action:'downloadFile', id:'@id'},
- cache:false,
- isArray:false,
- responseType: 'arraybuffer',
- transformResponse: function (data) {
- var txt;
- if (data) {
- txt = new Blob([data], {
- type: 'text/plain'
- });
- }
- return {
- response: txt
- };
- }
- }
- });
- return data;
- })
- .factory('AppParam', function($resource){
- var data = $resource(AppConfig.url + 'param', {}, {
- Get: {method:'GET', isArray: false, cache:false},
- Set: {method:'POST', isArray:false, cache:false},
- });
- return data;
- })
- ;
-
|