enrollment id duplication
This commit is contained in:
parent
4af8072068
commit
e01b6bdeb9
@ -1000,6 +1000,46 @@ class Student_model extends CI_Model {
|
||||
|
||||
// add student course
|
||||
public function add_student_course($studID, $Arr) {
|
||||
|
||||
//print_r($Arr);die();
|
||||
|
||||
$EnrollmentID = $Arr['EnrollmentID'];
|
||||
|
||||
|
||||
|
||||
if($EnrollmentID !='')
|
||||
{
|
||||
|
||||
$this->db->select('*');
|
||||
$this->db->from('T_Student_CourseDetails');
|
||||
$this->db->where('EnrollmentID',$EnrollmentID);
|
||||
$this->db->where('UniversityID',$Arr['UniversityID']);
|
||||
$qry=$this->db->get();
|
||||
$qry=$qry->result();
|
||||
|
||||
//print_r($this->db->last_query());die();
|
||||
|
||||
//echo count($qry);die();
|
||||
|
||||
if(count($qry)>0)
|
||||
{
|
||||
$result['addStudentStatus'] = false;
|
||||
$result['message'] = "EnrollmentID Already Exists";
|
||||
|
||||
return $result;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if ($this->getBranchActiveStatusforStuAdd($Arr['BranchID']) ['branch_active_status'] === '1') {
|
||||
$this->db->select('*');
|
||||
$this->db->from(STUDENTCOURSE);
|
||||
|
||||
@ -1193,6 +1193,13 @@
|
||||
<span class="title" translate="sidebar.nav.entry.DATACORRECTION"> DATA CORRECTION</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.entry.feetransfer" ng-click="checkAdmin()">
|
||||
<span class="title" translate="sidebar.nav.entry.FEETRANSFER">Fee Transfer</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user