- 이슈 수정 시 대분류만 선택하고 수정 시 오류 해결
- 전체댓글+메일보기/하위이슈 댓글+메일보기
- 이슈 엑셀 임포트시 오류 해결
| | |
| | | if(useValue.equals(companyFieldVo.getUrl())) { |
| | | companyField.put("companyId", companyField.get("id")); |
| | | issueCompanyFields.add(companyField); |
| | | if(companyFieldVo.getIspId() != null) { |
| | | if(companyFieldVo.getIspId() != null && companyFieldVo.getIspId() != -1) { |
| | | Map<String, Object> ispField = this.ispFieldService.find(companyFieldVo.getIspId()); |
| | | if (ispField != null) { |
| | | ispField.put("ispId", ispField.get("id")); |
| | | issueIspFields.add(ispField); |
| | | } |
| | | } |
| | | if(companyFieldVo.getHostingId() != null) { |
| | | if(companyFieldVo.getHostingId() != null && companyFieldVo.getHostingId() != -1) { |
| | | Map<String, Object> hostingField = this.hostingFieldService.find(companyFieldVo.getHostingId()); |
| | | if (hostingField != null) { |
| | | hostingField.put("hostingId", hostingField.get("id")); |
| | |
| | | this.issueCompanyRepository.saveAndFlush(issueCompany); |
| | | |
| | | // 업체의 ISP가 있는 경우 issueISP 등록 |
| | | if (companyField.getIspId() != null) { |
| | | if (companyField.getIspId() != null && companyField.getIspId() != -1) { |
| | | IspField ispField = this.ispFieldService.getIsp(companyField.getIspId()); |
| | | IssueIsp issueIsp = ConvertUtil.copyProperties(ispField, IssueIsp.class); |
| | | issueIsp.setIspField(ispField); |
| | |
| | | this.issueIspRepository.saveAndFlush(issueIsp); |
| | | } |
| | | // 업체의 호스팅이 있는 경우 issueHosting 등록 |
| | | if (companyField.getHostingId() != null) { |
| | | if (companyField.getHostingId() != null && companyField.getHostingId() != -1) { |
| | | HostingField hostingField = this.hostingFieldService.getHosting(companyField.getHostingId()); |
| | | IssueHosting issueHosting = ConvertUtil.copyProperties(hostingField, IssueHosting.class); |
| | | issueHosting.setHostingField(hostingField); |
| | |
| | | } |
| | | |
| | | $scope.$on("ispFieldEvent", function (event, result) { |
| | | $scope.vm.form.ispId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.ispId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("hostingFieldEvent", function (event, result) { |
| | | $scope.vm.form.hostingId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.hostingId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | if ($rootScope.isDefined(result[0])) { |
| | |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("regionEvent", function (event, result) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("statusEvent", function (event, result) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | // 폼 전송 |
| | |
| | | SweetAlert.success($filter("translate")("companyField.succeededCompanyFieldRegistration"), result.data.message.message); // 등록 성공 |
| | | $scope.fn.cancel(); |
| | | $rootScope.$broadcast("getCompanyFieldList"); |
| | | $rootScope.spinner = false; |
| | | }, 1000); |
| | | } |
| | | else { |
| | | SweetAlert.error($filter("translate")("companyField.failedCompanyFieldRegistration"), result.data.message.message); // 등록 실패 |
| | | $rootScope.spinner = false; |
| | | } |
| | | |
| | | $rootScope.spinner = false; |
| | | }); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | $scope.$on("ispFieldEvent", function (event, result) { |
| | | $scope.vm.form.ispId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.ispId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("hostingFieldEvent", function (event, result) { |
| | | $scope.vm.form.hostingId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.hostingId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | if ($rootScope.isDefined(result[0])) { |
| | |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("regionEvent", function (event, result) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("statusEvent", function (event, result) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | // 폼 전송 |
| | |
| | | var ispId = -1; |
| | | if ($scope.vm.form.ispName !== "" && $scope.vm.form.ispId !== null && $scope.vm.form.ispId !== -1) { |
| | | ispId = $scope.vm.form.ispId; |
| | | }else if ($scope.vm.form.issueIspFields != null) { |
| | | }else if ($scope.vm.form.issueIspFields != null && $scope.vm.form.issueIspFields.length > 0) { |
| | | ispId = $scope.vm.form.issueIspFields[0].id; |
| | | } |
| | | return ispId; |
| | |
| | | var hostingId = -1; |
| | | if ($scope.vm.form.hostingName !== "" && $scope.vm.form.hostingId !== null && $scope.vm.form.hostingId !== -1) { |
| | | hostingId = $scope.vm.form.hostingId; |
| | | }else if ($scope.vm.form.issueHostingFields != null) { |
| | | }else if ($scope.vm.form.issueHostingFields != null && $scope.vm.form.issueHostingFields.length > 0) { |
| | | hostingId = $scope.vm.form.issueHostingFields[0].id; |
| | | } |
| | | return hostingId; |
| | |
| | | |
| | | //ISP정보 결과 값 Event 처리(set) |
| | | $scope.$on("ispFieldEvent", function (event, result) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | // 호스팅정보 결과 값 Event 처리(set) |
| | | $scope.$on("hostingFieldEvent", function (event, result) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | if ($rootScope.isDefined(result[0])) { |
| | |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("regionEvent", function (event, result) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("statusEvent", function (event, result) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | // 폼 전송 |
| | |
| | | |
| | | // ISP정보 결과 값 Event 처리(set) |
| | | $scope.$on("ispFieldEvent", function (event, result) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | // 호스팅정보 결과 값 Event 처리(set) |
| | | $scope.$on("hostingFieldEvent", function (event, result) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | if ($rootScope.isDefined(result[0])) { |
| | |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("regionEvent", function (event, result) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("statusEvent", function (event, result) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | // 폼 전송 |
| | |
| | | |
| | | companyId : (function () { |
| | | var companyId = -1; |
| | | if ($scope.vm.form.issueCompanyFields.length > 0) { |
| | | if ($scope.vm.form.issueCompanyFields != null && $scope.vm.form.issueCompanyFields.length > 0) { |
| | | companyId = $scope.vm.form.issueCompanyFields[0].id; |
| | | } |
| | | return companyId; |
| | |
| | | |
| | | // ISP정보 결과 값 Event 처리(set) |
| | | $scope.$on("ispFieldEvent", function (event, result) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | // 호스팅정보 결과 값 Event 처리(set) |
| | | $scope.$on("hostingFieldEvent", function (event, result) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | if ($rootScope.isDefined(result[0])) { |
| | |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("regionEvent", function (event, result) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | } |
| | | }); |
| | | $scope.$on("statusEvent", function (event, result) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | } |
| | | }); |
| | | |
| | | // 폼 전송 |
| | |
| | | |
| | | companyId : (function () { |
| | | var companyId = -1; |
| | | if ($scope.vm.form.issueCompanyFields.length > 0) { |
| | | if ($scope.vm.form.issueCompanyFields != null && $scope.vm.form.issueCompanyFields.length > 0) { |
| | | companyId = $scope.vm.form.issueCompanyFields[0].id; |
| | | } |
| | | return companyId; |
| | |
| | | } |
| | | }, |
| | | fileFormDataName : "file" |
| | | }) |
| | | .then(function (result) { |
| | | }).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | |
| | | $timeout(function () { |
| | | SweetAlert.success($filter("translate")("issue.succeededIssueRegistration"), result.data.message.message); // 이슈 등록 성공 |
| | | $scope.fn.cancel(); |
| | | $rootScope.$broadcast("getIssueList"); |
| | | $rootScope.spinner = false; |
| | | }, 1000); |
| | | } |
| | | else { |
| | | SweetAlert.error($filter("translate")("issue.failedIssueRegistration"), result.data.message.message); // 이슈 등록 실패 |
| | | $rootScope.spinner = false; |
| | | } |
| | | |
| | | $rootScope.spinner = false; |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | // ISP정보 결과 값 Event 처리(set) |
| | | $scope.$on("ispFieldEvent", function (event, result) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.ispId = result[0].id; |
| | | $scope.vm.ispName = result[0].name; |
| | | $scope.vm.ispCode = result[0].code; |
| | | $scope.vm.ispManager = result[0].manager; |
| | | $scope.vm.ispTel = result[0].tel; |
| | | $scope.vm.ispEmail = result[0].email; |
| | | $scope.vm.ispUrl = result[0].url; |
| | | $scope.vm.ispMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | // 호스팅정보 결과 값 Event 처리(set) |
| | | $scope.$on("hostingFieldEvent", function (event, result) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.hostingId = result[0].id; |
| | | $scope.vm.hostingName = result[0].name; |
| | | $scope.vm.hostingCode = result[0].code; |
| | | $scope.vm.hostingManager = result[0].manager; |
| | | $scope.vm.hostingTel = result[0].tel; |
| | | $scope.vm.hostingEmail = result[0].email; |
| | | $scope.vm.hostingUrl = result[0].url; |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | } |
| | | }); |
| | | |
| | | function formSubmit() { |
| | |
| | | companyId : (function () { |
| | | var companyId = -1; |
| | | |
| | | if ($scope.vm.form.issueCompanyFields.length > 0) { |
| | | if ($scope.vm.form.issueCompanyFields != null && $scope.vm.form.issueCompanyFields.length > 0) { |
| | | companyId = $scope.vm.form.issueCompanyFields[0].id; |
| | | } |
| | | |
| | |
| | | ispId : (function () { |
| | | var ispId = -1; |
| | | |
| | | if ($scope.vm.form.issueIspFields.length > 0) { |
| | | if ($scope.vm.form.issueIspFields != null && $scope.vm.form.issueIspFields.length > 0) { |
| | | ispId = $scope.vm.form.issueIspFields[0].id; |
| | | } |
| | | |