OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2022-02-28 a11dc4e377730f1ce08bc7210366c21e2833bf05
src/main/webapp/scripts/components/ispField/ispField.service.js
@@ -6,13 +6,44 @@
define([
    'app'
], function (app) {
    app.factory("IspField", ['$http', '$log', function ($http, $log) {
    app.factory("IspField", ['$http', '$log', '$upload', function ($http, $log, $upload) {
        return {
            find : function (conditions) {
                return $http.post("IspField/find", conditions).then(function (response) {
                return $http.post("ispField/find", conditions).then(function (response) {
                    $log.debug("ISP 필드 목록 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("ispField/add", conditions).then(function (response) {
                    $log.debug("IspField 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("ispField/modify", conditions).then(function (response) {
                    $log.debug("IspField 수정 결과 : ", response);
                    return response;
                });
            },
            detail : function (conditions) {
                return $http.post("ispField/detail", conditions).then(function (response) {
                    $log.debug("IspField 상세 : ", response);
                    return response;
                });
            },
            removes : function (conditions) {
                return $http.post("ispField/remove", conditions).then(function (response) {
                    $log.debug("IspField 삭제 결과 : ", response);
                    return response;
                });
            },
            importExcel : function (conditions) {
                conditions.url = "ispField/importExcel";
                return $upload.upload(conditions).then(function (response) {
                    $log.debug("ispField Import 결과 : ", response);
                    return response;
                });
            }
        }
    }