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.118.214
Current Path : /var/www/html/stph/js/ |
| Current File : /var/www/html/stph/js/appstatus.js |
function callenableviewapplication()
{
$("#page_main_div").load('html_modules/appstaus.html',function()
{
document.getElementById('display_module_name').innerHTML = 'View Application';
document.getElementById('module_name_for_save').value = 'ViewApplication';
getDefaultHeadFooterLinks('View Application');
$("#input_form").hide();
document.getElementById('is_add_edit').value = 'view';
var TFields = ['FAPPNO','FREGNO','FNAME','FSERVNAME'];
var TColwidth = ['40','80','80','200','560',];
var THeader = ['Sl.No.','Application no.','Register no.','Name','Service'];
var TWhere = "AND servtype.FSERVCODE = servtran.FSERVCODE AND ifnull(FDELETED,'') <> 'T'";
srchHeaderGrid('servtype, servtran',TFields,TWhere,960,TColwidth,THeader,5);
$('#header_save').css('color', '#717171');
$('#header_save').css('cursor','default');
$('#header_cancel').css('color', '#717171');
$('#header_cancel').css('cursor','default');
$('#header_delete').css('color', '#717171');
$('#header_delete').css('cursor','default');
$("#grid_view").show();
});
}
var Gappno = '';
function editViewApplicationMaster(appno)
{
Gappno = appno;
var datastring = "&appno="+appno;
$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='images/ajax-loader.gif' border='0'></h1>" });
$.ajax({
type: "POST",
url: $host_url+"ViewApplicationdetails",
data:datastring,
success:getdatedetailsResponse
});
}
function getdatedetailsResponse($responce)
{
$.unblockUI();
$responce = eval('('+$responce+')');
if($responce.error_code == 0)
{
$("#grid_view").html($responce.data['html']);
}
else
{
alert('No records found for given details.');
}
}
function saveapplicationstatus()
{
if( document.getElementById('T2').value == 'none')
{
alert('please select application Status');
document.getElementById('T2').focus();
$("#T2").focus();
return;
}
if(document.getElementById('T3').value == '')
{
alert('please Enter Remarks');
document.getElementById('T3').focus();
$("#T3").focus();
return;
}
var appstatus = document.getElementById('T2').value;
var remarks = document.getElementById('T3').value;
var datastring = "&appstatus="+appstatus+"&remarks="+remarks+"&appno="+Gappno;
$.ajax({
type: "POST",
url: $host_url+"saveapplicationstatus",
data:datastring,
success:saveapplicationstatusresponse
});
}
function saveapplicationstatusresponse($responce)
{
$responce = eval('('+$responce+')');
alert($responce.data);
callenableviewapplication();
}
function to_upperx(id)
{
var x = document.getElementById(id).value;
document.getElementById(id).value = x.toUpperCase();
}
|