| | |
| | | define([ |
| | | 'app' |
| | | ], function (app) { |
| | | app.factory("CompanyField", ['$http', '$log', function ($http, $log) { |
| | | app.factory("CompanyField", ['$http', '$log', '$upload', function ($http, $log, $upload) { |
| | | return { |
| | | find : function (conditions) { |
| | | return $http.post("companyField/find", conditions).then(function (response) { |
| | |
| | | return response; |
| | | }); |
| | | }, |
| | | importExcel : function (conditions) { |
| | | conditions.url = "companyField/importExcel"; |
| | | return $upload.upload(conditions).then(function (response) { |
| | | $log.debug("업체 Import 결과 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | removes : function (conditions) { |
| | | return $http.post("companyField/remove", conditions).then(function (response) { |
| | | $log.debug("업체 삭제 결과 : ", response); |