| | |
| | | id : parameter.id, |
| | | name : $rootScope.preventXss($scope.vm.form.name), |
| | | ispId : (function () { // ISP 아이디 |
| | | var ispId = -1; |
| | | if ($scope.vm.form.ispName !== "" && $scope.vm.form.ispId !== null && $scope.vm.form.ispId !== -1) { |
| | | var ispId = null; |
| | | if ($scope.vm.form.ispName !== "" && $scope.vm.form.ispId !== null && $scope.vm.form.ispId !== null) { |
| | | ispId = $scope.vm.form.ispId; |
| | | }else if ($scope.vm.form.issueIspFields != null && $scope.vm.form.issueIspFields.length > 0) { |
| | | ispId = $scope.vm.form.issueIspFields[0].id; |
| | |
| | | return ispId; |
| | | })(), |
| | | hostingId : (function () { // Hosting 아이디 |
| | | var hostingId = -1; |
| | | var hostingId = null; |
| | | 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 && $scope.vm.form.issueHostingFields.length > 0) { |
| | |
| | | url : $rootScope.preventXss($scope.vm.form.url), // url |
| | | memo : $rootScope.preventXss($scope.vm.form.memo), |
| | | companyTypeId : (function () { |
| | | var companyTypeId = -1; |
| | | var companyTypeId = null; |
| | | if ($scope.vm.form.companyTypes != null && $scope.vm.form.companyTypes.length > 0) { |
| | | companyTypeId = $scope.vm.form.companyTypes[0].id; |
| | | } else { |
| | |
| | | return companyTypeId; |
| | | })(), |
| | | parentSectorId : (function () { |
| | | var parentSectorId = -1; |
| | | var parentSectorId = null; |
| | | if ($scope.vm.form.parentSectors != null && $scope.vm.form.parentSectors.length > 0) { |
| | | parentSectorId = $scope.vm.form.parentSectors[0].id; |
| | | } else { |
| | |
| | | return parentSectorId; |
| | | })(), |
| | | childSectorId : (function () { |
| | | var childSectorId = -1; |
| | | var childSectorId = null; |
| | | if ($scope.vm.form.childSectors != null && $scope.vm.form.childSectors.length > 0) { |
| | | childSectorId = $scope.vm.form.childSectors[0].id; |
| | | } else { |
| | |
| | | return childSectorId; |
| | | })(), |
| | | regionId : (function () { |
| | | var regionId = -1; |
| | | var regionId = null; |
| | | if ($scope.vm.form.regions != null && $scope.vm.form.regions.length > 0) { |
| | | regionId = $scope.vm.form.regions[0].id; |
| | | } else { |
| | |
| | | return regionId; |
| | | })(), |
| | | statusId : (function () { |
| | | var statusId = -1; |
| | | var statusId = null; |
| | | if ($scope.vm.form.statuses != null && $scope.vm.form.statuses.length > 0) { |
| | | statusId = $scope.vm.form.statuses[0].id; |
| | | } else { |