/* ** Views/Partial/LCA/OtherCompound.cshtml is using this controller */ angular.module('CarbonFootprint') .controller('LCARefrigerantCtrl', ['$scope', '$http', '$routeParams', 'LCADetailCacheService', 'JoinSurveyItemAndParameter', '$q', 'MultiLanguageService', 'ExportCsvService', function ($scope, $http, $routeParams, LCADetailCacheService, JoinService, $q, MultiLanguageService, ExportCsvService) { // Multi-language resource object var resource; // Put inventory time of start date to end date var lcaInventoryDays; // This property controlls modal form, will be passed to table-edit-modal directive $scope.modalFormOption = {}; $scope.model = []; $scope.summary = []; // set $scope.baseUrl var baseUrl = $scope.baseUrl; if (typeof (baseUrl) === 'undefined' || baseUrl == null) { var arr = window.location.href.split("/"); if (arr[3].indexOf('app') == 0) baseUrl = ''; else baseUrl = '/' + arr[3]; $scope.baseUrl = baseUrl; } $scope.getParametersDesc = function (parameters) { var parameterID = parameters; return $scope.sources2[parseInt(parameterID)]; }; // Sync 'ParameterID' based on 'Source1', because ngModel of