Commit ae8613d6 authored by Rajeshekar's avatar Rajeshekar

Refactored logic

parent 963f6644
...@@ -9,8 +9,8 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window ...@@ -9,8 +9,8 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
getUserRole(profile); getUserRole(profile);
getAllUserRoles(); getAllUserRoles();
//getAllShifts(); //getAllShifts();
getAllDesignations(); //getAllDesignations();
getAllTechnologies(); // getAllTechnologies();
getAllLocations(); getAllLocations();
getAllAccounts(); getAllAccounts();
getMasterData(); getMasterData();
...@@ -99,7 +99,9 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window ...@@ -99,7 +99,9 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
myFactory.setEmployeeStatus(response.data['EmployeeStatus']); myFactory.setEmployeeStatus(response.data['EmployeeStatus']);
myFactory.setRoles(response.data['roles']); myFactory.setRoles(response.data['roles']);
myFactory.setShifts(response.data['shifts']); myFactory.setShifts(response.data['shifts']);
myFactory.setDomains(response.data['domains']); myFactory.setDomains(response.data['domains']);
myFactory.setTechnologies(response.data['skills']);
myFactory.setDesignations(response.data['designations']);
}, function myError(response) { }, function myError(response) {
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment