From 98dd095aaf89372dd6150f9343c1cec430533b71 Mon Sep 17 00:00:00 2001 From: sriramv Date: Tue, 19 Jun 2018 14:29:58 +0530 Subject: [PATCH] Reregistration form pdf by sriram --- Apollo/api/application/config/database.php | 12 +- Apollo/api/application/config/routes.php | 4 + .../controllers/Reregister_Controller.php | 68 +++- .../application/models/Reregister_model.php | 162 +++++++++ .../js/controllers/reregistrationformCtrl.js | 314 +++++++++++++++++- .../reregistration/reregistrationform.html | 118 ++++++- .../reregistration/reregistrationformpdf.html | 112 +++++++ 7 files changed, 778 insertions(+), 12 deletions(-) create mode 100644 Apollo/assets/views/reregistration/reregistrationformpdf.html diff --git a/Apollo/api/application/config/database.php b/Apollo/api/application/config/database.php index 2e630305..2573d28b 100755 --- a/Apollo/api/application/config/database.php +++ b/Apollo/api/application/config/database.php @@ -76,12 +76,12 @@ $query_builder = TRUE; $db['default'] = array( 'dsn' => '', 'hostname' => 'apollodec.com', - 'username' => 'apollod4_SIT', - 'password' => 'apollosit1234', - 'database' => 'apollod4_ApolloDECNEWSIT', - // 'username' => 'apollod4_DEV', - // 'password' => 'apollo1234', - // 'database' => 'apollod4_ApolloDECDev', + // 'username' => 'apollod4_SIT', + // 'password' => 'apollosit1234', + // 'database' => 'apollod4_ApolloDECNEWSIT', + 'username' => 'apollod4_DEV', + 'password' => 'apollo1234', + 'database' => 'apollod4_ApolloDECDev', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => FALSE, diff --git a/Apollo/api/application/config/routes.php b/Apollo/api/application/config/routes.php index a17e6779..c8fec8f1 100755 --- a/Apollo/api/application/config/routes.php +++ b/Apollo/api/application/config/routes.php @@ -268,6 +268,10 @@ $route['updateSheduleDetails'] = 'HallTickets_Controller/updateSheduleDetails'; $route['getSheduleDetails'] = 'HallTickets_Controller/getSheduleDetails'; $route['getUniversityCourseId'] = 'HallTickets_Controller/getUniversityCourseId'; $route['saveBatchSchedule'] = 'HallTickets_Controller/SaveAllBatchSchedule'; +// Re Registration Form +$route['getStudentListForRegistrer'] = 'Reregister_Controller/getStudentListForReregister'; +$route['getSubject'] = 'Reregister_Controller/getSubject'; +$route['getUniversityCourseDetailsforms'] = 'Reregister_Controller/getUniversityCourseDetailsforms'; ///PROMOTE BATCH AND RE REG $route['getUniversityBatchDetails'] = 'Reregister_Controller/getUniversityBatchDetails'; diff --git a/Apollo/api/application/controllers/Reregister_Controller.php b/Apollo/api/application/controllers/Reregister_Controller.php index d4a781b9..55933fed 100644 --- a/Apollo/api/application/controllers/Reregister_Controller.php +++ b/Apollo/api/application/controllers/Reregister_Controller.php @@ -76,8 +76,72 @@ class Reregister_Controller extends REST_Controller { ], REST_Controller::HTTP_NOT_FOUND); } } - - + /* + *Created by Visual Studio. + * User: sriram + * Date: 6/12/18 + * Reregiter function + */ + public function getUniversityCourseDetailsforms_post(){ + $branchId = $this->post('branchId'); + $getUnivDetails = $this->Reregister_model->getUniversityDetails($branchId); + //$getCenterDetails = $this->Reregister_model->getCenterDetails($branchId); + if ($getUnivDetails) + { + $getUnivDetails['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($getUnivDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'No records found!', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + } + public function getStudentListForReregister_post(){ + // echo "function in";die; + $UID = $this->post('university'); + $courseID = $this->post('course'); + $batch = $this->post('batch'); + $requestedBy = $this->post('requestedBy'); + $branchId = $this->post('branchId'); + //echo $branchId;die; + $res = $this->Reregister_model->getStudentListForReregistermodel($UID,$courseID,$batch,$requestedBy,$branchId); + 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 getSubject_post(){ + + $SemesterID = $this->post('SemNum'); + $branchId = $this->post('branchId'); + $subjectDetails = $this->Reregister_model->getsubject($SemesterID,$branchId); + if(sizeof($subjectDetails)>0){ + $data['status'] = REST_Controller::HTTP_OK; + $data['SubjectStatus'] = true; + $data['SubjectDetails'] = $subjectDetails; + $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); + } + } } \ No newline at end of file diff --git a/Apollo/api/application/models/Reregister_model.php b/Apollo/api/application/models/Reregister_model.php index e50d943d..8de4a665 100644 --- a/Apollo/api/application/models/Reregister_model.php +++ b/Apollo/api/application/models/Reregister_model.php @@ -115,4 +115,166 @@ class Reregister_model extends CI_Model return $data; } + + /** + * Created by Viual Studio. + * User: sriram + * Date: 6/19/18 + * Reregister Function Query + */ + + + public function getUniversityDetails($branchId) + { + $this->db->select('UniversityID,UniversityName,ProfilePicPath,Address,EmailID,MobileNumber'); + $this->db->where('IsActive','1'); + $this->db->where('BranchCode',$branchId); + $this->db->order_by('UniversityID','ASC'); + $unviversityDetails = $this->db->get(UNIVERSITY); + + if($unviversityDetails->result()){ + $result_university = array(); + $result_university['universityStatus'] = true; + foreach ($unviversityDetails->result() as $row) + { + + $university_array['universityID'] = $row->UniversityID; + $university_array['universityName'] = $row->UniversityName; + $university_array['ProfilePicPath'] = $row->ProfilePicPath; + $university_array['EmailID'] = $row->EmailID; + $university_array['Address'] = $row->Address; + $university_array['MobileNumber'] = $row->MobileNumber; + $university_array['courseDetails']= $this->getCourseDetails($row->UniversityID,$branchId); + $university_array['batchDetails']= $this->getformBatchDetails($row->UniversityID,$branchId); + $result_array[]=$university_array; + } + $result_university['univerSityDetails']= $result_array; + $result_university['centerDetails'] = $this->getCenterDetails($branchId); + } + else { + $result_university['universityStatus'] = false; + $result_university['message'] = "No records found!"; + $result_university['universityID'] = ""; + $result_university['universityName'] = ""; + $result_university['courseDetails']= ""; + } + + + return $result_university; + + } + + public function getCourseDetails($universityID=null,$branchId) + { + $this->db->select('CourseID,CONCAT(CourseName, "(",CourseCode,")") AS CourseName,concat(Specilization1," ",Specilization2) as Specilization'); + $this->db->where('UniversityID',$universityID); + $this->db->where('BranchCode',$branchId); + $this->db->where('IsActive','1'); + $this->db->group_by('CourseName'); + $this->db->order_by('CourseID','ASC'); + $courseDetails = $this->db->get(COURSE); + return $courseDetails->result(); + } + + public function getformBatchDetails($UniversityID,$branchId) + { + $this->db->select("BatchID,BatchCode,BatchName,str_to_date( BatchDate,'%d-%m-%Y') as BD"); + $this->db->from('T_BatchMaster'); + $this->db->where('UniversityID',$UniversityID); + $this->db->where('IsActive',1); + $this->db->where('BranchCode',$branchId); + $this->db->order_by("BD","DESC"); + $res = $this->db->get(); + return $res->result(); + + } + + public function getCenterDetails($branchId) + { + $this->db->select('CenterID,CenterCode,CenterName,CenterAddress'); + $this->db->from('T_CenterMaster'); + $this->db->where('IsActive',1); + $this->db->where('BranchCode',$branchId); + $res = $this->db->get(); + return $res->result(); + } + + public function getStudentListForReregistermodel($UID,$courseID,$batch,$requestedBy,$branchId) + { + $this->db->distinct(); + $this->db->select('T_StudentDetails.StudentID,T_StudentDetails.MobileNumber,T_StudentDetails.Firstname,T_StudentDetails.Lastname,T_StudentDetails.EmailID,T_StudentDetails.Fathername,T_StudentDetails.MotherName,T_StudentDetails.PermanentAddress,T_Student_CourseDetails.EnrollmentID'); + $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_Student_CourseDetails','T_StudentDetails.StudentID = T_Student_CourseDetails.StudentID'); + $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.CourseID',$courseID); + + $res = $this->db->get(); + $data = $res->result(); + $result_array = array(); + //print_r($data);die; + if(count($data) > 0) + { + $result = array(); + $prestu = ""; + foreach($data as $r) + { + // if($prestu != $r->StudentID) + // { + + + $studentdetails['StudentID'] = $r->StudentID; + $studentdetails['MobileNumber'] = $r->MobileNumber; + $studentdetails['Firstname'] = $r->Firstname; + $studentdetails['Lastname'] = $r->Lastname; + $studentdetails['EmailID'] = $r->EmailID; + $studentdetails['Fathername'] = $r->Fathername; + $studentdetails['MotherName'] = $r->MotherName; + $studentdetails['PermanentAddress'] = $r->PermanentAddress; + $studentdetails['EnrollmentID'] = $r->EnrollmentID; + $studentdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$courseID); + // if(!empty($studetdetails['FeeDetails'])){ + $result[] = $studentdetails; + //} + // $prestu = $r->StudentID; + // } + //print_r($result_array); + } + + } + //print_r($studentdetails);die; + //print_r($studentdetails);die; + return $result; + + } + + function getFeeSemesterDetails($stuid,$bcode,$branchId,$courseID) + { + $this->db->select("T_Course_Fees_Details.FeesType,T_Course_Fees_Details.ID as FeesID,if(substr(substr(T_Course_Fees_Details.sem_Year,-4),1,3) = 'sem',substr(sem_Year,-1),if(substr(substr(T_Course_Fees_Details.sem_Year,-5),1,4) = 'year',substr(T_Course_Fees_Details.sem_Year,-1),false)) as SemID,if(substr(substr(T_Course_Fees_Details.sem_Year,-4),1,3) = 'sem','SEM',if(substr(substr(T_Course_Fees_Details.sem_Year,-5),1,4) = 'year','YEAR',false)) as SubType,T_Course_Fees_Details.Sem_Year,if(T_Course_Fees_Details.ProgramType = 'Y001','SEM',if(ProgramType = 'P001','REG',if(ProgramType = 'P002','LAT','FALSE'))) as Type"); + $this->db->from('T_Students_Fees_Status'); + //$this->db->join('T_StudentDetails','T_Students_Fees_Status.StudentID=T_StudentDetails.StudentID'); + $this->db->join('T_Course_Fees_Details','T_Students_Fees_Status.FeesType=T_Course_Fees_Details.ID'); + $this->db->where('T_Students_Fees_Status.BatchCode',$bcode); + $this->db->where('T_Students_Fees_Status.BranchCode',$branchId); + $this->db->where('T_Students_Fees_Status.CourseID',$courseID); + $this->db->where('T_Students_Fees_Status.StudentID',$stuid); + $this->db->where("T_Course_Fees_Details.FeesType !='F001'"); + $this->db->order_by('T_Course_Fees_Details.Sem_Year','DESC'); + $this->db->limit(1); + + $res = $this->db->get(); + return $res->result(); + } + function getSubject($sem,$branch){ + $this->db->select('sub.*'); + $this->db->join('T_SemSubMap_Child SC','SC.MapID = SM.MapID','left'); + $this->db->join('T_SubjectMaster sub','sub.SubjectID = SC.SubjectID'); + $this->db->where('SM.SemesterID',$sem); + $this->db->where('SM.BranchCode',$branch); + $query = $this->db->get('T_SemSubMap_Master SM'); + //print_r($query->result());die; + return $query->result(); + } + } \ No newline at end of file diff --git a/Apollo/assets/js/controllers/reregistrationformCtrl.js b/Apollo/assets/js/controllers/reregistrationformCtrl.js index 504e2e83..839a6d0a 100644 --- a/Apollo/assets/js/controllers/reregistrationformCtrl.js +++ b/Apollo/assets/js/controllers/reregistrationformCtrl.js @@ -7,9 +7,317 @@ app.controller('reregistrationformCtrl', ["$scope","$rootScope","toaster", "$fil $scope.myModel = { "universityName":"", "courseName":"", - "batchName":"" + "batchName":"", + "selectSem":"" }; - - + $scope.sort = function(keyname){ + $scope.sortKey = keyname; //set the sortKey to the param passed + $scope.reverse = !$scope.reverse; //if true make it false and vice versa + } + $scope.init = function () { + $scope.Sem = [ + {Sem:"SEM1",SemNum:1}, + {Sem:"SEM2",SemNum:2}, + {Sem:"SEM3",SemNum:3}, + {Sem:"SEM4",SemNum:4}, + {Sem:"SEM5",SemNum:5}, + {Sem:"SEM6",SemNum:6}, + {Sem:"SEM7",SemNum:7}, + {Sem:"SEM8",SemNum:8}, + ]; + // console.log($scope.Sem); + var getUniv = { + method: 'POST', + url: apiPoint.url + 'getUniversityCourseDetailsforms/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID, + branchId:JSON.parse(localStorage.getItem('localObj')).localBranchID + } + }; + $http(getUniv).then(function (response) { + if (response.data.status==200 && response.data.universityStatus) { + $scope.university = response.data.univerSityDetails; + $scope.centers = response.data.centerDetails; + //console.log( $scope.university); + + } else { + $scope.university = ""; + + } + }); + } + $scope.studentInfo=""; + $scope.getStudentDetails = 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; + } + + + 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; + $scope.isLoaderTxt = "Loading..."; + var getStudents = { + method: 'POST', + url: apiPoint.url + 'getStudentListForRegistrer/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + university: university, + course:course, + batch:batch, + requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID, + branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID, + requestedDept: JSON.parse(localStorage.getItem('localObj')).localType, + } + }; + $http(getStudents).then(function (response) { + if (response.data.status == 200 && response.data.studentStatus) { + $scope.studentInfo = response.data.studentDetails; + $scope.isLoaderShow = false; + $scope.isTblShow = true; + // console.log('API'); + //console.log($scope.studentInfo); + + } + 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"; + + }); + + } + } + + //console.log($scope.Sem); + $scope.changeSem = function(sem,stuDetails,universityId,course){ + + var coursefiltered = universityId.courseDetails.filter((universitycourse)=>universitycourse.CourseID == course); + + if(sem !=''){ + //console.log(stuDetails); + var getsubject = { + method:'post', + url:apiPoint.url +"getSubject", + headers: { + 'Content-Type': 'application/json' + }, + data:{ + SemNum:sem, + branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID, + } + + }; + $http(getsubject).then(function(response){ + //console.log(response); + if(response.data.status ==200 && response.data.SubjectStatus){ + $scope.open(stuDetails,sem,universityId,response.data.SubjectDetails,coursefiltered); + } + // if(response.data.message == "Something Went Wrong!" ){ + // //alert(); + // swal('No Subject Available','','warning'); + + + },function(error){ + swal('No Subject Available','','warning'); + }); + + } + } + $scope.open = function(PDFdata,sem,universityId,Subjects,coursefiltered){ + + // console.log(PDFdata); + $rootScope.Student = PDFdata; + // console.log(PDFdata); + + $rootScope.sem = sem; + $rootScope.Course = coursefiltered[0]; + console.log($rootScope.Course); + $rootScope.university = universityId; + $rootScope.Subject = Subjects; + var modalInstance = $modal.open({ + templateUrl: 'assets/views/reregistration/reregistrationformpdf.html', + controller: 'reregistrationformCtrl', + // size: size, + resolve: { + pdfitems: function () { + //return $scope.FeesName; + return PDFdata; + } + } + }); + + modalInstance.result.then(function (selectedItem) { + $scope.selected = selectedItem; + }, function () { + $log.info('Modal dismissed at: ' + new Date()); + }); + }; + $scope.generatePDF = function(){ + $scope.universityAddress = $scope.university.Address; + $scope.universitydetails = "Mobile: "+$scope.university.MobileNumber+",E-mail id:"+$scope.university.EmailID+ + ",Website:-"; + $scope.Enroll = "Enrolment No: "; + $scope.corseDetails = "Course Name: "+$scope.Course.CourseName+" specialization: "+$scope.Course.Specilization +"Sem/Year: SEM"+$scope.sem; + $scope.StudentName = "Name of the Candidate: "+$scope.Student.Firstname +' '+ $scope.Student.Lastname; + $scope.StudentFatername = "Father's Name: "+$scope.Student.Fathername; + $scope.StudentMotherName = "Mother's Name: "+$scope.Student.MotherName; + //var str = $scope.Student.PresentAddress; + + var str = escape($scope.Student.PermanentAddress); + + $scope.StudnetAddress = "Address: "+ str.replace("%0A"," "); + $scope.StudentPin = "Pincode: .................. Mobile No: "+$scope.Student.MobileNumber+"Email ID: "+$scope.Student.EmailID; + + // var sem1 = doc.autoTableHtmlToJson(document.getElementById(subject)); + var universityname = $scope.university.universityName; + var universityCap = universityname.toUpperCase(); + var doc = new jsPDF('A4'); + var img = document.getElementById("logo"); + //console.log(img); + var canvas = document.createElement("canvas"); + canvas.width = 100; + canvas.height = 100; + var ctx = canvas.getContext("2d"); + ctx.drawImage(img, 0, 0,100,100); + var dataURL = canvas.toDataURL("image/png"); + + doc.rect(10, 10, 190, 280); + + doc.text(70, 20, universityCap); + doc.addImage(dataURL, 'jpeg', 50, 13, 10, 10); + doc.setFontSize(14); + doc.text(70,32,"RE-REGISTRATION FORM"); + doc.setFontSize(12); + doc.text(35,35,$scope.universityAddress); + doc.text(20,40,$scope.universitydetails); + doc.setFontSize(10); + doc.setFontSize(10); + var formdetails = "The from should be complete in all respects and to be filled by student in English CAPITAL letters in blue /black ink."; + var details = doc.splitTextToSize(formdetails,200); + doc.text(15,50,details); + + doc.setFontSize(12); + doc.line(10, 45, 200, 45); + var col = 45; + var EnLen = $scope.Student.EnrollmentID.length; + console.log(EnLen); + var k = 0; + while( k<= EnLen-1){ + //console.log(k); + doc.text(15,60,$scope.Enroll);doc.rect(col,57,5,5); + col = col+1; + doc.text(col,61,$scope.Student.EnrollmentID[k]); + col = parseInt(col)+4; + k++; + } + //doc.rect(45,55,5,5);doc.rect(50,55,5,5);doc.rect(55,55,5,5);doc.rect(60,55,5,5);doc.rect(65,55,5,5);doc.rect(70,55,5,5);doc.rect(75,55,5,5);doc.rect(80,55,5,5);doc.rect(85,55,5,5);doc.rect(90,55,5,5);doc.rect(95,55,5,5);doc.rect(100,55,5,5);doc.rect(105,55,5,5);doc.rect(110,55,5,5);doc.rect(115,55,5,5);doc.rect(120,55,5,5);doc.rect(125,55,5,5); + // doc.text(46,59,$scope.Student.EnrollmentID[0]);doc.text(51,59,$scope.Student.EnrollmentID[1]);doc.text(56,59,$scope.Student.EnrollmentID[2]);doc.text(61,59,$scope.Student.EnrollmentID[3]);doc.text(66,59,$scope.Student.EnrollmentID[4]); + // doc.text(71,59,$scope.Student.EnrollmentID[5]);doc.text(76,59,$scope.Student.EnrollmentID[6]);doc.text(81,59,$scope.Student.EnrollmentID[7]);doc.text(86,59,$scope.Student.EnrollmentID[8]);doc.text(91,59,$scope.Student.EnrollmentID[9]); + // doc.text(96,59,$scope.Student.EnrollmentID[10]);doc.text(101,59,$scope.Student.EnrollmentID[11]);doc.text(106,59,$scope.Student.EnrollmentID[12]); + // //doc.text(111,59,$scope.Student.EnrollmentID[13]);doc.text(116,59,$scope.Student.EnrollmentID[14]);doc.text(121,59,$scope.Student.EnrollmentID[15]); + + doc.text(15,70,$scope.corseDetails); + doc.text(15,80,"Examination Session: January ");doc.rect(73,77,5,5);doc.text(80,80,"June");doc.rect(90,77,5,5);doc.text(100,80,"Semester Mode");doc.rect(131,77,5,5);doc.text(140,80,"Yearly Mode");doc.rect(165,77,5,5); + // doc.autoTable(sem1.columns, sem1.data, {margin: {top: 100},theme:'grid'}); + + doc.line(10, 83, 200, 83); + doc.text(15,88,$scope.StudentName); + doc.text(60,89,"......................................................................................................................"); + doc.text(15,95,$scope.StudentFatername); + doc.text(43,96,"...................................................................................................................................."); + doc.text(15,102,$scope.StudentMotherName); + doc.text(43,103,"...................................................................................................................................."); + + doc.text(15,110,$scope.StudnetAddress); + doc.text(30,111,"................................................................................................................................................"); + doc.text(15,121,$scope.StudentPin); + doc.text + doc.line(10, 125, 200,125); + doc.text(45,130,"SUBJECT / PAPER IN WHICH CANDIDATE APPEARING") + doc.line(10, 131, 200, 131); + doc.text(25,135,"SR.NO"); + + doc.text(75,135,"Subject Code"); + doc.text(124,135,"Subject/Paper Code"); + doc.line(10,137,200,137); + var row = 137; + var no = 1; + for(var i=0;i<=$scope.Subject.length-1;i++){ + // doc.line(10,row,200,row); + no = no.toString(); + doc.text(25,row+5,no); + doc.text(75,row+5,$scope.Subject[i].SubjectCode); + doc.text(126,row+5,$scope.Subject[i].SubjectName); + + row = row+6; + no = parseInt(no)+1; + doc.line(10,row,200,row); + } + var index = 14; + var len = index-$scope.Subject.length; + for(var j=0;j<=len;j++){ + no = no.toString(); + doc.text(25,row+5,no); + // doc.text(75,row+5,"--"); + // doc.text(120,row+5,"--"); + row = row+6; + + no = parseInt(no)+1; + doc.line(10,row,200,row); + } + doc.line(10,240,200,240); + doc.text(15,250,"Fees Details: Cash / Cheque / DD"); + doc.text(15,260,"DD No / Cheque No ....................... Dated ............... Bank ...................."); + doc.text(15,270,"Amount ..................."); + doc.text(150,280,"Signature of Candidate"); + doc.save($scope.Student.Firstname +'_'+ $scope.Student.Lastname+'_sem'+$scope.sem+'.pdf'); + + } }]); \ No newline at end of file diff --git a/Apollo/assets/views/reregistration/reregistrationform.html b/Apollo/assets/views/reregistration/reregistrationform.html index 79e87414..152f9201 100644 --- a/Apollo/assets/views/reregistration/reregistrationform.html +++ b/Apollo/assets/views/reregistration/reregistrationform.html @@ -37,7 +37,123 @@
-
+
+
+
+ Search +
+ +
+ + + + +
+
+ + + + +
+ +
+ + + + +
+ +
+ +
+ +
+ + +
+
+
+
+
+
+

{{isLoaderTxt}}

+
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Student Name + + Mobile No + + EmailID + + Sem Year + + Select Sem
{{p.Firstname}}{{p.Lastname}}{{p.MobileNumber}}{{p.EmailID}}{{p.FeeDetails[0].Sem_Year}}
+ + + +
+
+
+ + + + + diff --git a/Apollo/assets/views/reregistration/reregistrationformpdf.html b/Apollo/assets/views/reregistration/reregistrationformpdf.html new file mode 100644 index 00000000..96e6baae --- /dev/null +++ b/Apollo/assets/views/reregistration/reregistrationformpdf.html @@ -0,0 +1,112 @@ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

{{university.universityName}}

+
+
RE-REGISTRATION FORM
+

{{university.Address}}  Mob-{{university.MobileNumber}}, E-mail id:{{university.EmailID}}, Website:-

+ +
+

The from should be complete in all respects and to be filled by student in English CAPITAL letters in blue /black ink.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Enrolment No: {{Student.EnrollmentID[0]}}{{Student.EnrollmentID[1]}}{{Student.EnrollmentID[2]}}{{Student.EnrollmentID[3]}}{{Student.EnrollmentID[4]}}{{Student.EnrollmentID[5]}}{{Student.EnrollmentID[6]}}{{Student.EnrollmentID[7]}}{{Student.EnrollmentID[8]}}{{Student.EnrollmentID[9]}}{{Student.EnrollmentID[10]}}{{Student.EnrollmentID[11]}}{{Student.EnrollmentID[12]}}{{Student.EnrollmentID[13]}}{{Student.EnrollmentID[14]}}{{Student.EnrollmentID[15]}}{{Student.EnrollmentID[16]}}{{Student.EnrollmentID[17]}}{{Student.EnrollmentID[18]}}
+   +

Course Name: {{Course.CourseName}} specialization {{Course.Specilization}} Sem/Year SEM{{sem}}

+   +

Examination Session:    January       June        Semester Mode        Yearly Mode    

+
+ + + + + + + + + + + + + + + + + + + +
Name of the Cadidate:{{Student.Firstname}} {{Student.Lastname}}
Father's Nmae:{{Student.Fathername}}
Mother's Name:{{Student.MotherName}}
Address{{Student.PermanentAddress}}
+

Pin Code: __________ Mobile No: {{Student.MobileNumber}} E-mail ID: {{Student.EmailID}}

+
 SUBJECT / PAPER IN WHICH CANDIDATE APPEARING 
 SR.NO Subject Code Subject / Paper Code
{{$index+1}}{{sub.SubjectCode}}{{sub.SubjectName}}
+

 Fees Details: Cash / Cheque / DD

+

DD No / Cheque no ________________Dated____________Bank_________________

+

Amount______________

+

Signature of Candidate

+
+
+
\ No newline at end of file