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


Current Path : /var/www/html/mum/js/
Upload File :
Current File : /var/www/html/mum/js/bundlestatus.js

function Callbundlestatus()
{
    $("#page_main_div").load('html_modules/bundlestatus.html',function()
	{
		document.getElementById('display_module_name').innerHTML = 'Bundle Status';
		document.getElementById('module_name_for_save').value = 'Bundle Status';  	
		getDefaultHeadFooterLinks("Bundle Status)"); 
	}
	);
	
}

function getbundlestatus()
{
	var qp_code_from = $("#qp_code_from").val();
	var qp_code_to = $("#qp_code_to").val();
	var cntr_from = $("#cntr_from").val();
	var cntr_to = $("#cntr_to").val();
	var status = $("#status").val();

	if(status == '')
	{
		alert('Select status');
		document.getElementById('status').focus();
		return;
	}
	if(qp_code_to == '')
	{
		alert('Enter QP code To.');
		return;
	}
	if(qp_code_from == '')
	{
		alert('Enter QP code From.');
		return;
	}
	if(cntr_from == '')
	{
		alert('Enter Center Code from.');
		return;
	}
	if(cntr_to == '')
	{
		alert('Enter Center Code To.');
		return;
	}

	$.ajax({
		type: "POST",
		data:"qp_code_from="+qp_code_from+"&qp_code_to="+qp_code_to+"&status="+status+"&cntr_from="+cntr_from+"&cntr_to="+cntr_to,
		url: $host_url+"getbundlestatus",
		success: getbundlestatusresponce
	});
}

function getbundlestatusresponce(responce)
{
	responce = eval('(' + responce + ')');
	$("#bundle_table_data").html(responce.data['html']);
}