hall ticket generate without course

This commit is contained in:
venbatechnologies@gmail.com 2019-01-28 13:19:10 +05:30
parent 849556981d
commit 99514d6b45
5 changed files with 44 additions and 15 deletions

View File

@ -76,13 +76,13 @@ $query_builder = TRUE;
$db['default'] = array( $db['default'] = array(
'dsn' => '', 'dsn' => '',
'hostname' => 'apollodec.com', 'hostname' => 'apollodec.com',
// 'username' => 'apollod4_DEV', 'username' => 'apollod4_DEV',
// 'password' => 'apollo1234', 'password' => 'apollo1234',
// 'database' => 'apollod4_ApolloDECDev', 'database' => 'apollod4_ApolloDECDev',
'username' => 'apollod4_SIT', // 'username' => 'apollod4_SIT',
'password' => 'apollosit1234', // 'password' => 'apollosit1234',
'database' => 'apollod4_ApolloDECNEWSIT', // 'database' => 'apollod4_ApolloDECNEWSIT',
// 'username' => 'apollod4_PROD', // 'username' => 'apollod4_PROD',
// 'password' => 'approd!2017', // 'password' => 'approd!2017',

View File

@ -515,6 +515,7 @@ class HallTickets_Controller extends REST_Controller {
public function getAllSemesterSubjects_post() public function getAllSemesterSubjects_post()
{ {
//echo 'f';die();
$branchId = $this->post('BranchID'); $branchId = $this->post('BranchID');
//echo $branchId; die(); //echo $branchId; die();
$res = $this->Hallticket_model->getAllSemesterSubjectsmodel($branchId); $res = $this->Hallticket_model->getAllSemesterSubjectsmodel($branchId);
@ -633,7 +634,7 @@ class HallTickets_Controller extends REST_Controller {
$centerName = $this->post('centerName'); $centerName = $this->post('centerName');
$res['UniversityDetails'] = $this->Hallticket_model->getUniversityDetials($UID,$branchId); $res['UniversityDetails'] = $this->Hallticket_model->getUniversityDetials($UID,$branchId);
$res['studentDetails'] = $this->Hallticket_model->getStudentDetails($UID,$courseID,$branchId,$studentIDs,$centerName,$batch,$requestedBy); $res['studentDetails'] = $this->Hallticket_model->getStudentDetails($UID,$branchId,$studentIDs,$centerName,$batch,$requestedBy);
if(count($res['UniversityDetails']) != 0 || count($res['studentDetails']) != 0 ) if(count($res['UniversityDetails']) != 0 || count($res['studentDetails']) != 0 )

View File

@ -851,7 +851,7 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
{ {
$this->db->distinct(); $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'); $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,T_Student_CourseDetails.CourseID as CourseID');
$this->db->from('T_Students_Fees_Status'); $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('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'); $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');
@ -861,7 +861,11 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
$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_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->where('T_Students_Fees_Status.BatchCode',$batch); $this->db->where('T_Students_Fees_Status.BatchCode',$batch);
$this->db->where('T_Students_Fees_Status.BranchCode',$branchId); $this->db->where('T_Students_Fees_Status.BranchCode',$branchId);
if(($courseID !='')||($courseID != null))
{
$this->db->where('T_Students_Fees_Status.CourseID',$courseID); $this->db->where('T_Students_Fees_Status.CourseID',$courseID);
}
$res = $this->db->get(); $res = $this->db->get();
$data = $res->result(); $data = $res->result();
@ -885,7 +889,11 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
$studetdetails['HallTicketMasterID'] = $r->HallTicket_ID; $studetdetails['HallTicketMasterID'] = $r->HallTicket_ID;
$studetdetails['isFlag'] = $r->isFlag; $studetdetails['isFlag'] = $r->isFlag;
$studetdetails['balpayable'] =$r->balpayable; $studetdetails['balpayable'] =$r->balpayable;
$studetdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$courseID); $course = $r->CourseID;
$studetdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$course);
$studetdetails['CourseID'] = $r->CourseID;
$studetdetails['balpayable'] =$r->balpayable;
$result_array[] = $studetdetails; $result_array[] = $studetdetails;
$prestu = $r->StudentID; $prestu = $r->StudentID;
} }
@ -925,11 +933,13 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
} }
//Student Details with All Corresponding Semesters and Subjects //Student Details with All Corresponding Semesters and Subjects
public function getStudentDetails($UID,$courseID,$branchId,$studentIDs,$centerName,$batch,$requestedBy) public function getStudentDetails($UID,$branchId,$studentIDs,$centerName,$batch,$requestedBy)
{ {
foreach($studentIDs as $key1 => $id) foreach($studentIDs as $key1 => $id)
{ {
$courseID= $id['CourseID'];
foreach($id['FeeDetails'] as $key2 => $ind) foreach($id['FeeDetails'] as $key2 => $ind)
{ {
// Get Normel Semester // Get Normel Semester
@ -1090,10 +1100,11 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
} }
array_splice($studentIDs[$key1]['FeeDetails'],0,10,$id['FeeDetails']) ; array_splice($studentIDs[$key1]['FeeDetails'],0,10,$id['FeeDetails']) ;
} //}
// echo "COE"; // echo "COE";
// print_r($studentIDs);die(); // print_r($studentIDs);die();
$this->saveHallTicketDataForExamAttendance($UID,$courseID,$branchId,$studentIDs,$centerName,$batch,$requestedBy); $this->saveHallTicketDataForExamAttendance($UID,$courseID,$branchId,$studentIDs,$centerName,$batch,$requestedBy);
}
return $studentIDs; return $studentIDs;
} }
@ -1186,6 +1197,8 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
} }
return true;
} }
} }
} }
@ -1218,6 +1231,8 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
} }
} }
return true;
} }
} }
@ -1252,6 +1267,8 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
} }
} }
} }
return true;
} }
} }
} }
@ -1285,6 +1302,8 @@ public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
} }
} }
} }
return true;
} }
} }
} }

View File

@ -100,10 +100,10 @@ $scope.generateButtonStatus = false;
return false; return false;
} }
if(myModel.courseName == '' || myModel.courseName == null || myModel.courseName == undefined){ // if(myModel.courseName == '' || myModel.courseName == null || myModel.courseName == undefined){
swal('Select Course','','warning'); // swal('Select Course','','warning');
return false; // return false;
} // }
if(myModel.batchName == null || myModel.batchName == '' || myModel.batchName == undefined){ if(myModel.batchName == null || myModel.batchName == '' || myModel.batchName == undefined){
swal('Select Batch','','warning'); swal('Select Batch','','warning');

View File

@ -109,6 +109,15 @@
</div> </div>
</div> </div>
<div class="col-md-3">
<label for="form-field-select-2">
Search
</label>
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search" /><br><br>
</div>