@@ 1-29 (lines=29) @@ | ||
1 | "use strict"; |
|
2 | app.controller('createDepartmentController', ['$scope', 'Security', function ($scope, Security, $rootScope) { |
|
3 | function Initialize(){ |
|
4 | var entryForm = {}; |
|
5 | ||
6 | $scope.entryForm = entryForm; |
|
7 | } |
|
8 | Initialize(); |
|
9 | ||
10 | $scope.EventListener = function(scope, iElement, iAttrs, controller){ |
|
11 | iElement.ready(function() { |
|
12 | ||
13 | }) |
|
14 | } |
|
15 | ||
16 | $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){ |
|
17 | controller.ngModel.DepartmentCode = "ABC" |
|
18 | //controller.ngModel.DepartmentCode = 125 |
|
19 | } |
|
20 | ||
21 | $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){ |
|
22 | if(fieldName == "DepartmentCode") |
|
23 | newObj.DepartmentCode = newObj.DepartmentCode.toUpperCase(); |
|
24 | } |
|
25 | ||
26 | $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){ |
|
27 | return true; |
|
28 | } |
|
29 | }]); |
|
30 |
@@ 1-29 (lines=29) @@ | ||
1 | "use strict"; |
|
2 | app.controller('createDepartmentController', ['$scope', 'Security', function ($scope, Security, $rootScope) { |
|
3 | function Initialize(){ |
|
4 | var entryForm = {}; |
|
5 | ||
6 | $scope.entryForm = entryForm; |
|
7 | } |
|
8 | Initialize(); |
|
9 | ||
10 | $scope.EventListener = function(scope, iElement, iAttrs, controller){ |
|
11 | iElement.ready(function() { |
|
12 | ||
13 | }) |
|
14 | } |
|
15 | ||
16 | $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){ |
|
17 | controller.ngModel.DepartmentCode = "ABC" |
|
18 | //controller.ngModel.DepartmentCode = 125 |
|
19 | } |
|
20 | ||
21 | $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){ |
|
22 | if(fieldName == "DepartmentCode") |
|
23 | newObj.DepartmentCode = newObj.DepartmentCode.toUpperCase(); |
|
24 | } |
|
25 | ||
26 | $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){ |
|
27 | return true; |
|
28 | } |
|
29 | }]); |
|
30 |
@@ 1-28 (lines=28) @@ | ||
1 | "use strict"; |
|
2 | app.controller('createDepartmentController', ['$scope', 'Security', function ($scope, Security, $rootScope) { |
|
3 | function Initialize(){ |
|
4 | var entryForm = {}; |
|
5 | ||
6 | $scope.entryForm = entryForm; |
|
7 | } |
|
8 | Initialize(); |
|
9 | ||
10 | $scope.EventListener = function(scope, iElement, iAttrs, controller){ |
|
11 | iElement.ready(function() { |
|
12 | ||
13 | }) |
|
14 | } |
|
15 | ||
16 | $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){ |
|
17 | controller.ngModel.DepartmentCode = "ABC" |
|
18 | } |
|
19 | ||
20 | $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){ |
|
21 | if(fieldName == "DepartmentCode") |
|
22 | newObj.DepartmentCode = newObj.DepartmentCode.toUpperCase(); |
|
23 | } |
|
24 | ||
25 | $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){ |
|
26 | return true; |
|
27 | } |
|
28 | }]); |
|
29 |
@@ 1-27 (lines=27) @@ | ||
1 | "use strict"; |
|
2 | app.controller('viewDepartmentController', ['$scope', 'Security', function ($scope, Security, $rootScope) { |
|
3 | function Initialize(){ |
|
4 | var entryForm = {}; |
|
5 | ||
6 | $scope.entryForm = entryForm; |
|
7 | } |
|
8 | Initialize(); |
|
9 | ||
10 | $scope.EventListener = function(scope, iElement, iAttrs, controller){ |
|
11 | iElement.ready(function() { |
|
12 | ||
13 | }) |
|
14 | } |
|
15 | ||
16 | $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){ |
|
17 | } |
|
18 | ||
19 | $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){ |
|
20 | if(fieldName == "DepartmentCode") |
|
21 | newObj.DepartmentCode = newObj.DepartmentCode.toUpperCase(); |
|
22 | } |
|
23 | ||
24 | $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){ |
|
25 | return true; |
|
26 | } |
|
27 | }]); |
|
28 |