| | |
| | | $scope.vm.hostingMemo = result[0].memo; |
| | | }); |
| | | |
| | | $scope.$on("companyTypeEvent", function (event, result) { |
| | | $scope.vm.form.companyTypeId = result[0].id; |
| | | }); |
| | | $scope.$on("parentSectorEvent", function (event, result) { |
| | | if ($rootScope.isDefined(result[0])) { |
| | | $scope.vm.form.parentSectorId = result[0].id; |
| | | } |
| | | |
| | | $scope.vm.form.childSector = ""; |
| | | $scope.vm.form.childSectors = []; |
| | | }); |
| | | $scope.$on("childSectorEvent", function (event, result) { |
| | | $scope.vm.form.childSectorId = result[0].id; |
| | | }); |
| | | $scope.$on("regionEvent", function (event, result) { |
| | | $scope.vm.form.regionId = result[0].id; |
| | | }); |
| | | $scope.$on("statusEvent", function (event, result) { |
| | | $scope.vm.form.statusId = result[0].id; |
| | | }); |
| | | |
| | | // 폼 전송 |
| | | function formSubmit() { |
| | | $rootScope.spinner = true; |
| | |
| | | email :$scope.vm.companyEmail, |
| | | url :$scope.vm.companyUrl, |
| | | memo : $scope.vm.companyMemo, |
| | | companyTypeId : companyField.companyTypeId, |
| | | parentSectorId : companyField.parentSectorId, |
| | | childSectorId : companyField.childSectorId, |
| | | regionId : companyField.regionId, |
| | | statusId : companyField.statusId |
| | | companyTypeId : $scope.vm.form.companyTypeId, |
| | | parentSectorId : $scope.vm.form.parentSectorId, |
| | | childSectorId : $scope.vm.form.childSectorId, |
| | | regionId : $scope.vm.form.regionId, |
| | | statusId : $scope.vm.form.statusId |
| | | }); |
| | | } |
| | | |