Merge branch 'master' of https://bitbucket.org/venbainformationtechnology/apollodec
This commit is contained in:
commit
de7cee569a
@ -320,12 +320,26 @@ class HallTickets_Controller extends REST_Controller {
|
|||||||
$branchId = $this->post('branchId');
|
$branchId = $this->post('branchId');
|
||||||
$Cdate = new DateTime('now',new DateTimeZone('Asia/Kolkata'));
|
$Cdate = new DateTime('now',new DateTimeZone('Asia/Kolkata'));
|
||||||
$CreatedOn = $Cdate->format('Y-m-d H:i:s');
|
$CreatedOn = $Cdate->format('Y-m-d H:i:s');
|
||||||
/////////check semcoursemapping////
|
$fileArray = array();
|
||||||
// $data['subjectDetails'] = $this->Hallticket_model->getSubjectDetails($universityID,$tempCourseArray,$branchId);
|
foreach($filedetails as $filedetailsarray)
|
||||||
|
{
|
||||||
|
$fileArray[]=$filedetailsarray['SubjectID'];
|
||||||
|
}
|
||||||
|
|
||||||
$data['subjectDetails'] = $this->Hallticket_model->getExistDetailsfileupload($university,$courseArray,$branchId);
|
$data['subjectDetails'] = $this->Hallticket_model->getExistDetailsfileupload($university,$courseArray,$branchId);
|
||||||
// print_r( $data['subjectDetails']);
|
// print_r( $data['subjectDetails']);
|
||||||
if($data['subjectDetails'] == 1 )
|
if($data['subjectDetails'] == 1 )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$data['SubjectMappingDetails'] = $this->Hallticket_model->getSubjectMappingDetails($university,$courseArray,$branchId);
|
||||||
|
$maparray=array();
|
||||||
|
foreach ( $data['SubjectMappingDetails'] as $object)
|
||||||
|
{
|
||||||
|
$maparray[]=$object->SubjectCode;
|
||||||
|
}
|
||||||
|
if ($fileArray == $maparray)
|
||||||
|
{
|
||||||
|
|
||||||
foreach($courseArray as $CourseDatialArray)
|
foreach($courseArray as $CourseDatialArray)
|
||||||
{
|
{
|
||||||
$course=$CourseDatialArray;
|
$course=$CourseDatialArray;
|
||||||
@ -355,6 +369,14 @@ class HallTickets_Controller extends REST_Controller {
|
|||||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||||
], REST_Controller::HTTP_NOT_FOUND);
|
], REST_Controller::HTTP_NOT_FOUND);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->response([
|
||||||
|
'message' => 'Records Do Not Match With Mapped Subjects!',
|
||||||
|
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||||
|
], REST_Controller::HTTP_NOT_FOUND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -362,19 +384,18 @@ class HallTickets_Controller extends REST_Controller {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->response([
|
$this->response([
|
||||||
'message' => 'Please Mapping the course supject!',
|
'message' => ' Course Mapping for the Subject Not Found !',
|
||||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||||
], REST_Controller::HTTP_NOT_FOUND);
|
], REST_Controller::HTTP_NOT_FOUND);
|
||||||
}
|
}
|
||||||
// else{
|
|
||||||
|
|
||||||
// $this->response([
|
|
||||||
// 'message' => 'No records found!',
|
|
||||||
// 'status' => REST_Controller::HTTP_NOT_FOUND
|
|
||||||
// ], REST_Controller::HTTP_NOT_FOUND);
|
|
||||||
|
|
||||||
// }
|
|
||||||
/////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,8 +135,8 @@ group by semchild.SubjectID,semchild.MapID";
|
|||||||
$this->db->select('T_Batch_Schedule_Child.SchId,T_Batch_Schedule_Child.SubjectID,T_Batch_Schedule_Child.ScheduleDate,T_Batch_Schedule_Child.FromTime,T_Batch_Schedule_Child.ToTime,T_Batch_Schedule_Child.SchChildId,T_Batch_Schedule_Child.SchId');
|
$this->db->select('T_Batch_Schedule_Child.SchId,T_Batch_Schedule_Child.SubjectID,T_Batch_Schedule_Child.ScheduleDate,T_Batch_Schedule_Child.FromTime,T_Batch_Schedule_Child.ToTime,T_Batch_Schedule_Child.SchChildId,T_Batch_Schedule_Child.SchId');
|
||||||
$this->db->from('T_Batch_Schedule_Master SCM');
|
$this->db->from('T_Batch_Schedule_Master SCM');
|
||||||
$this->db->join('T_Batch_Schedule_Child','T_Batch_Schedule_Child.SchId = SCM.SchId');
|
$this->db->join('T_Batch_Schedule_Child','T_Batch_Schedule_Child.SchId = SCM.SchId');
|
||||||
//$this->db->where('SCM.BranchCode',$branchcode);
|
$this->db->where('SCM.BranchCode',$branchcode);
|
||||||
// $this->db->where('T_Batch_Schedule_Child.SchId',$mapid);
|
$this->db->where('T_Batch_Schedule_Child.SchId',$mapid);
|
||||||
$this->db->where('T_Batch_Schedule_Child.SubjectID',$row->SubjectID);
|
$this->db->where('T_Batch_Schedule_Child.SubjectID',$row->SubjectID);
|
||||||
$existsheduledetails = $this->db->get();
|
$existsheduledetails = $this->db->get();
|
||||||
//print_r($existsheduledetails);
|
//print_r($existsheduledetails);
|
||||||
@ -200,16 +200,16 @@ group by semchild.SubjectID,semchild.MapID";
|
|||||||
public function getExistDetailsfileupload($universityID,$courseIDS,$branchId)
|
public function getExistDetailsfileupload($universityID,$courseIDS,$branchId)
|
||||||
{
|
{
|
||||||
|
|
||||||
// print_r($courseIDS);
|
|
||||||
// echo $universityID;
|
|
||||||
$i=0;
|
$i=0;
|
||||||
foreach($courseIDS as $c)
|
foreach($courseIDS as $c)
|
||||||
{
|
{
|
||||||
|
|
||||||
// $tempCourseArray= $c['CourseID'];
|
// $tempCourseArray= $c['CourseID'];
|
||||||
|
|
||||||
$this->db->select ('count(*) as count');
|
$this->db->select ('count(*) as count,T_SemSubMap_Child.SubjectID');
|
||||||
$this->db->from('T_SemSubMap_Master');
|
$this->db->from('T_SemSubMap_Master');
|
||||||
|
$this->db->join('T_SemSubMap_Child','T_SemSubMap_Child.MapID=T_SemSubMap_Master.MapID');
|
||||||
$this->db->where('UniversityID',$universityID);
|
$this->db->where('UniversityID',$universityID);
|
||||||
$this->db->where('CourseID',$c);
|
$this->db->where('CourseID',$c);
|
||||||
$result = $this->db->get();
|
$result = $this->db->get();
|
||||||
@ -235,6 +235,35 @@ public function getExistDetailsfileupload($universityID,$courseIDS,$branchId)
|
|||||||
* @params university id and CourseID
|
* @params university id and CourseID
|
||||||
* created by Bala
|
* created by Bala
|
||||||
* */
|
* */
|
||||||
|
public function getSubjectMappingDetails($universityID,$courseIDS,$branchId)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
foreach($courseIDS as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
// $tempCourseArray= $c['CourseID'];
|
||||||
|
|
||||||
|
$this->db->select ('T_SubjectMaster.SubjectCode');
|
||||||
|
$this->db->from('T_SemSubMap_Master');
|
||||||
|
$this->db->join('T_SemSubMap_Child','T_SemSubMap_Child.MapID=T_SemSubMap_Master.MapID');
|
||||||
|
$this->db->join('T_SubjectMaster','T_SubjectMaster.SubjectID=T_SemSubMap_Child.SubjectID');
|
||||||
|
$this->db->where('T_SemSubMap_Master.UniversityID',$universityID);
|
||||||
|
$this->db->where('T_SemSubMap_Master.CourseID',$c);
|
||||||
|
$this->db->where('T_SubjectMaster.BranchCode',$branchId);
|
||||||
|
$result = $this->db->get();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
return $result->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* check existing data,only batchschedule.
|
||||||
|
* @params university id and CourseID
|
||||||
|
* created by Bala
|
||||||
|
* */
|
||||||
|
|
||||||
public function getExistDetails($universityID,$courseIDS,$branchId)
|
public function getExistDetails($universityID,$courseIDS,$branchId)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -146,6 +146,10 @@ $scope.universitySearchData = '';
|
|||||||
|
|
||||||
$scope.OpenWindowStatus = false;
|
$scope.OpenWindowStatus = false;
|
||||||
$scope.editId = -1;
|
$scope.editId = -1;
|
||||||
|
$scope.courselist ='';
|
||||||
|
$scope.loadfee='';
|
||||||
|
$scope.feecheck=false;
|
||||||
|
|
||||||
$scope.setEditId = function (P)
|
$scope.setEditId = function (P)
|
||||||
{ //alert(JSON.stringify(P));
|
{ //alert(JSON.stringify(P));
|
||||||
|
|
||||||
@ -173,11 +177,16 @@ $scope.universitySearchData = '';
|
|||||||
$scope.feeInfo=response.data.details;
|
$scope.feeInfo=response.data.details;
|
||||||
console.log($scope.feeInfo);
|
console.log($scope.feeInfo);
|
||||||
$scope.editId = P.ID;
|
$scope.editId = P.ID;
|
||||||
|
$scope.courselist =true;
|
||||||
|
$scope.feecheck=false;
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$scope.feeInfo="";
|
$scope.feeInfo="";
|
||||||
$scope.loadfee = "No Records Found";
|
$scope.loadfee = "No Records Found";
|
||||||
|
$scope.courselist =false;
|
||||||
|
$scope.feecheck=true;
|
||||||
|
$scope.editId = P.ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -384,7 +384,7 @@ $scope.UploadFileData = function (FileDetails,myModel,courseDetails) {
|
|||||||
swal("", "Saved Successfully", "success");
|
swal("", "Saved Successfully", "success");
|
||||||
$state.go($state.current, {}, {reload: true});
|
$state.go($state.current, {}, {reload: true});
|
||||||
} else {
|
} else {
|
||||||
swal("", "Please Mapping the course supject", "error");
|
swal("",response.data.message, "error");
|
||||||
$state.go($state.current, {}, {reload: true});
|
$state.go($state.current, {}, {reload: true});
|
||||||
}
|
}
|
||||||
},function(error){
|
},function(error){
|
||||||
|
|||||||
@ -721,12 +721,15 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
|||||||
$scope.editId = -1;
|
$scope.editId = -1;
|
||||||
$scope.editCourseId = -1;
|
$scope.editCourseId = -1;
|
||||||
$scope.setEditId = function (unique_id, id) {
|
$scope.setEditId = function (unique_id, id) {
|
||||||
|
|
||||||
|
// alert()
|
||||||
$scope.editId = unique_id;
|
$scope.editId = unique_id;
|
||||||
$scope.editCourseId = -1;
|
$scope.editCourseId = -1;
|
||||||
$scope.studentViewPage = -1;
|
$scope.studentViewPage = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.setEditCourseId = function (unique_id,id) {
|
$scope.setEditCourseId = function (unique_id,id) {
|
||||||
|
|
||||||
$scope.list = false;
|
$scope.list = false;
|
||||||
$scope.getStudentCourseList(id);
|
$scope.getStudentCourseList(id);
|
||||||
$scope.currentStudentId = id;
|
$scope.currentStudentId = id;
|
||||||
@ -837,6 +840,8 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
|||||||
|
|
||||||
// get Student Course List
|
// get Student Course List
|
||||||
$scope.getStudentCourseList = function (studentId) {
|
$scope.getStudentCourseList = function (studentId) {
|
||||||
|
|
||||||
|
console.log('in')
|
||||||
$scope.courseEditLoading = true;
|
$scope.courseEditLoading = true;
|
||||||
$scope.list = true;
|
$scope.list = true;
|
||||||
$scope.courseEdit = false;
|
$scope.courseEdit = false;
|
||||||
@ -1740,11 +1745,15 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
|||||||
$scope.editId = -1;
|
$scope.editId = -1;
|
||||||
$scope.editCourseId = -1;
|
$scope.editCourseId = -1;
|
||||||
$scope.setEditId = function (uniqe_id ,id) {
|
$scope.setEditId = function (uniqe_id ,id) {
|
||||||
|
|
||||||
|
// alert()
|
||||||
$scope.editId = uniqe_id;
|
$scope.editId = uniqe_id;
|
||||||
$scope.editCourseId = -1;
|
$scope.editCourseId = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.setEditCourseId = function (uniqe_id ,id) {
|
$scope.setEditCourseId = function (uniqe_id ,id) {
|
||||||
|
|
||||||
|
//alert('1');
|
||||||
$scope.list = false;
|
$scope.list = false;
|
||||||
$scope.getStudentCourseList(id);
|
$scope.getStudentCourseList(id);
|
||||||
$scope.currentStudentId = id;
|
$scope.currentStudentId = id;
|
||||||
@ -1752,6 +1761,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
|||||||
$scope.editCourseId = uniqe_id;
|
$scope.editCourseId = uniqe_id;
|
||||||
$scope.editId = -1;
|
$scope.editId = -1;
|
||||||
$scope.courseEditLoading = true;
|
$scope.courseEditLoading = true;
|
||||||
|
$scope.courselist = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1879,6 +1889,9 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
|||||||
$scope.studentCourseList = response.data.course_details;
|
$scope.studentCourseList = response.data.course_details;
|
||||||
// $scope.stucour = $scope.studentCourse[0];
|
// $scope.stucour = $scope.studentCourse[0];
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
$scope.courselist = false;
|
||||||
|
$scope.courseEditLoading='';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
<form name="Form" id="form" novalidate>
|
<form name="Form" id="form" novalidate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@ -26,7 +28,15 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- {{feeInfo}} -->
|
<!-- {{feeInfo}} -->
|
||||||
<div class="col-md-12">
|
<!-- <div ng-if="feecheck==true">
|
||||||
|
<div align="center" style="font-weight: bold; font-size:20 ">
|
||||||
|
{{loadfee}}
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<div ng-if="courselist == false" class="text-center">
|
||||||
|
<h3>No Records Found</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12" ng-if="courselist == true">
|
||||||
<!-- {{feeInfo}} -->
|
<!-- {{feeInfo}} -->
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover">
|
||||||
|
|||||||
@ -167,6 +167,8 @@
|
|||||||
<tr ng-show="editId === p.ID" ng-if="editId === p.ID">
|
<tr ng-show="editId === p.ID" ng-if="editId === p.ID">
|
||||||
<td colspan="12" ng-include src="'assets/views/edit_course.html'"></td>
|
<td colspan="12" ng-include src="'assets/views/edit_course.html'"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -167,7 +167,8 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<js-xls onread="readUploadBatchDetails" onerror="error"></js-xls>
|
<js-xls onread="readUploadBatchDetails" onerror="error"></js-xls>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://www.w3schools.com/html/" target="_top">Sample Format</a>
|
|
||||||
|
<a target="_blank" href="C:\xampp\htdocs\apollodec\Apollo\images\Batchschedule.xlsx">Sample Format</a>
|
||||||
<button type="button" class="btn btn-success btn-o" style="float: right" ng-click="UploadFileData(extractFileDetails,myModel,selectedCourseNameC)"> Submit</button>
|
<button type="button" class="btn btn-success btn-o" style="float: right" ng-click="UploadFileData(extractFileDetails,myModel,selectedCourseNameC)"> Submit</button>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
@ -6,12 +6,15 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<div ng-if="courseEditLoading == true" class="text-center">
|
<div ng-if="courseEditLoading == true" class="text-center">
|
||||||
<!--<img src="assets/images/ajax_loader_blue.gif" style="width: 5%; height: 30%">-->
|
<!-- <img src="assets/images/ajax_loader_blue.gif" style="width: 5%; height: 30%"> -->
|
||||||
<h3>Fetching ...</h3>
|
<h3>Fetching ...</h3>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-if="courselist == false" class="text-center">
|
||||||
|
<h3>No Records Found</h3>
|
||||||
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
<fieldset ng-if="courseEditLoading == false">
|
<fieldset ng-if="courseEditLoading == false && courselist == true">
|
||||||
<legend>
|
<legend>
|
||||||
Course Details
|
Course Details
|
||||||
</legend>
|
</legend>
|
||||||
|
|||||||
@ -167,7 +167,7 @@
|
|||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results" pagination-id="startSearchList">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<i class="glyphicon glyphicon-list-alt" tooltip="Status Details" ng-click="statusUpdate(p.ID);"></i>
|
<i class="glyphicon glyphicon-list-alt" tooltip="Status Details" ng-click="statusUpdate(p.ID);"></i>
|
||||||
@ -307,7 +307,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
<dir-pagination-controls pagination-id="startSearchList" max-size="10" direction-links="true" boundary-links="true">
|
||||||
</dir-pagination-controls>
|
</dir-pagination-controls>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -460,7 +460,7 @@
|
|||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in draftListDetails|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
<tbody dir-paginate="p in draftListDetails|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results" pagination-id="draftListDetails">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<i class="ti-receipt" tooltip="Add To List" ng-click="addToList(p.ID);"></i>
|
<i class="ti-receipt" tooltip="Add To List" ng-click="addToList(p.ID);"></i>
|
||||||
@ -673,7 +673,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
<dir-pagination-controls pagination-id="draftListDetails" max-size="10" direction-links="true" boundary-links="true">
|
||||||
</dir-pagination-controls>
|
</dir-pagination-controls>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -779,7 +779,7 @@
|
|||||||
<th>CourseFee</th>
|
<th>CourseFee</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in unMatchedRecordDetails|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
<tbody dir-paginate="p in unMatchedRecordDetails|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results" pagination-id="missMatchListDetails" >
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.FormID}}</td>
|
<td>{{p.FormID}}</td>
|
||||||
<td>{{p.FormType}}</td>
|
<td>{{p.FormType}}</td>
|
||||||
@ -791,7 +791,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
<dir-pagination-controls pagination-id="missMatchListDetails" max-size="10" direction-links="true" boundary-links="true">
|
||||||
</dir-pagination-controls>
|
</dir-pagination-controls>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
BIN
Apollo/images/Batchschedule.xlsx
Normal file
BIN
Apollo/images/Batchschedule.xlsx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user