| | |
| | | } |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | $scope.vm.form.parentSectorId = result[0].id; |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.parentSectorId = result[0].id; |
| | | } |
| | | $scope.vm.form.childSectorId = ""; |
| | | $scope.vm.form.childSector = ""; |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = 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; |
| | | } |
| | | }); |
| | | |
| | | function formSubmit() { |
| | |
| | | |
| | | companyTypeId : (function () { |
| | | var companyTypeId = -1; |
| | | if ($scope.vm.form.companyTypes != null) { |
| | | if ($scope.vm.form.companyTypes != null && $scope.vm.form.companyTypes.length > 0) { |
| | | companyTypeId = $scope.vm.form.companyTypes[0].id; |
| | | } else { |
| | | companyTypeId = $scope.vm.form.companyTypeId; |
| | |
| | | })(), |
| | | parentSectorId : (function () { |
| | | var parentSectorId = -1; |
| | | if ($scope.vm.form.parentSectors != null) { |
| | | if ($scope.vm.form.parentSectors != null && $scope.vm.form.parentSectors.length > 0) { |
| | | parentSectorId = $scope.vm.form.parentSectors[0].id; |
| | | } else { |
| | | parentSectorId = $scope.vm.form.parentSectorId; |
| | |
| | | })(), |
| | | childSectorId : (function () { |
| | | var childSectorId = -1; |
| | | if ($scope.vm.form.childSectors != null) { |
| | | if ($scope.vm.form.childSectors != null && $scope.vm.form.childSectors.length > 0) { |
| | | childSectorId = $scope.vm.form.childSectors[0].id; |
| | | } else { |
| | | childSectorId = $scope.vm.form.childSectorId; |
| | |
| | | })(), |
| | | regionId : (function () { |
| | | var regionId = -1; |
| | | if ($scope.vm.form.regions != null) { |
| | | if ($scope.vm.form.regions != null && $scope.vm.form.regions.length > 0) { |
| | | regionId = $scope.vm.form.regions[0].id; |
| | | } else { |
| | | regionId = $scope.vm.form.regionId; |
| | |
| | | })(), |
| | | statusId : (function () { |
| | | var statusId = -1; |
| | | if ($scope.vm.form.statuses != null) { |
| | | if ($scope.vm.form.statuses != null && $scope.vm.form.statuses.length > 0) { |
| | | statusId = $scope.vm.form.statuses[0].id; |
| | | } else { |
| | | statusId = $scope.vm.form.statusId; |
| | |
| | | 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; |
| | | } |
| | | |