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


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


function LoadSubjectListGeneral()
{
    $geditinternalcode=0;
	window.enable_proper_module="SubjectListGeneral";	
	$("#page_main_div").load('html_modules/subject_list_general.html',function()
	{	 
	document.getElementById('display_module_name').innerHTML = 'Subject';
	document.getElementById('module_name_for_save').value = 'saveSubjectListGeneral'; 			 		
	 
	 $("#report_sublist_general_degree_code").focus();
     $("#report_sublist_general_degree_code").val('');
	 $("#report_sublist_general_degree_name").val('');
	 $("#report_sublist_general_Examno").val('');
	 $("#report_sublist_general_Exam_name").val(''); 
	 getDefaultHeadFooterLinks("Subject List (General)"); 
     
	 }
	 );
	 
}
function GenerateSublistGENReport()
{
  if(trim($("#report_sublist_general_degree_code").val()) == '')
	{
		alert('Enter Degree!!');
		$("#report_sublist_general_degree_code").focus();
		return;
	}


 if(trim(($("#report_exam_no_start_from").val())) == '')
	{
		$exam_starts = '0';
	}
	else
	{
		$exam_starts = $("#report_exam_no_start_from").val();
	}
	
	
	if(trim(($("#report_exam_no_end_to").val())) == '')
	{
		$exam_ends = 'Z';
	}
	else
	{
		$exam_ends = $("#report_exam_no_end_to").val();
	}
	if(document.getElementById('report_general').checked)
	{
		$type='SUBJECT_GENERAL';
	}
	if(document.getElementById('report_admcl').checked)
	{
		$type='SUBJECT_ADCL';
	}	
	if(document.getElementById('report_theoty_only').checked)
	{
		$type='SUBJECT_THEORY';
	}	
 window.location.href = $host_url+"generateSubjecGeneralReport.demo&degree_code="+trim(($("#report_sublist_general_degree_code").val()))+"&exam_code_start="+$exam_starts+"&exam_code_end="+$exam_ends+"&reportType="+$type; 
}
function GetSubjectGeneralGetExamNO($Examno)
{
  	switch(document.getElementById('module_name_for_save').value)
		{
			case 'saveSubjectListGeneral':
			$degcode=document.getElementById("report_sublist_general_degree_code").value;
			if($degcode=="")
			{
				alert("please Enter Degree Code");
				document.getElementById("report_sublist_general_degree_code").focus();
				return;
			}
			PopupMarkEntrySubGetExamNO($degcode,$Examno);
			break;	
		}
}

function getSubjectListView(subjType)
{
	
	 if(trim($("#report_sublist_general_degree_code").val()) == '')
	{
		alert('Enter Degree!!');
		$("#report_sublist_general_degree_code").focus();
		return;
	}


	if(trim(($("#report_exam_no_start_from").val())) == '')
	{
		$exam_starts = '0';
	}
	else
	{
		$exam_starts = $("#report_exam_no_start_from").val();
	}
	
	
	if(trim(($("#report_exam_no_end_to").val())) == '')
	{
		$exam_ends = 'Z';
	}
	else
	{
		$exam_ends = $("#report_exam_no_end_to").val();
	}
	$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='images/ajax-loader.gif' border='0'></h1>" });
	$.ajax({
				type: "POST",
				//async:false,
				url: $host_url+"getSubListViewData.demo", 
				data:"degree_code="+trim(($("#report_sublist_general_degree_code").val()))+"&exam_code_start="+$exam_starts+"&exam_code_end="+$exam_ends+"&subjType="+subjType,
				success: getSubListViewDataResponse
			}); 


}

function getSubListViewDataResponse($responce)
{
		$responce = eval('(' + $responce + ')');
		$.unblockUI();
		if($responce.error_code ==0)
		{
			$("#subject_list").show();
			$("#subject_list").html($responce.data.html);
			
		}
		else
		{
			alert($responce.data);
		}

}