dimension.svc.js 1.77 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
// web service proxy for standard account
webservices.factory('dimensionService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        getDimensionStatics: function (espID, orgID) {
            return $http.get('/dimension/getDimensionStatics', apiConfig.create());
        },
        getAllDimensionOrgList: function () {
            return $http.get('/dimension/getAllDimensionOrgList', apiConfig.create());
        },
        getDimensionList: function () {
            return $http.get('/dimension/getDimensionList', apiConfig.create());
        },
        getDimensionById: function (id) {
            return $http.get('/dimension/getDimensionById?id=' + id, apiConfig.create());
        },
        addDimension: function (model) {
            return $http.post('/dimension/addDimension', model, apiConfig.create());
        },
        updateDimension: function (model) {
            return $http.post('/dimension/updateDimension', model, apiConfig.create());
        },
23 24
        getDimensionValueList: function (dimensionID) {
            return $http.get('/dimension/getDimensionValueList?dimensionID=' + dimensionID, apiConfig.create());
eddie.woo's avatar
eddie.woo committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
        },
        getDevDimensionTreeList: function () {
            return $http.get('/dimension/getDevDimensionTreeList', apiConfig.create({ cache: true }));
        },
        updateDimensionValue: function (model) {
            return $http.post('/dimension/updateDimensionValue', model, apiConfig.create());
        },
        addDimensionValue: function (model) {
            return $http.post('/dimension/addDimensionValue', model, apiConfig.create());
        },
        getAllDimensionList: function () {
            return $http.get('/dimension/getAllDimensionList', apiConfig.create());
        }
    };
}]);