|
|
|
@ -85,8 +85,9 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
|
};
|
|
|
|
|
$scope.listOrgs(1);
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('orgDetailCtrl', ['$scope', '$http', '$state', 'Upload', '$uibModal','commonDialog', 'org', function ($scope, $http, $state, Upload,$uibModal,commonDialog, org) {
|
|
|
|
|
app.controller('orgDetailCtrl', ['$scope', '$http', '$state', 'Upload', '$uibModal','commonDialog', 'org','stateMap', function ($scope, $http, $state, Upload,$uibModal,commonDialog, org,stateMap) {
|
|
|
|
|
$scope.types = angular.copy(types);
|
|
|
|
|
$scope.states = stateMap.configs();
|
|
|
|
|
$scope.commission_types = angular.copy(commission_types);
|
|
|
|
|
$scope.org = angular.copy(org.data);
|
|
|
|
|
if (($scope.currentUser.role & parseInt('1000000000000', 2)) > 0 && $scope.currentUser.org_id) {
|
|
|
|
@ -191,8 +192,9 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('orgDetailParentCtrl', ['$scope', '$http', '$state', 'Upload', '$uibModal','commonDialog', 'org', function ($scope, $http, $state, Upload,$uibModal,commonDialog, org) {
|
|
|
|
|
app.controller('orgDetailParentCtrl', ['$scope', '$http', '$state', 'Upload', '$uibModal','commonDialog', 'org','stateMap', function ($scope, $http, $state, Upload,$uibModal,commonDialog, org,stateMap) {
|
|
|
|
|
$scope.types = angular.copy(types);
|
|
|
|
|
$scope.states = stateMap.configs();
|
|
|
|
|
$scope.commission_types = angular.copy(commission_types);
|
|
|
|
|
$scope.org = angular.copy(org.data);
|
|
|
|
|
if (($scope.currentUser.role & parseInt('1000000000000', 2)) > 0 && $scope.currentUser.org_id) {
|
|
|
|
@ -289,9 +291,10 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
|
})
|
|
|
|
|
}*/
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('newOrgCtrl', ['$scope', '$http', '$state', 'Upload', 'commonDialog', function ($scope, $http, $state, Upload, commonDialog) {
|
|
|
|
|
app.controller('newOrgCtrl', ['$scope', '$http', '$state', 'Upload', 'commonDialog','stateMap', function ($scope, $http, $state, Upload, commonDialog,stateMap) {
|
|
|
|
|
$scope.types = angular.copy(types);
|
|
|
|
|
$scope.commission_types = angular.copy(commission_types);
|
|
|
|
|
$scope.states = stateMap.configs();
|
|
|
|
|
$scope.uploadLogo = function (file) {
|
|
|
|
|
if (file == null) {
|
|
|
|
|
return;
|
|
|
|
|