access control
This commit is contained in:
parent
73284b7383
commit
cbd68b72fc
@ -415,7 +415,7 @@ class Call_Tracking_Controller extends REST_Controller {
|
|||||||
*/
|
*/
|
||||||
public function autoAddlead_post(){
|
public function autoAddlead_post(){
|
||||||
$student = $this->post('student');
|
$student = $this->post('student');
|
||||||
|
//print_r($student);die;
|
||||||
if(!empty($student)){
|
if(!empty($student)){
|
||||||
$now = new DateTime();
|
$now = new DateTime();
|
||||||
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||||
|
|||||||
@ -283,7 +283,8 @@ class Login_model extends CI_Model
|
|||||||
if($responseDetails->LoginAccess ==1){
|
if($responseDetails->LoginAccess ==1){
|
||||||
$string2 = str_shuffle('1234567890');
|
$string2 = str_shuffle('1234567890');
|
||||||
$otp = substr($string2,0,6);
|
$otp = substr($string2,0,6);
|
||||||
//echo $otp;die;
|
//$otp = '431528';
|
||||||
|
// //echo $otp;die;
|
||||||
$save['OTP'] = $otp;
|
$save['OTP'] = $otp;
|
||||||
$save['UpdatedOn'] = date('Y-m-d H:i:s');
|
$save['UpdatedOn'] = date('Y-m-d H:i:s');
|
||||||
// print_r($save);die;
|
// print_r($save);die;
|
||||||
@ -291,7 +292,7 @@ class Login_model extends CI_Model
|
|||||||
$this->db->where('ListCode',STUDENT);
|
$this->db->where('ListCode',STUDENT);
|
||||||
$query = $this->db->update('T_Login',$save);
|
$query = $this->db->update('T_Login',$save);
|
||||||
|
|
||||||
|
// $query =1;
|
||||||
if($query == 1){
|
if($query == 1){
|
||||||
$sms = $this->smssend($mobile,$otp);
|
$sms = $this->smssend($mobile,$otp);
|
||||||
|
|
||||||
|
|||||||
@ -163,7 +163,7 @@ group by sid,sem) as apdate on apdate.sid=sms.sid and apdate.sem=cfd.syear
|
|||||||
}
|
}
|
||||||
public function certificate_status($bat=null,$br=null,$u=null){
|
public function certificate_status($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
|
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
|
||||||
from
|
from
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
||||||
CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
|
CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
|
||||||
@ -235,7 +235,7 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
|
|||||||
}
|
}
|
||||||
public function mark_cert_status($bat=null,$br=null,$u=null,$from=null,$to=null){
|
public function mark_cert_status($bat=null,$br=null,$u=null,$from=null,$to=null){
|
||||||
|
|
||||||
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
|
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
|
||||||
from
|
from
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
||||||
CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
|
CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
|
||||||
|
|||||||
@ -28,6 +28,25 @@ $scope.promoteButtonStatus = false;
|
|||||||
* created by velz
|
* created by velz
|
||||||
* */
|
* */
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
// var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
// const LOCALTYPE = logcheck.localType;
|
||||||
|
// if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
// console.log("if");
|
||||||
|
// }else {
|
||||||
|
// if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
// console.log("else if");
|
||||||
|
// $state.go('app.dashboard');
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// console.log("else else");
|
||||||
|
// //ipCookie.remove('cookiechk');
|
||||||
|
// window.localStorage.clear();
|
||||||
|
// $state.go('login.signin');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
var getUniv = {
|
var getUniv = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@ -10,20 +10,22 @@ app.controller("activityCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$
|
|||||||
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() {
|
// $scope.initHead = function() {
|
||||||
// alert();
|
// // alert();
|
||||||
const LOCALTYPE = localDetail.localType;
|
// const LOCALTYPE = localDetail.localType;
|
||||||
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
// if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
}else {
|
// }else {
|
||||||
if(localDetail != null) {
|
// if((localDetail != null) && (LOCALTYPE !='R001')) {
|
||||||
$state.go('app.dashboard');
|
// $state.go('app.dashboard');
|
||||||
} else {
|
// } else {
|
||||||
ipCookie.remove('cookiechk');
|
// ipCookie.remove('cookiechk');
|
||||||
$window.localStorage.clear();
|
// window.localStorage.clear();
|
||||||
$state.go('login.signin');
|
// $state.go('login.signin');
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
$scope.companies = {
|
$scope.companies = {
|
||||||
"ActivityID": "",
|
"ActivityID": "",
|
||||||
"ActivityName": "",
|
"ActivityName": "",
|
||||||
@ -163,6 +165,29 @@ swal("Warning!", "Status are required", "warning");
|
|||||||
$scope.loader = '';
|
$scope.loader = '';
|
||||||
$scope.emptyData = '';
|
$scope.emptyData = '';
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localStorage.setItem('localStatusDetails', '');
|
localStorage.setItem('localStatusDetails', '');
|
||||||
|
|
||||||
var getActivity = {
|
var getActivity = {
|
||||||
|
|||||||
@ -195,6 +195,26 @@ app.controller("CkeditorCtrl", ["$scope", "toaster", "$filter", "ngTableParams",
|
|||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var getAnnouncement = {
|
var getAnnouncement = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getAnnouncementDetails/',
|
url: apiPoint.url + 'getAnnouncementDetails/',
|
||||||
|
|||||||
@ -29,6 +29,30 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
|
|||||||
$scope.localBranchDetails = '';
|
$scope.localBranchDetails = '';
|
||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
// var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
// const LOCALTYPE = logcheck.localType;
|
||||||
|
// if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
// console.log("if");
|
||||||
|
// }else {
|
||||||
|
// if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
// console.log("else if");
|
||||||
|
// $state.go('app.dashboard');
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// console.log("else else");
|
||||||
|
// //ipCookie.remove('cookiechk');
|
||||||
|
// window.localStorage.clear();
|
||||||
|
// $state.go('login.signin');
|
||||||
|
// die();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localDetail != null) {
|
if (localDetail != null) {
|
||||||
if (localDetails.localType === 'R004') {
|
if (localDetails.localType === 'R004') {
|
||||||
$scope.localTypeSuperAdmin = true;
|
$scope.localTypeSuperAdmin = true;
|
||||||
|
|||||||
@ -34,6 +34,27 @@ app.controller('applicationStatusCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
|||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localDetail != null) {
|
if (localDetail != null) {
|
||||||
if (localDetails.localType === 'R004') {
|
if (localDetails.localType === 'R004') {
|
||||||
$scope.localTypeSuperAdmin = true;
|
$scope.localTypeSuperAdmin = true;
|
||||||
|
|||||||
@ -240,6 +240,33 @@ app.controller('batchCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTabl
|
|||||||
$scope.emptyData='';
|
$scope.emptyData='';
|
||||||
|
|
||||||
$rootScope.init = function () {
|
$rootScope.init = function () {
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localStorage.setItem('localUniversityDetails', '');
|
localStorage.setItem('localUniversityDetails', '');
|
||||||
|
|
||||||
var getBranch = {
|
var getBranch = {
|
||||||
|
|||||||
@ -353,6 +353,29 @@ app.controller('branchCtrl', ["$scope","toaster", "$filter", "ngTableParams", "A
|
|||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var getBranch = {
|
var getBranch = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getBranchDetails/',
|
url: apiPoint.url + 'getBranchDetails/',
|
||||||
|
|||||||
@ -403,6 +403,32 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
$scope.init = function (myModel) {
|
$scope.init = function (myModel) {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.data = [];
|
$scope.data = [];
|
||||||
if(myModel!='' && myModel!=undefined){
|
if(myModel!='' && myModel!=undefined){
|
||||||
$scope.finalSearchArry=myModel;
|
$scope.finalSearchArry=myModel;
|
||||||
@ -656,6 +682,26 @@ app.controller('callTrackingLeadCtrl', ["$scope","$rootScope","toaster", "$filte
|
|||||||
|
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$scope.loader = true;
|
$scope.loader = true;
|
||||||
|
|
||||||
var getRecentlead = {
|
var getRecentlead = {
|
||||||
@ -838,6 +884,30 @@ app.controller('callTrackingCloseCtrl', ["$scope","$rootScope","toaster", "$filt
|
|||||||
|
|
||||||
$scope.loadDate = $filter('date')(new Date($scope.getdate), 'yyyy-MM-dd');
|
$scope.loadDate = $filter('date')(new Date($scope.getdate), 'yyyy-MM-dd');
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.loader = true;
|
$scope.loader = true;
|
||||||
|
|
||||||
var getRecentclose = {
|
var getRecentclose = {
|
||||||
@ -1021,6 +1091,27 @@ app.controller('callTrackingPendingCtrl', ["$scope","$rootScope","toaster", "$fi
|
|||||||
|
|
||||||
$scope.loadDate = $filter('date')(new Date($scope.getdate), 'yyyy-MM-dd');
|
$scope.loadDate = $filter('date')(new Date($scope.getdate), 'yyyy-MM-dd');
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$scope.loader = true;
|
$scope.loader = true;
|
||||||
|
|
||||||
var getRecentclose = {
|
var getRecentclose = {
|
||||||
|
|||||||
@ -191,6 +191,29 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
|||||||
|
|
||||||
$rootScope.init = function () {
|
$rootScope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var getCenter = {
|
var getCenter = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getCenterDetails/',
|
url: apiPoint.url + 'getCenterDetails/',
|
||||||
|
|||||||
@ -111,6 +111,31 @@ $scope.certificateForm = {
|
|||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var getCertificate = {
|
var getCertificate = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getCertificateDetails/',
|
url: apiPoint.url + 'getCertificateDetails/',
|
||||||
|
|||||||
@ -31,6 +31,30 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
|
|||||||
$scope.localBranchDetails = '';
|
$scope.localBranchDetails = '';
|
||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(localDetail != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
//window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localDetail != null) {
|
if (localDetail != null) {
|
||||||
if (localDetails.localType === 'R004') {
|
if (localDetails.localType === 'R004') {
|
||||||
$scope.localTypeSuperAdmin = true;
|
$scope.localTypeSuperAdmin = true;
|
||||||
|
|||||||
@ -16,11 +16,11 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
|||||||
const LOCALTYPE = localDetail.localType;
|
const LOCALTYPE = localDetail.localType;
|
||||||
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
}else {
|
}else {
|
||||||
if(localDetail != null) {
|
if(localDetail != null && LOCALTYPE != 'R001') {
|
||||||
$state.go('app.dashboard');
|
$state.go('app.dashboard');
|
||||||
} else {
|
} else {
|
||||||
ipCookie.remove('cookiechk');
|
ipCookie.remove('cookiechk');
|
||||||
$window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
$state.go('login.signin');
|
$state.go('login.signin');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,6 +119,29 @@ app.controller("dayBookMasterCtrl", ["$scope", "toaster", "$filter", "API_POINTS
|
|||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var getdetails = {
|
var getdetails = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getDayBookMasterDetails/',
|
url: apiPoint.url + 'getDayBookMasterDetails/',
|
||||||
|
|||||||
@ -76,7 +76,7 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
|
|||||||
$scope.getRoleList();
|
$scope.getRoleList();
|
||||||
$scope.getBranchDetails();
|
$scope.getBranchDetails();
|
||||||
} else {
|
} else {
|
||||||
if(localDetail != null) {
|
if(localDetail != null && LOCALTYPE !='R001' ) {
|
||||||
$state.go('app.dashboard');
|
$state.go('app.dashboard');
|
||||||
} else {
|
} else {
|
||||||
ipCookie.remove('cookiechk');
|
ipCookie.remove('cookiechk');
|
||||||
|
|||||||
@ -39,6 +39,30 @@ $scope.isLoaderTxt = "Loading...";
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
// var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
// const LOCALTYPE = logcheck.localType;
|
||||||
|
// if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
// console.log("if");
|
||||||
|
// }else {
|
||||||
|
// if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
// console.log("else if");
|
||||||
|
// $state.go('app.dashboard');
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// console.log("else else");
|
||||||
|
// //ipCookie.remove('cookiechk');
|
||||||
|
// window.localStorage.clear();
|
||||||
|
// $state.go('login.signin');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var getUniv = {
|
var getUniv = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getUniversityCourseDetails/',
|
url: apiPoint.url + 'getUniversityCourseDetails/',
|
||||||
|
|||||||
@ -92,6 +92,32 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
// const LOCALTYPE = logcheck.localType;
|
||||||
|
// if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
// console.log("if");
|
||||||
|
// }else {
|
||||||
|
// if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
// console.log("else if");
|
||||||
|
// $state.go('app.dashboard');
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// console.log("else else");
|
||||||
|
// //ipCookie.remove('cookiechk');
|
||||||
|
// // window.localStorage.clear();
|
||||||
|
// $state.go('login.signin');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.isTrainee = false;
|
$scope.isTrainee = false;
|
||||||
var localUserType = JSON.parse(localStorage.getItem('localObj')).localType;
|
var localUserType = JSON.parse(localStorage.getItem('localObj')).localType;
|
||||||
|
|
||||||
|
|||||||
@ -41,6 +41,27 @@ $scope.generateButtonStatus = false;
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
// const LOCALTYPE = logcheck.localType;
|
||||||
|
// if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
// console.log("if");
|
||||||
|
// }else {
|
||||||
|
// if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
// console.log("else if");
|
||||||
|
// $state.go('app.dashboard');
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// console.log("else else");
|
||||||
|
// //ipCookie.remove('cookiechk');
|
||||||
|
// window.localStorage.clear();
|
||||||
|
// $state.go('login.signin');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
var getUniv = {
|
var getUniv = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@ -132,6 +132,26 @@ app.controller("incomeCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$lo
|
|||||||
$scope.emptyData = '';
|
$scope.emptyData = '';
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var getStatus = {
|
var getStatus = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getAccounttypes/',
|
url: apiPoint.url + 'getAccounttypes/',
|
||||||
|
|||||||
@ -15,6 +15,41 @@ app.controller('income_reportCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//console.log('out')
|
||||||
|
|
||||||
|
|
||||||
|
// $scope.initHead = function() {
|
||||||
|
//console.log('rfd');
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
$scope.init = function(){
|
||||||
|
|
||||||
|
console.log('gf');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $scope.filters = function () {
|
// $scope.filters = function () {
|
||||||
// var filterlist = {
|
// var filterlist = {
|
||||||
// method: 'POST',
|
// method: 'POST',
|
||||||
|
|||||||
@ -13,6 +13,21 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.initHead = function() {
|
||||||
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
}else {
|
||||||
|
if((localDetail != null) && (LOCALTYPE !='R001')) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.filters = function () {
|
$scope.filters = function () {
|
||||||
var filterlist = {
|
var filterlist = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@ -22,6 +22,23 @@ app.controller('report_leadCtrl', ["$scope", "$filter","$rootScope","$modal", "A
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.init = function() {
|
||||||
|
// alert();
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
}else {
|
||||||
|
if((localDetail != null) && (LOCALTYPE !='R001')) {
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//get current date
|
//get current date
|
||||||
$scope.hideDateSearch=true;
|
$scope.hideDateSearch=true;
|
||||||
$scope.modifyMinDate = moment();
|
$scope.modifyMinDate = moment();
|
||||||
|
|||||||
@ -521,6 +521,26 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
|
|||||||
* created by TamilBala
|
* created by TamilBala
|
||||||
* */
|
* */
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var branchid=JSON.parse(localStorage.getItem('localObj')).localBranchID;
|
var branchid=JSON.parse(localStorage.getItem('localObj')).localBranchID;
|
||||||
|
|||||||
@ -64,6 +64,29 @@ app.controller('semcoursemapCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.semDetailsLoadingStatus = true;
|
$scope.semDetailsLoadingStatus = true;
|
||||||
$scope.semDetailsLoadingTxt = "Loading...";
|
$scope.semDetailsLoadingTxt = "Loading...";
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,28 @@ app.controller('sendSMSDetailssuperadminCtrl', ["$scope", "$filter", "ngTablePar
|
|||||||
"dateTo": ""
|
"dateTo": ""
|
||||||
}
|
}
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = localDetail.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localDetail != null) {
|
if (localDetail != null) {
|
||||||
$scope.currentDate = new Date();
|
$scope.currentDate = new Date();
|
||||||
var formate = "dd-MM-yyyy";
|
var formate = "dd-MM-yyyy";
|
||||||
|
|||||||
@ -10,6 +10,32 @@ app.controller('sendSMSsuperadminCtrl', ["$scope", "$filter", "ngTableParams", "
|
|||||||
var localDetails = ipCookie('cookiechk');
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localDetail != null) {
|
if (localDetail != null) {
|
||||||
// $scope.getBranchList();
|
// $scope.getBranchList();
|
||||||
$scope.getUniversityList();
|
$scope.getUniversityList();
|
||||||
|
|||||||
@ -194,6 +194,31 @@ app.controller('sessionMasterCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
$scope.emptyData='';
|
$scope.emptyData='';
|
||||||
|
|
||||||
$rootScope.init = function () {
|
$rootScope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.universityList = [];
|
$scope.universityList = [];
|
||||||
var getSession = {
|
var getSession = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@ -272,6 +272,31 @@ app.controller('sessionScheduleCtrl', ["$scope","$rootScope","toaster", "$filter
|
|||||||
$scope.emptyData='';
|
$scope.emptyData='';
|
||||||
|
|
||||||
$rootScope.init = function () {
|
$rootScope.init = function () {
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.getattendanceranges($scope.myModel.timingCounts);
|
$scope.getattendanceranges($scope.myModel.timingCounts);
|
||||||
var getSession = {
|
var getSession = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@ -20,7 +20,7 @@ app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$lo
|
|||||||
const LOCALTYPE = localDetail.localType;
|
const LOCALTYPE = localDetail.localType;
|
||||||
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
}else {
|
}else {
|
||||||
if(localDetail != null) {
|
if(localDetail != null && LOCALTYPE != 'R001') {
|
||||||
$state.go('app.dashboard');
|
$state.go('app.dashboard');
|
||||||
} else {
|
} else {
|
||||||
ipCookie.remove('cookiechk');
|
ipCookie.remove('cookiechk');
|
||||||
@ -132,6 +132,27 @@ app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$lo
|
|||||||
$scope.emptyData = '';
|
$scope.emptyData = '';
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var getStatus = {
|
var getStatus = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'getStatusDetails/',
|
url: apiPoint.url + 'getStatusDetails/',
|
||||||
|
|||||||
@ -51,6 +51,33 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
|||||||
|
|
||||||
// load when html page load
|
// load when html page load
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.localUserType = localDetails.localType;
|
$scope.localUserType = localDetails.localType;
|
||||||
$scope.todayDate = new Date();
|
$scope.todayDate = new Date();
|
||||||
var nowInMS = new Date().getTime(),
|
var nowInMS = new Date().getTime(),
|
||||||
|
|||||||
@ -15,7 +15,7 @@ app.controller("studentStatusUpdateCtrl", ["$scope", "toaster", "$filter", "API_
|
|||||||
const LOCALTYPE = localDetail.localType;
|
const LOCALTYPE = localDetail.localType;
|
||||||
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
}else {
|
}else {
|
||||||
if(localDetail != null) {
|
if(localDetail != null && LOCALTYPE !='R001') {
|
||||||
$state.go('app.dashboard');
|
$state.go('app.dashboard');
|
||||||
} else {
|
} else {
|
||||||
ipCookie.remove('cookiechk');
|
ipCookie.remove('cookiechk');
|
||||||
|
|||||||
@ -30,6 +30,32 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
|
|||||||
$scope.localBranchDetails = '';
|
$scope.localBranchDetails = '';
|
||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localDetail != null) {
|
if (localDetail != null) {
|
||||||
if (localDetails.localType === 'R004') {
|
if (localDetails.localType === 'R004') {
|
||||||
$scope.localTypeSuperAdmin = true;
|
$scope.localTypeSuperAdmin = true;
|
||||||
|
|||||||
@ -195,6 +195,28 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT
|
|||||||
|
|
||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log("else else");
|
||||||
|
//ipCookie.remove('cookiechk');
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.loader='';
|
$scope.loader='';
|
||||||
|
|
||||||
|
|||||||
@ -34,11 +34,11 @@ app.controller('universityCtrl', ["$scope", "toaster", "$filter", "ngTableParams
|
|||||||
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||||
$scope.getUniversityList();
|
$scope.getUniversityList();
|
||||||
}else {
|
}else {
|
||||||
if(localDetail != null) {
|
if(localDetail != null && LOCALTYPE != 'R001') {
|
||||||
$state.go('app.dashboard');
|
$state.go('app.dashboard');
|
||||||
} else {
|
} else {
|
||||||
ipCookie.remove('cookiechk');
|
ipCookie.remove('cookiechk');
|
||||||
$window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
$state.go('login.signin');
|
$state.go('login.signin');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user