Blame view

app/views/updateFBODept/updateFBODept.controller.js 743 Bytes
a80703599   Rishav   FBO department fu...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  'use strict';
  
   //Load controller
    angular.module('acuefuel')
  
  	.controller('updateFBODeptController', function($scope, $stateParams, UpdateAllFBODept) {
  
        var userProfileID = $stateParams.id;
        UpdateAllFBODept.getALlFBOData(userProfileID).then(function(result) {
          console.log(result)
          $scope.user = result;
          UpdateAllFBODept.getNotes(userProfileID).then(function(response) {
            $scope.user.clientNote = response[0].notes
          })
          // $scope.feature = result.accountFeatureControl;
          // console.log($scope.feature,"dsdsdsds")
          if($scope.user.account.user.status == 'ACTIVE'){
            $scope.status = true;
          }else {
            $scope.status = false;
          }
        })
  
    });