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.12.153.240
function LoadDailyReport()
{
$("#page_main_div").load('html_modules/daily_report.html',function()
{
$geditinternalcode=0;
window.enable_proper_module="DailyReport";
getDefaultHeadFooterLinks("Daily Report");
document.getElementById('display_module_name').innerHTML = 'Daily Report';
document.getElementById('module_name_for_save').value = 'saveDailyReport';
ClearReportDailyReport();
}
);
}
function AssinId($thsid)
{
window.location.g_daliy_id=$thsid;
}
$g_daliy_rpt_id='';
function getdegreeCode($id)
{
$g_daliy_rpt_id=$id;
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim(document.getElementById($id).value))+"&type="+"",
success: getdegreeCodeResponsedata
});
}
function getdegreeCodeResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
document.getElementById($g_daliy_rpt_id).value = $responce.data.FDEGREE;
}
else
{
$($g_daliy_rpt_id).val('');
$($g_daliy_rpt_id).focus();
}
}
$g_exam_text_box_id='';
function getExamNo($degree,$id)
{
$value = document.getElementById($id).value;
$g_exam_text_box_id=$id;
//alert($value);
if($value!='')
{
//$g_exam_no=$id;
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getExamNo.demo",
data:"ExamNo="+encodeURIComponent(trim($value))+"°ree="+$degree,
success: getExamNoResponsedata
});
}
}
function getExamNoResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
document.getElementById($g_exam_text_box_id).value = $responce.data.fexamno;
}
else
{
$($g_exam_text_box_id).val('');
$($g_exam_text_box_id).focus();
}
}
$g_sub_code_text_box_id ='';
function getSubjectcode($id)
{
$g_sub_code_text_box_id=$id;
$.ajax({
type: "POST",
async:false,
data: "degree_code="+encodeURIComponent(trim(document.getElementById('report_drpt_degree_code_start').value))+"&exam_no="+encodeURIComponent(trim(document.getElementById('report_drpt_Examno_start').value))+"&subcode="+encodeURIComponent(trim(document.getElementById('report_drpt_SubCode_start').value)),
url: $host_url+"getSubjectCodePopupForAnswerScript.demo",
success: getSubjectcodeResponse
});
}
function getSubjectcodeResponse($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
document.getElementById($g_sub_code_text_box_id).value = $responce.data.FCSUBCODE;
}
else
{
$($g_sub_code_text_box_id).val('');
$($g_sub_code_text_box_id).focus();
}
}
/* function getDegExmDaily($thsId)
{
if($thsId == 'report_drpt_SubCode_start')
{
window.location.g_popup_degree_code=$("#report_drpt_degree_code_start").val();
// $deg=$("#report_drpt_degree_code_start").val();
window.location.g_popup_exam_no=$("#report_drpt_Examno_start").val();
// $exam=$("#report_drpt_Examno_start").val();
// alert($deg+'-'+$exam);
}
else if($thsId == 'report_drpt_SubCode_End')
{
window.location.g_popup_degree_code=$("#report_drpt_degree_code_End").val();
// $deg=$("#report_drpt_degree_code_End").val();
window.location.g_popup_exam_no=$("#report_drpt_Examno_End").val();
//$exam=$("#report_drpt_Examno_End").val();
//alert($deg+'-'+$exam);
}
} */
function GenerateDailyReport()
{
$date_start = document.getElementById('report_drpt_exam_date_from').value;
$date_end = document.getElementById('report_drpt_exam_date_to').value;
if(trim($("#report_drpt_degree_code_start").val()) == '')
{
alert('Please Enter Degree Code!!');
$("#report_drpt_degree_code_start").focus();
return;
}
if(document.getElementById('report_drpt_session_morning').checked)
{
$session_chck = 'AM';
}
else if(document.getElementById('report_drpt_session_afternoon').checked)
{
$session_chck = 'PM';
}
else if(document.getElementById('report_drpt_session_both').checked)
{
$session_chck = 'PM';
}
$dcode_start = document.getElementById('report_drpt_degree_code_start').value;
$dcode_end = trim(document.getElementById('report_drpt_degree_code_End').value);
if($dcode_end=='')
{
$dcode_end = $dcode_start;
}
$examno_start = document.getElementById('report_drpt_Examno_start').value;
$examno_end = document.getElementById('report_drpt_Examno_End').value;
if($examno_end=='')
{
$examno_end = $examno_start;
}
$subcode_start = document.getElementById('report_drpt_SubCode_start').value;
$subcode_end = document.getElementById('report_drpt_SubCode_End').value;
if($subcode_end=='')
{
$subcode_end = $subcode_start;
}
//alert($dcode_end);
window.location.href = $host_url+"generateDaliyReport.demo°ree_code_start="+$dcode_start+"°ree_code_end="+$dcode_end+"&Date_start="+$date_start+"&Date_end="+$date_end+"&exam_start="+$examno_start+"&exam_end="+$examno_end+"&session="+$session_chck+"&sub_start="+$subcode_start+"&sub_end="+$subcode_end;
}
function ClearReportDailyReport()
{
$("#report_drpt_exam_date_from").val('');
$("#report_drpt_exam_date_to").val('');
$("#report_drpt_degree_code_start").val('');
$("#report_drpt_degree_code_End").val('');
$("#report_drpt_Examno_start").val('');
$("#report_drpt_Examno_End").val('');
$("#report_drpt_SubCode_start").val('');
$("#report_drpt_SubCode_End").val('');
$("#report_drpt_session_morning").val('');
$("#report_drpt_session_afternoon").val('');
$("#report_drpt_session_both").val('');
}
|