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.119.235.107
Current Path : /var/www/html/gcg/js/Report/ |
| Current File : /var/www/html/gcg/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 + ')');
//alert($responce.error_code);
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();
//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';
}
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;
}
}
|