0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.137.186.26


Current Path : /var/www/html/stph/js/Report/
Upload File :
Current File : /var/www/html/stph/js/Report/report_attendance_summary.js


function LoadEnableAttendanceReportScreen()
{

    $geditinternalcode=0;	
	window.enable_proper_module="enableMarksListSubjectWise";	   
	$("#page_main_div").load('html_modules/attendance_summary_report.html',function()
	{
		document.getElementById('display_module_name').innerHTML = 'Attendance Summary Report';		 
		document.getElementById('module_name_for_save').value = 'saveAttendanceSummary'; 
		getDefaultHeadFooterLinks('Attendance Summary Report'); 		 
		$("#report_marklist_subject_degree_code").focus();
		$("#report_marklist_subject_degree_code").val('');
		$("#report_marklist_subject_degree_name").val('');
		$("#report_marklist_subject_Examno").val('');
		$("#report_marklist_subject_Exam_name").val('');		 
	}
     );	
	$('#module_details_div').hide();	 
}

function GenerateAttendanceSummaryReport()
{
	if(trim($("#report_marklist_subject_degree_code").val()) == '')
	{
		alert('Please Enter Degree Code!!');
		$("#report_marklist_subject_degree_code").focus();
		return;
	}
	
	if(trim($("#report_type").val()) == '')
	{
		alert('Please Select Report Type');
		$("#report_type").focus();
		return;
	}
	var percentage = $("#percent").val(); 
	if($("#report_type").val() == 'Studentwise')
	{
		window.location.href = $host_url+"GenerateAttendanceStudentwiseReport&degree_code="+trim(($("#report_marklist_subject_degree_code").val()))+"&exam_code="+trim(($("#report_marklist_subject_Examno").val()))+"&subwise_start="+trim(($("#report_marklist_subject_start_from").val()))+"&subwise_end="+trim(($("#report_marklist_subject_end_to").val()))+"&from_month_name="+trim(($("#from_month_name").val()))+"&to_month_name="+trim(($("#to_month_name").val())); 	
	}
	else if($("#report_type").val() == 'Attendance Shortage' || $("#report_type").val() == 'Not enterd list')
	{
		window.location.href = $host_url+"GenerateAttendanceShortageReport&degree_code="+trim(($("#report_marklist_subject_degree_code").val()))+"&exam_code="+trim(($("#report_marklist_subject_Examno").val()))+"&subwise_start="+trim(($("#report_marklist_subject_start_from").val()))+"&subwise_end="+trim(($("#report_marklist_subject_end_to").val()))+"&from_month_name="+trim(($("#from_month_name").val()))+"&to_month_name="+trim(($("#to_month_name").val()))+"&reporttype="+$("#report_type").val()+"&percentage="+percentage;
	} 
	else	
	{
		window.location.href = $host_url+"GenerateAttendanceSummaryReport&degree_code="+trim(($("#report_marklist_subject_degree_code").val()))+"&exam_code="+trim(($("#report_marklist_subject_Examno").val()))+"&subwise_start="+trim(($("#report_marklist_subject_start_from").val()))+"&subwise_end="+trim(($("#report_marklist_subject_end_to").val()))+"&from_month_name="+trim(($("#from_month_name").val()))+"&to_month_name="+trim(($("#to_month_name").val())); 
	}	
}