hallticket
This commit is contained in:
parent
e38511ff64
commit
ccdf33dd91
@ -375,6 +375,7 @@ $route['updateSessionScheduleDetails'] = 'SessionSchedule_Controller/updateSessi
|
|||||||
|
|
||||||
/// halltickets and Exam Attendance
|
/// halltickets and Exam Attendance
|
||||||
$route['getUniversityCourseDetails'] = 'HallTickets_Controller/getUniversityCourseDetails';
|
$route['getUniversityCourseDetails'] = 'HallTickets_Controller/getUniversityCourseDetails';
|
||||||
|
// $route['getallStudentdetails'] = 'HallTickets_Controller/getallStudentdetails';
|
||||||
$route['getSemesterSubjectDetails'] = 'HallTickets_Controller/getSemesterSubjectDetails';
|
$route['getSemesterSubjectDetails'] = 'HallTickets_Controller/getSemesterSubjectDetails';
|
||||||
$route['getExistingMapping'] = 'HallTickets_Controller/getExistingMapping';
|
$route['getExistingMapping'] = 'HallTickets_Controller/getExistingMapping';
|
||||||
$route['saveAllSemSubMapping'] = 'HallTickets_Controller/saveAllSemesterSubjectMapping';
|
$route['saveAllSemSubMapping'] = 'HallTickets_Controller/saveAllSemesterSubjectMapping';
|
||||||
@ -382,6 +383,8 @@ $route['getAllSemSubjects'] = 'HallTickets_Controller/getAllSemesterSubjects';
|
|||||||
$route['getIndividualCourseSemMappingDetails'] = 'HallTickets_Controller/getIndividualCourseSemMappingDetails';
|
$route['getIndividualCourseSemMappingDetails'] = 'HallTickets_Controller/getIndividualCourseSemMappingDetails';
|
||||||
$route['updateAllSemSubMapping'] = 'HallTickets_Controller/updateAllSemesterSubjectMapping';
|
$route['updateAllSemSubMapping'] = 'HallTickets_Controller/updateAllSemesterSubjectMapping';
|
||||||
$route['getStudentListForHallTicket'] = 'HallTickets_Controller/getStudentListForHallTicket';
|
$route['getStudentListForHallTicket'] = 'HallTickets_Controller/getStudentListForHallTicket';
|
||||||
|
|
||||||
|
$route['getallStudentdetails'] = 'HallTickets_Controller/getallStudentdetails';
|
||||||
$route['getHallTicket'] = 'HallTickets_Controller/getHallTicket';
|
$route['getHallTicket'] = 'HallTickets_Controller/getHallTicket';
|
||||||
$route['getBatchAndCenterDetails'] = 'HallTickets_Controller/getBatchAndCenterDetails';
|
$route['getBatchAndCenterDetails'] = 'HallTickets_Controller/getBatchAndCenterDetails';
|
||||||
$route['getStudentDetailsForExamAttendance'] = 'HallTickets_Controller/getStudentDetailsForExamAttendance';
|
$route['getStudentDetailsForExamAttendance'] = 'HallTickets_Controller/getStudentDetailsForExamAttendance';
|
||||||
|
|||||||
@ -606,7 +606,34 @@ class HallTickets_Controller extends REST_Controller {
|
|||||||
//print_r($center);die();
|
//print_r($center);die();
|
||||||
$res = $this->Hallticket_model->getStudentListForHallTicketmodel($UID,$courseID,$batch,$requestedBy,$branchId,$center);
|
$res = $this->Hallticket_model->getStudentListForHallTicketmodel($UID,$courseID,$batch,$requestedBy,$branchId,$center);
|
||||||
// echo "CON";
|
// echo "CON";
|
||||||
// print_r($res);die();
|
// print_r($res);die();
|
||||||
|
if(count($res) > 0)
|
||||||
|
{
|
||||||
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
|
$data['studentStatus'] = true;
|
||||||
|
$data['studentDetails'] = $res;
|
||||||
|
$this->response($data, REST_Controller::HTTP_OK);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->response([
|
||||||
|
'message' => 'Something Went Wrong!',
|
||||||
|
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||||
|
], REST_Controller::HTTP_NOT_FOUND);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public function getallStudentdetails_post()
|
||||||
|
{
|
||||||
|
$UID = $this->post('university');
|
||||||
|
$courseID = $this->post('course');
|
||||||
|
$batch = $this->post('batch');
|
||||||
|
$requestedBy = $this->post('requestedDept');
|
||||||
|
$branchId = $this->post('branchId');
|
||||||
|
$center = $this->post('center');
|
||||||
|
//print_r($center);die();
|
||||||
|
$res = $this->Hallticket_model->getallStudentdetails($UID,$courseID,$batch,$requestedBy,$branchId,$center);
|
||||||
|
// echo "CON";
|
||||||
|
// print_r($res);die();
|
||||||
if(count($res) > 0)
|
if(count($res) > 0)
|
||||||
{
|
{
|
||||||
$data['status'] = REST_Controller::HTTP_OK;
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
|
|||||||
@ -873,6 +873,90 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getallStudentdetails($UID,$courseID=null,$batch,$requestedBy,$branchId,$center)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->db->distinct();
|
||||||
|
$this->db->select('T_StudentDetails.StudentID,T_StudentDetails.MobileNumber,T_StudentDetails.Firstname,T_StudentDetails.Lastname,T_StudentDetails.EmailID,T_StudentDetails.ProfilePicPath,T_Student_CourseDetails.EnrollmentID,T_Hallticket_Master.HallTicket_ID,T_Hallticket_Student_Details.HallTicket_ID as isFlag,BalFees.balpayable,BalFees.semyr,T_Student_CourseDetails.CourseID as CourseID,T_CourseMaster.CourseName,T_Student_CourseDetails.UniversityID,
|
||||||
|
if(substr(substr(BalFees.semyr, -4), 1, 3) = "sem", substr(BalFees.semyr, -1),
|
||||||
|
if(substr(substr(BalFees.semyr, -5), 1, 4) = "year", substr(BalFees.semyr, -1), false)) as SemID,
|
||||||
|
if(substr(substr(BalFees.semyr, -4), 1, 3) = "sem", "SEM",
|
||||||
|
if(substr(substr(BalFees.semyr, -5), 1, 4) = "year","YEAR", false)) as SubType,
|
||||||
|
BalFees.semyr');
|
||||||
|
$this->db->from('T_Students_Fees_Status');
|
||||||
|
$this->db->join('T_StudentDetails','T_Students_Fees_Status.StudentID=T_StudentDetails.StudentID and T_StudentDetails.IsActive = 1');
|
||||||
|
$this->db->join('BalFees','BalFees.student =T_Students_Fees_Status.StudentID and BalFees.course = T_Students_Fees_Status. CourseID and BalFees.branchCode = T_Students_Fees_Status.BranchCode and BalFees.bcode=T_Students_Fees_Status.BatchCode');
|
||||||
|
|
||||||
|
$this->db->join('T_Student_CourseDetails','T_StudentDetails.StudentID = T_Student_CourseDetails.StudentID and T_Students_Fees_Status.CourseID = T_Student_CourseDetails.CourseID');
|
||||||
|
$this->db->join('T_Hallticket_Master','T_Students_Fees_Status.CourseID = T_Hallticket_Master.CourseID and T_Students_Fees_Status.BatchCode = T_Hallticket_Master.BatchCode and T_Students_Fees_Status.BranchCode = T_Hallticket_Master.BranchCode and T_Hallticket_Master.CenterID='.$center['CenterID'],'left');
|
||||||
|
$this->db->join('T_Hallticket_Student_Details','T_Hallticket_Master.HallTicket_ID = T_Hallticket_Student_Details.HallTicket_ID and T_Students_Fees_Status.StudentID = T_Hallticket_Student_Details.StudentID','left');
|
||||||
|
$this->db->join('T_CourseMaster','T_CourseMaster.CourseID = T_Student_CourseDetails.CourseID');
|
||||||
|
$this->db->where('T_Students_Fees_Status.BatchCode',$batch);
|
||||||
|
$this->db->where('T_Students_Fees_Status.BranchCode',$branchId);
|
||||||
|
if(($courseID !='')||($courseID != null))
|
||||||
|
{
|
||||||
|
$this->db->where('T_Students_Fees_Status.CourseID',$courseID);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$res = $this->db->get();
|
||||||
|
$data = $res->result();
|
||||||
|
|
||||||
|
// print_r($this->db->last_query()); die();
|
||||||
|
|
||||||
|
$result_array = array();
|
||||||
|
$Course_array = array();
|
||||||
|
if(count($data) > 0)
|
||||||
|
{
|
||||||
|
$result_array = array();
|
||||||
|
$prestu = "";
|
||||||
|
foreach($data as $r)
|
||||||
|
{
|
||||||
|
// if($prestu != $r->StudentID)
|
||||||
|
// {
|
||||||
|
$studetdetails['StudentID'] = $r->StudentID;
|
||||||
|
$studetdetails['MobileNumber'] = $r->MobileNumber;
|
||||||
|
$studetdetails['Firstname'] = $r->Firstname;
|
||||||
|
$studetdetails['Lastname'] = $r->Lastname;
|
||||||
|
$studetdetails['EmailID'] = $r->EmailID;
|
||||||
|
$studetdetails['ProfilePicPath'] = $r->ProfilePicPath;
|
||||||
|
$studetdetails['EnrollmentID'] = $r->EnrollmentID;
|
||||||
|
$studetdetails['HallTicketMasterID'] = $r->HallTicket_ID;
|
||||||
|
$studetdetails['isFlag'] = $r->isFlag;
|
||||||
|
$studetdetails['balpayable'] =$r->balpayable;
|
||||||
|
$course = $r->CourseID;
|
||||||
|
|
||||||
|
$studetdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$course);
|
||||||
|
$studetdetails['CourseID'] = $r->CourseID;
|
||||||
|
$studetdetails['CourseName'] = $r->CourseName;
|
||||||
|
$studetdetails['balpayable'] =$r->balpayable;
|
||||||
|
$studetdetails['semyr'] =$r->semyr;
|
||||||
|
$studetdetails['SemID'] =$r->SemID;
|
||||||
|
$result_array[] = $studetdetails;
|
||||||
|
$prestu = $r->StudentID;
|
||||||
|
array_push($Course_array,$course);
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//print_r($result_array);die();
|
||||||
|
}
|
||||||
|
|
||||||
|
// print_r($this->db->last_query()); die();
|
||||||
|
|
||||||
|
//attendance save data start
|
||||||
|
|
||||||
|
$this->saveDataForExamAttendance($UID,$courseID=null,$batch,$requestedBy,$branchId,$center,$data,$Course_array,$result_array);
|
||||||
|
|
||||||
|
//attendance end
|
||||||
|
|
||||||
|
// print_r($result_array);die();
|
||||||
|
return $result_array;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function getStudentListForHallTicketmodel($UID,$courseID=null,$batch,$requestedBy,$branchId,$center)
|
public function getStudentListForHallTicketmodel($UID,$courseID=null,$batch,$requestedBy,$branchId,$center)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -902,7 +986,7 @@ BalFees.semyr');
|
|||||||
$res = $this->db->get();
|
$res = $this->db->get();
|
||||||
$data = $res->result();
|
$data = $res->result();
|
||||||
|
|
||||||
// print_r($this->db->last_query()); die();
|
// print_r($this->db->last_query()); die();
|
||||||
|
|
||||||
$result_array = array();
|
$result_array = array();
|
||||||
$Course_array = array();
|
$Course_array = array();
|
||||||
@ -925,7 +1009,8 @@ BalFees.semyr');
|
|||||||
$studetdetails['isFlag'] = $r->isFlag;
|
$studetdetails['isFlag'] = $r->isFlag;
|
||||||
$studetdetails['balpayable'] =$r->balpayable;
|
$studetdetails['balpayable'] =$r->balpayable;
|
||||||
$course = $r->CourseID;
|
$course = $r->CourseID;
|
||||||
$studetdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$course);
|
|
||||||
|
// $studetdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$course);
|
||||||
$studetdetails['CourseID'] = $r->CourseID;
|
$studetdetails['CourseID'] = $r->CourseID;
|
||||||
$studetdetails['CourseName'] = $r->CourseName;
|
$studetdetails['CourseName'] = $r->CourseName;
|
||||||
$studetdetails['balpayable'] =$r->balpayable;
|
$studetdetails['balpayable'] =$r->balpayable;
|
||||||
@ -936,30 +1021,29 @@ BalFees.semyr');
|
|||||||
array_push($Course_array,$course);
|
array_push($Course_array,$course);
|
||||||
|
|
||||||
|
|
||||||
//}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//print_r($result_array);die();
|
//print_r($result_array);die();
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_r($this->db->last_query()); die();
|
// print_r($this->db->last_query()); die();
|
||||||
|
|
||||||
//attendance save data start
|
//attendance save data start
|
||||||
|
|
||||||
// $this->saveDataForExamAttendance($UID,$courseID=null,$batch,$requestedBy,$branchId,$center,$data,$Course_array,$result_array);
|
// $this->saveDataForExamAttendance($UID,$courseID=null,$batch,$requestedBy,$branchId,$center,$data,$Course_array,$result_array);
|
||||||
|
|
||||||
//attendance end
|
//attendance end
|
||||||
|
|
||||||
//print_r($result_array);die();
|
// print_r($result_array);die();
|
||||||
return $result_array;
|
return $result_array;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function saveDataForExamAttendance($UID,$courseID=null,$batch,$requestedBy,$branchId,$center,$data,$Course_array,$result_array)
|
function saveDataForExamAttendance($UID,$courseID=null,$batch,$requestedBy,$branchId,$center,$data,$Course_array,$result_array)
|
||||||
{
|
{
|
||||||
|
// echo "save attendance";
|
||||||
|
|
||||||
$Course_array = array_unique($Course_array);
|
$Course_array = array_unique($Course_array);
|
||||||
//print_r($result_array);die();
|
//print_r($result_array);die();
|
||||||
@ -967,7 +1051,7 @@ BalFees.semyr');
|
|||||||
|
|
||||||
foreach ($Course_array as $keyy => $vvalue)
|
foreach ($Course_array as $keyy => $vvalue)
|
||||||
{
|
{
|
||||||
|
// echo "save attendance for 1";
|
||||||
$Ava_courseId = $vvalue;
|
$Ava_courseId = $vvalue;
|
||||||
$MASTERID = '00';
|
$MASTERID = '00';
|
||||||
|
|
||||||
@ -987,12 +1071,14 @@ BalFees.semyr');
|
|||||||
|
|
||||||
if(!empty($isExist[0]['HallTicket_ID']))
|
if(!empty($isExist[0]['HallTicket_ID']))
|
||||||
{
|
{
|
||||||
|
// echo "save attendance array push if hallticket1";
|
||||||
array_push($HallticketIDarray,$isExist[0]['HallTicket_ID']);
|
array_push($HallticketIDarray,$isExist[0]['HallTicket_ID']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// echo "save attendance array push else hallticket1";
|
||||||
$masterArray = array('UniversityID'=>$UID['universityID'],'CourseID'=>$Ava_courseId,'BatchCode'=>$batch,'BranchCode'=>$branchId,'CreatedBy'=>$requestedBy,'CenterID'=>$center['CenterID']);
|
$masterArray = array('UniversityID'=>$UID['universityID'],'CourseID'=>$Ava_courseId,'BatchCode'=>$batch,'BranchCode'=>$branchId,'CreatedBy'=>$requestedBy,'CenterID'=>$center['CenterID']);
|
||||||
$this->db->trans_start();
|
$this->db->trans_start();
|
||||||
$this->db->insert('T_Hallticket_Master',$masterArray);
|
$this->db->insert('T_Hallticket_Master',$masterArray);
|
||||||
@ -1009,11 +1095,13 @@ BalFees.semyr');
|
|||||||
|
|
||||||
foreach ($result_array as $key => $value)
|
foreach ($result_array as $key => $value)
|
||||||
{
|
{
|
||||||
|
// echo "save attendance for 1.1 hallticket1";
|
||||||
//print_r($value);
|
//print_r($value);
|
||||||
//echo $value['CourseID'];
|
//echo $value['CourseID'];
|
||||||
// echo $value['semyr'];die();
|
// echo $value['semyr'];die();
|
||||||
foreach ($HallticketIDarray as $keyy => $vval)
|
foreach ($HallticketIDarray as $keyy => $vval)
|
||||||
{
|
{
|
||||||
|
// echo "save attendance for 1.2 hallticket1";
|
||||||
$HallId = $vval;
|
$HallId = $vval;
|
||||||
|
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
@ -1030,7 +1118,8 @@ BalFees.semyr');
|
|||||||
// print_r($this->db->last_query());
|
// print_r($this->db->last_query());
|
||||||
|
|
||||||
if($studentcheck ->result())
|
if($studentcheck ->result())
|
||||||
{ //echo 'in';
|
{
|
||||||
|
// echo "select hall stud " ;
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from('T_Hallticket_Student_Details');
|
$this->db->from('T_Hallticket_Student_Details');
|
||||||
$this->db->where('Hallticket_ID',$HallId);
|
$this->db->where('Hallticket_ID',$HallId);
|
||||||
@ -1042,7 +1131,7 @@ BalFees.semyr');
|
|||||||
$checkresult = $check->result();
|
$checkresult = $check->result();
|
||||||
|
|
||||||
|
|
||||||
if(!empty($checkresult))
|
if(count($checkresult))
|
||||||
{
|
{
|
||||||
//echo 'not empty';
|
//echo 'not empty';
|
||||||
}
|
}
|
||||||
@ -1051,7 +1140,8 @@ BalFees.semyr');
|
|||||||
{
|
{
|
||||||
|
|
||||||
//print_r($check->result());
|
//print_r($check->result());
|
||||||
//echo count($check);
|
// echo "------";
|
||||||
|
// echo "select batch";
|
||||||
// if(count($check)>0)
|
// if(count($check)>0)
|
||||||
// {
|
// {
|
||||||
|
|
||||||
@ -1064,11 +1154,11 @@ BalFees.semyr');
|
|||||||
|
|
||||||
$sch_checkresult = $schcheck->result();
|
$sch_checkresult = $schcheck->result();
|
||||||
|
|
||||||
if(!empty($sch_checkresult))
|
if(count($sch_checkresult))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
// echo "insert hall student";
|
||||||
|
|
||||||
|
|
||||||
$tempArray = array('Hallticket_ID'=>$HallId,'StudentID'=>$value['StudentID'],'EnrollmentID'=>$value['EnrollmentID'],'Sem_Year'=>$value['semyr']);
|
$tempArray = array('Hallticket_ID'=>$HallId,'StudentID'=>$value['StudentID'],'EnrollmentID'=>$value['EnrollmentID'],'Sem_Year'=>$value['semyr']);
|
||||||
@ -1076,12 +1166,12 @@ BalFees.semyr');
|
|||||||
$this->db->trans_start();
|
$this->db->trans_start();
|
||||||
$this->db->insert('T_Hallticket_Student_Details',$tempArray);
|
$this->db->insert('T_Hallticket_Student_Details',$tempArray);
|
||||||
$HallTicketStudentID = $this->db->insert_id();
|
$HallTicketStudentID = $this->db->insert_id();
|
||||||
$HallTicketStudentID = $this->db->insert_id();
|
// $HallTicketStudentID = $this->db->insert_id();
|
||||||
$this->db->trans_complete();
|
$this->db->trans_complete();
|
||||||
|
|
||||||
$semid=substr($value['semyr'], -1);
|
$semid=substr($value['semyr'], -1);
|
||||||
|
|
||||||
//echo $value['semyr'];
|
// echo $value['semyr'];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1093,14 +1183,15 @@ BalFees.semyr');
|
|||||||
{
|
{
|
||||||
|
|
||||||
if($semid !='1')
|
if($semid !='1')
|
||||||
{//echo 'in';
|
{
|
||||||
|
// echo 'in';
|
||||||
$semid = $semid+1;
|
$semid = $semid+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//echo $semid;
|
// echo $semid;
|
||||||
$sql = "SELECT T_SemSubMap_Child.SubjectID,T_SubjectMaster.SubjectCode,T_SubjectMaster.SubjectName,T_SemSubMap_Master.SemesterID,T_Batch_Schedule_Child.ScheduleDate,T_Batch_Schedule_Child.FromTime,T_Batch_Schedule_Child.ToTime FROM T_SemSubMap_Child
|
$sql = "SELECT T_SemSubMap_Child.SubjectID,T_SubjectMaster.SubjectCode,T_SubjectMaster.SubjectName,T_SemSubMap_Master.SemesterID,T_Batch_Schedule_Child.ScheduleDate,T_Batch_Schedule_Child.FromTime,T_Batch_Schedule_Child.ToTime FROM T_SemSubMap_Child
|
||||||
JOIN T_SubjectMaster on T_SemSubMap_Child.SubjectID = T_SubjectMaster.SubjectID
|
JOIN T_SubjectMaster on T_SemSubMap_Child.SubjectID = T_SubjectMaster.SubjectID
|
||||||
JOIN T_SemSubMap_Master on T_SemSubMap_Child.MapID = T_SemSubMap_Master.MapID and T_SemSubMap_Master.UniversityID = ? and T_SemSubMap_Master.CourseID = ? and T_SemSubMap_Master.SemesterID = ? and T_SemSubMap_Master.BranchCode = ? and T_SemSubMap_Child.IsActive = 1
|
JOIN T_SemSubMap_Master on T_SemSubMap_Child.MapID = T_SemSubMap_Master.MapID and T_SemSubMap_Master.UniversityID = ? and T_SemSubMap_Master.CourseID = ? and T_SemSubMap_Master.SemesterID = ? and T_SemSubMap_Master.BranchCode = ? and T_SemSubMap_Child.IsActive = 1
|
||||||
@ -1118,6 +1209,7 @@ BalFees.semyr');
|
|||||||
|
|
||||||
foreach ($res as $keyres => $valueres)
|
foreach ($res as $keyres => $valueres)
|
||||||
{
|
{
|
||||||
|
// echo "sub insert hall";
|
||||||
|
|
||||||
$tempSubjectArray = array('HallTicket_Student_ID'=>$HallTicketStudentID,'SubjectCode'=>$valueres->SubjectID,'ExamDate'=>$valueres->ScheduleDate,'FromTime'=>$valueres->FromTime,'EndTime'=>$valueres->ToTime);
|
$tempSubjectArray = array('HallTicket_Student_ID'=>$HallTicketStudentID,'SubjectCode'=>$valueres->SubjectID,'ExamDate'=>$valueres->ScheduleDate,'FromTime'=>$valueres->FromTime,'EndTime'=>$valueres->ToTime);
|
||||||
|
|
||||||
|
|||||||
@ -190,7 +190,8 @@
|
|||||||
"COURSESEMESTERMAPPING": "Course Subject Mapping",
|
"COURSESEMESTERMAPPING": "Course Subject Mapping",
|
||||||
"BATCHSCHEDULE": "Schedule Batches",
|
"BATCHSCHEDULE": "Schedule Batches",
|
||||||
"GENERATEHALLTICKET": "Generate HallTicket",
|
"GENERATEHALLTICKET": "Generate HallTicket",
|
||||||
"EXAMATTENDANCE" : "Exam Attendance"
|
"EXAMATTENDANCE" : "Exam Attendance",
|
||||||
|
"STUDENTDETAILS": "Student Mapping"
|
||||||
},
|
},
|
||||||
"reregistration":{
|
"reregistration":{
|
||||||
"MAIN":"RE-REGISTRATION",
|
"MAIN":"RE-REGISTRATION",
|
||||||
|
|||||||
@ -802,6 +802,14 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
|
|||||||
ncyBreadcrumb: {
|
ncyBreadcrumb: {
|
||||||
label: 'Generate HallTicket'
|
label: 'Generate HallTicket'
|
||||||
}
|
}
|
||||||
|
}).state('app.hallTicket.studentDetails', {
|
||||||
|
url: '/StudentDetails',
|
||||||
|
templateUrl: "assets/views/hallticket/studentDetails.html",
|
||||||
|
title: 'StudentDetails',
|
||||||
|
resolve: loadSequence('ladda', 'angular-ladda', 'generateHallTicketCtrl','ngTable','ui.select','spin', 'ui.mask'),
|
||||||
|
ncyBreadcrumb: {
|
||||||
|
label: 'StudentDetails'
|
||||||
|
}
|
||||||
}).state('app.hallTicket.examAttendance', {
|
}).state('app.hallTicket.examAttendance', {
|
||||||
url: '/examAttendance',
|
url: '/examAttendance',
|
||||||
templateUrl: "assets/views/hallticket/examAttendance.html",
|
templateUrl: "assets/views/hallticket/examAttendance.html",
|
||||||
|
|||||||
@ -216,6 +216,99 @@ $scope.generateButtonStatus = false;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* get student details
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
// $scope.getstudent="";
|
||||||
|
$scope.StudentDetails = function (form,myModel) {
|
||||||
|
|
||||||
|
if(myModel.universityName == null || myModel.universityName == '' || myModel.universityName == undefined){
|
||||||
|
swal('Select University','','warning');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(myModel.courseName == '' || myModel.courseName == null || myModel.courseName == undefined){
|
||||||
|
swal('Select Course','','warning');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(myModel.batchName == null || myModel.batchName == '' || myModel.batchName == undefined){
|
||||||
|
swal('Select Batch','','warning');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(myModel.centerName == null || myModel.centerName == '' || myModel.centerName == undefined){
|
||||||
|
swal('Select Center','','warning');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var firstError = null;
|
||||||
|
if (form.$invalid) {
|
||||||
|
|
||||||
|
var field = null, firstError = null;
|
||||||
|
for (field in form) {
|
||||||
|
if (field[0] != '$') {
|
||||||
|
if (firstError === null && !form[field].$valid) {
|
||||||
|
firstError = form[field].$name;
|
||||||
|
}
|
||||||
|
if (form[field].$pristine) {
|
||||||
|
form[field].$dirty = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
||||||
|
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
|
||||||
|
} else {
|
||||||
|
$scope.selectedStudentsID = [];
|
||||||
|
$scope.isLoaderShow = true;
|
||||||
|
$scope.myModel.all = false;
|
||||||
|
$scope.isTblShow = false;
|
||||||
|
var university = myModel.universityName;
|
||||||
|
var course = myModel.courseName;
|
||||||
|
var batch = myModel.batchName;
|
||||||
|
var centerDetails = myModel.centerName;
|
||||||
|
var getStudents = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getallStudentdetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
university: university,
|
||||||
|
course:course,
|
||||||
|
batch:batch,
|
||||||
|
requestedtBy: JSON.parse(sessionStorage.getItem('localObj')).localUserID,
|
||||||
|
branchId: JSON.parse(sessionStorage.getItem('localObj')).localBranchID,
|
||||||
|
requestedDept: JSON.parse(sessionStorage.getItem('localObj')).localType,
|
||||||
|
center:centerDetails
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(getStudents).then(function (response) {
|
||||||
|
if (response.data.status == 200 && response.data.studentStatus) {
|
||||||
|
// $scope.studentInfo = response.data.studentDetails;
|
||||||
|
$scope.isLoaderShow = false;
|
||||||
|
$scope.isTblShow = true;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$scope.studentInfo="";
|
||||||
|
$scope.isLoaderShow = true;
|
||||||
|
$scope.isTblShow = false;
|
||||||
|
$scope.isLoaderTxt = "No Records Found";
|
||||||
|
}
|
||||||
|
},function(error){
|
||||||
|
$scope.isLoaderShow = true;
|
||||||
|
$scope.isTblShow = false;
|
||||||
|
$scope.isLoaderTxt = "No Records Found";
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$scope.selectedStudentsID = [];
|
$scope.selectedStudentsID = [];
|
||||||
|
|||||||
135
Apollo/assets/views/hallticket/studentDetails.html
Normal file
135
Apollo/assets/views/hallticket/studentDetails.html
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
<style>
|
||||||
|
b.fa {
|
||||||
|
display: inline-block;
|
||||||
|
border-radius: 60px;
|
||||||
|
box-shadow: 0px 0px 2px #FF6600;
|
||||||
|
padding: 0.5em 0.6em;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
b.fa1 {
|
||||||
|
display: inline-block;
|
||||||
|
border-radius: 60px;
|
||||||
|
box-shadow: 0px 0px 2px green;
|
||||||
|
padding: 0.5em 0.6em;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #007AFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<!-- start: PAGE TITLE -->
|
||||||
|
<section id="page-title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-8">
|
||||||
|
|
||||||
|
<h1 >
|
||||||
|
|
||||||
|
<span>Student Mapping </span></h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <div ncy-breadcrumb></div>-->
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end: PAGE TITLE -->
|
||||||
|
<!-- start: LIST GROUP -->
|
||||||
|
|
||||||
|
<div class="container-fluid container-fullw bg-white" ng-controller="generateHallTicketCtrl" data-ng-init="init()">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<form name="Form" id="form" novalidate method="post">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Search</legend>
|
||||||
|
<div class="col-md-12 ">
|
||||||
|
|
||||||
|
<div class="col-md-3 form-group">
|
||||||
|
<label>
|
||||||
|
University
|
||||||
|
</label>
|
||||||
|
<select class="form-control" name="university" tabindex="1" id="university"
|
||||||
|
ng-model="myModel.universityName"
|
||||||
|
ng-options="i.universityName for i in university" ng-change="">
|
||||||
|
<option value=""> Select University</option>
|
||||||
|
</select>
|
||||||
|
<!-- <pre>{{myModel.universityName | json}}</pre>-->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2 form-group">
|
||||||
|
|
||||||
|
<label>
|
||||||
|
Batch Name
|
||||||
|
</label>
|
||||||
|
<select ui-select2 class="form-control" name="batch" tabindex="4" id="batch"
|
||||||
|
ng-model="myModel.batchName" ng-change="captureBatchName()"
|
||||||
|
>
|
||||||
|
<option value=""> Select Batch</option>
|
||||||
|
<option ng-repeat="batchDetails in myModel.universityName.batchDetails" value="{{batchDetails.BatchCode}}"><span ng-show="batchDetails.BatchCode != ''"><strong>{{batchDetails.BatchName}}</strong></span></option>
|
||||||
|
</select>
|
||||||
|
<!-- <pre>{{myModel.batchName | json}}</pre> -->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 form-group">
|
||||||
|
<label>
|
||||||
|
Course
|
||||||
|
</label>
|
||||||
|
<select ui-select2 class="form-control" name="course" tabindex="4" id="course"
|
||||||
|
ng-model="myModel.courseName" ng-change="captureCourseName();">
|
||||||
|
<option value=""> Select Course</option>
|
||||||
|
<option ng-repeat="courseDetails in myModel.universityName.courseDetails" value="{{courseDetails.CourseID}}"><span ng-show="courseDetails.CourseCode != ''"><strong>{{courseDetails.CourseName}}</strong></span></option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- <pre>{{myModel.courseName|json}}</pre> -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 ">
|
||||||
|
|
||||||
|
<div class="col-md-3 form-group">
|
||||||
|
|
||||||
|
<label>
|
||||||
|
Center Name
|
||||||
|
</label>
|
||||||
|
<select class="form-control" name="center" tabindex="4" id="center"
|
||||||
|
ng-model="myModel.centerName"
|
||||||
|
ng-options="centerDetails.CenterName for centerDetails in centers" ng-change="">
|
||||||
|
<option value=""> Center Name</option>
|
||||||
|
</select>
|
||||||
|
<!-- <pre>{{myModel.centerName | json}}</pre> -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2 form-group">
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<button type="button" ladda="ldloading1.zoom_in" tabindex="5" class="btn btn-wide btn-info" data-style="zoom-in" ng-click="StudentDetails(Form,myModel);">GET STUDENTS</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- end: LIST GROUP -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -371,17 +371,30 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li ui-sref-active="active">
|
<!-- <li ui-sref-active="active"> -->
|
||||||
<a ui-sref="app.generateHallTicket" ng-click="checkSuperAdmin()">
|
<!-- <a ui-sref="app.generateHallTicket" ng-click="checkSuperAdmin()"> -->
|
||||||
<div class="item-content">
|
<!-- <div class="item-content"> -->
|
||||||
<div class="item-media">
|
<!-- <div class="item-media"> -->
|
||||||
<i class="ti-write"></i>
|
<!-- <i class="ti-write"></i> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- <div class="item-inner"> -->
|
||||||
|
<!-- <span class="title" translate="sidebar.nav.master.HALLTICKET"> GENERATE HALLTICKET </span><i class="icon-arrow"></i> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </a> -->
|
||||||
|
<li ng-class="{'active open':$state.includes('app.hallTicket')}">
|
||||||
|
<a href="javascript:void(0)">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-media">
|
||||||
|
<i class="ti-write"></i>
|
||||||
|
</div>
|
||||||
|
<div class="item-inner">
|
||||||
|
<span class="title" translate="sidebar.nav.hallTicket.MAIN">HALLTICKET</span><i class="icon-arrow"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-inner">
|
</a>
|
||||||
<span class="title" translate="sidebar.nav.master.HALLTICKET"> GENERATE HALLTICKET </span><i class="icon-arrow"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<ul class="sub-menu">
|
<ul class="sub-menu">
|
||||||
<!-- <li ui-sref-active="active"> -->
|
<!-- <li ui-sref-active="active"> -->
|
||||||
@ -412,6 +425,11 @@
|
|||||||
<span class="title" translate="sidebar.nav.hallTicket.BATCHSCHEDULE">BATCHSCHEDULE</span>
|
<span class="title" translate="sidebar.nav.hallTicket.BATCHSCHEDULE">BATCHSCHEDULE</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ui-sref-active="active">
|
||||||
|
<a ui-sref="app.hallTicket.studentDetails" ng-click="checkSuperAdmin()">
|
||||||
|
<span class="title" translate="sidebar.nav.hallTicket.STUDENTDETAILS">GENERATE STUDENT</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li ui-sref-active="active">
|
<li ui-sref-active="active">
|
||||||
<a ui-sref="app.hallTicket.generateHallTicket" ng-click="checkSuperAdmin()">
|
<a ui-sref="app.hallTicket.generateHallTicket" ng-click="checkSuperAdmin()">
|
||||||
<span class="title" translate="sidebar.nav.hallTicket.GENERATEHALLTICKET">GENERATE HALLTICKET</span>
|
<span class="title" translate="sidebar.nav.hallTicket.GENERATEHALLTICKET">GENERATE HALLTICKET</span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user