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 : 13.59.69.58
Current Path : /var/www/html/stph/js/Report/ |
| Current File : /var/www/html/stph/js/Report/report_Admission_Ticket.js |
function LoadAdmissionTicket()
{
$geditinternalcode=0;
window.enable_proper_module="AdmissionTicket";
$("#page_main_div").load('html_modules/admission_ticket.html?v=24091642',function()
{
getDefaultHeadFooterLinks("Admission Ticket");
document.getElementById('display_module_name').innerHTML = 'Admission Ticket';
document.getElementById('module_name_for_save').value = 'saveAdmissionTicket';
ClearAdmissionTicket();
}
);
}
function GenerateAdmissionTicket()
{
if(trim($("#report_admission_ticket_degree_code").val()) == '')
{
alert('Please Enter Degree Code!!');
$("#report_admission_ticket_degree_code").focus();
return;
}
if(trim($("#report_admission_ticket_start").val()) == '' )
$adm_reg_starts='00000000';
else
$adm_reg_starts = $("#report_admission_ticket_start").val();
if(trim($("#report_admission_ticket_End").val()) == '' )
$adm_reg_ends='ZZZZZZZZ';
else
$adm_reg_ends = $("#report_admission_ticket_End").val();
//if(trim($("#report_adt_one_per_page").checked == true))
if(document.getElementById("report_adt_one_per_page").checked==true)
{
$print_hall_ticket_val='1';
}
else
{
$print_hall_ticket_val='2';
}
$.ajax({
type: "POST",
//async:false,
url: $host_url+"checkdateforhalticket.demo",
data:"degree="+trim(($("#report_admission_ticket_degree_code").val())),
success: checkdateforhalticketResponse
});
}
function ClearAdmissionTicket()
{
$("#report_admission_ticket_degree_code").val('');
$("#report_admission_ticket_degree_name").val('');
$("#report_admission_ticket_start").val('');
$("#report_admission_ticket_End").val('');
}
/* function checkdateforhalticket()
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"checkdateforhalticket.demo",
data:"degree="+trim(($("#report_admission_ticket_degree_code").val())),
success: checkdateforhalticketResponse
});
} */
function checkdateforhalticketResponse($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '-1')
{
$("#report_admission_ticket_degree_code").val('');
$("#report_admission_ticket_degree_name").val('');
document.getElementById('report_admission_ticket_degree_code').focus();
alert($responce.data);
return false;
}
else
{
if(trim($("#report_admission_ticket_degree_code").val()) == '')
{
alert('Please Enter Degree Code!!');
$("#report_admission_ticket_degree_code").focus();
return;
}
if(trim($("#report_admission_ticket_start").val()) == '' )
$adm_reg_starts='00000000';
else
$adm_reg_starts = $("#report_admission_ticket_start").val();
if(trim($("#report_admission_ticket_End").val()) == '' )
$adm_reg_ends='ZZZZZZZZ';
else
$adm_reg_ends = $("#report_admission_ticket_End").val();
$rptype = $("#rptype").val();
//alert($rptype);
//if(trim($("#report_adt_one_per_page").checked == true))
if(document.getElementById("report_adt_one_per_page").checked==true)
{
$print_hall_ticket_val='1';
}
else
{
$print_hall_ticket_val='2';
}
var download = false;
if(document.getElementById('uht').checked == true)
download = true;
window.location.href = $host_url+"generateAdmissionTicket.demo°ree_code="+trim(($("#report_admission_ticket_degree_code").val()))+"®_starts="+$adm_reg_starts+"®_ends="+$adm_reg_ends+"&print_hall_ticket="+$print_hall_ticket_val+"&rptype="+$rptype+"&download="+download;
}
}
function htstaus()
{
var rtype = $('#reporttype').val();
var regnofrom = $('#report_admission_ticket_start').val();
var regnoto = $('#report_admission_ticket_End').val();
var degcode = $('#report_admission_ticket_degree_code').val();
if(degcode == '')
{
alert('Please Enter Degree Code.');
degcode = $('#report_admission_ticket_degree_code').focus();
return;
}
if(regnofrom == '')
{
alert('Please Enter From Register Number.');
degcode = $('#report_admission_ticket_start').focus();
return;
}
if(regnoto == '')
{
alert('Please Enter To Register Number.');
degcode = $('#report_admission_ticket_End').focus();
return;
}
$.ajax({
type: "POST",
url: $host_url+"checkgeneratehtstaus.demo",
data:"degcode="+trim(degcode)+"®nofrom="+regnofrom+"®noto="+regnoto,
success: function($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '-1')
{
alert($responce.data);
return false;
}else
{
window.location.href = $host_url+"generatehtstaus.demo°code="+degcode+"®nofrom="+regnofrom+"®noto="+regnoto+"&rtype="+rtype;
}
}
});
}
|