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.188.135.3
function CallEnableAttendanceScreen()
{
$g_mes_valid_reg_no=0;
$geditinternalcode=0;
$g_mes_save_after_error_flag=0;
$g_mes_edit_valid_marks_flag=0;
$limit_start = 0;
$limit = 0;
window.enable_proper_module="AttendanceEntry";
$("#page_main_div").load('html_modules/attendance_display.html',function()
{
document.getElementById('display_module_name').innerHTML = 'Attendnace Entry';
document.getElementById('module_name_for_save').value = 'SaveMarkEntrySubjectwise';
getDefaultHeadFooterLinks('Attendance Entry');
$("#main_mark_entry_div").hide();
$("#markentry_sub_degree_code").focus();
}
);
$('#module_details_div').hide();
}
function clearsubjectentrytextbox()
{
$('#markentry_sub_degree_code').val('');
$('#markentry_sub_degree_name').val('');
$('#markentry_sub_Examno').val('');
$('#markentry_sub_Exam_name').val('');
$('#markentry_sub_final_subcode').val('');
document.getElementById('markentry_sub_fsubname').value='';
document.getElementById('markentry_sub_fssubname').value='';
document.getElementById('mark_entry_shortname').value='';
document.getElementById('markentry_sub_maxmark').value='';
//document.getElementById('markentry_sub_range').value='';
document.getElementById('mes_default_reg_div').innerHTML='';
document.getElementById('markentery_subwise_regno_1').value='';
document.getElementById('markentery_subwise_stuname_1').innerHTML='';
document.getElementById('markentery_subwise_mark_1').value=-1;
document.getElementById('markentery_subwise_preabs_1').value='';
RemovingTrFromTable('entry_table_header');
}
// Svae All Date From Mark Entry Subjectwise Module
function SaveAttendanceDetails()
{
$list_data ="Fdegree="+$("#markentry_sub_degree_code").val();
$list_data+="&FExamno="+$("#markentry_sub_Examno").val();
$list_data+="&Fsubcode="+$("#markentry_sub_final_subcode").val();
$list_data+="&month_name="+$("#month_name").val();
$length_of_marks = ($("input[id*='hidden_']").length);
var att_data = new Object();
html_objects =$("input[id*='conducted_']")
jQuery.each(html_objects, function(k, v) {
var internal_code=v['id'].split("_")[1];
att_data[internal_code]=new Object();
att_data[internal_code]['c']=$("#conducted_"+internal_code).val();
att_data[internal_code]['a']=$("#attended_"+internal_code).val();
});
var myJSONText = encodeURIComponent(JSON.stringify(att_data));
$list_data+="&output_details="+myJSONText;
$.ajax({
type: "POST",
async:false,
url: $host_url+"SaveAttendanceDetails",
data:$list_data,
success: SaveAttendanceDetailsResponce
});
} // END SAVE
function SaveAttendanceDetailsResponce($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code==0)
{
alert($responce.data);
$('#markentry_sub_degree_code').focus;
}
else
{
alert($responce.data);
}
$('#mes_default_reg_div').hide();
}
function GetAttendanceRegisterNumbers()
{
//alert('calling');
$("#mes_default_reg_div").hide();
if($("#markentry_sub_degree_code").val()=="")
{
alert("Please Enter Degree Name");
$("#markentry_sub_degree_code").focus();
return;
}
if($("#markentry_sub_final_subcode").val()=="")
{
alert("Please Enter Subject Code");
$("#markentry_sub_final_subcode").focus();
return;
}
if($("#markentry_sub_Examno").val()=="")
{
alert("Please Enter Examno");
$("#markentry_sub_Examno").focus();
return;
}
$list_data ="Degcode="+$("#markentry_sub_degree_code").val();
$list_data+="&Subcode="+$("#markentry_sub_final_subcode").val();
$list_data+="&Examno="+$("#markentry_sub_Examno").val();
$list_data+="&month_name="+$("#month_name").val();
$type=$("#is_add_edit").val();
$.ajax({
type: "POST",
//async:false,
url: $host_url+"GetAttendanceRegisterNumbers",
data:$list_data,
success: GetAttendanceRegisterNumbersNosResponse
});
}
function GetAttendanceRegisterNumbersNosResponse($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code==0)
{
$("#main_mark_entry_div").hide();
$("#mes_default_reg_div").show();
$("#mes_default_reg_div").load($responce.data.filenme,function(){
$("input[id*='cond']")[0].focus();
});
}
}
function AssignAttendanceNextTdConductedVal(f_int_code)
{
var current_val=$("#conducted_"+f_int_code).val();
var next_input_id=$("#conducted_"+f_int_code).parent().parent().next("tr").find("input[id*='conducted_']")[0]['id'];
var next_input_id_val=$("#"+next_input_id).val();
if(empty(next_input_id_val) || next_input_id_val=="0")
{
$("#"+next_input_id).val(current_val);
}
}
|