2 * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 var AECBlueprintValidationUIApp = angular
18 .module('BlueprintValidationUIManagement');
20 AECBlueprintValidationUIApp
22 'AECFindBySubmissionIdController',
23 function($scope, restAPISvc) {
27 function initialize() {
33 $scope.submissions = data;
34 $scope.submissionsForDisplay = [];
41 + submissionData.submissionId
43 + submissionData.blueprintInstance.blueprint.blueprintName
45 + submissionData.blueprintInstance.version
47 + submissionData.blueprintInstance.layer
49 + submissionData.blueprintInstance.timeslot.lab
50 + " Start date and time: "
51 + submissionData.blueprintInstance.timeslot.startDateTime
53 + submissionData.blueprintInstance.timeslot.duration;
54 $scope.submissionsForDisplay
59 $scope.selectedSubmissionChange = function(
62 var id = selectedSubmission.substring(
63 selectedSubmission.indexOf("id:") + 4,
64 selectedSubmission.indexOf("blueprint") - 1);
65 restAPISvc.getRestAPI(
66 "/api/results/findBySubmissionId/" + id,
68 $scope.results = data;