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.15.203.195
/* /*
* naveen for disable the Function Keys thusday
*
*/
function changeKey (textControl, evt, keyChecker)
{
var keyCode = evt.keyCode ? evt.keyCode :
evt.charCode ? evt.charCode :
evt.which ? evt.which : void 0;
var key;
if (keyCode)
{
key = String.fromCharCode(keyCode);
}
var keyCheck = keyChecker(keyCode, key);
if (keyCode && window.event && !window.opera) {
if (keyCheck.cancelKey) {
return false;
}
else if (keyCheck.replaceKey) {
window.event.keyCode = keyCheck.newKeyCode;
if (window.event.preventDefault) {
window.event.preventDefault();
}
return true;
}
else {
return true;
}
}
else if (typeof textControl.setSelectionRange != 'undefined') {
if (keyCheck.cancelKey) {
if (evt.preventDefault) {
evt.preventDefault();
}
return false;
}
else if (keyCheck.replaceKey) {
// cancel the key event and insert the newKey for the current
// selection
if (evt.preventDefault) {
evt.preventDefault();
}
var oldSelectionStart = textControl.selectionStart;
var oldSelectionEnd = textControl.selectionEnd;
var selectedText = textControl.value.substring(oldSelectionStart,
oldSelectionEnd);
var newText = typeof keyCheck.newKey != 'undefined'
? keyCheck.newKey
: String.fromCharCode(keyCheck.newKeyCode);
textControl.value =
textControl.value.substring(0, oldSelectionStart) +
newText +
textControl.value.substring(oldSelectionEnd);
textControl.setSelectionRange(oldSelectionStart + newText.length,
oldSelectionStart +
newText.length);
return false;
}
else {
return true;
}
}
else if (keyCheck.cancelKey) {
if (evt.preventDefault) {
evt.preventDefault();
}
return false;
}
else {
return true;
}
}
function lettersToUpperCase (keyCode, key)
{
var xyz = key.charCodeAt();
var newKey = key.toUpperCase();
/* if (xyz == 9)
{
return { replaceKey: true,
newKeyCode: 9,
newKey: String.fromCharCode(9) };
}
else*/
//{
if (newKey != key) {
return { replaceKey: true,
newKeyCode: newKey.charCodeAt(),
newKey: newKey };
}
else {
return { cancelKey: false };
} //}
}
//end of the change key
function limit(field, chars)
{
if (field.value.length > chars) field.value = field.value.substr(0, chars);
}
function changeCase($id)
{
document.getElementById($id).value = document.getElementById($id).value.toUpperCase();
return false;
}
/* function CheckNumeric(event)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
} */
function CheckNumeric()
{
var charT = document.getElementById('student_entry_name').value;
if(isNaN(charT))
{
//alert(charT);
//val = val.substring(0, val.length-1);
return true;
}
else
document.getElementById('student_entry_name').value = charT;
return false;
}
function disableDefault()
{
event.returnValue = false;
return false;
}
// up to here thru
function globalkeyEvent(evt)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
//alert(navigator.appName);
//f1=112 //f2=113 //f3=114 //f4=115 //f5=116 //f6=117 //f7=118 //f8=119
if(navigator.appName != 'Netscape')
{
window.history.forward(1);
document.attachEvent("onkeydown", my_onkeydown_handler);
function my_onkeydown_handler()
{
switch (event.keyCode)
{
case 115 : // 'F4'
event.returnValue = false;
event.keyCode = 0;
//alert("We have disabled F5");
break;
case 116 : // 'F5'
event.returnValue = false;
event.keyCode = 0;
//alert("We have disabled F5");
break;
case 118 : // F7
event.returnValue = false;
event.keyCode = 0;
break;
case 121 : // 'F10'
event.returnValue = false;
event.keyCode = 0;
//alert("We have disabled F5");
break;
case 119:
event.returnValue = false;
event.keyCode = 0;
//alert("We have disabled F11");
break;
case 120:
event.returnValue = false;
event.keyCode = 0;
//alert("We have disabled F12");
break;
}
}
}
switch(kC)
{
case 112: //f1
return false;
break;
case 113: // F2 key
//case 37: // left Arrow Key
previousRecords();
return false;
break;
case 114: // F3 key
//case 39: // right Arrow Key
nextRecords();
return false;
break;
case 115: //f4
addRecords();
return false;
break;
case 116: //f5
editRecords();
return false;
break;
case 117: //f6
saveRecords();
return false;
break;
case 118: //f7
deleteRecords();
return false;
break;
case 119: //f8
view_records();
return false;
break;
case 120: //f9
cancelrecords();
return false;
break;
case 123: //f12
exitrecords();
return false;
break;
//case 9:
case 13: // enter
moveRecords(evt);
return false;
break;
default: return true;
}
}
function moveRecords(evt)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if($("#dialog").is(':visible') || $("#gbox_view_student_entry").is(':visible')) return true;
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
NextRecordByClass(evt); return;
switch($g_focus_element)
{
case 'student_entry_degree_code':
if(trim(document.getElementById('student_entry_degree_code').value) == '' )
{
$("#error_msg").html(" Enter the Degree Code First ");
document.getElementById('student_entry_degree_code').focus();
return ;
}
else if(trim(document.getElementById('student_entry_degree_code').value) != '' )
{
$("#error_msg").html(" ");
chkStudentEditAdd();
document.getElementById('student_entry_name').focus();
}
break;
case 'student_entry_name':
document.getElementById('student_entry_fname').focus();
break;
case 'student_entry_fname':
document.getElementById('student_entry_mname').focus();
break;
case 'student_entry_mname':
document.getElementById('student_entry_dob_date').focus();
break;
case 'student_entry_dob_date':
document.getElementById('student_entry_sex').focus();
break;
case 'student_entry_sex':
document.getElementById('student_entry_nationality').focus();
break;
case 'student_entry_nationality':
document.getElementById('degree_category').focus();
break;
case 'degree_category':
document.getElementById('student_entry_english').focus();
break;
case 'student_entry_english':
document.getElementById('student_entry_comm_addr1').focus();
break;
case 'student_entry_comm_addr1':
document.getElementById('student_entry_comm_addr2').focus();
break;
case 'student_entry_comm_addr2':
document.getElementById('student_entry_comm_addr3').focus();
break;
case 'student_entry_comm_addr3':
document.getElementById('student_entry_comm_addr4').focus();
break;
case 'student_entry_comm_addr4':
document.getElementById('student_entry_per_add1').focus();
break;
case 'student_entry_per_add1':
document.getElementById('student_entry_per_add2').focus();
break;
case 'student_entry_per_add2':
document.getElementById('student_entry_per_add3').focus();
break;
case 'student_entry_per_add3':
document.getElementById('student_entry_per_add4').focus();
break;
case 'student_entry_per_add4':
for($m=$start_indx;$m<$g_subject_appearing.total_count-1;$m++)
{
if(document.getElementById("se_sub_code_"+$m).name=='focus')
{
$("#se_sub_code_"+$m).focus();
}
}
break;
default:
$start_indx=1;
for($m=$start_indx;$m<$g_subject_appearing.total_count;$m++)
{
if($g_focus_element=="se_sub_code_"+$m)
{
$("#se_sub_code_"+eval($m+1)).focus();
}
if($m == $g_subject_appearing.total_count-1)
{
document.getElementById('is_add_edit').value = 'Add';
// saveStudentEntry();
}
}
//alert($m);
break;
}
break;
case 'saveCollegeDegreeStatus':
switch($g_focus_element)
{
case 'cds_College_code':
document.getElementById('cds_Degree_code').focus();
break;
case 'cds_Degree_code':
changeButtonImage('finish_row');
}
break;
case 'SaveMarkEntryStudentwise':
switch($g_focus_element)
{
case 'StudentEntry_SubCategory':
$('#markentry_stu_degree_code').val('');
$('#markentry_stu_degree_code').focus();
break;
}
break;
case 'SaveMarkEntrySubjectwise':
NextRecordByClass(evt); return;
switch($g_focus_element)
{
case 'SubCategory':
$('#markentry_sub_degree_code').val('');
$('#markentry_sub_degree_code').focus();
break;
case 'markentry_sub_degree_code':
$('#markentry_sub_Examno').focus();
break;
case 'markentry_sub_Examno':
$('#markentry_sub_final_subcode').focus();
break;
case 'markentry_sub_final_subcode':
if($("#mark_entry_shortname").val()!='')
$('#markentry_sub_range').focus();
else
$('#mark_entry_shortname').focus();
break;
}
switch($('#is_add_edit').val())
{
case 'Edit':
switch($g_focus_element)
{
case'':
$("#Marks_1").focus();
case'Marks_1':
$("#Marks_2").focus();
}
break;
}
break;
case 'SaveMarkEntrySubjectwise2':
NextRecordByClass(evt); return;
switch($g_focus_element)
{
case 'SubCategory':
$('#markentry_sub_degree_code').val('');
$('#markentry_sub_degree_code').focus();
break;
case 'markentry_sub_degree_code':
$('#markentry_sub_Examno').focus();
break;
case 'markentry_sub_Examno':
$('#markentry_sub_final_subcode').focus();
break;
case 'markentry_sub_final_subcode':
if($("#mark_entry_shortname").val()!='')
$('#markentry_sub_range').focus();
else
$('#mark_entry_shortname').focus();
break;
}
switch($('#is_add_edit').val())
{
case 'Edit':
switch($g_focus_element)
{
case'':
$("#Marks_1").focus();
case'Marks_1':
$("#Marks_2").focus();
}
break;
}
break;
}
}
function GetAllKeyPressEvent(evt)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
//alert(kC+"hi");
if(kC==27)
{
$.unblockUI();
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntryStudetwise':
$.unblockUI();
break;
case 'SaveMarkEntryStudentwise':
$.unblockUI();
break;
}
}
if(kC==13)
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
switch($Popupcheck)
{
case 1:
//alert(kC);
if($GetfocusEle=="markentry_sub_degree_code")
{
//alert(kC);
//alert($GetfocusEle);
selectDegreeCode();
}
break;
case '':
switch($GetfocusEle)
{
case 'markentry_sub_degree_code':
document.getElementById('markentry_sub_degree_name').focus();
break;
}
break;
}
break;
case 'SaveMarkEntrySubjectwise2':
switch($Popupcheck)
{
case 1:
//alert(kC);
if($GetfocusEle=="markentry_sub_degree_code")
{
//alert(kC);
//alert($GetfocusEle);
selectDegreeCode();
}
break;
case '':
switch($GetfocusEle)
{
case 'markentry_sub_degree_code':
document.getElementById('markentry_sub_degree_name').focus();
break;
}
break;
}
break;
case 'SaveMarkEntryStudentwise':
break;
}
}
}
function keyboardCollegePopup(evt,id,Colcode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
openCollegeDetailsPopup();
$("#gs_FCOLLCODE").focus();
return false;
}
}
function keyboardDegreePopup(evt,id,DegCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
openDegreeDetailsPopup();
$("#gs_FDEGREE").focus();
return false;
}
}
function KeyboardGetRevalutionRegno(evt,id,DegCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
//alert(DegCode);
openRevalutionRegnoPopup();
$("#gs_Fregno").focus();
return false;
}
}
function keyboardSubDegreePopup(evt,id,DegCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
openSubDegreeDetailsPopup();
$("#gs_FDEGREE").focus();
return false;
}
}
window.location.$g_popup_sub_code_field_id='';
window.location.$keyboardSubjectAppearingPopupfieldId='';
function keyboardSubjectAppearingPopup(evt,id)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
window.location.$keyboardSubjectAppearingPopupfieldId=id;
openSubjectAppearingPopup();
$('#dialog').dialog("open");
window.location.$g_popup_sub_code_field_id=id;
return false;
/* var url = "../ui/SubjectAppearingPopup.html?height=200&width=400";
tb_show("Subject Appearing Details", url); */
}
}
//onkeydown="return keyboardSubjectAppearingPopup(event,this.id,$('#cds_Degree_code').val())
// Get Exam Number as POpup
function keyboardExamNoPopup(evt,id,Examno)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode==112)// f1 KEY
{
switch(document.getElementById('module_name_for_save').value)
{
case 'saveDatewar':
var degcode =document.getElementById("report_marklist_subject_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_marklist_subject_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SaveMarkEntrySubjectwise':
var degcode =document.getElementById("markentry_sub_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("markentry_sub_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SaveMarkEntrySubjectwise2':
var degcode =document.getElementById("markentry_sub_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("markentry_sub_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SaveBatchSetup':
var degcode =document.getElementById("batch_sub_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("batch_sub_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SaveMarkEntryStudentwise':
var degcode =document.getElementById("markentry_stu_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("markentry_stu_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SaveAbsentEntrySubjectwise':
var degcode =document.getElementById("abs_entry_sub_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("abs_entry_sub_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'freezeModuleAtAdminCollegeSubject':
var degcode =document.getElementById("fmacas_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("fmacas_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SavePracticalEntryFreezing':
var degcode =document.getElementById("fmacas_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("fmacas_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'saveSubjectListAdmCl':
var degcode =document.getElementById("report_sublist_adcl_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_sublist_adcl_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'saveSubjectListGeneral':
var degcode =document.getElementById("report_sublist_general_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_sublist_general_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'saveMarklistSubjectWise':
var degcode =document.getElementById("report_marklist_subject_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_marklist_subject_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'saveMarklistStudentWise':
var degcode =document.getElementById("report_marklist_student_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_marklist_student_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'saveDispatchAnswersScript':
var degcode =document.getElementById("dispatch_degree_1").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("dispatch_degree_1").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'saveDailyReport':
var degcode =document.getElementById("report_drpt_degree_code_start").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_drpt_degree_code_start").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'ReportAdmissionList':
var degcode =document.getElementById("report_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'IdentifySubjFreshEx':
var degcode =document.getElementById("candidate_list_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("candidate_list_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'SaveAttendanceEntry':
var degcode =document.getElementById("markentry_sub_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("markentry_sub_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
case 'saveAttendanceSummary':
var degcode =document.getElementById("report_marklist_subject_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_marklist_subject_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
case 'Update Section':
var degcode =document.getElementById("stud_section_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("stud_section_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
case 'Marks List (Elements)':
var degcode =document.getElementById("report_marklist_subject_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_marklist_subject_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'batch preparation Dairy':
var degcode =document.getElementById("report_batch_prepation_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_batch_prepation_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
case 'I.A Marks Pending':
var degcode =document.getElementById("report_marklist_student_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_marklist_student_degree_code").focus();
return;
}
case 'Practical Daily Report':
var degcode =document.getElementById("report_topsheet_degree_code").value;
if(degcode=="")
{
alert("Please Select Degree code");
document.getElementById("report_topsheet_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO(degcode,Examno);
break;
}
}
}
function keyboardSubjectNamesPopupForAnswerScript(evt,$thsid)
{
$Disdegcode = $("#dispatch_degree_"+$thsid).val();
$Disexamno = $("#dispatch_exam_"+$thsid).val();
//alert($Disdegcode+'-'+$Disexamno);
if($Disdegcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("dispatch_degree_"+window.location.g_popup_degree_code).focus();
return false;
}
if($Disexamno == "")
{
alert("Please Enter ExamNo");
document.getElementById("dispatch_exam_").focus();
return false;
}
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode==112)// f1 KEY
{
SubjectCodePopup($Disdegcode,$Disexamno);
window.location.g_popup_degree_code = $Disdegcode;
window.location.g_popup_exam_no = $Disexamno;
window.location.g_dispatch_row_count_id = $g_dispatch_ans_script_count; // this row id
}
}
// press F1 call Subject Details Popup
function keyboardSubjectNamesPopup(evt,id)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode==112)// f1 KEY
{
//alert(document.getElementById('module_name_for_save').value);
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
$degcode = $("#markentry_sub_degree_code").val();
$examno = $("#markentry_sub_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("markentry_sub_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("markentry_sub_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'SaveMarkEntrySubjectwise2':
$degcode = $("#markentry_sub_degree_code").val();
$examno = $("#markentry_sub_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("markentry_sub_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("markentry_sub_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'SaveBatchSetup':
$degcode = $("#batch_sub_degree_code").val();
$examno = $("#batch_sub_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("batch_sub_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("batch_sub_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'SavePracticalEntryFreezing':
$degcode = $("#fmacas_degree_code").val();
$examno = $("#fmacas_sub_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("fmacas_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("fmacas_sub_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'SaveMarkEntryStudentwise':
$degcode = $("#markentry_stu_degree_code").val();
$examno = $("#markentry_stu_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("markentry_stu_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("markentry_stu_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'saveDatewar':
$degcode = $("#report_marklist_subject_degree_code").val();
$examno = $("#report_marklist_subject_wise_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("report_marklist_subject_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("report_marklist_subject_wise_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'saveMarklistStudentWise':
$degcode = $("#report_marklist_student_degree_code").val();
$examno = $("#report_marklist_student_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("report_marklist_student_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("report_marklist_student_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'SaveAbsentEntrySubjectwise':
$Absdegcode = $("#abs_entry_sub_degree_code").val();
$Absexamno = $("#abs_sub_Examno").val();
if($Absdegcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("abs_entry_sub_degree_code").focus();
return false;
}
if($Absexamno=="")
{
alert("Please Enter ExamNo");
document.getElementById("abs_sub_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'SaveAttendanceEntry':
$Absdegcode = $("#markentry_sub_degree_code").val();
//alert($Absdegcode);
$Absexamno = $("#markentry_sub_Examno").val();
if($Absdegcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("markentry_sub_degree_code").focus();
return false;
}
if($Absexamno=="")
{
alert("Please Enter ExamNo");
document.getElementById("markentry_sub_Examno").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'batch preparation Dairy':
$Absdegcode = $("#report_batch_prepation_degree_code").val();
//alert($Absdegcode);
$Absexamno = $("#report_batch_prepation_examno_code").val();
if($Absdegcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("report_batch_prepation_degree_code").focus();
return false;
}
if($Absexamno=="")
{
alert("Please Enter ExamNo");
document.getElementById("report_batch_prepation_examno_code").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
case 'batch preparation Dairy':
$Absdegcode = $("#report_batch_prepation_degree_code").val();
//alert($Absdegcode);
$Absexamno = $("#report_batch_prepation_examno_code").val();
if($Absdegcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("report_batch_prepation_degree_code").focus();
return false;
}
if($Absexamno=="")
{
alert("Please Enter ExamNo");
document.getElementById("report_batch_prepation_examno_code").focus();
return false;
}
PopupMarkEntrySubGetSubjectDetails();
break;
}
}
}
function keyboardQPPopup(evt,id,DegCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
QpPopup();
$("#gs_QPCODE").focus();
return false;
}
} function keyboardSubjectQPPopup(evt,id,DegCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==112) //F1 Key code
{
OpenQpSubjectPopup();
$("#gs_QPCODE").focus();
return false;
}
}
function KayboardGetRegno(evt,id)
{
//alert(id);
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode==112)// f1 KEY
{
PopupMarkEntrySubGetRegno();
}
}
function NextRecordByClass(evt)
{
var appnav=navigator.appName;
var obj = (appnav=="Netscape") ? evt.target : evt.srcElement;
if(!($('#dialog').dialog('isOpen')) && typeof(obj)!='undefined')
{
var appnav = navigator.appName;
var elementType = (appnav=="Netscape") ? obj.nodeName : obj.type;
//search_div_873
if(elementType !="TEXTAREA")
{
var Elements = $(".ElementCount");
currentElements = Elements.index(obj);
if(Elements[currentElements+1]!=null)
{
nextElement = Elements[currentElements+1];
nextElement.focus();
}
}
}
}
function keyboardSectionPopup(evt,id,SectionCode)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode==112)// f1 KEY
{
PopupStudentSection();
}
}
function pulsar(e,obj)
{
return true;
}
|