123456789101112131415161718192021222324 |
- app.controller('StdReexamListCtrl', [ '$rootScope', '$scope', function($rootScope, $scope) {
- $scope.getEnrolArray = function() {
- $rootScope.ajaxRequest({
- url : '../enrol/std/reexam/list.htm'
- }, function(response) {
- if (response.array.length == 1&& response.array[0].std_batch>1) {
- $scope.goInfo(response.array[0]);
- return;
- }
- $scope.EnrolArray = response.array;
- });
- }
- $scope.goInfo = function(enrol) {
- if(enrol.batch_end_time!=null && $rootScope.isAfterTime(enrol.batch_end_time)) {
- $rootScope.goLocation('reexam/info/' + enrol.enrol_id);
- }
- }
- $scope.getEnrolArray();
- } ])
|