cellComment.svc.js 1.41 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12 13
// web service proxy for role
webservices.factory('cellCommentService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        getCellComments: function (cellDataId) {
            return $http.get('/CellComment/List?cellDataId=' + cellDataId, apiConfig.createVat());
        },
        addCellComment: function (cellComment) {
            return $http.post('/CellComment/Add', cellComment, apiConfig.createVat());
        },
        deleteCellComment: function (commentId) {
            return $http.post('/CellComment/Delete/' + commentId, {}, apiConfig.createVat());
        },
kevin's avatar
kevin committed
14
        getCellInformation: function (data) {
kevin's avatar
#  
kevin committed
15
            return $http.get('/CellComment/getCellInformation?sql=' + data.relSql, apiConfig.createVat());
kevin's avatar
kevin committed
16
        },
kevin's avatar
kevin committed
17 18
        loadEntryListDataList: function (data) {
            return $http.post('/CellComment/loadEntryListDataList', data, apiConfig.createVat());
kevin's avatar
kevin committed
19 20
        },
        updateAdjust : function (data) {
kevin's avatar
kevin committed
21
            return $http.post('/CellComment/updateAdjust', JSON.stringify(data), apiConfig.createVat({contentType: 'application/json;charset=UTF-8'}));
kevin's avatar
#  
kevin committed
22
        },
kevin's avatar
kevin committed
23 24
        selectEntryLog : function (code, id ) {
            return $http.get('/CellComment/selectEntryLog?code=' + code +'&id=' +id, apiConfig.createVat());
kevin's avatar
#  
kevin committed
25 26 27 28
        },
        addLog :function(data){
            return $http.post('/CellComment/addLog', data, apiConfig.createVat());
    }
eddie.woo's avatar
eddie.woo committed
29 30
    };
}]);