(function() { "use strict"; angular .module('codeAPLEBOX.client.models.webAPI_employee') .factory('webAPIEmployeeService', webAPIEmployeeService); /* @ngInject */ function webAPIEmployeeService($http, appConfig, $location) { // var apiBaseUrl = appConfig.APIBaseURL+":"+appConfig.APIBasePort; // var apiBaseUrl = $location.$$protocol + '://' + $location.$$host; // var baseURL = apiBaseUrl + '/api/APLEBOX/employee/'; const apiBaseUrl = $location.$$protocol + '://' + $location.$$host+":"+$location.$$port; const baseURL = apiBaseUrl + '/api/APLEBOX/EMPLOYEE/'; return { // ======================================================================= // 재고 // ======================================================================= /* start 재고현황 */ setStock: function (param){ return $http.post(baseURL + 'setStock', param); }, updateStock: function (param){ return $http.post(baseURL + 'updateStock', param); }, /* end 재고현황 */ /* start 츨고내역 */ // 출고내역 가져오기 getReleaseList: function (param){ return $http.post(baseURL + 'getReleaseList', param); }, // 출고내역 저장 setRelease: function (param){ return $http.post(baseURL + 'setRelease', param); }, // 출고내역 수정 modifyRelease: function (param){ return $http.post(baseURL + 'modifyRelease', param); }, // 출고내역 삭제 removeRelease: function (param){ return $http.post(baseURL + 'removeRelease', param); }, // 등록여부 확인 checkMassFile: function (param){ return $http.post(baseURL + 'checkMassFile', param); }, // 경매 출고 대량등록 setMassAuction: function (param){ var fd = new FormData(); fd.append('file', param.file); fd.append('dateTime', angular.toJson(param.dateTime)); fd.append('employeeId', angular.toJson(param.employeeId)); fd.append('employeeName', angular.toJson(param.employeeName)); fd.append('costInfo', angular.toJson(param.costInfo)); return $http.post(baseURL + 'setMassAuction', fd, { withCredentials: true, headers: {'Content-Type': undefined}, transformRequest: angular.identity }); }, // 상하차 출고 대량등록 setMassRice: function (param){ var fd = new FormData(); fd.append('file', param.file); fd.append('dateTime', angular.toJson(param.dateTime)); fd.append('employeeId', angular.toJson(param.employeeId)); fd.append('employeeName', angular.toJson(param.employeeName)); fd.append('costInfo', angular.toJson(param.costInfo)); return $http.post(baseURL + 'setMassRice', fd, { withCredentials: true, headers: {'Content-Type': undefined}, transformRequest: angular.identity }); }, /* end 츨고내역 */ /* start 입고내역 */ // 입고내역 가져오기 getStoredList: function (param){ return $http.post(baseURL + 'getStoredList', param); }, // 입고내역 저장 setReceipt: function (param){ return $http.post(baseURL + 'setReceipt', param); }, // 입고내역 수정 modifyReceipt: function (param){ return $http.post(baseURL + 'modifyReceipt', param); }, // 입고내역 삭제 removeReceipt: function (param){ return $http.post(baseURL + 'removeReceipt', param); }, /* end 입고내역 */ // ======================================================================= // 고객 // ======================================================================= /* start 월별 현황 */ // 고객목록 가져오기 getCustomerList_customer: function (param){ return $http.post(baseURL + 'getCustomerList_customer', param); }, // 직원 정보수정 updateEmployeeInfo_employeeManager: function (param){ return $http.post(baseURL + 'updateEmployeeInfo_employeeManager', param); }, // 월별현황 가져오기 getMonthlyList: function (param){ return $http.post(baseURL + 'getMonthlyList', param); }, // 개인별 현황 가져오기 getMonthlyPersonalList: function (param){ return $http.post(baseURL + 'getMonthlyPersonalList', param); }, /* end 월별 현황 */ /* start 고객 목록 */ // 고객목록 가져오기 getCustomerList: function (param){ return $http.post(baseURL + 'getCustomerList', param); }, // 고객 활성화/비활성화 setCustomerActive: function (param){ return $http.post(baseURL + 'setCustomerActive', param); }, // 고객 가입 승인/거부 setCustomerApprove: function (param){ return $http.post(baseURL + 'setCustomerApprove', param); }, /* end 고객 목록 */ /* start 보증금관리 */ // 보증금 내역 가져오기 getCustomerDepositList: function (param){ return $http.post(baseURL + 'getCustomerDepositList', param); }, // 개인별 보증금 내역 가져오기 자세히 getPersonalDeposit: function (param){ return $http.post(baseURL + 'getPersonalDeposit', param); }, // 개인별 보증금 내역 가져오기 getPersonalDepositList: function (param){ return $http.post(baseURL + 'getPersonalDepositList', param); }, // 개인별 보증금 계약서 다운로드 downLoadAttachmentFile: function (param){ return $http.post(baseURL + 'downLoadAttachmentFile', param); }, // 개인별 보증금 내역 수정, 삭제, 생성 setDepositInfo: function (param){ var fd = new FormData(); fd.append('file', param.file); fd.append('selectFileType', angular.toJson(param.selectFileType)); fd.append('checkCreateOrModifyDeposit', angular.toJson(param.checkCreateOrModifyDeposit)); fd.append('selectedDepositInfo', angular.toJson(param.selectedDepositInfo)); return $http.post(baseURL + 'setDepositInfo', fd,{ withCredentials: true, headers: {'Content-Type': undefined }, transformRequest: angular.identity }); // return $http.post(baseURL + 'setDepositInfo', param); }, /* end 보증금관리 */ /* start 이관/수관내역 */ // 이관/수관 내역 가져오기 getTransactionList: function (param){ return $http.post(baseURL + 'getTransactionList', param); }, setTransaction: function (param){ return $http.post(baseURL + 'setTransaction', param); }, removeTransaction: function (param){ return $http.post(baseURL + 'removeTransaction', param); }, modifyTransaction: function (param){ return $http.post(baseURL + 'modifyTransaction', param); }, getAvailableTransactionCount: function (param){ return $http.post(baseURL + 'getAvailableTransactionCount', param); }, /* end 이관/수관내역 */ // ======================================================================= // 시스템 // ======================================================================= /* start 직원관리 */ // 직원목록 가져오기 getEmployeeList_employeeManager: function (param){ return $http.post(baseURL + 'getEmployeeList_employeeManager', param); }, // 신규 직원등록 submitNewEmployeeInfo: function (param){ return $http.post(baseURL + 'submitNewEmployeeInfo', param); }, /* end 직원관리 */ /* start 권한설정 */ // 직원목록 가져오기 getEmployeeList_authority: function (param){ return $http.post(baseURL + 'getEmployeeList_authority', param); }, updateAuthority: function (param){ return $http.post(baseURL + 'updateAuthority', param); }, /* end 권한설정 */ /* start 요금설정 */ // 최신요금 getLatestCost: function (param){ return $http.post(baseURL + 'getLatestCost', param); }, // 요금설정 createCost: function (param){ return $http.post(baseURL + 'createCost', param); }, /* end 요금설정 */ /* start 서비스 약관 */ // 약관 가져오기 getCondition: function (param){ return $http.post(baseURL + 'getCondition', param); }, // 약관저장 createCondition: function (param){ return $http.post(baseURL + 'createCondition', param); }, /* end 서비스 약관 */ // ======================================================================= // 공통 // ======================================================================= // 직원 정보수정 updateEmployeeInfo: function (param){ return $http.post(baseURL + 'updateEmployeeInfo', param); }, // 비밀번호변경 changePassword: function (param){ return $http.post(baseURL + 'changePassword', param); }, // 신규 고객 확인 checkNewCustomer: function (param){ return $http.post(baseURL + 'checkNewCustomer', param); }, // 비용 가져오기 getCost: function (param){ return $http.post(baseURL + 'getCost', param); }, // 전체 재고 가져오기 getStock: function (param){ return $http.post(baseURL + 'getStock', param); }, // 출고별 비용 가져오기 getCostPerRelease: function (param){ return $http.post(baseURL + 'getCostPerRelease', param); }, // 요약정보 (총재고수량, 오늘 출고, 오늘 입고, 최근출고, 최근 입고, 신규 이관 신청 getSummary: function (param){ return $http.post(baseURL + 'getSummary', param); }, // 요약정보 개인정보 수집 가져오기 getMemberPolicyPersonal: function (param){ return $http.post(baseURL + 'getMemberPolicyPersonal', param); }, // 휴대폰 문자수신 동의 getMemberPolicyMobile: function (param){ return $http.post(baseURL + 'getMemberPolicyMobile', param); }, // 경매 양식 다운로드 downloadAuctionForm: function (param){ return $http.post(baseURL + 'downloadAuctionForm', param); }, // 상차 양식 다운로드 downloadRiceForm: function (param){ return $http.post(baseURL + 'downloadRiceForm', param); }, }; } })();