Dashboard screen issues
This commit is contained in:
parent
fe920a55fc
commit
5579f97921
@ -177,6 +177,8 @@ $route['admissionYear'] = 'Dashboard_Controller/admissionYear';
|
|||||||
$route['feeOutstanding'] = 'Dashboard_Controller/feeOutstanding';
|
$route['feeOutstanding'] = 'Dashboard_Controller/feeOutstanding';
|
||||||
$route['followupsToday'] = 'Dashboard_Controller/followupsToday';
|
$route['followupsToday'] = 'Dashboard_Controller/followupsToday';
|
||||||
$route['followupsPending'] = 'Dashboard_Controller/followupsPending';
|
$route['followupsPending'] = 'Dashboard_Controller/followupsPending';
|
||||||
|
$route['admissionBatch'] = 'Dashboard_Controller/admissionBatch';
|
||||||
|
$route['filterYear'] = 'Dashboard_Controller/filterYear';
|
||||||
|
|
||||||
/*login page announcement*/
|
/*login page announcement*/
|
||||||
$route['getLoginAnnouncementDetails'] = 'Login_Controller/getLoginAnnouncementDetails';
|
$route['getLoginAnnouncementDetails'] = 'Login_Controller/getLoginAnnouncementDetails';
|
||||||
|
|||||||
@ -319,8 +319,9 @@ class Dashboard_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function admissionMonth_post(){
|
public function admissionMonth_post(){
|
||||||
$data = $this->post('data');
|
$year = $this->post('year');
|
||||||
$admissionMonth = $this->dashboard_model->admissionMonth();
|
$month = $this->post('month');
|
||||||
|
$admissionMonth = $this->dashboard_model->admissionMonth($year,$month);
|
||||||
if ($admissionMonth) {
|
if ($admissionMonth) {
|
||||||
$admissionMonth['status'] = REST_Controller::HTTP_OK;
|
$admissionMonth['status'] = REST_Controller::HTTP_OK;
|
||||||
// Set the response and exit
|
// Set the response and exit
|
||||||
@ -403,4 +404,39 @@ class Dashboard_Controller extends REST_Controller {
|
|||||||
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public function admissionBatch_post(){
|
||||||
|
$univ = $this->post('univ');
|
||||||
|
$admissionBatch = $this->dashboard_model->admissionBatch($univ);
|
||||||
|
if ($admissionBatch) {
|
||||||
|
$admissionBatch['status'] = REST_Controller::HTTP_OK;
|
||||||
|
// Set the response and exit
|
||||||
|
$this->response($admissionBatch, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Set the response and exit
|
||||||
|
$this->response([
|
||||||
|
'message' => 'No records were found',
|
||||||
|
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||||
|
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//To filters
|
||||||
|
public function filterYear_post(){
|
||||||
|
$branch = $this->post('branchId');
|
||||||
|
$filterYear = $this->dashboard_model->getYear($branch);
|
||||||
|
if ($filterYear) {
|
||||||
|
$filterYear['status'] = REST_Controller::HTTP_OK;
|
||||||
|
// Set the response and exit
|
||||||
|
$this->response($filterYear, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Set the response and exit
|
||||||
|
$this->response([
|
||||||
|
'message' => 'No records were found',
|
||||||
|
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||||
|
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -311,9 +311,16 @@ public function leadCountMonth(){
|
|||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
public function followupsCountToday(){
|
public function followupsCountToday(){
|
||||||
$sql = "select count(distinct TrackingID) as count from T_Lead_Tracking_Followup ltf
|
$sql = "select count(ltf.TrackingID) as count
|
||||||
join T_PickListDetails list on list.ListCode=ltf.StatusName
|
from T_Lead_Tracking_Followup as ltf
|
||||||
where day(STR_TO_DATE(ltf.FollowupOn,'%d-%m-%Y')) = day(now()) and ltf.IsActive = 1 ";
|
left join T_Lead_Tracking lt on lt.TrackingID=ltf.TrackingID
|
||||||
|
join T_Login l on l.ID=lt.AssignedTo
|
||||||
|
join T_StaffDetails sd on sd.StaffID=l.StaffID
|
||||||
|
left join T_Lead_Details ld on ld.LeadID=lt.LeadID
|
||||||
|
left join T_ActivityMaster am on am.ActivityID=lt.ActivityStatus
|
||||||
|
join T_PickListDetails list on list.ListCode=ltf.StatusName
|
||||||
|
where InteractionID in (select max(InteractionID) from T_Lead_Tracking_Followup group by TrackingID)
|
||||||
|
and STR_TO_DATE(ltf.FollowupOn,'%d-%m-%Y') = date(now()) and ltf.IsActive = 1 ";
|
||||||
$followupsCount=$this->db->query($sql);
|
$followupsCount=$this->db->query($sql);
|
||||||
$fcount = $followupsCount->result();
|
$fcount = $followupsCount->result();
|
||||||
if (count($fcount) > 0) {
|
if (count($fcount) > 0) {
|
||||||
@ -327,9 +334,16 @@ public function leadCountMonth(){
|
|||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
public function followupsCountMonth(){
|
public function followupsCountMonth(){
|
||||||
$sql = "select count(distinct TrackingID) as count from T_Lead_Tracking_Followup ltf
|
$sql = "select count(ltf.TrackingID) as count
|
||||||
join T_PickListDetails list on list.ListCode=ltf.StatusName
|
from T_Lead_Tracking_Followup as ltf
|
||||||
where month(STR_TO_DATE(ltf.FollowupOn,'%d-%m-%Y')) = month(now()) and ltf.IsActive = 1 ";
|
left join T_Lead_Tracking lt on lt.TrackingID=ltf.TrackingID
|
||||||
|
join T_Login l on l.ID=lt.AssignedTo
|
||||||
|
join T_StaffDetails sd on sd.StaffID=l.StaffID
|
||||||
|
left join T_Lead_Details ld on ld.LeadID=lt.LeadID
|
||||||
|
left join T_ActivityMaster am on am.ActivityID=lt.ActivityStatus
|
||||||
|
join T_PickListDetails list on list.ListCode=ltf.StatusName
|
||||||
|
where InteractionID in (select max(InteractionID) from T_Lead_Tracking_Followup group by TrackingID)
|
||||||
|
and month(STR_TO_DATE(ltf.FollowupOn,'%d-%m-%Y')) = month(now()) and ltf.IsActive = 1 ";
|
||||||
$followupsCount=$this->db->query($sql);
|
$followupsCount=$this->db->query($sql);
|
||||||
$fcount = $followupsCount->result();
|
$fcount = $followupsCount->result();
|
||||||
if (count($fcount) > 0) {
|
if (count($fcount) > 0) {
|
||||||
@ -499,12 +513,12 @@ public function leadCountMonth(){
|
|||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
public function feeOutstanding(){
|
public function feeOutstanding(){
|
||||||
$sql = "select b.bcode,bm.BatchName as Batches,sum(b.totalpayable) as TotalPayableFee,sum(b.totalpaid) as TotalPaidFee,sum(b.balpayable) as TotalBalance,round(ifnull(((sum(b.balpayable)/sum(b.totalpayable))*100),0),2) as BalancePercentage,
|
$sql = "select b.bcode,b.Batches,sum(b.totalpayable) as TotalPayableFee,sum(b.totalpaid) as TotalPaidFee,sum(b.balpayable) as TotalBalance,round(ifnull(((sum(b.balpayable)/sum(b.totalpayable))*100),0),2) as BalancePercentage,
|
||||||
group_concat(scb.staff,'-',bal_percentage) as BalancePercentageByStaff
|
scb.staff as BalancePercentageByStaff
|
||||||
from BalFees b
|
from BalFees b
|
||||||
left join staff_count_batch scb on scb.bcode = b.bcode
|
left join (select bcode,sum(totalpayable) as tot,sum(totalpaid) as paid,sum(balpayable) as balance,((sum(balpayable)/sum(totalpayable)) * 100) as balPercentage,group_concat(staff,'-',bal_percentage) as staff from staff_count_batch
|
||||||
left join T_BatchMaster bm on bm.BatchCode = b.bcode
|
group by bcode) scb on scb.bcode = b.bcode
|
||||||
group by b.bcode ";
|
group by b.bcode; ";
|
||||||
$ltd=$this->db->query($sql);
|
$ltd=$this->db->query($sql);
|
||||||
$tlead = $ltd->result();
|
$tlead = $ltd->result();
|
||||||
if (count($tlead) > 0) {
|
if (count($tlead) > 0) {
|
||||||
@ -563,6 +577,61 @@ public function leadCountMonth(){
|
|||||||
|
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
public function admissionBatch($univ = null){
|
||||||
|
$sql = "SELECT sfs.BatchCode as bcode,scd.UniversityID as uid,ifnull(bm.BatchName,'-') as Batches,month(std.CreatedOn),ifnull(concat(sd.Firstname,' ',sd.Lastname),'-') as Staff,ifnull(std.AdmittedBy,'-') as admittedby,count(distinct std.StudentID) as TotalNoOfAdmissions
|
||||||
|
FROM T_StudentDetails std
|
||||||
|
join T_Student_CourseDetails scd on scd.StudentID = std.StudentID
|
||||||
|
left join T_Students_Fees_Status sfs on sfs.StudentID =scd.StudentID and sfs.CourseID = scd.CourseID
|
||||||
|
left join T_BatchMaster bm on bm.BatchCode = sfs.BatchCode
|
||||||
|
left join T_StaffDetails sd on sd.StaffID = std.AdmittedBy
|
||||||
|
where year(std.CreatedOn) = year(now())
|
||||||
|
";
|
||||||
|
|
||||||
|
if($univ != ''){
|
||||||
|
$sql.= " and scd.UniversityID = '".$univ."'";
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql.= " group by bcode,admittedby";
|
||||||
|
|
||||||
|
$ltd=$this->db->query($sql);
|
||||||
|
$tlead = $ltd->result();
|
||||||
|
if (count($tlead) > 0) {
|
||||||
|
$results['lList'] = true;
|
||||||
|
$results['l_data'] = $tlead;
|
||||||
|
} else {
|
||||||
|
$results['lList'] = false;
|
||||||
|
$results['message'] = 'No record found';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $results;
|
||||||
|
}
|
||||||
|
//To Filters
|
||||||
|
public function getYear($branch = null){
|
||||||
|
$sql = "select year(CreatedOn) as year from T_StudentDetails group by year ";
|
||||||
|
$ltd=$this->db->query($sql);
|
||||||
|
$year = $ltd->result();
|
||||||
|
//get batch
|
||||||
|
$brsql = "select BatchCode,BatchName from T_BatchMaster ";
|
||||||
|
$brf=$this->db->query($brsql);
|
||||||
|
$branchf = $brf->result();
|
||||||
|
//get university
|
||||||
|
$usql = "select UniversityID,UniversityName from T_UniversityMaster ";
|
||||||
|
$uf=$this->db->query($usql);
|
||||||
|
$univf = $uf->result();
|
||||||
|
|
||||||
|
if (count($year) > 0) {
|
||||||
|
$results['yearList'] = true;
|
||||||
|
$results['year'] = $year;
|
||||||
|
$results['branch'] = $branchf;
|
||||||
|
$results['univ'] = $univf;
|
||||||
|
} else {
|
||||||
|
$results['yearList'] = false;
|
||||||
|
$results['message'] = 'No record found';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $results;
|
||||||
|
}
|
||||||
|
//End of filters
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -105,15 +105,56 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
|
|
||||||
};
|
};
|
||||||
/*For dashboard tab*/
|
/*For dashboard tab*/
|
||||||
$scope.l_dataToday = 0;
|
//To filters
|
||||||
$scope.l_dataMonth = 0;
|
//Fees outstanding
|
||||||
$scope.l_dataDayClosed = 0;
|
$scope.filters = {
|
||||||
$scope.l_dataMonthClosed = 0;
|
"year" : "",
|
||||||
$scope.adMonth = 0;
|
"month" : "",
|
||||||
$scope.adYear = 0;
|
"batch" : "",
|
||||||
$scope.fout = 0;
|
"univ" : ""
|
||||||
$scope.ftoday = 0;
|
}
|
||||||
$scope.fpending = 0;
|
$scope.year = '';
|
||||||
|
$scope.branch = '';
|
||||||
|
$scope.univ = '';
|
||||||
|
|
||||||
|
var fYear = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'filterYear/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||||
|
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||||
|
requestedDept: JSON.parse(localStorage.getItem('localObj')).localType
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(fYear).then(function (response) {
|
||||||
|
if (response.data.yearList == true) {
|
||||||
|
$scope.year = response.data.year;
|
||||||
|
$scope.branch = response.data.branch;
|
||||||
|
$scope.univ = response.data.univ;
|
||||||
|
|
||||||
|
console.log($scope.branch);
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$scope.message = response.data.message;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
//End of filters
|
||||||
|
$scope.l_dataToday = '';
|
||||||
|
$scope.l_dataMonth = '';
|
||||||
|
$scope.l_dataDayClosed = '';
|
||||||
|
$scope.l_dataMonthClosed = '';
|
||||||
|
$scope.adMonth = '';
|
||||||
|
$scope.adYear = '';
|
||||||
|
$scope.fout = '';
|
||||||
|
$scope.ftoday = '';
|
||||||
|
$scope.fpending = '';
|
||||||
|
$scope.adBatch = '';
|
||||||
|
$scope.adBatchfilter = '';
|
||||||
$scope.initDashboardDetails = function () {
|
$scope.initDashboardDetails = function () {
|
||||||
//lead today
|
//lead today
|
||||||
var leadToday = {
|
var leadToday = {
|
||||||
@ -352,7 +393,7 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
for(var i=0;i<$scope.adMonth.length;i++)
|
for(var i=0;i<$scope.adMonth.length;i++)
|
||||||
$scope.adMonth[i].Sl_No = i+1;
|
$scope.adMonth[i].Sl_No = i+1;
|
||||||
$scope.ad = false;
|
$scope.ad = false;
|
||||||
console.log($scope.adMonth);
|
// console.log($scope.adMonth);
|
||||||
} else {
|
} else {
|
||||||
$scope.ad = true;
|
$scope.ad = true;
|
||||||
$scope.message = response.data.message;
|
$scope.message = response.data.message;
|
||||||
@ -422,7 +463,7 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
for(var i=0;i<$scope.adYear.length;i++)
|
for(var i=0;i<$scope.adYear.length;i++)
|
||||||
$scope.adYear[i].Sl_No = i+1;
|
$scope.adYear[i].Sl_No = i+1;
|
||||||
$scope.ady = false;
|
$scope.ady = false;
|
||||||
console.log($scope.adYear);
|
//console.log($scope.adYear);
|
||||||
} else {
|
} else {
|
||||||
$scope.ady = true;
|
$scope.ady = true;
|
||||||
$scope.message = response.data.message;
|
$scope.message = response.data.message;
|
||||||
@ -431,13 +472,17 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
|
|
||||||
|
|
||||||
//Data grid
|
//Data grid
|
||||||
|
$scope.filterRow = {
|
||||||
|
visible: true,
|
||||||
|
applyFilter: "auto"
|
||||||
|
};
|
||||||
$scope.showColumnLines = true;
|
$scope.showColumnLines = true;
|
||||||
$scope.showRowLines = true;
|
$scope.showRowLines = true;
|
||||||
$scope.rowAlternationEnabled = true;
|
$scope.rowAlternationEnabled = true;
|
||||||
$scope.adYeargrid = {
|
$scope.adYeargrid = {
|
||||||
showBorders: true,
|
showBorders: true,
|
||||||
columnAutoWidth: true,
|
columnAutoWidth: true,
|
||||||
columnWidth: 100,
|
//columnWidth: 100,
|
||||||
|
|
||||||
"export": {
|
"export": {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
@ -453,51 +498,65 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
showInfo: true
|
showInfo: true
|
||||||
},
|
},
|
||||||
bindingOptions: {
|
bindingOptions: {
|
||||||
|
//filterRow: "filterRow",
|
||||||
showColumnLines: "showColumnLines",
|
showColumnLines: "showColumnLines",
|
||||||
showRowLines: "showRowLines",
|
showRowLines: "showRowLines",
|
||||||
rowAlternationEnabled: "rowAlternationEnabled",
|
rowAlternationEnabled: "rowAlternationEnabled",
|
||||||
dataSource: 'adYear'
|
dataSource: 'adYear'
|
||||||
},
|
},
|
||||||
columns: ['Sl_No', 'university', {
|
columns: [{ dataField: 'Sl_No', width:50 }, { dataField: 'university', width:200 }, {
|
||||||
dataField: "June",
|
dataField: "June",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "July",
|
dataField: "July",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "August",
|
dataField: "August",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "September",
|
dataField: "September",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "October",
|
dataField: "October",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "November",
|
dataField: "November",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "December",
|
dataField: "December",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "January",
|
dataField: "January",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "February",
|
dataField: "February",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "March",
|
dataField: "March",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "April",
|
dataField: "April",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "May",
|
dataField: "May",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
width:60
|
||||||
}, {
|
}, {
|
||||||
dataField: "total",
|
dataField: "total",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
}, 'AdmissionTakenBy']
|
width:60
|
||||||
|
}, { dataField: 'AdmissionTakenBy', cssClass: 'WrappedColumnClass', width:300 }]
|
||||||
};
|
};
|
||||||
//Fees outstanding
|
//Fees outstanding
|
||||||
var fOut = {
|
var fOut = {
|
||||||
@ -519,7 +578,7 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
for(var i=0;i<$scope.fout.length;i++)
|
for(var i=0;i<$scope.fout.length;i++)
|
||||||
$scope.fout[i].Sl_No = i+1;
|
$scope.fout[i].Sl_No = i+1;
|
||||||
$scope.fo = false;
|
$scope.fo = false;
|
||||||
console.log($scope.fo);
|
//console.log($scope.fo);
|
||||||
} else {
|
} else {
|
||||||
$scope.fo = true;
|
$scope.fo = true;
|
||||||
$scope.message = response.data.message;
|
$scope.message = response.data.message;
|
||||||
@ -551,19 +610,35 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
rowAlternationEnabled: "rowAlternationEnabled",
|
rowAlternationEnabled: "rowAlternationEnabled",
|
||||||
dataSource: 'fout'
|
dataSource: 'fout'
|
||||||
},
|
},
|
||||||
columns: ['Sl_No', 'Batches', {
|
columns: [ {
|
||||||
|
dataField: "Sl_No",
|
||||||
|
dataType: "number",
|
||||||
|
//width:50
|
||||||
|
}, {
|
||||||
|
dataField: "Batches",
|
||||||
|
dataType: "number",
|
||||||
|
// width:100
|
||||||
|
}, {
|
||||||
dataField: "TotalPayableFee",
|
dataField: "TotalPayableFee",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
// width:80
|
||||||
}, {
|
}, {
|
||||||
dataField: "TotalPaidFee",
|
dataField: "TotalPaidFee",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
// width:80
|
||||||
}, {
|
}, {
|
||||||
dataField: "TotalBalance",
|
dataField: "TotalBalance",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
|
// width:80
|
||||||
}, {
|
}, {
|
||||||
dataField: "BalancePercentage",
|
dataField: "BalancePercentage",
|
||||||
dataType: "number"
|
dataType: "number",
|
||||||
},'BalancePercentageByStaff']
|
// width:80
|
||||||
|
}, {
|
||||||
|
dataField: "BalancePercentageByStaff",
|
||||||
|
cssClass: 'WrappedColumnClass',
|
||||||
|
width:300
|
||||||
|
}]
|
||||||
};
|
};
|
||||||
//Follow ups today
|
//Follow ups today
|
||||||
var ftoday = {
|
var ftoday = {
|
||||||
@ -585,7 +660,7 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
for(var i=0;i<$scope.ftoday.length;i++)
|
for(var i=0;i<$scope.ftoday.length;i++)
|
||||||
$scope.ftoday[i].Sl_No = i+1;
|
$scope.ftoday[i].Sl_No = i+1;
|
||||||
$scope.fut = false;
|
$scope.fut = false;
|
||||||
console.log($scope.ftoday);
|
// console.log($scope.ftoday);
|
||||||
} else {
|
} else {
|
||||||
$scope.fut = true;
|
$scope.fut = true;
|
||||||
$scope.message = response.data.message;
|
$scope.message = response.data.message;
|
||||||
@ -639,7 +714,7 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
for(var i=0;i<$scope.fpending.length;i++)
|
for(var i=0;i<$scope.fpending.length;i++)
|
||||||
$scope.fpending[i].Sl_No = i+1;
|
$scope.fpending[i].Sl_No = i+1;
|
||||||
$scope.fp = false;
|
$scope.fp = false;
|
||||||
console.log($scope.fpending);
|
//console.log($scope.fpending);
|
||||||
} else {
|
} else {
|
||||||
$scope.fp = true;
|
$scope.fp = true;
|
||||||
$scope.message = response.data.message;
|
$scope.message = response.data.message;
|
||||||
@ -673,10 +748,166 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
},
|
},
|
||||||
columns: ['TrackingId', 'name', 'mobileNo', 'course', 'university', 'activity', 'AssignTo', 'FollowUpDate', 'status']
|
columns: ['TrackingId', 'name', 'mobileNo', 'course', 'university', 'activity', 'AssignTo', 'FollowUpDate', 'status']
|
||||||
};
|
};
|
||||||
|
//Admissions batch
|
||||||
|
var AdmissionsBatch = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'admissionBatch/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
univ: $scope.filters.univ
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
//var gridData = 0;
|
||||||
|
$http(AdmissionsBatch).then(function (response) {
|
||||||
|
if (response.data.lList == true) {
|
||||||
|
$scope.fbselect = false;
|
||||||
|
$scope.adBatch = response.data.l_data;
|
||||||
|
for(var i=0;i<$scope.adBatch.length;i++)
|
||||||
|
$scope.adBatch[i].Sl_No = i+1;
|
||||||
|
// var gridData = $scope.adBatch;
|
||||||
|
$scope.adb = false;
|
||||||
|
console.log($scope.adBatch);
|
||||||
|
$scope.adBatchgrid = {
|
||||||
|
|
||||||
|
allowSortingBySummary: true,
|
||||||
|
allowSorting: true,
|
||||||
|
allowFiltering: true,
|
||||||
|
allowExpandAll: true,
|
||||||
|
height: 440,
|
||||||
|
showBorders: true,
|
||||||
|
fieldChooser: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
enabled: true,
|
||||||
|
fileName: "AdmissionsBatch"
|
||||||
|
},
|
||||||
|
dataSource: {
|
||||||
|
fields: [{
|
||||||
|
caption: "Batches",
|
||||||
|
width: 100,
|
||||||
|
dataField: "Batches",
|
||||||
|
area: "row"
|
||||||
|
}, {
|
||||||
|
caption: "Staff",
|
||||||
|
dataField: "Staff",
|
||||||
|
area: "column"
|
||||||
|
}, {
|
||||||
|
caption: "TotalNoOfAdmissions",
|
||||||
|
dataField: "TotalNoOfAdmissions",
|
||||||
|
dataType: "number",
|
||||||
|
summaryType: "sum",
|
||||||
|
area: "data"
|
||||||
|
}],
|
||||||
|
store: $scope.adBatch
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
$scope.adb = true;
|
||||||
|
$scope.message = response.data.message;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//function for batch filter
|
||||||
|
$scope.buttonOptions = {
|
||||||
|
text: "Test",
|
||||||
|
onClick: function(){
|
||||||
|
$scope.adBatchfilter = $scope.adBatchfilter;
|
||||||
|
|
||||||
|
$scope.pivot.getDataSource().reload();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
$scope.batchFilter = function(){
|
||||||
|
$scope.adBatchgrid1 = '';
|
||||||
|
//Admissions batch
|
||||||
|
var AdmissionsBatch = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'admissionBatch/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
univ: $scope.filters.univ
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
//var gridData = 0;
|
||||||
|
$http(AdmissionsBatch).then(function (response) {
|
||||||
|
if (response.data.lList == true) {
|
||||||
|
$scope.adBatch = '';
|
||||||
|
|
||||||
|
$scope.adBatchfilter = '';
|
||||||
|
$scope.fbselect = true;
|
||||||
|
$scope.adb = false;
|
||||||
|
$scope.adBatchfilter = response.data.l_data;
|
||||||
|
for(var i=0;i<$scope.adBatchfilter.length;i++)
|
||||||
|
$scope.adBatchfilter[i].Sl_No = i+1;
|
||||||
|
// var gridData = $scope.adBatch;
|
||||||
|
|
||||||
|
$scope.adb = false;
|
||||||
|
console.log($scope.adBatchfilter);
|
||||||
|
|
||||||
|
$scope.adBatchgrid1 = {
|
||||||
|
|
||||||
|
|
||||||
|
allowSortingBySummary: true,
|
||||||
|
allowSorting: true,
|
||||||
|
allowFiltering: true,
|
||||||
|
allowExpandAll: true,
|
||||||
|
height: 440,
|
||||||
|
showBorders: true,
|
||||||
|
fieldChooser: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
|
|
||||||
|
"export": {
|
||||||
|
enabled: true,
|
||||||
|
fileName: "AdmissionsBatch"
|
||||||
|
},
|
||||||
|
dataSource: {
|
||||||
|
|
||||||
|
fields: [{
|
||||||
|
caption: "Batches",
|
||||||
|
width: 100,
|
||||||
|
dataField: "Batches",
|
||||||
|
area: "row"
|
||||||
|
}, {
|
||||||
|
caption: "Staff",
|
||||||
|
dataField: "Staff",
|
||||||
|
area: "column"
|
||||||
|
}, {
|
||||||
|
caption: "TotalNoOfAdmissions",
|
||||||
|
dataField: "TotalNoOfAdmissions",
|
||||||
|
dataType: "number",
|
||||||
|
summaryType: "sum",
|
||||||
|
area: "data"
|
||||||
|
}],
|
||||||
|
store: new DevExpress.data.CustomStore({
|
||||||
|
load: function(loadOptions) {
|
||||||
|
var d = $.Deferred();
|
||||||
|
setTimeout(function() {
|
||||||
|
d.resolve($scope.adBatchfilter);
|
||||||
|
}, 500);
|
||||||
|
return d.promise();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
$scope.fbselect = false;
|
||||||
|
$scope.message = response.data.message;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
/*end dashboard tab*/
|
/*end dashboard tab*/
|
||||||
/*For dashboard tiles*/
|
/*For dashboard tiles*/
|
||||||
$scope.lead_dataToday = 0;
|
$scope.lead_dataToday = 0;
|
||||||
@ -787,10 +1018,8 @@ app.controller('dashboardCtrl', ["$scope", "$rootScope", "toaster", "$filter", "
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
year: $scope.filters.year,
|
||||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
month: $scope.filters.month
|
||||||
requestedDept: JSON.parse(localStorage.getItem('localObj')).localType
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$http(monthAdmission).then(function (response) {
|
$http(monthAdmission).then(function (response) {
|
||||||
|
|||||||
@ -28,6 +28,7 @@
|
|||||||
<!-- start today followup details tab-->
|
<!-- start today followup details tab-->
|
||||||
<tab heading="Leads Created Today : {{l_dataToday.length}}" class="padding-top-5 padding-left-5">
|
<tab heading="Leads Created Today : {{l_dataToday.length}}" class="padding-top-5 padding-left-5">
|
||||||
<div ng-if="getLoginType=='R004'" class="panel-scroll height-600" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
<div ng-if="getLoginType=='R004'" class="panel-scroll height-600" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
||||||
|
|
||||||
<div ng-if="lt==true">
|
<div ng-if="lt==true">
|
||||||
<center>
|
<center>
|
||||||
<h5 class="text-dark">No Leads!</h5>
|
<h5 class="text-dark">No Leads!</h5>
|
||||||
|
|||||||
@ -2,8 +2,12 @@
|
|||||||
a {
|
a {
|
||||||
color: #5b5b60;
|
color: #5b5b60;
|
||||||
}
|
}
|
||||||
|
.WrappedColumnClass {
|
||||||
|
white-space: normal;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<!-- start: DASHBOARD TITLE -->
|
<!-- start: DASHBOARD TITLE -->
|
||||||
<!--<section id="page-title" class="padding-top-15 padding-bottom-15">
|
<!--<section id="page-title" class="padding-top-15 padding-bottom-15">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-7">
|
<div class="col-sm-7">
|
||||||
@ -28,6 +32,55 @@
|
|||||||
<!-- start Admissions-Month tab-->
|
<!-- start Admissions-Month tab-->
|
||||||
<tab heading="Admissions-Month : {{adMonth.length}}" class="padding-top-5 padding-left-5">
|
<tab heading="Admissions-Month : {{adMonth.length}}" class="padding-top-5 padding-left-5">
|
||||||
<div ng-if="getLoginType=='R004'" class="panel-scroll height-500" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
<div ng-if="getLoginType=='R004'" class="panel-scroll height-500" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
||||||
|
<!-- <div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label>
|
||||||
|
Year
|
||||||
|
</label><br>
|
||||||
|
|
||||||
|
<select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="year" ng-model="filters.year" required>
|
||||||
|
<option value="" selected>Select Year</option>
|
||||||
|
|
||||||
|
<option ng-repeat="y in year" value="{{y.year}}">2018</option>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label>
|
||||||
|
Month
|
||||||
|
</label><br>
|
||||||
|
|
||||||
|
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="month" ng-model="filters.month" required>
|
||||||
|
<option value="" selected>Select Month</option>
|
||||||
|
<option value=1>January</option>
|
||||||
|
<option value=2>February</option>
|
||||||
|
<option value=3>March</option>
|
||||||
|
<option value=4>April</option>
|
||||||
|
<option value=5>May</option>
|
||||||
|
<option value=6>June</option>
|
||||||
|
<option value=7>July</option>
|
||||||
|
<option value=8>August</option>
|
||||||
|
<option value=9>September</option>
|
||||||
|
<option value=10>October</option>
|
||||||
|
<option value=11>November</option>
|
||||||
|
<option value=12>December</option>
|
||||||
|
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||||
|
<div >
|
||||||
|
|
||||||
|
<button type="submit" class="btn btn-success btn-o" ng-click = "getFilteredData()" tabindex="8">
|
||||||
|
Submit
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
<div ng-if="ad==true">
|
<div ng-if="ad==true">
|
||||||
<center>
|
<center>
|
||||||
<h5 class="text-dark">No Admissions!</h5>
|
<h5 class="text-dark">No Admissions!</h5>
|
||||||
@ -118,23 +171,51 @@
|
|||||||
</tab>
|
</tab>
|
||||||
<!-- end Admissions-Month tab-->
|
<!-- end Admissions-Month tab-->
|
||||||
<!-- end Admissions-Batch tab-->
|
<!-- end Admissions-Batch tab-->
|
||||||
<tab heading="Admissions-Batch : {{pendingFolloupDetails.length}}" class="padding-top-5">
|
<tab heading="Admissions-Batch : {{adBatch.length || adBatchfilter.length}}" class="padding-top-5">
|
||||||
|
|
||||||
<div ng-if="getLoginType!='R004'" class="panel-scroll height-200" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
<div ng-if="getLoginType=='R004'" class="panel-scroll height-500" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
||||||
<div ng-if="emptyDataPending==true">
|
<!-- <div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label>
|
||||||
|
University
|
||||||
|
</label><br>
|
||||||
|
|
||||||
|
<select style="width: 250px;" ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="univ" ng-model="filters.univ" required>
|
||||||
|
<option value="" selected>Select University</option>
|
||||||
|
|
||||||
|
<option ng-repeat="b in univ" value="{{b.UniversityID}}">{{b.UniversityName}}</option>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||||
|
<div >
|
||||||
|
|
||||||
|
<button type="submit" class="btn btn-success btn-o" ng-click = "batchFilter()" tabindex="8">
|
||||||
|
Submit
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><br> -->
|
||||||
|
<div ng-if="adb==true">
|
||||||
<center>
|
<center>
|
||||||
<h5 class="text-dark">No Pending Followup!</h5>
|
<h5 class="text-dark">No Pending Followup!</h5>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl-effect-13" style="float: right" ng-if="emptyDataPending==false">
|
<!-- <div class="cl-effect-13" style="float: right" ng-if="adb==false">
|
||||||
<a ui-sref="app.call.tracking">
|
<a ui-sref="app.call.tracking">
|
||||||
view more
|
view more
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div> -->
|
||||||
<table class="table table-hover" ng-if="emptyDataPending==false">
|
<div dx-pivot-grid="adBatchgrid" ng-if="adb==false && fbselect==false"></div>
|
||||||
|
<div dx-pivot-grid="adBatchgrid1" ng-if="fbselect==true"></div>
|
||||||
|
<div dx-button="buttonOptions"></div>
|
||||||
|
<!-- <table class="table table-hover" ng-if="emptyDataPending==false">
|
||||||
<thead>
|
<thead>
|
||||||
<!-- <tr> -->
|
|
||||||
<!-- <td colspan="6" style="background:#C82E29;color:#fff !important">Total Entries :{{pendingFolloupDetails.length}}</td></tr> -->
|
|
||||||
<tr>
|
<tr>
|
||||||
<th> ID</th>
|
<th> ID</th>
|
||||||
<th> Name</th>
|
<th> Name</th>
|
||||||
@ -163,9 +244,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table> -->
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="getLoginType=='R004'" class="panel-scroll height-350" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
<div ng-if="getLoginType!='R004'" class="panel-scroll height-350" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
||||||
|
|
||||||
<div ng-if="emptyDataPending==true">
|
<div ng-if="emptyDataPending==true">
|
||||||
<center>
|
<center>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user