batch add in excel 1614
This commit is contained in:
parent
32c92ed0cc
commit
735f6ff3a8
@ -347,6 +347,8 @@ class HallTickets_Controller extends REST_Controller {
|
||||
$filedetails = $this->post('details');
|
||||
$requestedBy = $this->post('requestedBy');
|
||||
$branchId = $this->post('branchId');
|
||||
$Sem_Year = $this->post('Sem_Year');
|
||||
|
||||
$Cdate = new DateTime('now',new DateTimeZone('Asia/Kolkata'));
|
||||
$CreatedOn = $Cdate->format('Y-m-d H:i:s');
|
||||
$fileArray = array();
|
||||
@ -375,7 +377,7 @@ class HallTickets_Controller extends REST_Controller {
|
||||
foreach($courseArray as $CourseDatialArray)
|
||||
{
|
||||
$course=$CourseDatialArray;
|
||||
$schedulemaster = array('UniversityID'=>$university,'CourseID'=>$course,'BranchCode'=>$branchId,'CreatedBy'=>$requestedBy,'CreatedOn'=>$CreatedOn);
|
||||
$schedulemaster = array('UniversityID'=>$university,'CourseID'=>$course,'BranchCode'=>$branchId,'CreatedBy'=>$requestedBy,'CreatedOn'=>$CreatedOn,'SEM_Year'=>$Sem_Year);
|
||||
$schedulemasteradd = $this->Hallticket_model->AddBatchScheduleMasterFile($schedulemaster,$filedetails);
|
||||
|
||||
}
|
||||
|
||||
@ -421,6 +421,9 @@ $scope.UploadFileData = function (FileDetails,myModel,courseDetails) {
|
||||
// $scope.scheduledDetails.push({
|
||||
// "universityID":myModel.universityName.universityID,
|
||||
// });
|
||||
|
||||
// console.log(myModel);
|
||||
// return false;
|
||||
var updateUniversityEnrolment = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'batchUploadDataDetails/',
|
||||
@ -431,6 +434,7 @@ $scope.UploadFileData = function (FileDetails,myModel,courseDetails) {
|
||||
details: FileDetails,
|
||||
universityDetails : $scope.universityDetails,
|
||||
courseDetails : $scope.courseDetailsArray,
|
||||
Sem_Year : myModel.Sem_Year,
|
||||
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||
branchId:JSON.parse(localStorage.getItem('localObj')).localBranchID
|
||||
|
||||
@ -439,7 +443,7 @@ $scope.UploadFileData = function (FileDetails,myModel,courseDetails) {
|
||||
};
|
||||
|
||||
$http(updateUniversityEnrolment).then(function (response) {
|
||||
console.log(response);
|
||||
//console.log(response);
|
||||
if (response.data.status == 200) {
|
||||
swal("", "Saved Successfully", "success");
|
||||
$state.go($state.current, {}, {reload: true});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user