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 : 18.116.89.2


Current Path : /var/www/html/gsh/js/Report/
Upload File :
Current File : //var/www/html/gsh/js/Report/report_admission_list.js

/* 
 *
 * FOR THE Report degree list
 * PROGRAMED BY NAVEEN
 * DATE: 13/03/09
 * TIME: 1:15 PM 
  *
 */
function LoadAdmissionListing()
{
    $("#page_main_div").load('html_modules/admission_list.html',function()
	{
		document.getElementById('display_module_name').innerHTML = ' Admission List ';
		document.getElementById('module_name_for_save').value = 'ReportAdmissionList';		
		$("#report_degree_code").val('');		
		$("#report_degree_name").val('');	
		getDefaultHeadFooterLinks("Admission Listing"); 
	}
	);
 
	
}

function LoadAdmSummeryListing()
{
	$("#page_main_div").load('html_modules/admission_summery.html',function()
	{
		document.getElementById('display_module_name').innerHTML = ' Admission Summary List ';
		document.getElementById('module_name_for_save').value = 'ReportAdmSummeryList';		
		$("#report_degree_code").val('');		
		$("#report_degree_name").val('');	
		getDefaultHeadFooterLinks("Admission Summery"); 
	}
	);
}

function LoadCollWiseAdmSummeryListing()
{
	$("#page_main_div").load('html_modules/admission_summery.html',function()
	{
		document.getElementById('display_module_name').innerHTML = ' Admission Summery List ';
		document.getElementById('module_name_for_save').value = 'ReportAdmSummeryList';		
		$("#report_degree_code").val('');		
		$("#report_degree_name").val('');	
		getDefaultHeadFooterLinks("Registration Summary"); 
	}
	);
}
function GenerateAdmSummeryList()
{
	if(trim($("#from_degree").val()) == '' )
	{
		alert('Enter from degree code');
		$("#from_degree").focus();
		return;
	}
	else if(trim($("#to_degree").val()) == '' )
	{
		alert(' Enter to degree code');
		$("#to_degree").focus();
		return;
	}
	
	window.location.href = $host_url+"generateAdmSummeryReport.demo&from_degree="+trim(($("#from_degree").val()))
	+"&to_degree="+trim($("#to_degree").val());
		
}

function generateCollWiseSummeryList()
{
	if(trim($("#from_degree").val()) == '' )
	{
		alert('Enter from degree code');
		$("#from_degree").focus();
		return;
	}
	else if(trim($("#to_degree").val()) == '' )
	{
		alert(' Enter to degree code');
		$("#to_degree").focus();
		return;
	}
	
	window.location.href = $host_url+"generateCollWiseSummeryList&from_degree="+trim(($("#from_degree").val()))
	+"&to_degree="+trim($("#to_degree").val());
}

function GenerateAdmissionReport()
{
	
	if(trim($("#report_degree_code").val()) == '' )
	{
		alert('Please Enter Valid Degree Code..!');
		$("#report_degree_code").focus();
		return;
	}
	else if(trim($("#report_degree_name").val()) == '' )
	{
		alert('Please Enter Valid Degree Code..!');
		$("#report_degree_code").focus();
		return;
	}
	if(trim($("#report_slno_Start").val()) == '' )
		$adm_slno_starts='0000';
	  else
		$adm_slno_starts = $("#report_slno_Start").val();
	  
	if(trim($("#report_slno_End").val()) == '' )
		$adm_slno_ends='ZZZZ';  
	  else
		$adm_slno_ends = $("#report_slno_End").val();
	/*
	if(document.getElementById('report_adm_summery').checked)
	{
		var win_width = window.screen.width;
		$('#batch_dialog').dialog('open');	    
		$("#batch_dialog").data("width.dialog",400);   
		$("#batch_dialog").data("position.dialog",[(win_width-400)/2,90]);	
		$('#ui-dialog-title-batch_dialog').html('Batch Setup');	
		var path="html_modules/batch_setup_popup.html";				
		$('#batch_dialog').load(path,function()
		{	
			$("#from_qp_code").val(trim($("#batch_sub_final_subcode").val()));
			$("#to_qp_code").val(trim($("#batch_sub_final_subcode").val()));
		}); 
	}
	*/
	if(document.getElementById('report_adm_list').checked)
	{
		var lateral_entry=0;
		if(document.getElementById("is_report_lateral_entry").checked==true)
		lateral_entry=1;	
		var sub_degree_code=$("#report_branch_code").val();
		window.location.href = $host_url+"generateAdmissionReport.demo&degree_code="+trim(($("#report_degree_code").val()))
		+"&exam_no="+trim($("#report_Examno").val())+"&sub_degree_code="+sub_degree_code+"&lateral_entry="+lateral_entry
		+"&slno_starts="+$adm_slno_starts+"&slno_ends="+$adm_slno_ends; 
	}
	
	if(document.getElementById('report_adm_form').checked)
	{
		var lateral_entry=0;
		if(document.getElementById("is_report_lateral_entry").checked==true)
		lateral_entry=1;	
		var sub_degree_code=$("#report_branch_code").val();
		window.location.href = $host_url+"generateStudDetailReport.demo&degree_code="+trim(($("#report_degree_code").val()))
		+"&exam_no="+trim($("#report_Examno").val())+"&sub_degree_code="+sub_degree_code+"&lateral_entry="+lateral_entry
		+"&slno_starts="+$adm_slno_starts+"&slno_ends="+$adm_slno_ends; 
	}
}

function GenerateStudDetailReport()
{
	if(trim($("#report_degree_code").val()) == '' )
	{
		alert('Please Enter Valid Degree Code..!');
		$("#report_degree_code").focus();
		return;
	}
	else if(trim($("#report_degree_name").val()) == '' )
	{
		alert('Please Enter Valid Degree Code..!');
		$("#report_degree_code").focus();
		return;
	}
	if(trim($("#report_slno_Start").val()) == '' )
		$adm_slno_starts='0000';
	else
		$adm_slno_starts = $("#report_slno_Start").val();
	  
	if(trim($("#report_slno_End").val()) == '' )
		$adm_slno_ends='ZZZZ';  
	else
		$adm_slno_ends = $("#report_slno_End").val();
		
	var lateral_entry=0;
	if(document.getElementById("is_report_lateral_entry").checked==true)
	lateral_entry=1;	
	var sub_degree_code=$("#report_branch_code").val();
	window.location.href = $host_url+"generateStudDetailReport.demo&degree_code="+trim(($("#report_degree_code").val()))
	+"&exam_no="+trim($("#report_Examno").val())+"&sub_degree_code="+sub_degree_code+"&lateral_entry="+lateral_entry
	+"&slno_starts="+$adm_slno_starts+"&slno_ends="+$adm_slno_ends; 
}