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.135.205.102


Current Path : /var/www/html/gug/js/
Upload File :
Current File : /var/www/html/gug/js/ack_rv_rt_report.js

function CallEnableRvRtReport()
{
    $("#page_main_div").load('html_modules/ack_rv_rt_report.html?v=17082016',function()
	{
	document.getElementById('display_module_name').innerHTML = 'Acknowledge RV/RT Report';
	document.getElementById('module_name_for_save').value = 'Acknowledge RV/RT Report';
	getDefaultHeadFooterLinks('Acknowledge RV/RT Report'); 
	 $(".ui-tabs .ui-tabs-panel").css("padding","0px");
	$(".ui-tabs .ui-tabs-panel").css("padding-top","21px");
	}); 
	getpopup();
			
}
 function getpopup()

{
	$.ajax({
		type: "POST",
		url: $host_url+"getDegreeGroup",
		success: degreeGroupSuccess
	});
}
 
function degreeGroupSuccess($responce)
{
	$responce = eval('(' + $responce + ')');
	
	document.getElementById("deg_type").options.length = 0;
	var deg =$responce.data['deggrp'];
	
	$op = new Option('--SELECT--', '');
	document.getElementById("deg_type").options.add($op);
	for($i=0;$i < deg.length;$i++)                                  
	{            
		$op = new Option(deg[$i]['VALUE'], deg[$i]['internal_code']);
		//console.log(deg[$i]['value']);
		$op.id=deg[$i]['internal_code'];
		document.getElementById("deg_type").options.add($op);
		
	}


}


function generateRvRtReport()

{
	$deg_type=document.getElementById('deg_type');
	$deg_type1=deg_type.options[deg_type.selectedIndex].value;
	$degree_from=document.getElementById('degree_from').value;
	$degree_to=document.getElementById('degree_to').value;
	$exam_from=document.getElementById('exam_from').value;
	$exam_to=document.getElementById('exam_to').value;
	$app_from=document.getElementById('app_from').value;
	$app_to=document.getElementById('app_to').value;
	$payment=document.getElementById('payment');
	$payment_type=payment.options[payment.selectedIndex].value;
	$payment_status=document.getElementById('payment_status');
	$payment_status_type=payment_status.options[payment_status.selectedIndex].value;

	if($deg_type1==''){
	
		alert("Please Select Degree Group");
		$("#deg_type").focus();
		return;
	}
	else if(document.getElementById('degree_from').value=='')
	{
		alert("Please Enter Degree From");
		$("#degree_from").focus();
		return;
	}
	else if(document.getElementById('degree_to').value=='')
	{
		alert("Please Enter Degree To");
		$("#degree_to").focus();
		return ;
	}

 	else if(document.getElementById('exam_from').value=='')
	{

		alert("Please Enter Exam No From");
		$("#exam_from").focus();
		return;
	}
	else if(document.getElementById('exam_to').value=='')
	{

		alert("Please Enter Exam No To");
		$("#exam_to").focus();
		return;
	}

	 else if(document.getElementById('app_from').value=='')
	{

		alert("Please Enter Application From Range");
		$("#app_from").focus();
		return;
	}
	 else if(document.getElementById('app_to').value=='')
	{

		alert("Please Enter Application To Range");
		$("#app_to").focus();
		return ;
	}

	
	

	window.location.href = $host_url+"generateRvRtReport.demo&deg_type="
	+$deg_type1+
	"&degree_from="+$degree_from+
	"&degree_to="+$degree_to+
	"&exam_from="+$exam_from+
	"&exam_to="+$exam_to+
	"&app_from="+$app_from+
	"&app_to="+$app_to+"&payment_type="+$payment_type+"&payment_status_type="+$payment_status_type; 
}

function ClearRvRtReport()
{
	$("#deg_type").val('');
	$("#degree_from").val('');
	$("#degree_to").val('');
	$("#exam_from").val('');
	$("#exam_to").val('');
	$("#exam_to").val('');
	$("#app_from").val('');
	$("#app_to").val('');

}