Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7cb5347ec0
@ -4,8 +4,26 @@
|
|||||||
* Simple table with sorting and filtering on AngularJS
|
* Simple table with sorting and filtering on AngularJS
|
||||||
*/
|
*/
|
||||||
// var helloApp = angular.module("helloApp", []);
|
// var helloApp = angular.module("helloApp", []);
|
||||||
app.controller("activityCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state) {
|
app.controller("activityCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", 'ipCookie', function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state, ipCookie) {
|
||||||
|
|
||||||
|
// get local cliend details
|
||||||
|
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
|
$scope.initHead = function() {
|
||||||
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
}else {
|
||||||
|
if(localDetail != null) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
$scope.companies = {
|
$scope.companies = {
|
||||||
"ActivityID": "",
|
"ActivityID": "",
|
||||||
"ActivityName": "",
|
"ActivityName": "",
|
||||||
|
|||||||
@ -4,7 +4,28 @@
|
|||||||
* Simple table with sorting and filtering on AngularJS
|
* Simple table with sorting and filtering on AngularJS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state) {
|
app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", 'ipCookie', function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state, ipCookie) {
|
||||||
|
|
||||||
|
|
||||||
|
// get local client details
|
||||||
|
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
|
$scope.initHead = function() {
|
||||||
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
}else {
|
||||||
|
if(localDetail != null) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.myModel = {
|
$scope.myModel = {
|
||||||
"courseCode": "",
|
"courseCode": "",
|
||||||
"courseName": "",
|
"courseName": "",
|
||||||
|
|||||||
@ -66,15 +66,23 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
|
|||||||
|
|
||||||
// load when html page load
|
// load when html page load
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
if (localDetail != null) {
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
$scope.currentDate = new Date();
|
$scope.currentDate = new Date();
|
||||||
$scope.localUserListCode = localDetail.localType;
|
$scope.localUserListCode = localDetail.localType;
|
||||||
$scope.localBranchID = localDetails.localBranchID;
|
$scope.localBranchID = localDetails.localBranchID;
|
||||||
// $scope.currentPage = 1;
|
// $scope.currentPage = 1;
|
||||||
$scope.getEmployeeList();
|
$scope.getEmployeeList();
|
||||||
$scope.getRoleList();
|
$scope.getRoleList();
|
||||||
$scope.getBranchDetails();
|
$scope.getBranchDetails();
|
||||||
} else {
|
} else {
|
||||||
|
if(localDetail != null) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,6 +15,21 @@ app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$lo
|
|||||||
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
||||||
var localDetails = ipCookie('cookiechk');
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
|
$scope.initHead = function() {
|
||||||
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
}else {
|
||||||
|
if(localDetail != null) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* edit status details
|
* edit status details
|
||||||
* created by Surendiran
|
* created by Surendiran
|
||||||
|
|||||||
@ -4,7 +4,26 @@
|
|||||||
* Simple table with sorting and filtering on AngularJS
|
* Simple table with sorting and filtering on AngularJS
|
||||||
*/
|
*/
|
||||||
// var helloApp = angular.module("helloApp", []);
|
// var helloApp = angular.module("helloApp", []);
|
||||||
app.controller("studentStatusUpdateCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state) {
|
app.controller("studentStatusUpdateCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", 'ipCookie', function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state, ipCookie) {
|
||||||
|
|
||||||
|
// get local client details
|
||||||
|
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
|
$scope.initHead = function() {
|
||||||
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
}else {
|
||||||
|
if(localDetail != null) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.companies = {
|
$scope.companies = {
|
||||||
"ActivityID": "",
|
"ActivityID": "",
|
||||||
|
|||||||
@ -25,7 +25,20 @@ app.controller('universityCtrl', ["$scope", "toaster", "$filter", "ngTableParams
|
|||||||
|
|
||||||
|
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
$scope.getUniversityList();
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
$scope.getUniversityList();
|
||||||
|
}else {
|
||||||
|
if(localDetail != null) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// sorting function for table params
|
// sorting function for table params
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="container-fluid container-fullw bg-white">
|
<div class="container-fluid container-fullw bg-white">
|
||||||
<div ng-controller="activityCtrl">
|
<div ng-controller="activityCtrl" ng-init="initHead()">
|
||||||
<form id="form" name="Form" ng-submit="activityForm.submit(Form, companies, 'zoom-in')" method="post" novalidate>
|
<form id="form" name="Form" ng-submit="activityForm.submit(Form, companies, 'zoom-in')" method="post" novalidate>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Add Activity Details</legend>
|
<legend>Add Activity Details</legend>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<!-- end: PAGE TITLE -->
|
<!-- end: PAGE TITLE -->
|
||||||
<!-- start: LIST GROUP -->
|
<!-- start: LIST GROUP -->
|
||||||
<div class="container-fluid container-fullw bg-white">
|
<div class="container-fluid container-fullw bg-white">
|
||||||
<div class="row" ng-controller="courseCtrl" data-ng-init="init()">
|
<div class="row" ng-controller="courseCtrl" data-ng-init="init();initHead()">
|
||||||
<tabset class="tabbable">
|
<tabset class="tabbable">
|
||||||
<tab heading="View Course" id="viewcourse">
|
<tab heading="View Course" id="viewcourse">
|
||||||
<div class="container-fluid container-fullw">
|
<div class="container-fluid container-fullw">
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="container-fluid container-fullw bg-white">
|
<div class="container-fluid container-fullw bg-white">
|
||||||
<div ng-controller="statusCtrl">
|
<div ng-controller="statusCtrl" ng-init="initHead()">
|
||||||
<tabset class="tabbable">
|
<tabset class="tabbable">
|
||||||
<tab heading="Add Status" id="statuAddNew">
|
<tab heading="Add Status" id="statuAddNew">
|
||||||
<form name="Form" id="form" novalidate ng-submit="statusForm.submit(Form, myModel, 'zoom-in')" method="post">
|
<form name="Form" id="form" novalidate ng-submit="statusForm.submit(Form, myModel, 'zoom-in')" method="post">
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="container-fluid container-fullw bg-white">
|
<div class="container-fluid container-fullw bg-white">
|
||||||
<div ng-controller="studentStatusUpdateCtrl">
|
<div ng-controller="studentStatusUpdateCtrl" ng-init="initHead()">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user