diff --git a/Apollo/api/application/config/constants.php b/Apollo/api/application/config/constants.php
index 04c7ea41..7554fb19 100755
--- a/Apollo/api/application/config/constants.php
+++ b/Apollo/api/application/config/constants.php
@@ -154,14 +154,20 @@ defined('SESSIONSCHEDULE') OR define('SESSIONSCHEDULE','T_SessionSchedule_Master
defined('SESSIONSCHEDULEDETAILS') OR define('SESSIONSCHEDULEDETAILS','T_SessionSchedule_Details');
defined('STUDENTDOCUMENTDETAILS') OR define('STUDENTDOCUMENTDETAILS','T_StudentDocumentsDetails');
defined('STUDENTDOCUMENTTRACKDETAILS') OR define('STUDENTDOCUMENTTRACKDETAILS','T_Student_DocumentTrack_Details');
+defined('REGISTRATIONDETAILS') OR define('REGISTRATIONDETAILS','T_Registration_Details');
+
// define APPLICATION certificate type constant
defined('APPLICATION_CONST') OR define('APPLICATION_CONST','APPLICATION');
+// registration type constant
+defined('NEWREGISTRATION_CONST') OR define('NEWREGISTRATION_CONST','New Registration');
+defined('RE_REGISTRATION_CONST') OR define('RE_REGISTRATION_CONST','Re-registration');
+
//end of database table name
//encripted password -> md5
defined('ENCR_PASSWORD') OR define('ENCR_PASSWORD','e99a18c428cb38d5f260853678922e03');
-//end of encripted password
\ No newline at end of file
+//end of encripted password
diff --git a/Apollo/api/application/config/database.php b/Apollo/api/application/config/database.php
index 2573d28b..20ed4d6f 100755
--- a/Apollo/api/application/config/database.php
+++ b/Apollo/api/application/config/database.php
@@ -75,13 +75,20 @@ $query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
+<<<<<<< HEAD
+ // 'hostname' => 'apollodec.com',
+ // 'username' => 'apollod4_SIT',
+ // 'password' => 'apollosit1234',
+ // 'database' => 'apollod4_ApolloDECNEWSIT',
+=======
'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',
+>>>>>>> 3f287c92a22bb6528c89be19aabcde2ec3393f70
+ '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 5b101c65..eff15fac 100755
--- a/Apollo/api/application/config/routes.php
+++ b/Apollo/api/application/config/routes.php
@@ -192,6 +192,10 @@ $route['getAllDayBookDetails'] = 'DayBook_Controller/getAllDayBookDetails';
$route['update_DayBookDetails'] = 'DayBook_Controller/update_DayBookDetailsData';
+
+
+$route['AllgetUniversity'] = 'Report/getAllUniversity';
+$route['NewregDetails'] = 'Report/NewregDetails';
/* Add New Contact Group */
$route['addNewGroup'] = 'Broadcast_Controller/addNewGroup';
$route['getGroups'] = 'Broadcast_Controller/getGroups';
diff --git a/Apollo/api/application/controllers/Call_Tracking_Controller.php b/Apollo/api/application/controllers/Call_Tracking_Controller.php
index 72b913bd..412ed4d0 100755
--- a/Apollo/api/application/controllers/Call_Tracking_Controller.php
+++ b/Apollo/api/application/controllers/Call_Tracking_Controller.php
@@ -415,13 +415,14 @@ class Call_Tracking_Controller extends REST_Controller {
*/
public function autoAddlead_post(){
$student = $this->post('student');
- //print_r($student);die;
+ $comments = $this->post('comments');
+ //print_r($comments);die;
if(!empty($student)){
$now = new DateTime();
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
//store lead details
$Student_Id = '';
- foreach($student as $student){
+ foreach($student as $index =>$student){
$lead_details['LeadName'] = $student['Student_name'];
@@ -444,11 +445,12 @@ class Call_Tracking_Controller extends REST_Controller {
$tracking_details['CreatedBranch'] = $this->post('branchId');
//store tracking followup details
$tracking_followup_details['FollowupOn'] = $this->post('date');
- $tracking_followup_details['FollowupComments'] = $this->post('comments');
+ $tracking_followup_details['FollowupComments'] = $comments[$index];
$tracking_followup_details['StatusName'] = $this->post('status');
$tracking_followup_details['AssignedStaff'] = $this->post('assignedTo');
//print_r(array($lead_details,$tracking_details,$tracking_followup_details));
+
$leadDetails['leadDetails'] = $this->Calltracking_model->getaddautocall($lead_details,$tracking_details,$tracking_followup_details,$CreatedBy);// Check if the users data store contains users (in case the database result returns NULL)
diff --git a/Apollo/api/application/controllers/HallTickets_Controller.php b/Apollo/api/application/controllers/HallTickets_Controller.php
index 1ddb8a7d..099f77ce 100755
--- a/Apollo/api/application/controllers/HallTickets_Controller.php
+++ b/Apollo/api/application/controllers/HallTickets_Controller.php
@@ -317,7 +317,8 @@ class HallTickets_Controller extends REST_Controller {
{
$schedulearray = $this->post('updatescheduledetails');
$updateBy = $this->post('createdBy');
- $res = $this->Hallticket_model->scheduleUpdate($schedulearray,$updateBy);
+ $scheduleID = $this->post('scheduleID');
+ $res = $this->Hallticket_model->scheduleUpdate($schedulearray,$updateBy,$scheduleID);
if(count($res) > 0 )
{
diff --git a/Apollo/api/application/controllers/Report.php b/Apollo/api/application/controllers/Report.php
index d089469b..10ffdf1b 100755
--- a/Apollo/api/application/controllers/Report.php
+++ b/Apollo/api/application/controllers/Report.php
@@ -383,6 +383,65 @@ class Report extends REST_Controller {
}
+
+
+
+
+ public function getAllUniversity_post()
+ {
+
+ //echo 'in';
+
+ $branchId = $this->post('branchId');
+
+ // echo $branchId;
+ // die();
+
+ $univlist = $this->report_model->GetAllUniversity($branchId);
+
+ if($univlist)
+ {
+ $univlist['status'] = REST_Controller::HTTP_OK;
+ // Set the response and exit
+ $this->response($univlist, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
+ }
+ else
+ {
+ $this->response([
+ 'message' => 'No records found!',
+ 'status' => REST_Controller::HTTP_NOT_FOUND
+ ], REST_Controller::HTTP_NOT_FOUND);
+ }
+
+
+
+ }
+
+
+ public function NewregDetails_post()
+ {
+ $det['from'] = $this->post('from');
+ $det['to'] = $this->post('to');
+ $det['university'] = $this->post('university');
+ // print_r($det);
+
+ $newlist = $this->report_model->GetNewRegList($det);
+
+ if($newlist)
+ {
+ $newlist['status'] = REST_Controller::HTTP_OK;
+ // Set the response and exit
+ $this->response($newlist, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
+ }
+ else
+ {
+ $this->response([
+ 'message' => 'No records found!',
+ 'status' => REST_Controller::HTTP_NOT_FOUND
+ ], REST_Controller::HTTP_NOT_FOUND);
+ }
+ }
+
diff --git a/Apollo/api/application/controllers/University_Controller.php b/Apollo/api/application/controllers/University_Controller.php
index 84be2013..be738955 100755
--- a/Apollo/api/application/controllers/University_Controller.php
+++ b/Apollo/api/application/controllers/University_Controller.php
@@ -34,7 +34,7 @@ class University_Controller extends REST_Controller {
$this->methods['updateDefaultActivityDetails_post']['limit'] = 100;
// load the university model
- $this->load->model('Universityfile_model', 'universityfile_model');
+ $this->load->model('University_model', 'university_model');
}
// get university details
@@ -43,7 +43,7 @@ class University_Controller extends REST_Controller {
$loginUserId = $reqData['localUserID'];
$loginUserBranchId = $reqData['localBranchID'];
$loginUserType = $reqData['localType'];
- $getUniversityListDetails = $this->universityfile_model->get_university_list($loginUserBranchId);// Check if the employee exist
+ $getUniversityListDetails = $this->university_model->get_university_list($loginUserBranchId);// Check if the employee exist
if ($getUniversityListDetails)
{
$getUniversityListDetails['status'] = REST_Controller::HTTP_OK;
diff --git a/Apollo/api/application/models/Dashboard_model.php b/Apollo/api/application/models/Dashboard_model.php
index bd127be4..0c4b2b77 100755
--- a/Apollo/api/application/models/Dashboard_model.php
+++ b/Apollo/api/application/models/Dashboard_model.php
@@ -97,8 +97,10 @@ class Dashboard_model extends CI_Model
$fetchDetails['StudentCounts']=0;
}
$getArray[]=$fetchDetails;
+ $getFeesArray[]= $this->getUniversityFeesPending($rows->UniversityName,$rows->UniversityID,$details['localBranchID']);
}
$resultDetails['details']=$getArray;
+ $resultDetails['universityFeesDetails']=$getFeesArray;
}
else{
$resultDetails['resultStatus']=false;
@@ -106,6 +108,51 @@ class Dashboard_model extends CI_Model
}
return $resultDetails;
}
+ /*
+ * get university pending fees details
+ * created by kms
+ * */
+ public function getUniversityFeesPending($universityName=null,$universityID=null,$branchCode=null){
+ $feesDetails=array();
+ $feesDetails['UniversityID']=$universityID;
+ $feesDetails['UniversityName']=$universityName;
+
+ $this->db->select("SUM(SFS.CourseFees) as PayableFees");
+ $this->db->from( STUDENTS_FEES_STATUS . ' as SFS');
+ $this->db->join( COURSE . ' as CU', 'CU.CourseID = SFS.CourseID');
+ $this->db->where('CU.UniversityID',$universityID);
+ $this->db->where('CU.BranchCode',$branchCode);
+ $this->db->order_by('CU.CourseID','DESC');
+ $getUnivFeesDetails = $this->db->get();
+ if($getUnivFeesDetails->result()){
+ foreach ($getUnivFeesDetails->result() as $payableRow){
+ $feesDetails['PayableFees']=$payableRow->PayableFees;
+ }
+ }
+ else{
+ $feesDetails['PayableFees']=0;
+ }
+ $this->db->select("SUM(SFP.BillAmount) as PaidFees");
+ $this->db->from( STUDENTS_FEES_PAID . ' as SFP');
+ $this->db->join( STUDENTS_FEES_STATUS . ' as SFS', 'SFS.FeesID = SFP.FeesId');
+ $this->db->join( COURSE . ' as CU', 'CU.CourseID = SFS.CourseID');
+ $this->db->where('CU.UniversityID',$universityID);
+ $this->db->where('CU.BranchCode',$branchCode);
+ $this->db->order_by('CU.CourseID','DESC');
+ $getUnivPaidFeesDetails = $this->db->get();
+ if($getUnivPaidFeesDetails->result()){
+ foreach ($getUnivPaidFeesDetails->result() as $paidRow){
+ $feesDetails['PaidFees']=$paidRow->PaidFees;
+ }
+ }
+ else{
+ $feesDetails['PaidFees']=0;
+ }
+
+ return $feesDetails;
+
+
+ }
}
\ No newline at end of file
diff --git a/Apollo/api/application/models/Fees_status_model.php b/Apollo/api/application/models/Fees_status_model.php
index 97c5984f..326dcfb1 100755
--- a/Apollo/api/application/models/Fees_status_model.php
+++ b/Apollo/api/application/models/Fees_status_model.php
@@ -1208,7 +1208,7 @@ class Fees_status_model extends CI_Model
else{
$this->db->insert(STUDENTS_FEES_STATUS, $details);
- $this->db->select('FeesID');
+ $this->db->select('FeesID,BatchCode,StudentID,CourseID,FeesType');
$this->db->where('CourseID', $details['CourseID']);
$this->db->where('StudentID', $details['StudentID']);
$this->db->where('FeesType', $details['FeesType']);
@@ -1223,6 +1223,7 @@ class Fees_status_model extends CI_Model
$insertInstallment['DueDate'] = $jrow['DueDate'];
$insertInstallment['CreatedBy'] = $details['CreatedBy'];
$insertInstallment['CreatedOn'] = $details['CreatedOn'];
+
if($jrow['ID'] =='' OR $jrow['ID'] =='undefined'){
$this->db->insert(FEES_INSTALLMENT, $insertInstallment);
}
@@ -1250,9 +1251,66 @@ class Fees_status_model extends CI_Model
$result['message'] = "Successfully fees details is added.";
}
+ // update registration details
+ if($jsonData){
+ $this->updateRegistrationDetails($details,$installmentFeesID);
+ }
+
return $result;
}
+ /*
+ * insert registration details while set fees
+ * created by kms
+ * */
+ public function updateRegistrationDetails($details=null,$feesStatusID=null){
+ $this->db->select('Student_Fee_Status_Id,RegistrationMode');
+ $this->db->where('CourseID', $details['CourseID']);
+ $this->db->where('StudentID', $details['StudentID']);
+ $checkCourseFees=$this->db->get(REGISTRATIONDETAILS);
+ if($checkCourseFees->num_rows()<=0){
+ // insert registration details table
+ $inserRegistartion['Student_Fee_Status_Id']=$feesStatusID;
+ $inserRegistartion['BatchCode']=$details['BatchCode'];
+ $inserRegistartion['StudentID']=$details['StudentID'];
+ $inserRegistartion['CourseID']=$details['CourseID'];
+ $inserRegistartion['FeeType']=$details['FeesType'];
+ $inserRegistartion['RegistrationMode']=1;
+ $inserRegistartion['RegistrationType']=NEWREGISTRATION_CONST;
+ $inserRegistartion['BranchCode']=$details['BranchCode'];
+ $inserRegistartion['CreatedBy']=$details['CreatedBy'];
+ $inserRegistartion['CreatedOn']=$details['CreatedOn'];
+ $this->db->insert(REGISTRATIONDETAILS, $inserRegistartion);
+
+ }
+ else if($checkCourseFees->num_rows()>=1){
+ $this->db->select('Student_Fee_Status_Id,RegistrationMode');
+ $this->db->where('Student_Fee_Status_Id', $feesStatusID);
+ $checkRegistrationEntry=$this->db->get(REGISTRATIONDETAILS);
+ if($checkRegistrationEntry->num_rows()>0){
+ $updateRegistration['BatchCode']=$details['BatchCode'];
+ $updateRegistration['BranchCode']=$details['BranchCode'];
+ $updateRegistration['UpdatedBy']=$details['CreatedBy'];
+ $updateRegistration['UpdatedOn']=$details['CreatedOn'];
+ $this->db->where('Student_Fee_Status_Id',$feesStatusID);
+ $this->db->update(REGISTRATIONDETAILS, $updateRegistration);
+ }
+ else{
+ $reRegistartion['Student_Fee_Status_Id']=$feesStatusID;
+ $reRegistartion['BatchCode']=$details['BatchCode'];
+ $reRegistartion['StudentID']=$details['StudentID'];
+ $reRegistartion['CourseID']=$details['CourseID'];
+ $reRegistartion['FeeType']=$details['FeesType'];
+ $reRegistartion['RegistrationMode']=0;
+ $reRegistartion['RegistrationType']=RE_REGISTRATION_CONST;
+ $reRegistartion['BranchCode']=$details['BranchCode'];
+ $reRegistartion['CreatedBy']=$details['CreatedBy'];
+ $reRegistartion['CreatedOn']=$details['CreatedOn'];
+ $this->db->insert(REGISTRATIONDETAILS, $reRegistartion);
+ }
+ }
+ return true;
+ }
/*
* insert day book master while fees update
* created by kms
diff --git a/Apollo/api/application/models/Hallticket_model.php b/Apollo/api/application/models/Hallticket_model.php
index 9761e348..055c008c 100755
--- a/Apollo/api/application/models/Hallticket_model.php
+++ b/Apollo/api/application/models/Hallticket_model.php
@@ -791,11 +791,12 @@ class Hallticket_model extends CI_Model
else if(strcasecmp($ind['Type'],'sem') == 0 && strcasecmp($ind['SubType'],'year') == 0)
{
//GET Year Based Semester
+
if($ind['SemID'] == 1)//First Year
{
- $i = 1;
- // for($i = 1;$i <= 1; $i++)
- // {
+ //$i = 1;
+ for($i = 1;$i <= 1; $i++)
+ {
$sql = "SELECT T_SemSubMap_Child.SubjectID,T_SubjectMaster.SubjectCode,T_SubjectMaster.SubjectName,T_SemSubMap_Master.SemesterID,T_Batch_Schedule_Child.ScheduleDate,T_Batch_Schedule_Child.FromTime,T_Batch_Schedule_Child.ToTime FROM T_SemSubMap_Child
JOIN T_SubjectMaster on T_SemSubMap_Child.SubjectID = T_SubjectMaster.SubjectID
JOIN T_SemSubMap_Master on T_SemSubMap_Child.MapID = T_SemSubMap_Master.MapID and T_SemSubMap_Master.UniversityID = ? and T_SemSubMap_Master.CourseID = ? and T_SemSubMap_Master.SemesterID = ? and T_SemSubMap_Master.BranchCode = ? and T_SemSubMap_Child.IsActive = 1
@@ -808,7 +809,7 @@ class Hallticket_model extends CI_Model
//array_push($id['FeeDetails'][$key2],$ind);
- // }
+ }
array_splice($id['FeeDetails'][$key2],0,6,$in1);
}
@@ -1248,9 +1249,9 @@ class Hallticket_model extends CI_Model
}
- public function scheduleUpdate($schedulearray,$up)
+ public function scheduleUpdate($schedulearray,$up,$scheduleID)
{
-
+ //print_r($schedulearray);die();
$MasterID = "";
foreach($schedulearray as $shed)
{
@@ -1259,7 +1260,7 @@ class Hallticket_model extends CI_Model
$sudate = $shed['scheduleDate'];
$SubDate = date("Y-m-d", strtotime($sudate));
$MasterID = $shed['SchId'];
- //echo $SchId;
+
$SubjectID = $shed['SubjectID'];
$scheduleStart = $shed['scheduleStart'];
$scheduleEnd = $shed['scheduleEnd'];
@@ -1268,17 +1269,19 @@ class Hallticket_model extends CI_Model
{
$schedulchildUpdate = array('ScheduleDate'=>$SubDate,'FromTime'=>$scheduleStart,'ToTime'=>$scheduleEnd);
- //print_r($schedulchild);
+
$this->db->trans_start();
$this->db->where('T_Batch_Schedule_Child.SchChildId',$ChildID);
$this->db->where('T_Batch_Schedule_Child.SubjectID',$SubjectID);
+ $this->db->where('T_Batch_Schedule_Child.SchId',$MasterID);
$this->db->update('T_Batch_Schedule_Child',$schedulchildUpdate);
$this->db->trans_complete();
}
else
{
- $schedulchildInsert = array('SchId'=>$MasterID,'SubjectID'=>$SubjectID,'ScheduleDate'=>$SubDate,'FromTime'=>$scheduleStart,'ToTime'=>$scheduleEnd,'IsActive'=>$isactive);
+
+ $schedulchildInsert = array('SchId'=>$scheduleID,'SubjectID'=>$SubjectID,'ScheduleDate'=>$SubDate,'FromTime'=>$scheduleStart,'ToTime'=>$scheduleEnd,'IsActive'=>$isactive);
$this->db->trans_start();
$this->db->insert('T_Batch_Schedule_Child',$schedulchildInsert);
$this->db->trans_complete();
diff --git a/Apollo/api/application/models/Reports_model.php b/Apollo/api/application/models/Reports_model.php
index f116fba3..532b02e6 100755
--- a/Apollo/api/application/models/Reports_model.php
+++ b/Apollo/api/application/models/Reports_model.php
@@ -250,49 +250,46 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
}
public function mark_cert_status($bat=null,$br=null,$u=null,$from=null,$to=null){
- $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
+ $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.idate,'-') as idate,ifnull(sms.istatus,'-') as istatus,ifnull(sms.rdate,'-') as rdate,ifnull(sms.rstatus,'-') as rstatus,ifnull(sms.acmts,'-') as cmnts,sms.certname as Certificate_name
from
- (SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
- CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
- FROM T_CertificationStatus
- WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
- group by sid,sem,cid,lcode,branch) as sms
-left join
- (SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname
+ (SELECT c.ID as id,StudentID as sid,c.CourseID as cid,c.BranchCode as branch,c.ListCode as lcode,p.ListName as status,c.CertificationType as ctype,c.CDate as adate,c.Comments as acmts,c.CertificationType as certname,if(max(p.ListName)='ISSUED TO STUDENT',p.ListName,'-') as istatus,if(max(p.ListName)='ISSUED TO STUDENT',c.CDate,'-') as idate,if(max(p.ListName)='RECEIVED',p.ListName,'-') as rstatus,if(max(p.ListName)='RECEIVED',c.CDate,'-') as rdate
+FROM T_CertificationStatus c
+ left join T_PickListDetails p on p.ListCode=c.ListCode
+ left join T_CertificationMaster cm on cm.CertificationID=c.CertificationType
+WHERE c.ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem,CertificationType)
+ and (p.ListName like 'ISSUED TO STUDENT' or p.ListName like 'RECEIVED')
+group by sid,sem,cid,branch,ctype
+union
+SELECT app.ID as id,app.StudentID as sid,app.CourseID as cid,app.BranchCode as branch,app.ListCode as lcode,p.ListName as status,app.CertificationType as ctype,app.AppDate as adate,app.Comments as acmts,cm.CertificateName as certname,if(max(p.ListName)='ISSUED TO STUDENT',p.ListName,'-') as istatus,if(max(p.ListName)='ISSUED TO STUDENT',app.AppDate,'-') as idate,if(max(p.ListName)='RECEIVED',p.ListName,'-') as rstatus,if(max(p.ListName)='RECEIVED',app.AppDate,'-') as rdate
FROM T_ApplicationStatus as app
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
- where CertificationType != 'CERT024' and ID IN (SELECT max(ID) FROM T_ApplicationStatus group by StudentID,CourseID,BranchCode)
- group by sid,cid,lcode,branch)
- as ams on ams.branch=sms.branch and ams.sid=sms.sid
+ left join T_PickListDetails p on p.ListCode=app.ListCode
+ where CertificateName not like 'APPLICATION%' and ID IN (SELECT max(ID) FROM T_ApplicationStatus group by StudentID,CourseID,BranchCode,CertificationType) and (p.ListName like 'ISSUED TO STUDENT' or p.ListName like 'RECEIVED')
+ group by sid,cid,lcode,branch,ctype) as sms
+
left join
- (SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype, sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
+ (SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
FROM T_Students_Fees_Status
group by sid,fid,cid,batch)
- as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
+ as sfs on sfs.sid=sms.sid and sfs.cid=sms.cid
left join
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
where IsActive = 1
group by sid,fid,billno)
- as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
+ as sfp on sfp.sid=sms.sid and sfp.fid=sfs.fid
left join
- (SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.cid=sms.cid
-left join
- (SELECT ListCode as lcode,ListName as status FROM T_PickListDetails)
- as list on list.lcode=sms.lcode
-left join
- (SELECT ListCode as lcode,ListName as astatus FROM T_PickListDetails)
- as alist on alist.lcode=ams.lcode
+ (SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=sms.cid
left join
(SELECT CourseID as cid,cm.UniversityID as cuid,u.UniversityID as uid,CourseName as course,
UniversityName as uname,cm.BranchCode as branch FROM T_CourseMaster as cm
left join T_UniversityMaster as u on u.UniversityID=cm.UniversityID
group by cid
order by CourseID)
- as cm on cm.cid=cfd.ccid
+ as cm on cm.cid=sms.cid
left join
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father,PermanentAddress as address,AlternateNumber FROM T_StudentDetails) as std on std.sid=sms.sid
-left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid
- where std.active = 1 and sms.branch = '".$br."'
+left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid
+ where std.active = 1 and sms.branch = '".$br."'
";
if ($bat!= ''){
@@ -314,7 +311,7 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
}
- $sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem,Sem_year";
+ $sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem_year,Certificate_name";
$leadDet=$this->db->query($sql);
@@ -498,19 +495,16 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
}
public function doc_pending($bat=null,$br=null,$u=null){
- $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(cfd.syear,'-') as Sem_year,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sms.status,'-') as Status,sms.certname as certname,ifnull(sfp.bdate,'-') as Admission_date,sms.adate,
- ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
+ $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sfs.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sfs.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sms.status,'-') as Status,sms.certname as certname,ifnull(sfp.bdate,'-') as Admission_date,sms.follow_date as fdate
from
- (SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,list.ListName as status,app.ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
-left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
-left join T_PickListDetails list on list.ListCode=app.ListCode
-where list.ListName = 'PENDING' and ID IN (SELECT max(ID) FROM T_ApplicationStatus group by StudentID,CourseID,BranchCode)
-group by sid,cid,lcode,branch) as sms
+ (select StudentID as sid,Details as certname,DocumentDate as follow_date,StatusName as status
+from T_Student_DocumentTrack_Details
+where StatusName not like 'CLOSED') as sms
left join
- (SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype, sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
+ (SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,BranchCode as branch
FROM T_Students_Fees_Status
group by sid,fid,cid,batch)
- as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
+ as sfs on sfs.sid=sms.sid
left join
(SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
WHERE IsActive = 1 and ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
@@ -527,8 +521,8 @@ left join
as cm on cm.cid=cfd.ccid
left join
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father,PermanentAddress as address,AlternateNumber FROM T_StudentDetails) as std on std.sid=sms.sid
-left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
- where std.active = 1 and sms.branch = '".$br."'
+left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid
+ where std.active = 1 and sfs.branch = '".$br."'
";
@@ -542,7 +536,7 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
$sql.=" and cm.uid = '".$u."'";
}
- $sql.="group by Student_id,Course_id,Batch_code,Branch_code,Sem_year ";
+ $sql.="group by Student_id,Course_id,Batch_code,Branch_code";
@@ -843,5 +837,82 @@ from T_Lead_Tracking_Followup as ltf
$batchDetails = $this->db->get(BATCH);
return $batchDetails->result();
}
+
+
+
+ public function GetAllUniversity($branchId)
+ {
+ $this->db->select('UniversityID,UniversityName');
+ $this->db->from('T_UniversityMaster');
+ $this->db->where('T_UniversityMaster.BranchCode',$branchId);
+ $searchDetails = $this->db->get();
+
+ if($searchDetails->result())
+ {
+
+ //print_r($searchDetails->result());
+ $result_array['UnivStatus'] = true;
+ $result_array['details'] = $searchDetails->result();
+ }
+ else
+ {
+ $result_array['UnivStatus'] = false;
+ $result_array['details'] = "No records found!";
+ }
+
+
+ return $result_array;
+ }
+
+
+ public function GetNewRegList($det)
+ {
+
+ $fdate=$det['from'];
+ $tdate=$det['to'];
+
+ $fromd= date("Y-m-d",strtotime($fdate));
+ $tod=date("Y-m-d",strtotime($tdate));
+ $university = $det['university'];
+
+ // echo 'f'.$fromd.'t'.$tod;
+ // die();
+
+
+$subQuery='SELECT T_StudentDetails.StudentID,DOJ,BatchName,CourseName ,T_Student_CourseDetails.UniversityID, T_Student_CourseDetails.CourseID, Firstname,T_StudentDetails. MobileNumber, Fathername, UniversityName,CourseName FROM T_Student_CourseDetails
+JOIN T_StudentDetails ON T_StudentDetails.StudentID=T_Student_CourseDetails.StudentID
+JOIN T_UniversityMaster ON T_UniversityMaster.UniversityID=T_Student_CourseDetails.UniversityID JOIN T_CourseMaster ON T_CourseMaster.CourseID=T_Student_CourseDetails.CourseID
+left JOIN T_Registration_Details ON T_Registration_Details.CourseID = T_Student_CourseDetails.CourseID and T_Registration_Details.StudentID=T_Student_CourseDetails.StudentID
+left JOIN T_BatchMaster ON T_BatchMaster.BatchCode = T_Registration_Details.BatchCode
+WHERE T_Registration_Details.RegistrationType = ? and str_to_date(DOJ,?)>=? and str_to_date(DOJ,?)<=? and T_Registration_Details.RegistrationMode=?';
+
+$query = $this->db->query($subQuery,array(NewReg,'%d-%m-%Y',$fromd,'%d-%m-%Y',$tod,'1'));
+
+
+ $searchDetails =$query->result();
+//print_r( $this->db->last_query());
+//die();
+
+ //print_r($searchDetails);die();
+
+
+ if($searchDetails)
+ {
+
+ //print_r($searchDetails->result());
+ $result_array['searchst'] = true;
+ $result_array['details'] = $query->result();
+ }
+ else
+ {
+ $result_array['searchst'] = false;
+ $result_array['details'] = "No records found!";
+ }
+
+
+ return $result_array;
+
+
+ }
}
\ No newline at end of file
diff --git a/Apollo/assets/i18n/en.json b/Apollo/assets/i18n/en.json
index aad81771..142041a4 100755
--- a/Apollo/assets/i18n/en.json
+++ b/Apollo/assets/i18n/en.json
@@ -91,7 +91,8 @@
"wav_ref": "WAIVER AND REFERAL REPORT",
"examfee": "EXAM WRITING FEE REPORT",
"balfee": "FEE BALANCE REPORT",
- "lead": "LEAD TRACKING REPORT"
+ "lead": "LEAD TRACKING REPORT",
+ "newreg":"NEW REG REPORT"
},
"student": {
diff --git a/Apollo/assets/js/config.constant.js b/Apollo/assets/js/config.constant.js
index 22c0a514..d0574559 100755
--- a/Apollo/assets/js/config.constant.js
+++ b/Apollo/assets/js/config.constant.js
@@ -138,6 +138,10 @@ app.constant('JS_REQUIRES', {
'datacorrectionCtrl': 'assets/js/controllers/datacorrectionCtrl.js',
/*
+ * */
+ 'newreg_reportCtrl': 'assets/js/controllers/newreg_reportCtrl.js',
+ /*
+
diff --git a/Apollo/assets/js/config.router.js b/Apollo/assets/js/config.router.js
index e74f2e4e..afab87b3 100755
--- a/Apollo/assets/js/config.router.js
+++ b/Apollo/assets/js/config.router.js
@@ -186,6 +186,14 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
ncyBreadcrumb: {
label: 'datacorrection'
},
+ }).state('app.reports.newreg', {
+ url: '/newreg',
+ templateUrl: "assets/views/newreg_report.html",
+ resolve: loadSequence('newreg_reportCtrl','ngTable', 'ladda', 'angular-ladda'),
+ title: 'newreg',
+ ncyBreadcrumb: {
+ label: 'newreg'
+ },
}).state('app.master.studentStatusUpdate', {
url: '/default activity',
templateUrl: "assets/views/studentStatusUpdate.html",
diff --git a/Apollo/assets/js/controllers/dashboardCtrl.js b/Apollo/assets/js/controllers/dashboardCtrl.js
index d27167a3..e98ad427 100755
--- a/Apollo/assets/js/controllers/dashboardCtrl.js
+++ b/Apollo/assets/js/controllers/dashboardCtrl.js
@@ -291,6 +291,7 @@ app.controller('OnotherCtrl', ["$scope", "toaster", "$filter", "$http", "API_POI
* */
$scope.getUniversityRegisteredDetails = function () {
$scope.registerdStudentDetails="";
+ $scope.universityFeesDetails="";
$scope.notEmptyRegistration=true;
var req = {
method: 'POST',
@@ -306,9 +307,11 @@ app.controller('OnotherCtrl', ["$scope", "toaster", "$filter", "$http", "API_POI
if (response.data) {
$scope.notEmptyRegistration=response.data.resultStatus;
$scope.registerdStudentDetails=response.data.details;
+ $scope.universityFeesDetails=response.data.universityFeesDetails;
} else {
$scope.registerdStudentDetails="";
+ $scope.universityFeesDetails="";
$scope.notEmptyRegistration=false;
}
});
diff --git a/Apollo/assets/js/controllers/daybookCtrl.js b/Apollo/assets/js/controllers/daybookCtrl.js
index 79229cb4..b2567df9 100755
--- a/Apollo/assets/js/controllers/daybookCtrl.js
+++ b/Apollo/assets/js/controllers/daybookCtrl.js
@@ -210,12 +210,8 @@ $scope.dayBookApprovalAccess = '';
$scope.copyModel = function (p) {
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
- console.log(inc);
$scope.incexp = inc[0];
- console.log($scope.incexp.ID);
-
- console.log(p);
$scope.myModel = {
"id": p.ID,
"date": p.Date,
@@ -452,6 +448,29 @@ $scope.dayBookApprovalAccess = '';
}
}
}
+ function styleXl(){
+ var mystyle = {
+ sheetid: 'DAYBOOK DETAILS',
+ headers: true,
+ caption: {
+ title:'DAYBOOK DETAILS'+ '('+ $scope.searchData.date + ' - ' + $scope.searchData.dateTo +')',
+ width: '300px',
+ style:'font-size:50px;color:blue;'
+ },
+ // style:'background:#00FF00',
+ column: {
+ style:'font-size:25px; color:blue;'
+ }
+ };
+ return mystyle;
+ }
+
+ $scope.exportData = function () {
+
+ alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, PaidTo as PaidToReceivedFrom,FeePaymentDetails as Sem, CourseName as Course,UniversityName as University,TypeName as Type, ReceiptNo as Receipt_No, ReceiptNoComments as Comments, ModeOfPayment as Mode_of_Payment,Amount as Amount,Balance as Balance, Reason, Activity INTO XLS("daybook_details.xls",?) FROM ?',[styleXl(),$scope.data]);
+ };
+
+
}]);
diff --git a/Apollo/assets/js/controllers/daybookadminCtrl.js b/Apollo/assets/js/controllers/daybookadminCtrl.js
index b607258e..9e747f14 100755
--- a/Apollo/assets/js/controllers/daybookadminCtrl.js
+++ b/Apollo/assets/js/controllers/daybookadminCtrl.js
@@ -151,7 +151,6 @@ $scope.dayBookApprovalAccess = '';
if (response.data.typeNameStatus) {
$scope.incomeExpenseName = response.data.typeList;
$scope.incomeExpenseType = response.data.typeNameList;
- } else {
}
});
}
@@ -208,9 +207,7 @@ $scope.dayBookApprovalAccess = '';
}
$scope.copyModel = function (p) {
- //console.log(p);
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
- console.log(inc);
$scope.incexp = inc[0];
$scope.myModel = {
@@ -447,6 +444,26 @@ $scope.dayBookApprovalAccess = '';
}
}
}
+ function styleXl(){
+ var mystyle = {
+ sheetid: 'DAYBOOK DETAILS',
+ headers: true,
+ caption: {
+ title:'DAYBOOK DETAILS'+ '('+ $scope.searchData.date + ' - ' + $scope.searchData.dateTo +')',
+ width: '300px',
+ style:'font-size:50px;color:blue;'
+ },
+ // style:'background:#00FF00',
+ column: {
+ style:'font-size:11px; color:blue;'
+ }
+ };
+ return mystyle;
+ }
+ $scope.exportData = function () {
+
+ alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, PaidTo as PaidToReceivedFrom,FeePaymentDetails as Sem, CourseName as Course,UniversityName as University,TypeName as Type, ReceiptNo as Receipt_No, ReceiptNoComments as Comments, ModeOfPayment as Mode_of_Payment,Amount as Amount,Balance as Balance, Reason, Activity INTO XLS("daybook_details.xls",?) FROM ?',[styleXl(),$scope.data]);
+ };
}]);
diff --git a/Apollo/assets/js/controllers/daybooksuperadminCtrl.js b/Apollo/assets/js/controllers/daybooksuperadminCtrl.js
index 2400ee6c..a993a2da 100755
--- a/Apollo/assets/js/controllers/daybooksuperadminCtrl.js
+++ b/Apollo/assets/js/controllers/daybooksuperadminCtrl.js
@@ -14,7 +14,7 @@ app.controller('daybooksuperadminCtrl', ["$scope", "$rootScope", "toaster", "$fi
//In controller
$scope.exportAction = function(){
alert();
- switch('excel'){
+ switch('excel'){
case 'pdf': $scope.$broadcast('export-pdf', {});
break;
case 'excel': $scope.$broadcast('export-excel', {});
@@ -233,10 +233,6 @@ $scope.dayBookApprovalAccess = '';
$scope.incomeExpenseName = response.data.typeList;
$scope.incomeExpenseType = response.data.typeNameList;
- console.log($scope.incomeExpenseName)
-
- console.log($scope.incomeExpenseType);
- } else {
}
});
}
@@ -272,7 +268,6 @@ $scope.dayBookApprovalAccess = '';
$scope.myModelAdd.type = '';
$scope.getTypes = type === 'I002' ? $scope.getIncomeTypes : $scope.getExpenseTypes;
- console.log($scope.getTypes)
};
$scope.editId = -1;
@@ -316,7 +311,6 @@ $scope.dayBookApprovalAccess = '';
$scope.copyModel = function (p) {
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
- console.log(inc);
$scope.incexp = inc[0];
$scope.myModel = {
"id": p.ID,
@@ -537,12 +531,10 @@ $scope.dayBookApprovalAccess = '';
$scope.daybookeditUpdate = {
submit: function (form, myModel) {
- console.log(myModel.type);
//return false;
var firstError = null;
if (form.$invalid) {
- alert();
var field = null, firstError = null;
for (field in form) {
if (field[0] != '$') {
@@ -601,7 +593,7 @@ $scope.dayBookApprovalAccess = '';
style:'font-size:11px; color:blue;'
}
};
- return mystyle
+ return mystyle;
}
$scope.exportData = function () {
alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, PaidTo as PaidToReceivedFrom,FeePaymentDetails as Sem, CourseName as Course,UniversityName as University,TypeName as Type, ReceiptNo as Receipt_No, ReceiptNoComments as Comments, ModeOfPayment as Mode_of_Payment,Amount as Amount,Balance as Balance, Reason, Activity INTO XLS("daybook_details.xls",?) FROM ?',[styleXl(),$scope.data]);
diff --git a/Apollo/assets/js/controllers/examAttendanceCtrl.js b/Apollo/assets/js/controllers/examAttendanceCtrl.js
index f17df514..6145664a 100644
--- a/Apollo/assets/js/controllers/examAttendanceCtrl.js
+++ b/Apollo/assets/js/controllers/examAttendanceCtrl.js
@@ -293,18 +293,31 @@ $scope.isLoaderTxt = "Loading...";
var headerAM = function(data) {
- var heading = $rootScope.pdfuname+' '+$rootScope.pdfbatch+' Examination'+' '+'Center'+' '+$rootScope.pdfcenter['CenterName']+" - "+ 'Attendance of '+$scope.pdfExamDateToDisplay+'Fore Noon Session';
+ var heading = $rootScope.pdfuname+' '+$rootScope.pdfbatch+' Examination'+' '+'Center'+' '+$rootScope.pdfcenter['CenterName'];
+ var heading1='Attendance of '+$scope.pdfExamDateToDisplay+'After Noon Session'+" - "+ 'Attendance of '+$scope.pdfExamDateToDisplay+'Fore Noon Session';
doc1.setFontSize(9);
doc1.setFontStyle('bold');
- doc1.text(50,30,heading);
+ doc1.text(60,30,heading);
+ //doc1.textAlign('CENTER',50,30,heading);
+ doc1.setFontSize(9);
+ doc1.setFontStyle('bold');
+ doc1.text(70,45,heading1);
+
};
-
+ // ctx.textAlign = "right";
+//ctx.fillText("textAlign=right",150, 140);
var headerPM = function(data) {
- var heading = $rootScope.pdfuname+' '+$rootScope.pdfbatch+' Examination'+' '+'Center'+' '+$rootScope.pdfcenter['CenterName']+" - "+ 'Attendance of '+$scope.pdfExamDateToDisplay+'After Noon Session';
+ var heading = $rootScope.pdfuname+' '+$rootScope.pdfbatch+' Examination'+' '+'Center'+' '+$rootScope.pdfcenter['CenterName'];
+ var heading1='Attendance of '+$scope.pdfExamDateToDisplay+'After Noon Session'+" - "+ 'Attendance of '+$scope.pdfExamDateToDisplay+'Fore Noon Session';
doc2.setFontSize(9);
doc2.setFontStyle('bold');
+
doc2.text(50,30,heading);
+ doc2.setFontSize(9);
+ doc2.setFontStyle('bold');
+ doc2.text(70,45,heading1);
+
};
diff --git a/Apollo/assets/js/controllers/feesStatusCtrl.js b/Apollo/assets/js/controllers/feesStatusCtrl.js
index ac5050bf..becec604 100755
--- a/Apollo/assets/js/controllers/feesStatusCtrl.js
+++ b/Apollo/assets/js/controllers/feesStatusCtrl.js
@@ -2569,8 +2569,7 @@ $scope.open = function(coursefiltered,Subjects,sem){
var universityaddress = encodeURIComponent($scope.Course.Address).replace(/[%2C %20]/g,' ');
$scope.universityAddress = universityaddress.replace(" "," ");;
- $scope.universitydetails = "Mobile: "+$scope.Course.UnivMobileNumber+",E-mail id:"+$scope.Course.EmailID+
- ",Website:-";
+ $scope.universitydetails = "Mobile: "+$scope.Course.UnivMobileNumber+",E-mail id:"+$scope.Course.EmailID;
$scope.Enroll = "Enrolment No: ";
$scope.courseDetails = "Course Name: "+$scope.Course.CourseName+" specialization: "+$scope.Course.Specilization +sem
@@ -2603,15 +2602,16 @@ $scope.open = function(coursefiltered,Subjects,sem){
doc.rect(10, 10, 190, 280);
doc.text(70, 20, universityCap);
+ doc.text(80, 26,$scope.universityAddress);
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,42,$scope.universitydetails);
+
+ doc.text(40,42,$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 formdetails = "The form 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);
diff --git a/Apollo/assets/js/controllers/generateHallTicketCtrl.js b/Apollo/assets/js/controllers/generateHallTicketCtrl.js
index 705ec048..32eee39c 100755
--- a/Apollo/assets/js/controllers/generateHallTicketCtrl.js
+++ b/Apollo/assets/js/controllers/generateHallTicketCtrl.js
@@ -478,15 +478,15 @@ app.controller('HallTicketPDFCtrl', ["$scope", "$modalInstance", "pdfitems", fun
doc.setTextColor(40);
doc.setFontStyle('normal');
- doc.addImage(dataURL, 'jpeg', 75, 35, 50, 50);//university logo location
+ doc.addImage(dataURL, 'jpeg', 50, 35, 50, 50);//university logo location
doc.addImage(profiledataURL, 'jpeg', 470, 100, 60, 60);//student profile location
- doc.setFontSize(16);
+ doc.setFontSize(10);
doc.text(150,50,$scope.universityNamePDF);
doc.setFontSize(8);
- doc.text(160,65,$scope.universityAddressPDF);
+ doc.text(170,65,$scope.universityAddressPDF);
doc.setFontSize(8);
- doc.text(160,88,$scope.universityEmailPDF);
+ doc.text(280,80,$scope.universityEmailPDF);
doc.rect(45, 100, 400, 60);
doc.rect(445, 100, 100, 60);
@@ -702,15 +702,15 @@ app.controller('HallTicketPDFCtrl', ["$scope", "$modalInstance", "pdfitems", fun
doc.setTextColor(40);
doc.setFontStyle('normal');
- doc.addImage(dataURL, 'jpeg', 75, 35, 50, 50);//university logo location
+ doc.addImage(dataURL, 'jpeg', 50, 35, 50, 50);//university logo location
doc.addImage(profiledataURL, 'jpeg', 470, 100, 60, 60);//student profile location
- doc.setFontSize(16);
+ doc.setFontSize(10);
doc.text(150,50,$scope.universityNamePDF);
doc.setFontSize(8);
- doc.text(160,65,$scope.universityAddressPDF);
+ doc.text(170,65,$scope.universityAddressPDF);
doc.setFontSize(8);
- doc.text(160,88,$scope.universityEmailPDF);
+ doc.text(280,80,$scope.universityEmailPDF);
doc.rect(45, 100, 400, 60);
doc.rect(445, 100, 100, 60);
@@ -879,15 +879,15 @@ app.controller('HallTicketPDFCtrl', ["$scope", "$modalInstance", "pdfitems", fun
doc.setTextColor(40);
doc.setFontStyle('normal');
- doc.addImage(dataURL, 'jpeg', 75, 35, 50, 50);//university logo location
+ doc.addImage(dataURL, 'jpeg', 50, 35, 50, 50);//university logo location
doc.addImage(profiledataURL, 'jpeg', 470, 100, 60, 60);//student profile location
- doc.setFontSize(17);
+ doc.setFontSize(10);
doc.text(150,50,$scope.universityNamePDF);
doc.setFontSize(8);
- doc.text(160,65,$scope.universityAddressPDF);
+ doc.text(170,65,$scope.universityAddressPDF);
doc.setFontSize(8);
- doc.text(160,88,$scope.universityEmailPDF);
+ doc.text(280,80,$scope.universityEmailPDF);
doc.rect(45, 100, 400, 60);
doc.rect(445, 100, 100, 60);
diff --git a/Apollo/assets/js/controllers/newreg_reportCtrl.js b/Apollo/assets/js/controllers/newreg_reportCtrl.js
new file mode 100644
index 00000000..ac7c32c1
--- /dev/null
+++ b/Apollo/assets/js/controllers/newreg_reportCtrl.js
@@ -0,0 +1,193 @@
+'use strict';
+/*** controller***/
+app.controller('newreg_reportCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage" ,"$http", "$state","$modal","$log",
+ function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http,ipCookie ,$state,$modal,$log){
+
+ //function ($scope, apiPoint, $http, SweetAlert, $state,$modal, md5, ipCookie, $window, dateListDescService) {
+
+ // DataTables configurable options
+
+
+ $scope.filters = {
+
+ "from_date": "",
+ "to_date": "",
+
+ };
+
+
+ var localDetails = JSON.parse(localStorage.getItem('localObj'));
+ //var localDetails = ipCookie('cookiechk');
+
+ console.log(localDetails);
+
+
+ // $scope.initHead = function() {
+//console.log('rfd');
+ var logcheck = JSON.parse(localStorage.getItem('localObj'));
+
+ const LOCALTYPE = logcheck.localType;
+ if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' || LOCALTYPE == 'R002' || LOCALTYPE == 'R005')) {
+ console.log("if");
+ }else {
+ if(logcheck != null && LOCALTYPE !='R001') {
+ console.log("else if");
+ $state.go('app.dashboard');
+ } else {
+
+ console.log("else else");
+ //ipCookie.remove('cookiechk');
+ window.localStorage.clear();
+ $state.go('login.signin');
+ }
+ }
+
+ // }
+ $scope.universitySearchData = '';
+
+ $scope.init = function()
+ {
+
+ // alert()
+ var getuniv = {
+ method: 'POST',
+ url: apiPoint.url + 'AllgetUniversity/',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+
+ data: {
+
+ branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
+ }
+
+ };
+
+ $http(getuniv).then(function (response) {
+
+ if(response.status == 200)
+ {
+ $scope.universitySearchData=response.data.details;
+ }
+
+ });
+
+
+ };
+
+
+
+
+
+
+//$scope.opinctotal='';
+$scope.newreglist='';
+$scope.isLoaderShow ='';
+ $scope.getDetails = function (form,myModel)
+ {
+ // alert('in')
+
+ console.log(form.$dirty);
+ var from = $scope.filters.from_date;
+ var to = $scope.filters.to_date;
+ var university = myModel.myUnivSearch
+ // console.log(from)
+
+ var getstudentdetails = {
+
+ method: 'POST',
+ url: apiPoint.url + 'NewregDetails/',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ data: {
+ university: university,
+ from : $scope.filters.from_date,
+ to : $scope.filters.to_date
+
+ }
+ }
+
+ $http(getstudentdetails).then(function (response) {
+
+ if(response.data.status == 200)
+ {
+ $scope.newreglist = response.data.details;
+ $scope.isLoaderShow = true;
+
+ }
+
+ else
+ {
+ $scope.isLoaderShow=false;
+ }
+
+
+ });
+
+ }
+
+
+
+
+ var mystyle = {
+ sheetid: 'New Registration List',
+ headers: true,
+ caption: {
+ title:'New Registration List',
+ width: '500px',
+ style:'font-size:50px;bold:true'
+ },
+ // style:'background:#00FF00',
+ column: {
+ style:'font-size:12px'
+ },
+
+ };
+
+
+
+ $scope.exportData = function ()
+ {
+ //alert()
+
+
+
+//console.log($scope.fullincomedetail);
+ alasql('SELECT Firstname as Name,Fathername,CourseName,BatchName,UniversityName,DOJ as RegistrationDate,MobileNumber INTO XLS("New Registration report.xls",?) FROM ?',[mystyle,$scope.newreglist]);
+
+ };
+
+
+ $scope.OpenWindowStatus = false;
+ $scope.editId = -1;
+ $scope.setEditId = function (P)
+ {
+ //alert(P);
+ $scope.editId = P;
+
+ }
+
+ $scope.close = function ()
+ {
+
+ $scope.editId = -1;
+
+ }
+
+
+$scope.fdate ='';
+$scope.tdate ='';
+//$scope.Subtypes = '';
+
+
+
+
+
+
+
+ }]);
+
+
+
+
diff --git a/Apollo/assets/js/controllers/report_ans_bookletCtrl.js b/Apollo/assets/js/controllers/report_ans_bookletCtrl.js
index 90bc2c36..1f0e9b59 100755
--- a/Apollo/assets/js/controllers/report_ans_bookletCtrl.js
+++ b/Apollo/assets/js/controllers/report_ans_bookletCtrl.js
@@ -82,8 +82,24 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
}
});
}
-
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.ans_book_data = '';
$scope.message = '';
@@ -115,6 +131,7 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
});
}
+ }
var mystyle = {
sheetid: 'ANSWER BOOKLET STATUS REPORT',
headers: true,
@@ -405,7 +422,12 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
$scope.trackForm = {
submit: function (form, myModel,loading,selectedStudents) {
- //console.log(selectedStudents);
+ //console.log(selectedStudents);return false;
+ var comments = [];
+ for(var stuid=0;stuid<=selectedStudents.length-1;stuid++){
+ comments [stuid] ="Call Tracking For Report Answer Booklet Details - BalanceFee:"+selectedStudents[stuid].balance + " - IssuedDate:" +selectedStudents[stuid].issuedate;
+ }
+
if(isNaN(myModel.date)){
$scope.nextFollowupDate = myModel.date;
@@ -462,7 +484,7 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
assignedTo: myModel.assignedTo,
status: myModel.status,
referedBy: myModel.referedBy,
- comments:"Call Tracking For Report Answer Booklet Details ",
+ comments:comments,
enquiryStatus:myModel.enquiryStatus,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
diff --git a/Apollo/assets/js/controllers/report_app_pendingCtrl.js b/Apollo/assets/js/controllers/report_app_pendingCtrl.js
index 8cca0fef..626616b6 100755
--- a/Apollo/assets/js/controllers/report_app_pendingCtrl.js
+++ b/Apollo/assets/js/controllers/report_app_pendingCtrl.js
@@ -82,8 +82,24 @@ app.controller('report_app_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
}
});
}
-
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.app_pending_data = '';
$scope.message = '';
@@ -115,6 +131,7 @@ app.controller('report_app_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
});
}
+ }
var mystyle = {
sheetid: 'APPLICAITON PENDING STUDENT LIST REPORT',
headers: true,
diff --git a/Apollo/assets/js/controllers/report_balfeeCtrl.js b/Apollo/assets/js/controllers/report_balfeeCtrl.js
index aab98246..28a22b1f 100755
--- a/Apollo/assets/js/controllers/report_balfeeCtrl.js
+++ b/Apollo/assets/js/controllers/report_balfeeCtrl.js
@@ -91,8 +91,24 @@ app.controller('report_balfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
});
}
// response data
- $scope.onSubmit = function () {
-
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
$scope.balfee_data = '';
$scope.message = '';
var response_data = {
@@ -154,7 +170,7 @@ app.controller('report_balfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
}
-
+ }
//Export to excel
var mystyle = {
sheetid: 'BALANCE FEE STATUS REPORT',
diff --git a/Apollo/assets/js/controllers/report_certificateCtrl.js b/Apollo/assets/js/controllers/report_certificateCtrl.js
index 81ffff7b..e3ca57f2 100755
--- a/Apollo/assets/js/controllers/report_certificateCtrl.js
+++ b/Apollo/assets/js/controllers/report_certificateCtrl.js
@@ -408,6 +408,10 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
$scope.trackForm = {
submit: function (form, myModel,loading,selectedStudents) {
//console.log(selectedStudents);
+ var comments = [];
+ for(var stuid=0;stuid<=selectedStudents.length-1;stuid++){
+ comments [stuid] ="Call Tracking For Report Certificate Status - DocumentName:"+selectedStudents[stuid].Certificate_name + " - Status:" +selectedStudents[stuid].Certificate_status + " - Date:" +selectedStudents[stuid].Certificate_date;
+ }
if(isNaN(myModel.date)){
$scope.nextFollowupDate = myModel.date;
@@ -464,7 +468,7 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
assignedTo: myModel.assignedTo,
status: myModel.status,
referedBy: myModel.referedBy,
- comments:"Call Tracking For Report Certificate Details ",
+ comments:comments,
enquiryStatus:myModel.enquiryStatus,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
diff --git a/Apollo/assets/js/controllers/report_doc_pendingCtrl.js b/Apollo/assets/js/controllers/report_doc_pendingCtrl.js
index b646cb4f..a82e9624 100755
--- a/Apollo/assets/js/controllers/report_doc_pendingCtrl.js
+++ b/Apollo/assets/js/controllers/report_doc_pendingCtrl.js
@@ -82,8 +82,25 @@ app.controller('report_doc_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
}
});
}
-
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.doc_pending_data = '';
$scope.message = '';
@@ -113,7 +130,7 @@ app.controller('report_doc_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
}
});
-
+ }
}
var mystyle = {
sheetid: 'DOCUMENT PENDING STUDENT LIST REPORT',
diff --git a/Apollo/assets/js/controllers/report_examfeeCtrl.js b/Apollo/assets/js/controllers/report_examfeeCtrl.js
index 35937f3b..66bca916 100755
--- a/Apollo/assets/js/controllers/report_examfeeCtrl.js
+++ b/Apollo/assets/js/controllers/report_examfeeCtrl.js
@@ -83,7 +83,24 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
});
}
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.examfee_data = '';
$scope.message = '';
@@ -120,7 +137,7 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
totalf += parseFloat(item.Amount);
}
return totalf; }
-
+ }
}
var mystyle = {
sheetid: 'EXAM WRITING FEE REPORT',
diff --git a/Apollo/assets/js/controllers/report_expenseCtrl.js b/Apollo/assets/js/controllers/report_expenseCtrl.js
index a70f785c..9a5d492b 100755
--- a/Apollo/assets/js/controllers/report_expenseCtrl.js
+++ b/Apollo/assets/js/controllers/report_expenseCtrl.js
@@ -63,7 +63,25 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
});
}
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$addDate;
+ firstError = form[field].$toDate;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[toDate=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.expense_data = '';
$scope.message = '';
@@ -95,6 +113,7 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
});
}
+ }
var mystyle = {
sheetid: 'EXPENSE REPORT',
diff --git a/Apollo/assets/js/controllers/report_leadCtrl.js b/Apollo/assets/js/controllers/report_leadCtrl.js
index ea0c30ca..c5716651 100644
--- a/Apollo/assets/js/controllers/report_leadCtrl.js
+++ b/Apollo/assets/js/controllers/report_leadCtrl.js
@@ -101,7 +101,25 @@ app.controller('report_leadCtrl', ["$scope", "$filter","$rootScope","$modal", "A
});
}
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$addDate;
+ firstError = form[field].$toDate;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[toDate=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.lead_data = '';
$scope.message = '';
@@ -132,6 +150,7 @@ app.controller('report_leadCtrl', ["$scope", "$filter","$rootScope","$modal", "A
});
}
+ }
var mystyle = {
sheetid: 'Lead REPORT',
headers: true,
diff --git a/Apollo/assets/js/controllers/report_markcard_certificateCtrl.js b/Apollo/assets/js/controllers/report_markcard_certificateCtrl.js
index d4e31322..af4fe036 100755
--- a/Apollo/assets/js/controllers/report_markcard_certificateCtrl.js
+++ b/Apollo/assets/js/controllers/report_markcard_certificateCtrl.js
@@ -407,6 +407,10 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
$scope.trackForm = {
submit: function (form, myModel,loading,selectedStudents) {
//console.log(selectedStudents);
+ var comments = [];
+ for(var stuid=0;stuid<=selectedStudents.length-1;stuid++){
+ comments [stuid] ="Call Tracking For Report Certificate Status - SemYear:"+selectedStudents[stuid].Sem_year + " - Balance:" +selectedStudents[stuid].Balance_fee + " - CertificateName:" +selectedStudents[stuid].Certificate_name + " - ReceivedStatus:" +selectedStudents[stuid].rstatus + " - ReceivedDate:" +selectedStudents[stuid].rdate;
+ }
if(isNaN(myModel.date)){
$scope.nextFollowupDate = myModel.date;
@@ -463,7 +467,7 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
assignedTo: myModel.assignedTo,
status: myModel.status,
referedBy: myModel.referedBy,
- comments:"Call Tracking For Report MarkCard-Certificate Details ",
+ comments:comments,
enquiryStatus:myModel.enquiryStatus,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
diff --git a/Apollo/assets/js/controllers/report_markcard_statusCtrl.js b/Apollo/assets/js/controllers/report_markcard_statusCtrl.js
index d76fc58e..0c588387 100755
--- a/Apollo/assets/js/controllers/report_markcard_statusCtrl.js
+++ b/Apollo/assets/js/controllers/report_markcard_statusCtrl.js
@@ -83,7 +83,24 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
});
}
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.markcard_data = '';
$scope.message = '';
@@ -114,6 +131,7 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
});
}
+ }
var mystyle = {
sheetid: 'MARKCARD STATUS REPORT',
headers: true,
diff --git a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js
index f17415b7..ab3ec6ac 100755
--- a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js
+++ b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js
@@ -72,35 +72,26 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc
}
});
}
- //dropdown values for batch
- $scope.getBatch = function(Form,filters){
- $scope.batchValue= filters.university;
-
- var filterBatch = {
- method: 'POST',
- url: apiPoint.url + 'report_BatchName/',
- headers: {
- 'Content-Type': 'application/json'
- },
- data: {
- branch : JSON.parse(localStorage.getItem('localObj')).localBranchID,
- batch : $scope.batchValue
- }
-
- };
- //console.log($scope.batchValue);
- $scope.batchName = "";
- $http(filterBatch).then(function (response) {
- if (response.data) {
-
- $scope.batchName = response.data.batchName;
- console.log($scope.batchName);
- } else {
- }
- });
- }
+
- $scope.onSubmit = function() {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.study_mat_data = '';
$scope.message = '';
@@ -130,7 +121,8 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc
});
- }
+ }
+ }
//Export to excel
var mystyle = {
sheetid: 'STUDY MATERIAL STATUS REPORT',
diff --git a/Apollo/assets/js/controllers/report_waiver_referalCtrl.js b/Apollo/assets/js/controllers/report_waiver_referalCtrl.js
index a7daf5f4..d668ee2e 100755
--- a/Apollo/assets/js/controllers/report_waiver_referalCtrl.js
+++ b/Apollo/assets/js/controllers/report_waiver_referalCtrl.js
@@ -50,7 +50,24 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
});
}
- $scope.onSubmit = function () {
+ $scope.show = false;
+ $scope.onSubmit = function (form) {
+ var firstError = null;
+ if (form.$invalid) {
+ var field = null, firstError = null;
+ $scope.show = true;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$batch;
+ }
+ if (form[field].$pristine) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[batch=' + firstError + ']').focus();
+ }else {
//alert($scope.batch.name);
$scope.waiver_referal_data = '';
$scope.message = '';
@@ -95,6 +112,7 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
}
return totalf; }
}
+ }
var mystyle = {
sheetid: 'WAIVER AND REFERAL REPORT',
diff --git a/Apollo/assets/js/controllers/schCtrl.js b/Apollo/assets/js/controllers/schCtrl.js
index fba35298..555194ad 100755
--- a/Apollo/assets/js/controllers/schCtrl.js
+++ b/Apollo/assets/js/controllers/schCtrl.js
@@ -50,7 +50,7 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
$scope.editId = pid;
$scope.courseCode = cid;
- var mappingid = schid;
+ $scope.mappingid = schid;
//alert(mappingid+'n');
var getsheduledetails = {
method: 'POST',
@@ -60,7 +60,7 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
},
data: {
//requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
- mapid:mappingid,
+ mapid:$scope.mappingid,
subid:subid,
branchcode:branchid,
@@ -449,7 +449,8 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
updatescheduledetails : $scope.UpdatescheduledDetails,
//status: myModel.IsActive,
- createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID
+ createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
+ scheduleID:$scope.mappingid
}
};
$http(update).then(function (response) {
diff --git a/Apollo/assets/views/dashboard.html b/Apollo/assets/views/dashboard.html
index da44e16c..b7ca4661 100755
--- a/Apollo/assets/views/dashboard.html
+++ b/Apollo/assets/views/dashboard.html
@@ -14,208 +14,311 @@
-->
-
-
-
-
-
-
-
University Registration
+
+
+
+
+
-
-
-
-
- No university details!
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
-
-
-
-
Pending Follow Ups :{{pendingFolloupDetails.length}}
-
-
-
-
-
- No Pending Followup!
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
\ No newline at end of file
diff --git a/Apollo/assets/views/daybook/daybook.html b/Apollo/assets/views/daybook/daybook.html
index 525a296b..fb7d062c 100755
--- a/Apollo/assets/views/daybook/daybook.html
+++ b/Apollo/assets/views/daybook/daybook.html
@@ -119,7 +119,8 @@
/*font-size: 16px;*/
}
-
+
+
Date
diff --git a/Apollo/assets/views/daybook/daybookadmin.html b/Apollo/assets/views/daybook/daybookadmin.html
index f9e72a7f..29321ca0 100755
--- a/Apollo/assets/views/daybook/daybookadmin.html
+++ b/Apollo/assets/views/daybook/daybookadmin.html
@@ -119,7 +119,8 @@
/*font-size: 16px;*/
}
-
+
+
Date
diff --git a/Apollo/assets/views/hallticket/examAttendancePDF.html b/Apollo/assets/views/hallticket/examAttendancePDF.html
index 5817053e..7506ef6d 100644
--- a/Apollo/assets/views/hallticket/examAttendancePDF.html
+++ b/Apollo/assets/views/hallticket/examAttendancePDF.html
@@ -5,7 +5,7 @@
-
+
@@ -33,7 +33,7 @@
- | SNO | STUDENT NAME | COURSE | SEM/YEAR | ENROLLMENT NO | SUBJECT CODE | SUBJECT NAME | BOOKLET NO | STU SIGN |
+ | SNO | STUDENT NAME | COURSE | SEM/YEAR | ENROLLMENT NO | SUBJECT CODE | SUBJECT NAME | BOOKLET NO | STUDENT SIGN |
@@ -46,7 +46,7 @@
- | SNO | STUDENT NAME | COURSE | SEM/YEAR | ENROLLMENT NO | SUBJECT CODE | SUBJECT NAME | BOOKLET NO | STU SIGN |
+ | SNO | STUDENT NAME | COURSE | SEM/YEAR | ENROLLMENT NO | SUBJECT CODE | SUBJECT NAME | BOOKLET NO | STUDENT SIGN |
| {{($index+1)}} | {{student.Firstname}} {{student.Lastname}} | {{student.CourseName}} | {{student.Sem_Year}} | {{student.EnrollmentID}} | {{student.SubjectCode}} | {{student.SubjectName}} | | |
diff --git a/Apollo/assets/views/hallticket/generatehallticket.html b/Apollo/assets/views/hallticket/generatehallticket.html
index 25644140..82b36bd7 100755
--- a/Apollo/assets/views/hallticket/generatehallticket.html
+++ b/Apollo/assets/views/hallticket/generatehallticket.html
@@ -85,11 +85,7 @@
-
-
-
-
-
+
@@ -106,12 +102,11 @@
-
-
-
-
-
-
+
+
+
+
+
@@ -165,6 +160,12 @@
GENERATED |
+
+
+
+
+
+
@@ -174,6 +175,7 @@
+
diff --git a/Apollo/assets/views/hallticket/hallTicketPDF.html b/Apollo/assets/views/hallticket/hallTicketPDF.html
index 40fed859..87143cf7 100755
--- a/Apollo/assets/views/hallticket/hallTicketPDF.html
+++ b/Apollo/assets/views/hallticket/hallTicketPDF.html
@@ -5,7 +5,7 @@
-
+
@@ -18,14 +18,14 @@
-  |
- {{universityNamePDF}} |
+  |
+ {{universityNamePDF}} |
- | {{universityEmailPDF}} |
+ {{universityEmailPDF}} |
- | {{universityAddressPDF}} |
+ {{universityAddressPDF}} |
@@ -36,11 +36,11 @@
- | ADMIT CARD : {{courseNamePDF}} EXAMINATION {{batchNamePDF}} |  |
+ ADMIT CARD : {{courseNamePDF}} EXAMINATION {{batchNamePDF}} |  |
- | Enrollment No : {{studentObj.EnrollmentID}} Student Name : {{studentObj.Firstname}} {{studentObj.Lastname}}Center Name : {{centerNamePDF}} |
+ Enrollment No : {{studentObj.EnrollmentID}} Student Name : {{studentObj.Firstname}} {{studentObj.Lastname}}Center Name : {{centerNamePDF}} |
@@ -57,7 +57,7 @@
- | Sem/Year | Paper Code | Subject Name | Date | Time | Invigi.sign |
+ Sem/Year | Paper Code | Subject Name | Date | Time | Inv.sign |
@@ -75,7 +75,7 @@
- | Sem/Year | Paper Code | Subject Name | Date | Time | Invigi.sign |
+ Sem/Year | Paper Code | Subject Name | Date | Time | Inv.sign |
@@ -92,7 +92,7 @@
- | Sem/Year | Paper Code | Subject Name | Date | Time | Invigi.sign |
+ Sem/Year | Paper Code | Subject Name | Date | Time | Inv.sign |
@@ -109,7 +109,7 @@
- | Sem/Year | Paper Code | Subject Name | Date | Time | Invigi.sign |
+ Sem/Year | Paper Code | Subject Name | Date | Time | Inv.sign |
diff --git a/Apollo/assets/views/login_login.html b/Apollo/assets/views/login_login.html
index ec14fa43..3e6aca69 100755
--- a/Apollo/assets/views/login_login.html
+++ b/Apollo/assets/views/login_login.html
@@ -291,9 +291,9 @@
| |