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.17.181.112
var $checkIdentfySubj_dup='';
var $setSubjectValidate=0;
function degreeDetailsPopup($searchField)
{
openDegreeDetailsPopup();
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 222);
$(".ui-dialog").css({width:460});
}
function SubDegreeDetailsPopup($searchField)
{
openSubDegreeDetailsPopup();
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 222);
$(".ui-dialog").css({width:460});
}
function QpPopup($searchField)
{
OpenQpPopup();
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 222);
$(".ui-dialog").css({width:460});
}
function CollegeDetailsPopup($searchField)
{
openCollegeDetailsPopup();
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 222);
$(".ui-dialog").css({width:460});
}
window.location.g_popup_degree_code='';
window.location.g_popup_exam_no='';
function PopupMarkEntrySubGetExamNO($degcode,$Examno)
{
POpupExamnohtml($degcode,$Examno)
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$Examno;
$('#dialog').dialog("open");
$('#gs_fexamno').focus();
}
function PopupMarkEntrySubGetSubjectDetails()
{
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;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
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;
}
var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url);
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
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;
}
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
break;
case 'Batch Close':
$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;
}
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
break;
case 'Practical marks misc':
$degcode = $("#degree_code").val();
$examno = $("#Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("Examno").focus();
return false;
}
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
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;
}
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
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;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
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;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
$('#dialog').dialog("open");
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
break;
case 'SaveAbsentEntrySubjectwise':
$degcode = $("#abs_entry_sub_degree_code").val();
$examno = $("#abs_sub_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("abs_entry_sub_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("abs_sub_Examno").focus();
return false;
}
openSubjectDetailsPoup();
$('#dialog').dialog("open");
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
break;
case 'saveDispatchAnswersScript':
$degcode = $("#dispatch_degree_1").val();
$examno = $("#dispatch_exam_1").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("dispatch_degree_1").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("dispatch_exam_1").focus();
return false;
}
openSubjectDetailsPoup();
$('#dialog').dialog("open");
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
window.location.g_popup_degree_code = $degcode;
window.location.g_popup_exam_no = $examno;
break;
case 'saveDailyReport':
$degcode = $("#report_drpt_degree_code_start").val();
$examno = $("#report_drpt_Examno_start").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("report_drpt_degree_code_start").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("report_drpt_Examno_start").focus();
return false;
}
openSubjectDetailsPoup();
$('#dialog').dialog("open");
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
window.location.g_popup_degree_code = $degcode;
window.location.g_popup_exam_no = $examno;
break;
case 'SaveAttendanceEntry':
$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;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
$('#gs_ffsubcode').focus();
break;
case 'Update Section':
$degcode = $("#stud_section_degree_code").val();
$examno = $("#stud_section_Examno").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("stud_section_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("stud_section_Examno").focus();
return false;
}
openSubjectDetailsPoup();
$('#dialog').dialog("open");
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
window.location.g_popup_degree_code = $degcode;
window.location.g_popup_exam_no = $examno;
break;
case 'saveAttendanceSummary':
$degcode = $("#report_marklist_subject_degree_code").val();
$examno = $("#report_marklist_subject_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_Examno").focus();
return false;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
window.location.id=id;
break;
case 'batch preparation Dairy':
$degcode = $("#report_batch_prepation_degree_code").val();
$examno = $("#report_batch_prepation_examno_code").val();
if($degcode=="")
{
alert("Please Enter Degree Code");
document.getElementById("report_batch_prepation_degree_code").focus();
return false;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("report_batch_prepation_examno_code").focus();
return false;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
window.location.g_popup_degree_code = $degcode;
window.location.g_popup_exam_no = $examno;
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;
}
/* var url = "../ui/SubjectDetailsPopup.html?height=200&width=400°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url); */
openSubjectDetailsPoup();
window.location.g_popup_degree_code = $degcode;
window.location.g_popup_exam_no = $examno;
break;
}
}
//PopupMarkEntrySubGetSubject ShortName
//Programmer Beemaraj.V
function PopupMarkEntrySubGetsubShortName()
{
$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;
}
if($examno=="")
{
alert("Please Enter ExamNo");
document.getElementById("markentry_sub_Examno").focus();
return;
}
var url = "../ui/SubjectShortNamePopup.html?height=200&width=310°code="+$degcode+"&Examno="+$examno;
tb_show("Subject Details", url);
window.location.g_popup_degree_code=$degcode;
window.location.g_popup_exam_no=$examno;
}
//popup for Regisert Number
function PopupMarkEntrySubGetRegno()
{
openMarkEntrySubGetRegnoPopup();
$('#dialog').dialog("open");
}
// for dispatch answer script degree code
$remember_this_id='';
function getDASDegreeCode($id)
{
$remember_this_id=$id;
if(document.getElementById($id).value != '')
{
$.ajax({
type: "POST",
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim(document.getElementById($id).value))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
}
//Jijo Added SubDegree.
function getSubdegreeNames()
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
var degree_code_val=$("#student_entry_degree_code").val();
var sub_degree_code_val=$("#student_entry_sub_degree_code").val();
if(degree_code_val== sub_degree_code_val && sub_degree_code_val!='' )
{
alert('Sub Degree Cannot be same as Degree');
$("#student_entry_sub_degree_code").val('');
$("#student_entry_sub_degree").val('');
document.getElementById('student_entry_sub_degree_code').focus();
return;
}
if((jQuery.trim($("#student_entry_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#student_entry_sub_degree_code").val()))+"&type="+"FCADSTATUS",
success: getSubdegreeNamesResponsedata
});
}
break;
case 'ReportAdmissionList':
var admin_list_degree_code_val=$("#report_degree_code").val();
var admin_list_branch_code_val=$("#report_branch_code").val();
if(admin_list_degree_code_val== admin_list_branch_code_val && admin_list_branch_code_val!='' )
{
alert('Branch Cannot be same as Degree');
$("#report_branch_code").val('');
$("#report_branch_name").val('');
document.getElementById('report_branch_code').focus();
return;
}
if((jQuery.trim($("#report_branch_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_branch_code").val()))+"&type="+"FCADSTATUS",
success: getSubdegreeNamesResponsedata
});
}
break;
}
}
function getSubdegreeNamesResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
switch(document.getElementById('module_name_for_save').value)
{
//alert(document.getElementById('module_name_for_save').value);
case 'StudentEntry':
$("#error_msg").html(" ");
$("#student_entry_sub_degree_code").val($responce.data.FDEGREE);
$("#student_entry_sub_degree").val($responce.data.FDESCPN);
if(document.getElementById('is_add_edit').value == 'Edit' || document.getElementById('is_add_edit').value == 'Delete')
{
$("#student_entry_slno").focus();
}
else
{
$("#student_entry_name").focus();
}
getsubjectAppearingTotal();
break;
case 'ReportAdmissionList':
$("#error_msg").html(" ");
$("#report_branch_code").val($responce.data.FDEGREE);
$("#report_branch_name").val($responce.data.FDESCPN);
break;
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
$("#student_entry_degree_name").val('');
alert($responce.data);
$("#student_entry_sub_degree").val('');
$("#student_entry_sub_degree").focus();
break;
}
}
}
function admgetdegreename(id)
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#"+id).val()))+"&type="+"FCADSTATUS",
success: function($responce){
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
if(id == 'report_from_degree_code')
{
$("#report_from_degree_code").val($responce.data.FDEGREE);
$("#report_from_degree_name").val($responce.data.FDESCPN);
}
else
{
$("#report_to_degree_code").val($responce.data.FDEGREE);
$("#report_to_degree_name").val($responce.data.FDESCPN);
}
}else
{
if(id == 'report_from_degree_code')
{
$("#report_from_degree_code").val('');
$("#report_from_degree_name").val('');
alert($responce.data);
return;
}
else
{
$("#report_to_degree_code").val('');
$("#report_to_degree_name").val('');
alert($responce.data);
return;
}
}
}
});
}
function getdegreeNames()
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
if((jQuery.trim($("#student_entry_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#student_entry_degree_code").val()))+"&type="+"FCADSTATUS",
success: getdegreeNamesResponsedata
});
}
break;
case 'IdentifyTransactions':
if((jQuery.trim($("#it_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#it_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveMarkEntrySubjectwise':
if((jQuery.trim($("#markentry_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&type="+"FCMESTATUS",
success: getdegreeNamesResponsedata
});
}
break;
case 'Practical marks misc':
if((jQuery.trim($("#degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveMarkEntrySubjectwise2':
if((jQuery.trim($("#markentry_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&type="+"FCMESTATUS",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveRevaluation':
if((jQuery.trim($("#revalution_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#revalution_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveRevaluationReport':
if((jQuery.trim($("#report_revaluation_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_revaluation_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveMarkEntryStudentwise':
if((jQuery.trim($("#markentry_stu_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#markentry_stu_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveAbsentEntrySubjectwise':
if((jQuery.trim($("#abs_entry_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#abs_entry_sub_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'saveCollegeDegreeStatus':
if((jQuery.trim($("#cds_Degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#cds_Degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'candidate_list':
if((jQuery.trim($("#candidate_list_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#candidate_list_degree_code").val()))+"&type="+"FCCLSTATUS",
success: getdegreeNamesResponsedata
});
}
break;
case 'freezeModuleAtUniversityOrCollege':
if((jQuery.trim($("#fmauc_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#fmauc_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'freezeModuleAtAdminCollegeSubject':
if((jQuery.trim($("#fmacas_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#fmacas_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
else
{
document.getElementById('fmacas_degree_code').focus();
}
break;
case 'SavePracticalEntryFreezing':
if((jQuery.trim($("#fmacas_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#fmacas_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
else
{
document.getElementById('fmacas_degree_code').focus();
}
break;
case 'absententrystudetwise':
if((jQuery.trim($("#abs_entry_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#abs_entry_sub_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveSubjectListAdmCl':
if((jQuery.trim($("#report_sublist_adcl_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_sublist_adcl_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveSubjectListGeneral':
if((jQuery.trim($("#report_sublist_general_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_sublist_general_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveMarklistSubjectWise':
if((jQuery.trim($("#report_marklist_subject_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_marklist_subject_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveMarklistStudentWise':
if((jQuery.trim($("#report_marklist_student_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_marklist_student_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'ReportAdmissionList':
if((jQuery.trim($("#report_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'ReportCandidateList':
if((jQuery.trim($("#report_cl_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_cl_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveAdmissionTicket':
if((jQuery.trim($("#report_admission_ticket_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_admission_ticket_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'ReportAdmissionList':
if((jQuery.trim($("#report_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveBatchSetup':
if((jQuery.trim($("#batch_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#batch_sub_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'Batch Close':
if((jQuery.trim($("#batch_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#batch_sub_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'Upload Photo':
if((jQuery.trim($("#degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#degree_code").val()))+"&type="+"FCCLSTATUS",
success: getdegreeNamesResponsedata
});
}
break;
case 'Download Photo':
if((jQuery.trim($("#degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#degree_code").val()))+"&type="+"FCCLSTATUS",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveUserSubjIdentfy':
if((jQuery.trim($("#user_subj_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#user_subj_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'Marks List (Elements)':
if((jQuery.trim($("#report_marklist_subject_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_marklist_subject_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'batch preparation Dairy':
if((jQuery.trim($("#report_batch_prepation_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_batch_prepation_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'I.A Marks Pending':
if((jQuery.trim($("#report_marklist_student_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_marklist_student_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'Practical Daily Report':
if((jQuery.trim($("#report_topsheet_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_topsheet_degree_code").val())),
success: getdegreeNamesResponsedata
});
}
break;
case 'Update Section':
if((jQuery.trim($("#stud_section_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#stud_section_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'Section List':
if((jQuery.trim($("#stud_section_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#stud_section_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'addmistion degree':
if((jQuery.trim($("#degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'iaemptyformat':
if((jQuery.trim($("#ia_empty_degree_code").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#ia_empty_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'SaveAttendanceEntry':
if((jQuery.trim($("#markentry_sub_degree_code").val()))!='')
{
$.ajax({
type: "POST",
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'attendancefreezeing':
if((jQuery.trim($("#fmacas_degree_code").val()))!='')
{
$.ajax({
type: "POST",
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#fmacas_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'saveAttendanceSummary':
if((jQuery.trim($("#report_marklist_subject_degree_code").val()))!='')
{
$.ajax({
type: "POST",
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#report_marklist_subject_degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'Subjectwise Invigilators Dairy':
if((jQuery.trim($("#degree_code").val()))!='')
{
$.ajax({
type: "POST",
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#degree_code").val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
case 'Admission Challan Preparation':
console.log();
if((jQuery.trim($("#"+$g_focus_element).val()))!='')
{
$.ajax({
type: "POST",
url: $host_url+"getdegreeNames.demo",
data:"degree_code="+encodeURIComponent(trim($("#"+$g_focus_element).val()))+"&type="+"",
success: getdegreeNamesResponsedata
});
}
break;
}
}
function getdegreeNamesResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
switch(document.getElementById('module_name_for_save').value)
{
//alert(document.getElementById('module_name_for_save').value);
case 'StudentEntry':
$("#error_msg").html(" ");
$("#student_entry_degree_code").val($responce.data.FDEGREE);
$("#student_entry_degree_name").val($responce.data.FDESCPN);
if(document.getElementById('is_add_edit').value == 'Edit' || document.getElementById('is_add_edit').value == 'Delete')
{
$("#student_entry_slno").focus();
}
else
{
$("#student_entry_sub_degree_code").focus();
if(getCookie("FUNIVCODE") == '005')
getHonoursNames($responce.data['FDEGREE']);
else if(getCookie("FUNIVCODE") == '026')
{
//setAdmLoginCntr();
//GetCombination($responce.data.FDEGREE);
getCombinations($responce.data.FDEGREE);
getsubjectAppearingTotal();
//multifileUpload($responce.data.FDEGREE);
}else if(getCookie("FUNIVCODE") == '008')
{
getCombinations($responce.data.FDEGREE);
}else
{
getsubjectAppearingTotal();
}
}
break;
case 'saveDispatchAnswersScript':
//alert($remember_this_id);
//$id = $remember_this_id.substring($remember_this_id.lastIndexOf('_')+1);
document.getElementById($remember_this_id).value = $responce.data.FDEGREE;
//document.getElementById($dispatch_exam_+$id).focus();
break;
case 'saveRevaluation':
document.getElementById("revalution_degree_code").value = $responce.data.FDEGREE;
document.getElementById("revalution_degree_name").value = $responce.data.FDESCPN;
break;
case 'Practical marks misc':
document.getElementById("degree_code").value = $responce.data.FDEGREE;
document.getElementById("degree_name").value = $responce.data.FDESCPN;
break;
case 'Update Section':
document.getElementById("stud_section_degree_code").value = $responce.data.FDEGREE;
document.getElementById("stud_section_degree_name").value = $responce.data.FDESCPN;
break;
case 'Section List':
document.getElementById("stud_section_degree_code").value = $responce.data.FDEGREE;
document.getElementById("stud_section_degree_name").value = $responce.data.FDESCPN;
break;
case 'SaveRevaluationReport':
document.getElementById("report_revaluation_degree_code").value = $responce.data.FDEGREE;
document.getElementById("report_revaluation_degree_name").value = $responce.data.FDESCPN;
break;
case 'attendancefreezeing':
document.getElementById("fmacas_degree_code").value = $responce.data.FDEGREE;
document.getElementById("fmacas_degree_name").value = $responce.data.FDESCPN;
break;
case 'IdentifyTransactions':
$("#error_msg").html(" ");
$("#it_degree_code").val($responce.data.FDEGREE);
//$("#it_degree_name").val($responce.data.FDESCPN);
//document.getElementById('it_degree_name').disabled = 'true';
getIdentifyTransactionModuleData();
break;
case 'SaveMarkEntrySubjectwise':
$("#error_msg").html(" ");
$("#markentry_sub_degree_code").val($responce.data.FDEGREE);
$("#markentry_sub_degree_name").val($responce.data.FDESCPN);
document.getElementById('markentry_sub_degree_name').disabled = 'true';
/* if(document.getElementById('is_add_edit').value == 'Edit')
{
$("#markentry_sub_Examno").focus();
}
else
{
$("#markentry_sub_Examno").focus();
getsubjectAppearingTotal();
} */
break;
case 'SaveMarkEntryStudentwise':
$("#error_msg").html(" ");
$("#markentry_stu_degree_code").val($responce.data.FDEGREE);
$("#markentry_stu_degree_name").val($responce.data.FDESCPN);
document.getElementById('markentry_stu_degree_name').disabled = 'true';
/* if(document.getElementById('is_add_edit').value == 'Edit')
{
$("#markentry_sub_Examno").focus();
}
else
{
$("#markentry_sub_Examno").focus();
getsubjectAppearingTotal();
}*/
break;
case 'saveCollegeDegreeStatus':
$("#error_msg").html(" ");
$("#cds_Degree_name").val($responce.data.FDESCPN);
document.getElementById('cds_Degree_name').disabled = 'true';
getCollegeDegreeStatus();
if(document.getElementById('is_add_edit').value == 'Edit')
{
$("#cds_year_1").focus();
}
else
{
$("#cds_year_1").focus();
getsubjectAppearingTotal();
}
break;
case 'candidate_list':
$("#error_msg").html(" ");
$("#candidate_list_degree_code").val($responce.data.FDEGREE);
$("#candidate_list_degree_name").val($responce.data.FDESCPN);
document.getElementById('candidate_list_reg_no').focus();
break;
case 'freezeModuleAtUniversityOrCollege':
$("#error_msg").html(" ");
$("#fmauc_degree_code").val($responce.data.FDEGREE);
$("#fmauc_degree_code_degree_name").val($responce.data.FDESCPN);
document.getElementById('fmauc_degree_code_degree_name').disabled = 'true';
break;
case 'freezeModuleAtAdminCollegeSubject':
$("#fmacas_degree_code").val($responce.data.FDEGREE);
$("#fmacas_degree_name").val($responce.data.FDESCPN);
document.getElementById('fmacas_degree_name').disabled = 'true';
break;
case 'SavePracticalEntryFreezing':
$("#fmacas_degree_code").val($responce.data.FDEGREE);
$("#fmacas_degree_name").val($responce.data.FDESCPN);
document.getElementById('fmacas_degree_name').disabled = 'true';
break;
case 'SaveAbsentEntrySubjectwise':
$("#error_msg").html(" ");
$("#abs_entry_sub_degree_code").val($responce.data.FDEGREE);
$("#abs_sub_degree_name").val($responce.data.FDESCPN);
document.getElementById('abs_sub_degree_name').disabled = 'true';
break;
case 'saveSubjectListAdmCl':
$("#error_msg").html(" ");
$("#report_sublist_adcl_degree_code").val($responce.data.FDEGREE);
$("#report_sublist_adcl_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_sublist_adcl_degree_name').disabled = 'true';
break;
case 'saveSubjectListGeneral':
$("#error_msg").html(" ");
$("#report_sublist_general_degree_code").val($responce.data.FDEGREE);
$("#report_sublist_general_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_sublist_general_degree_name').disabled = 'true';
break;
case 'saveMarklistSubjectWise':
$("#error_msg").html(" ");
$("#report_marklist_subject_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_subject_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_marklist_subject_degree_name').disabled = 'true';
break;
case 'saveMarklistStudentWise':
$("#error_msg").html(" ");
$("#report_marklist_student_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_student_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_marklist_student_degree_name').disabled = 'true';
break;
case 'ReportAdmissionList':
$("#error_msg").html(" ");
$("#report_degree_code").val($responce.data.FDEGREE);
$("#report_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_degree_name').disabled = 'true';
break;
case 'ReportCandidateList':
$("#report_cl_degree_code").val($responce.data.FDEGREE);
$("#report_cl_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_cl_degree_name').disabled = 'true';
break;
case 'saveAdmissionTicket':
$("#report_admission_ticket_degree_code").val($responce.data.FDEGREE);
$("#report_admission_ticket_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_admission_ticket_degree_name').disabled = 'true';
//document.getElementById('report_admission_ticket_degree_code').focus();
break;
case 'SaveBatchSetup':
$("#batch_sub_degree_code").val($responce.data.FDEGREE);
$("#batch_sub_degree_name").val($responce.data.FDESCPN);
//document.getElementById('batch_sub_degree_name').disabled = 'true';
break;
case 'Batch Close':
$("#batch_sub_degree_code").val($responce.data.FDEGREE);
$("#batch_sub_degree_name").val($responce.data.FDESCPN);
//document.getElementById('batch_sub_degree_name').disabled = 'true';
break;
case 'Upload Photo':
$("#error_msg").html(" ");
$("#degree_code").val($responce.data.FDEGREE);
$("#degree_name").val($responce.data.FDESCPN);
document.getElementById('uploadPhoto_regno_start_from').focus();
break;
case 'Download Photo':
$("#error_msg").html(" ");
$("#degree_code").val($responce.data.FDEGREE);
$("#degree_name").val($responce.data.FDESCPN);
document.getElementById('uploadPhoto_regno_start_from').focus();
break;
case 'saveUserSubjIdentfy':
$("#error_msg").html(" ");
$("#user_subj_degree_code").val($responce.data.FDEGREE);
$("#user_subj_degree_name").val($responce.data.FDESCPN);
break;
case 'batch preparation Dairy':
$("#error_msg").html(" ");
$("#report_batch_prepation_degree_code").val($responce.data.FDEGREE);
$("#report_batch_prepation_degree_name").val($responce.data.FDESCPN);
break;
/*
case 'saveDailyReport':
$id =window.location.g_daliy_id;
document.getElementById($id).value = $responce.data.FDEGREE;
break;
*/
case 'Marks List (Elements)':
$("#error_msg").html(" ");
$("#report_marklist_subject_Exam_name").val('');
alert("Invalid Exam Code");
$("#report_marklist_subject_Examno").val('');
$("#report_marklist_subject_Examno").focus();
//document.getElementById('batch_sub_Examno').disabled = 'true';
break;
case 'I.A Marks Pending':
$("#error_msg").html(" ");
$("#report_marklist_student_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_student_degree_name").val($responce.data.FDESCPN);
//$("#report_marklist_student_degree_code_to").val($responce.data.FDEGREE);
//$("#report_marklist_student_degree_name_to").val($responce.data.FDESCPN);
//document.getElementById('batch_sub_Examno').disabled = 'true';
break;
//Practical Daily Report
case 'Practical Daily Report':
$("#error_msg").html(" ");
$("#report_topsheet_degree_code").val($responce.data.FDEGREE);
$("#report_topsheet_degree_name").val($responce.data.FDESCPN);
break;
case 'addmistion degree':
$("#error_msg").html(" ");
$("#degree_code").val($responce.data.FDEGREE);
$("#degree_name").val($responce.data.FDESCPN);
break;
case 'iaemptyformat':
$("#error_msg").html(" ");
$("#ia_empty_degree_code").val($responce.data.FDEGREE);
$("#ia_empty_degree_name").val($responce.data.FDESCPN);
break;
case 'SaveAttendanceEntry':
$("#error_msg").html(" ");
$("#markentry_sub_degree_code").val($responce.data.FDEGREE);
$("#markentry_sub_degree_name").val($responce.data.FDESCPN);
break;
case 'saveAttendanceSummary':
$("#error_msg").html(" ");
$("#report_marklist_subject_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_subject_degree_name").val($responce.data.FDESCPN);
break;
case 'Subjectwise Invigilators Dairy':
document.getElementById("degree_code").value = $responce.data.FDEGREE;
document.getElementById("degree_name").value = $responce.data.FDESCPN;
break;
case 'Admission Challan Preparation':
console.log($g_focus_element);
if($g_focus_element == 'report_from_degree_name')
{
document.getElementById("report_from_degree_code").value = $responce.data.FDEGREE;
document.getElementById("report_from_degree_name").value = $responce.data.FDESCPN;
}else
{
document.getElementById("report_to_degree_code").value = $responce.data.FDEGREE;
document.getElementById("report_to_degree_name").value = $responce.data.FDESCPN;
}
break;
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
$("#student_entry_degree_name").val('');
alert($responce.data);
$("#student_entry_degree_code").val('');
$("#student_entry_degree_code").focus();
if(getCookie("FUNIVCODE") == '026')
{
setAdmLoginCntr();
GetCombination($responce.data.FDEGREE);
multifileUpload($responce.data.FDEGREE);
}
break;
case 'saveDispatchAnswersScript':
alert($responce.data);
document.getElementById($remember_this_id).value =' ';
document.getElementById($remember_this_id).focus();
break;
case 'Update Section':
alert($responce.data);
document.getElementById("stud_section_degree_code").value =' ';
document.getElementById("stud_section_degree_name").value = ' ';
document.getElementById("stud_section_degree_code").focus();
break;
case 'ReportAdmissionList':
alert($responce.data);
$("#report_degree_code").val('');
$("#report_degree_code").focus();
break;
case 'Practical marks misc':
alert($responce.data);
$("#degree_code").val('');
$("#degree_code").focus();
break;
case 'freezeModuleAtAdminCollegeSubject':
$("#fmacas_degree_name").val('');
alert($responce.data);
$("#fmacas_degree_code").val('');
$("#fmacas_degree_code").focus();
break;
case 'SavePracticalEntryFreezing':
$("#fmacas_degree_name").val('');
alert($responce.data);
$("#fmacas_degree_code").val('');
$("#fmacas_degree_code").focus();
break;
case 'SaveMarkEntrySubjectwise':
alert($responce.data);
$("#markentry_sub_degree_name").val('');
$("#markentry_sub_Examno").val('');
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_Examno").val('');
$("#markentry_sub_Exam_name").val('');
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_fssubname").val('');
$("#markentry_sub_fsubname").val('');
$("#mark_entry_shortname").val('');
$("#markentry_sub_degree_code").focus();
break;
case 'SaveMarkEntryStudentwise':
$("#markentry_stu_degree_code").val('');
$("#markentry_stu_degree_code").focus();
alert($responce.data);
break;
case 'saveCollegeDegreeStatus':
$("#cds_Degree_code").val('');
$("#cds_Degree_code").focus();
alert($responce.data);
break;
case 'attendancefreezeing':
$("#fmacas_degree_code").val('');
$("#fmacas_degree_name").val('');
$("#fmacas_degree_code").focus();
alert($responce.data);
break;
case 'candidate_list':
$("#candidate_list_degree_code").val('');
$("#candidate_list_degree_name").val('');
$("#candidate_list_degree_code").focus();
alert($responce.data);
break;
case 'freezeModuleAtUniversityOrCollege':
alert($responce.data);
$("#fmauc_degree_code").val('');
$("#fmauc_degree_code_degree_name").val('');
$("#fmauc_degree_code").focus();
break;
case 'SaveAbsentEntrySubjectwise':
alert($responce.data);
$("#abs_entry_sub_degree_code").val('');
$("#abs_sub_degree_name").val('');
$("#abs_entry_sub_degree_code").focus();
break;
case 'saveSubjectListAdmCl':
alert($responce.data);
$("#report_sublist_adcl_degree_code").val('');
$("#report_sublist_adcl_degree_name").val('');
$("#report_sublist_adcl_degree_code").focus();
break;
case 'saveSubjectListGeneral':
alert($responce.data);
$("#report_sublist_general_degree_code").val('');
$("#report_sublist_general_degree_name").val('');
$("#report_sublist_general_degree_code").focus();
break;
case 'saveMarklistSubjectWise':
alert($responce.data);
$("#report_marklist_subject_degree_code").val('');
$("#report_marklist_subject_degree_name").val('');
$("#report_marklist_subject_degree_code").focus();
break;
case 'saveMarklistStudentWise':
alert($responce.data);
$("#report_marklist_student_degree_code").val('');
$("#report_marklist_student_degree_name").val('');
$("#report_marklist_student_degree_code").focus();
break;
case 'ReportCandidateList':
alert($responce.data);
$("#report_cl_degree_code").val('');
$("#report_cl_degree_name").val('');
$("#report_cl_degree_code").focus();
break;
case 'saveAdmissionTicket':
alert($responce.data);
$("#report_admission_ticket_degree_code").val('');
$("#report_admission_ticket_degree_name").val('');
$("#report_admission_ticket_degree_code").focus();
break;
case 'SaveBatchSetup':
alert($responce.data);
$("#batch_sub_degree_code").val('');
$("#batch_sub_degree_name").val('');
$("#batch_sub_degree_code").focus();
break;
case 'Upload Photo':
$("#degree_code").val('');
$("#degree_name").val('');
document.getElementById('degree_code').focus();
break;
case 'Download Photo':
$("#degree_code").val('');
$("#degree_name").val('');
document.getElementById('degree_code').focus();
break;
case 'saveUserSubjIdentfy':
$("#user_subj_degree_code").val('');
$("#user_subj_degree_name").val('');
document.getElementById('user_subj_degree_code').focus();
break;
/* case 'saveDailyReport':
$id =window.location.g_daliy_id;
document.getElementById($id).value = $responce.data.FDEGREE;
alert($responce.data);
document.getElementById($id).value='';
document.getElementById($id).value.focus();
break; */
case 'Marks List (Elements)':
$("#error_msg").html(" ");
$("#report_marklist_subject_Exam_name").val('');
alert("Invalid Exam Code");
$("#report_marklist_subject_Examno").val('');
$("#report_marklist_subject_Examno").focus();
//document.getElementById('batch_sub_Examno').disabled = 'true';
break;
case 'I.A Marks Pending':
alert($responce.data);
$("#report_marklist_student_degree_code").val('');
$("#report_marklist_student_degree_code_name").val('');
//$("#report_marklist_student_degree_code_to").val('');
//$("#report_marklist_student_degree_name_to").val('');
document.getElementById("#"+$g_focus_element).focus();
break;
case 'Practical Daily Report':
alert($responce.data);
$("#report_topsheet_degree_code").val('');
$("#report_topsheet_degree_name").val('');
//$("#report_marklist_student_degree_code_to").val('');
//$("#report_marklist_student_degree_name_to").val('');
document.getElementById("#"+$g_focus_element).focus();
break;
case 'addmistion degree':
alert($responce.data);
$("#degree_code").val('');
$("#degree_name").val('');
//$("#report_marklist_student_degree_code_to").val('');
//$("#report_marklist_student_degree_name_to").val('');
document.getElementById("#"+$g_focus_element).focus();
break;
case 'iaemptyformat':
alert($responce.data);
$("#ia_empty_degree_code").val('');
$("#ia_empty_degree_name").val('');
//$("#report_marklist_student_degree_code_to").val('');
//$("#report_marklist_student_degree_name_to").val('');
document.getElementById("#"+$g_focus_element).focus();
break;
case 'SaveAttendanceEntry':
$("#error_msg").html(" ");
$("#markentry_sub_degree_code").val("");
$("#markentry_sub_degree_name").val("");
document.getElementById("#"+$g_focus_element).focus();
break;
case 'saveAttendanceSummary':
$("#error_msg").html(" ");
$("#report_marklist_subject_degree_code").val("");
$("#report_marklist_subject_degree_name").val("");
document.getElementById("#"+$g_focus_element).focus();
break;
case 'Subjectwise Invigilators Dairy':
$("#degree_code").val("");
$("#degree_name").val("");
alert($responce.data);
break;
case 'Admission Challan Preparation':
if($g_focus_element == 'report_from_degree_name')
{
$("#report_from_degree_name").val("");
$("#report_from_degree_code").val("");
alert($responce.data);
return;
}else
{
$("#report_to_degree_name").val("");
$("#report_to_degree_code").val("");
alert($responce.data);
return;
}
break;
}
//document.getElementById('student_entry_degree_name').value = '';
}
}
$remember_this_id = '';
function getExamName($degree,$id,$screen_type,$name)
{
$examno = document.getElementById($id).value;
if($examno!='')
{
var datastring = "&screen_type="+$screen_type+"&examno="+$examno+"°ree="+$degree;
$.ajax({
type: "POST",
data:datastring,
url: $host_url+"lastdate_validate.demo",
success:function($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code != 0)
{
alert($responce.data);
document.getElementById($id).focus();
document.getElementById($id).value = '';
document.getElementById($name).value = '';
}else
{
$remember_this_id=$id;
$.ajax({
type: "POST",
url: $host_url+"getExamNo.demo",
data:"ExamNo="+encodeURIComponent(trim($examno))+"°ree="+$degree,
success: getExamNameResponsedata
});
}
}
});
}
}
function getExamNameResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
$("#error_msg").html(" ");
$("#markentry_sub_Examno").val($responce.data.fexamno);
$("#markentry_sub_Exam_name").val($responce.data.fexamname);
document.getElementById('markentry_sub_Exam_name').disabled = 'true';
break;
case 'saveDispatchAnswersScript':
document.getElementById($remember_this_id).value = $responce.data.fexamno;
break;
case 'SaveMarkEntryStudentwise':
$("#error_msg").html(" ");
$("#markentry_stu_Examno").val($responce.data.fexamno);
$("#markentry_stu_Exam_name").val($responce.data.fexamname);
document.getElementById('markentry_stu_Exam_name').disabled = 'true';
break;
case 'freezeModuleAtAdminCollegeSubject':
$("#error_msg").html(" ");
$("#fmacas_sub_Examno").val($responce.data.fexamno);
$("#fmacas_sub_Exam_name").val($responce.data.fexamname);
document.getElementById('fmacas_sub_Exam_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'SavePracticalEntryFreezing':
$("#error_msg").html(" ");
$("#fmacas_sub_Examno").val($responce.data.fexamno);
$("#fmacas_sub_Exam_name").val($responce.data.fexamname);
document.getElementById('fmacas_sub_Exam_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'SaveAbsentEntrySubjectwise':
$("#error_msg").html(" ");
$("#abs_sub_Examno").val($responce.data.fexamno);
$("#abs_sub_Exam_name").val($responce.data.fexamname);
document.getElementById('abs_sub_Exam_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'saveSubjectListAdmCl':
$("#error_msg").html(" ");
$("#"+$remember_this_id).val($responce.data.fexamno);
break;
case 'saveSubjectListGeneral':
$("#error_msg").html(" ");
$("#"+$remember_this_id).val($responce.data.fexamno);
break;
case 'saveMarklistSubjectWise':
$("#error_msg").html(" ");
$("#report_marklist_subject_Examno").val($responce.data.fexamno);
$("#report_marklist_subject_Exam_name").val($responce.data.fexamname);
document.getElementById('report_marklist_subject_Exam_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'saveMarklistStudentWise':
$("#error_msg").html(" ");
$("#report_marklist_student_Examno").val($responce.data.fexamno);
$("#report_marklist_student_Examno_name").val($responce.data.fexamname);
document.getElementById('report_marklist_student_Examno_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'Practical marks misc':
$("#error_msg").html(" ");
$("#Examno").val($responce.data.fexamno);
$("#Exam_name").val($responce.data.fexamname);
document.getElementById('Exam_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'Subjectwise Invigilators Dairy':
$("#error_msg").html(" ");
$("#examno").val($responce.data.fexamno);
$("#exam_name").val($responce.data.fexamname);
document.getElementById('exam_name').disabled = 'true';
//getsubjectAppearingTotal();
break;
case 'ReportAdmissionList':
$("#error_msg").html(" ");
$("#report_Examno").val($responce.data.fexamno);
$("#report_Exam_name").val($responce.data.fexamname);
document.getElementById('report_Exam_name').disabled = 'true';
break;
case 'saveDatewar':
$("#error_msg").html(" ");
$("#report_marklist_subject_wise_Examno").val($responce.data.fexamno);
$("#report_marklist_subject_wise_Exam_name").val($responce.data.fexamname);
document.getElementById('report_marklist_subject_wise_Exam_name').disabled = 'true';
break;
case 'SaveBatchSetup':
$("#error_msg").html(" ");
$("#batch_sub_Examno").val($responce.data.fexamno);
$("#batch_sub_Exam_name").val($responce.data.fexamname);
//document.getElementById('batch_sub_Examno').disabled = 'true';
break;
case 'Batch Close':
$("#error_msg").html(" ");
$("#batch_sub_Examno").val($responce.data.fexamno);
$("#batch_sub_Exam_name").val($responce.data.fexamname);
//document.getElementById('batch_sub_Examno').disabled = 'true';
break;
case 'attendancefreezeing':
$("#error_msg").html(" ");
$("#fmacas_sub_Examno").val($responce.data.fexamno);
$("#fmacas_sub_Exam_name").val($responce.data.fexamname);
//document.getElementById('batch_sub_Examno').disabled = 'true';
break;
case 'IdentifySubjFreshEx':
$("#error_msg").html(" ");
$("#fresh_Examno").val($responce.data.fexamno);
$("#fresh_Exam_name").val($responce.data.fexamname);
document.getElementById('fresh_Exam_name').disabled = 'true';
break;
case 'batch preparation Dairy':
$("#error_msg").html(" ");
$("#report_batch_prepation_examno_code").val($responce.data.fexamno);
$("#report_batch_prepation_examno_name").val($responce.data.fexamname);
document.getElementById('report_batch_prepation_examno_name').disabled = 'true';
break;
case 'I.A Marks Pending':
$("#error_msg").html(" ");
$("#report_marklist_student_Examno").val($responce.data.fexamno);
$("#report_marklist_student_Examno_name").val($responce.data.fexamname);
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'Practical Daily Report':
$("#error_msg").html(" ");
$("#stud_section_Examno").val($responce.data.fexamno);
$("#stud_section_Examno_name").val($responce.data.fexamname);
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'Update Section':
$("#error_msg").html(" ");
$("#stud_section_Examno").val($responce.data.fexamno);
$("#stud_section_Examno_name").val($responce.data.fexamname);
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'Section List':
$("#error_msg").html(" ");
$("#stud_section_Examno").val($responce.data.fexamno);
$("#stud_section_Examno_name").val($responce.data.fexamname);
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'addmistion degree':
$("#error_msg").html(" ");
$("#Examno").val($responce.data.fexamno);
$("#Exam_name").val($responce.data.fexamname);
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'iaemptyformat':
$("#error_msg").html(" ");
$("#ia_empty_examno").val($responce.data.fexamno);
$("#ia_empty_examno_name").val($responce.data.fexamname);
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'SaveAttendanceEntry':
$("#error_msg").html(" ");
$("#markentry_sub_Examno").val($responce.data.fexamno);
$("#markentry_sub_Exam_name").val($responce.data.fexamname);
degree_code = document.getElementById('markentry_sub_degree_code').value;
getmonths(degree_code,$responce.data['fexamno'],'SaveAttendanceEntry');
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
case 'saveAttendanceSummary':
$("#error_msg").html(" ");
$("#report_marklist_subject_Examno").val($responce.data.fexamno);
$("#report_marklist_subject_Exam_name").val($responce.data.fexamname);
var degree_code = document.getElementById('report_marklist_subject_degree_code').value;
getmonths(degree_code,$responce.data['fexamno'],'saveAttendanceSummary');
//$("#report_marklist_student_Examno_to").val($responce.data.fexamno);
//$("#report_marklist_student_Examno_name_to").val($responce.data.fexamname);
//document.getElementById('report_marklist_student_Examno').disabled = 'true';
break;
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
alert("Invalid Exam Code");
$("#markentry_sub_Examno").val('');
$("#markentry_sub_Examno").focus();
break;
case 'SaveMarkEntrySubjectwise2':
alert("Invalid Exam Code");
$("#markentry_sub_Examno").val('');
$("#markentry_sub_Examno").focus();
break;
case 'SaveBatchSetup':
alert("Invalid Exam Code");
$("#batch_sub_Examno").val('');
$("#batch_sub_Examno").focus();
break;
case 'Batch Close':
alert("Invalid Exam Code");
$("#batch_sub_Examno").val('');
$("#batch_sub_Examno").focus();
break;
case 'Practical marks misc':
alert("Invalid Exam Code");
$("#Examno").val('');
$("#Exam_name").val('');
$("#Examno").focus();
break;
case 'Subjectwise Invigilators Dairy':
alert("Invalid Exam Code");
$("#examno").val('');
$("#exam_name").val('');
$("#examno").focus();
break;
case 'Update Section':
alert("Invalid Exam Code");
$("#stud_section_Examno").val('');
$("#stud_section_Examno_name").val('');
$("#stud_section_Examno").focus();
break;
case 'attendancefreezeing':
alert("Invalid Exam Code");
$("#fmacas_sub_Examno").val('');
$("#fmacas_sub_Exam_name").val('');
$("#fmacas_sub_Examno").focus();
break;
case 'Section List':
alert("Invalid Exam Code");
$("#stud_section_Examno").val('');
$("#stud_section_Examno_name").val('');
$("#stud_section_Examno").focus();
break;
case 'saveDispatchAnswersScript':
alert("Invalid Exam Code");
document.getElementById($remember_this_id).value = '';
document.getElementById($remember_this_id).focus();
break;
case 'SaveMarkEntryStudentwise':
$("#error_msg").html(" ");
alert("Invalid Exam Code");
$("#markentry_stu_Examno").val('');
$("#markentry_stu_Exam_name").val('');
$("#markentry_stu_Examno").focus();
break;
case 'SaveAbsentEntrySubjectwise':
$("#error_msg").html(" ");
alert("Invalid Exam Code");
$("#abs_sub_Examno").val("");
break;
case 'freezeModuleAtAdminCollegeSubject':
$("#fmacas_sub_Exam_name").val('');
alert("Invalid Exam Code");
$("#fmacas_sub_Examno").val('');
$("#fmacas_sub_Examno").focus();
break;
case 'SavePracticalEntryFreezing':
$("#fmacas_sub_Exam_name").val('');
alert("Invalid Exam Code");
$("#fmacas_sub_Examno").val('');
$("#fmacas_sub_Examno").focus();
break;
case 'saveSubjectListAdmCl':
$("#report_sublist_adcl_Exam_name").val('');
alert("Invalid Exam Code");
$("#report_sublist_adcl_Examno").val('');
$("#report_sublist_adcl_Examno").focus();
break;
case 'saveSubjectListGeneral':
$("#report_sublist_general_Exam_name").val('');
alert("Invalid Exam Code");
$("#report_sublist_general_Examno").val('');
$("#report_sublist_general_Examno").focus();
break;
case 'I.A Marks Pending':
alert("Invalid Exam Code");
$("#report_marklist_student_Examno").val('');
$("#report_marklist_student_Examno_name").val('');
//$("#report_marklist_student_Examno_to").val('');
//$("#report_marklist_student_Examno_name_to").val('');
$("#"+$g_focus_element).focus();
//$("#"+$g_focus_element).focus();
break;
case 'Practical Daily Report':
alert("Invalid Exam Code");
$("#report_topsheet_Examno").val('');
$("#report_topsheet_Examno_name").val('');
//$("#report_marklist_student_Examno_to").val('');
//$("#report_marklist_student_Examno_name_to").val('');
$("#"+$g_focus_element).focus();
//$("#"+$g_focus_element).focus();
break;
case 'addmistion degree':
alert("Invalid Exam Code");
$("#Examno").val('');
$("#Exam_name").val('');
//$("#report_marklist_student_Examno_to").val('');
//$("#report_marklist_student_Examno_name_to").val('');
$("#"+$g_focus_element).focus();
//$("#"+$g_focus_element).focus();
break;
case 'iaemptyformat':
alert("Invalid Exam Code");
$("#ia_empty_examno").val('');
$("#ia_empty_examno_name").val('');
//$("#report_marklist_student_Examno_to").val('');
//$("#report_marklist_student_Examno_name_to").val('');
$("#"+$g_focus_element).focus();
//$("#"+$g_focus_element).focus();
break;
case 'SaveAttendanceEntry':
alert("Invalid Exam Code");
$("#markentry_sub_Examno").val('');
$("#markentry_sub_Exam_name").val('');
$("#"+$g_focus_element).focus();
break;
case 'saveAttendanceSummary':
alert("Invalid Exam Code");
$("#report_marklist_subject_Examno").val('');
$("#report_marklist_subject_Exam_name").val('');
$("#"+$g_focus_element).focus();
break;
}
}
}
$remember_text_box_id_at_subcode = '';
function getSubjectNameForDispatchScriptBlur($cur_id)
{
$id = $cur_id.substring($cur_id.lastIndexOf('_')+1);
$remember_text_box_id_at_subcode = $id;
if(jQuery.trim($("#dispatch_subcode_"+$id).val())!='' && document.getElementById("dispatch_exam_"+$id).value != '')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubjectNameForDispatchScript.demo",
data:"degree_code="+encodeURIComponent(trim($("#dispatch_degree_"+$id).val()))+"&subject_code="+encodeURIComponent(trim($("#dispatch_subcode_"+$id).val()))+"&exam="+encodeURIComponent(trim($("#dispatch_exam_"+$id).val())),
success: getSubjectNameResponsedata
});
}
}
function getSubjectName(id)
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
//alert($("#markentry_sub_final_subcode").val());
if((jQuery.trim($("#markentry_sub_final_subcode").val()))!='')
{
$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#markentry_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#markentry_sub_Examno").val()))+"&module="+'ME'+"&category="+$category,
success: getSubjectNameResponsedata
});
}
break;
case 'SaveMarkEntrySubjectwise2':
if((jQuery.trim($("#markentry_sub_final_subcode").val()))!='')
{
$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#markentry_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#markentry_sub_Examno").val()))+"&module="+'ME'+"&category="+$category,
success: getSubjectNameResponsedata
});
}
break;
case 'SavePracticalEntryFreezing':
if((jQuery.trim($("#fmacas_sub_final_subcode").val()))!='')
{
// alert($("#fmacas_degree_code").val());
//$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#fmacas_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#fmacas_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#fmacas_sub_Examno").val()))+"&module="+'PR',
success: getSubjectNameResponsedata
});
}
break;
case 'SaveBatchSetup':
if((jQuery.trim($("#batch_sub_final_subcode").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#batch_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#batch_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#batch_sub_Examno").val()))+"&module="+'PR',
success: getSubjectNameResponsedata
});
}
break;
case 'Batch Close':
if((jQuery.trim($("#batch_sub_final_subcode").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#batch_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#batch_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#batch_sub_Examno").val()))+"&module="+'PR',
success: getSubjectNameResponsedata
});
}
break;
case 'Practical marks misc':
if((jQuery.trim($("#subcode").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#Examno").val()))+"&module="+'PR',
success: getSubjectNameResponsedata
});
}
break;
case 'SaveAbsentEntrySubjectwise':
if((jQuery.trim($("#abs_sub_final_subcode").val()))!='')
{
$category = encodeURIComponent(trim($("#abs_SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#abs_entry_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#abs_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#abs_sub_Examno").val()))+"&module="+$g_screen_type+"&category="+$category,
success: getSubjectNameResponsedata
});
}
case 'SaveAttendanceEntry':
if((jQuery.trim($("#markentry_sub_final_subcode").val()))!='')
{
$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#markentry_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#markentry_sub_Examno").val()))+"&module="+'ME'+"&category="+$category,
success: getSubjectNameResponsedata
});
}
break;
case 'saveAttendanceSummary':
if(((jQuery.trim($("#"+id).val()))!='') && (($("#"+id).val()!='0') && ($("#"+id).val()!='ZZZZZ')))
{
subjectId=id;
$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#report_marklist_subject_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#"+id).val()))+"&exam_no="+encodeURIComponent(trim($("#report_marklist_subject_Examno").val()))+"&module="+'ME'+"&category="+$category,
success: getSubjectNameResponsedata
});
}
break;
case 'batch preparation Dairy':
if((jQuery.trim($("#report_batch_prepation_subject_code").val()))!='')
{
$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#report_batch_prepation_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#report_batch_prepation_subject_code").val()))+"&exam_no="+encodeURIComponent(trim($("#report_batch_prepation_examno_code").val()))+"&module="+'PR'+"&category="+'12',
success: getSubjectNameResponsedata
});
}
break;
case 'saveMarklistStudentWise':
$category = encodeURIComponent(trim($("#SubCategory").val()));
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"degcode="+encodeURIComponent(trim($("#report_marklist_student_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#report_marklist_subject_start_from").val()))+"&exam_no="+encodeURIComponent(trim($("#report_marklist_student_Examno").val()))+"&module="+'CL'+"&category="+'08',
success: getSubjectNameResponsedata
});
break;
}
}
function getSubjectNameResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
$("#error_msg").html(" ");
$("#markentry_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#markentry_sub_fsubname").val($responce.data.FSUBNAME);
$("#markentry_sub_fssubname").val($responce.data.FSSUBNAME);
$("#mark_entry_shortname").val($responce.data.FSHORTNAME);
$("#markentry_sub_maxmark").val($responce.data.FSMAXMARKS);
document.getElementById('test').options.length=0;
for($i=1;$i <=$responce.data.FEXAMCNT;$i++)
{
$op = new Option('Test '+$i, $i);
$op.id='Test '+$i;//specifying the id for options
document.getElementById('test').options.add($op);
}
document.getElementById('markentry_sub_fsubname').disabled = 'true';
document.getElementById('markentry_sub_fssubname').disabled = 'true';
document.getElementById('mark_entry_shortname').disabled = 'true';
$("#markentry_sub_range").focus();
break;
case 'SaveMarkEntrySubjectwise2':
$("#error_msg").html(" ");
$("#markentry_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#markentry_sub_fsubname").val($responce.data.FSUBNAME);
$("#markentry_sub_fssubname").val($responce.data.FSSUBNAME);
$("#mark_entry_shortname").val($responce.data.FSHORTNAME);
$("#markentry_sub_maxmark").val($responce.data.FSMAXMARKS);
document.getElementById('markentry_sub_fsubname').disabled = 'true';
document.getElementById('markentry_sub_fssubname').disabled = 'true';
document.getElementById('mark_entry_shortname').disabled = 'true';
$("#markentry_sub_range").focus();
break;
case 'SaveBatchSetup':
$("#error_msg").html(" ");
$("#batch_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#batch_sub_fsubname").val($responce.data.FSUBNAME);
$("#batch_sub_fssubname").val($responce.data.FSSUBNAME);
$("#batch_entry_shortname").val($responce.data.FSHORTNAME);
$("#batch_sub_maxmark").val($responce.data.FSMAXMARKS);
/* document.getElementById('batch_sub_fsubname').disabled = 'true';
document.getElementById('batch_sub_fssubname').disabled = 'true';
document.getElementById('batch_entry_shortname').disabled = 'true'; */
$("#batch_sub_range").focus();
GetVivaSubjectDetails();
break;
case 'Batch Close':
$("#error_msg").html(" ");
$("#batch_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#batch_sub_fsubname").val($responce.data.FSUBNAME);
$("#batch_sub_fssubname").val($responce.data.FSSUBNAME);
$("#batch_entry_shortname").val($responce.data.FSHORTNAME);
$("#batch_sub_maxmark").val($responce.data.FSMAXMARKS);
$("#batch_sub_range").focus();
GetVivaSubjectDetails();
break;
case 'Practical marks misc':
$("#error_msg").html(" ");
$("#subcode").val($responce.data.FCSUBCODE);
$("#subname").val($responce.data.FSUBNAME);
$("#batch_sub_fssubname").val($responce.data.FSSUBNAME);
$("#batch_entry_shortname").val($responce.data.FSHORTNAME);
$("#batch_sub_maxmark").val($responce.data.FSMAXMARKS);
/* document.getElementById('batch_sub_fsubname').disabled = 'true';
document.getElementById('batch_sub_fssubname').disabled = 'true';
document.getElementById('batch_entry_shortname').disabled = 'true'; */
$("#batch_sub_range").focus();
GetVivaSubjectDetailsmic();
break;
case 'SavePracticalEntryFreezing':
$("#error_msg").html(" ");
$("#fmacas_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#fmacas_sub_fsubname").val($responce.data.FSUBNAME);
$("#fmacas_sub_fssubname").val($responce.data.FSSUBNAME);
$("#fmacas_entry_shortname").val($responce.data.FSHORTNAME);
$("#fmacas_sub_maxmark").val($responce.data.FSMAXMARKS);
document.getElementById('fmacas_sub_fsubname').disabled = 'true';
//document.getElementById('fmacas_sub_fssubname').disabled = 'true';
//document.getElementById('fmacas_entry_shortname').disabled = 'true';
//getPracticalEntryFreezeDetails();
//$("#batch_sl_no_0").focus();
//alert($g_focus_element);
break;
case 'saveDispatchAnswersScript':
$Textbox = document.getElementsByName("dispatch_ans_degree");
$NumTextBox = $Textbox.length;
$not_dulicate = 0;
for($i=1; $i<=$NumTextBox; $i++)
{
if($("#dispatch_degree_"+$i).val() == $("#dispatch_degree_"+$remember_text_box_id_at_subcode).val() && $("#dispatch_subcode_"+$i).val() == $responce.data.FCSUBCODE && $i!=$remember_text_box_id_at_subcode)
{
$("#dispatch_subcode_"+$remember_text_box_id_at_subcode).val('');
$("#dispatch_name_"+$remember_text_box_id_at_subcode).val('');
$("#dispatch_subcode_"+$remember_text_box_id_at_subcode).focus();
$not_dulicate = 0;
alert('Subject Code Already Exists');
return ;
}
else
{
$not_dulicate = 1;
}
}
if($not_dulicate)
{
$("#dispatch_subcode_"+$remember_text_box_id_at_subcode).val($responce.data.FCSUBCODE);
$("#dispatch_name_"+$remember_text_box_id_at_subcode).val($responce.data.FSUBNAME);
$not_dulicate=0;
}
break;
case 'SaveAbsentEntrySubjectwise':
$("#error_msg").html(" ");
$("#abs_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#abs_sub_fsubname").val($responce.data.FSUBNAME);
$("#abs_sub_fssubname").val($responce.data.FSSUBNAME);
$("#abs_shortname").val($responce.data.FSHORTNAME);
$("#abs_sub_maxmark").val($responce.data.FSMAXMARKS);
document.getElementById('abs_sub_fsubname').disabled = 'true';
document.getElementById('abs_sub_fssubname').disabled = 'true';
document.getElementById('abs_entry_shortname').disabled = 'true';
$("#abs_sub_date").focus();
break;
case 'SaveAttendanceEntry':
$("#error_msg").html(" ");
$("#markentry_sub_final_subcode").val($responce.data.FCSUBCODE);
$("#markentry_sub_fsubname").val($responce.data.FSUBNAME);
document.getElementById('markentry_sub_fsubname').disabled = 'true';
$("#markentry_stud_section").focus();
break;
case 'batch preparation Dairy':
$("#report_batch_prepation_subject_code").val($responce.data.FCSUBCODE);
$("#report_batch_prepation_subject_name").val($responce.data.FSUBNAME);
$("#report_batch_prepation_from_rage").focus();
break;
case 'saveMarklistStudentWise':
$("#report_marklist_subject_start_from").val($responce.data.FCSUBCODE);
/* $("#report_batch_prepation_subject_name").val($responce.data.FSUBNAME);
$("#report_batch_prepation_from_rage").focus(); */
break;
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_fsubname").val('');
$("#markentry_sub_fssubname").val('');
$("#mark_entry_shortname").val('');
$("#markentry_sub_maxmark").val('');
$("#markentry_sub_final_subcode").focus();
alert($responce.data);
break;
case 'Practical marks misc':
$("#subcode").val('');
$("#subname").val('');
//$("#markentry_sub_fssubname").val('');
$("#batch_sub_maxmark").val('');
//$("#markentry_sub_maxmark").val('');
//$("#markentry_sub_final_subcode").focus();
alert($responce.data);
break;
case 'SaveMarkEntrySubjectwise2':
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_fsubname").val('');
$("#markentry_sub_fssubname").val('');
$("#mark_entry_shortname").val('');
$("#markentry_sub_maxmark").val('');
$("#markentry_sub_final_subcode").focus();
alert($responce.data);
break;
case 'SaveBatchSetup':
$("#batch_sub_final_subcode").val('');
$("#batch_sub_fsubname").val('');
$("#batch_sub_fssubname").val('');
$("#batch_shortname").val('');
$("#batch_sub_maxmark").val('');
$("#batch_sub_final_subcode").focus();
alert($responce.data);
break;
case 'saveDispatchAnswersScript':
alert($responce.data);
$("#dispatch_subcode_"+$remember_text_box_id_at_subcode).val('');
$("#dispatch_subcode_"+$remember_text_box_id_at_subcode).focus();
break;
case 'SaveAbsentEntrySubjectwise':
$("#abs_sub_final_subcode").val('');
$("#abs_sub_fsubname").val('');
$("#abs_sub_fssubname").val('');
$("#abs_shortname").val('');
$("#abs_sub_maxmark").val('');
$("#abs_sub_final_subcode").focus();
alert($responce.data);
break;
case 'SaveAttendanceEntry':
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_fsubname").val('');
$("#markentry_sub_fssubname").val('');
$("#mark_entry_shortname").val('');
$("#markentry_sub_maxmark").val('');
$("#markentry_sub_final_subcode").focus();
alert($responce.data);
break; // batch preparation Dairy
case 'batch preparation Dairy':
$("#report_batch_prepation_subject_code").val('');
$("#report_batch_prepation_subject_name").val('');
$("#report_batch_prepation_subject_code").focus();
alert($responce.data);
break;
case 'saveAttendanceSummary':
$("#"+subjectId).val('');
alert($responce.data);
break;
case 'saveMarklistStudentWise':
$("#report_marklist_subject_start_from").val('');
alert($responce.data);
}
}
}
function GetVivaSubjectDetails()
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"GetVivaSubjectDetails",
data:"degcode="+encodeURIComponent(trim($("#batch_sub_degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#batch_sub_final_subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#batch_sub_Examno").val())),
success: GetVivaSubjectDetailsResponsedata
});
}
function GetVivaSubjectDetailsResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
$("#batch_viva_subject_code").val($responce.data.FVVCODE);
$("#batch_viva_subject_name").val($responce.data.FSUBNAME);
$("#batch_viva_subject_max_marks").val($responce.data.FSMAXMARKS);
}
else
{
$("#batch_viva_subject_code").val('');
$("#batch_viva_subject_name").val('');
$("#batch_viva_subject_max_marks").val('0');
}
}
function GetVivaSubjectDetailsmic()
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"GetVivaSubjectDetails",
data:"degcode="+encodeURIComponent(trim($("#degree_code").val()))+"&subcode="+encodeURIComponent(trim($("#subcode").val()))+"&exam_no="+encodeURIComponent(trim($("#Examno").val())),
success: GetVivaSubjectDetailsResponsedata
});
}
function GetVivaSubjectDetailsResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
$("#batch_viva_subject_code").val($responce.data.FVVCODE);
$("#batch_viva_subject_name").val($responce.data.FSUBNAME);
$("#batch_viva_subject_max_marks").val($responce.data.FSMAXMARKS);
}
else
{
$("#batch_viva_subject_code").val('');
$("#batch_viva_subject_name").val('');
$("#batch_viva_subject_max_marks").val('0');
}
}
function getShortSubjectName()
{
//alert("hi");
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
if((jQuery.trim($("#markentry_sub_final_subcode").val()))!='')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubMarkDetails.demo",
data:"DegCode="+encodeURIComponent(trim($("#markentry_sub_degree_code").val()))+"&Examno="+encodeURIComponent(trim($("#markentry_sub_Examno").val())),
success: getShortSubjectNameResponsedata
});
}
}
}
function getShortSubjectNameResponsedata($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == '0')
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
$("#error_msg").html(" ");
$("#markentry_sub_final_subcode").val($responce.data.fcsubcode);
$("#markentry_sub_fsubname").val($responce.data.fsubname);
$("#markentry_sub_fssubname").val($responce.data.fssubname);
$("#mark_entry_shortname").val($responce.data.fshortname);
$("#markentry_sub_maxmark").val($responce.data.fsmaxmarks);
/* document.getElementById('markentry_sub_fsubname').disabled = 'true';
document.getElementById('markentry_sub_fssubname').disabled = 'true';
document.getElementById('mark_entry_shortname').disabled = 'true'; */
$("#markentry_sub_range").focus();
//getsubjectAppearingTotal();
break;
case 'SaveMarkEntrySubjectwise2':
$("#error_msg").html(" ");
$("#markentry_sub_final_subcode").val($responce.data.fcsubcode);
$("#markentry_sub_fsubname").val($responce.data.fsubname);
$("#markentry_sub_fssubname").val($responce.data.fssubname);
$("#mark_entry_shortname").val($responce.data.fshortname);
$("#markentry_sub_maxmark").val($responce.data.fsmaxmarks);
/* document.getElementById('markentry_sub_fsubname').disabled = 'true';
document.getElementById('markentry_sub_fssubname').disabled = 'true';
document.getElementById('mark_entry_shortname').disabled = 'true'; */
$("#markentry_sub_range").focus();
//getsubjectAppearingTotal();
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'SaveMarkEntrySubjectwise':
alert("Invalid Subject Code");
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_final_subcode").focus();
$("#markentry_sub_fsubname").val("");
$("#markentry_sub_fssubname").val("");
$("#mark_entry_shortname").val("");
$("#markentry_sub_maxmark").val("");
break;
case 'SaveMarkEntrySubjectwise':
alert("Invalid Subject Code");
$("#markentry_sub_final_subcode").val('');
$("#markentry_sub_final_subcode").focus();
$("#markentry_sub_fsubname").val("");
$("#markentry_sub_fssubname").val("");
$("#mark_entry_shortname").val("");
$("#markentry_sub_maxmark").val("");
}
}
}
function getCollegeNames()
{
if((jQuery.trim($("#cds_College_code").val()))!='')
{
$.ajax({
type: "POST",
async:false,
url: $host_url+"getCollegeNames.demo",
data:"coll_code="+encodeURIComponent(trim($("#cds_College_code").val())),
success: enableCollegeStatusNameSuccess
});
}
}
function enableCollegeStatusNameSuccess($responce)
{
$responce = eval('(' + $responce + ')');
if( $responce.error_code == '0')
{
switch(document.getElementById('module_name_for_save').value)
{
case 'saveCollegeDegreeStatus':
$("#cds_College_name").val($responce.data.FCOLLNAME);
$("#error_msg").html(" ");
break;
case 'saveUserSetUpDetails':
$("#user_setup_college_name").val($responce.data.FCOLLNAME);
$("#login_id").val($responce.data.FCOLLCODE);
$("#new_password").val($responce.data.FCOLLCODE);
$("#retype_new_password").val($responce.data.FCOLLCODE);
$("#user_real_name").val("Administrator");
break;
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'college_degree_status_div':
$("#cds_College_name").val($responce.data.FCOLLNAME);
$("#error_msg").html(" ");
break;
case 'saveUserSetUpDetails':
alert("Invalid College Code");
$("#user_setup_college_code").focus();
$("#user_setup_college_name").val("");
break;
}
}
}
function getCategoryNames(id)
{
$.ajax({
type: "POST",
url: $host_url+"getCategoryNames.demo",
data:"id="+id,
success: getCategoryNamesSuccess
});
}
function getCategoryNamesSuccess($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.data.length>0)
{
//document.getElementById($responce.data[0]['id']).options.length = 0;
$op = new Option("Select Category", "");$op.id="";
document.getElementById($responce.data[0]['id']).options.add($op);
for($i=0;$i < $responce.data.length;$i++)
{
$op = new Option($responce.data[$i]['value'], $responce.data[$i]['internal_code']);
$op.id=$responce.data[$i]['internal_code'];//specifying the id for options
document.getElementById($responce.data[0]['id']).options.add($op);
}
}
}
function isRegNoisValid($reg_no,$degree)
{
//$GetElementid=$id;
if($reg_no!='')
{
//alert($Regno);
$.ajax({
type: "POST",
async:false,
data: "Regno="+$reg_no+"°ree="+$degree,
url: $host_url+"isRegNoValid.demo",
success: isRegNoValidResponse
});
}
}
function isRegNoValidResponse($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code==0)
{
switch(document.getElementById('module_name_for_save').value)
{
case 'candidate_list':
$("#error_msg").html(" ");
$("#candidate_list_reg_no").val($responce.data.fregno);
$("#candidate_list_reg_name").val($responce.data.fname);
$("#candidate_list_degree_code").val($responce.data.FDEGREE);
$("#candidate_list_degree_name").val($responce.data.FDESCPN);
displayCandidateEntryRegNoDetails();
PopulateExamTypeListCategory();
break;
case 'IdentifySubjFreshEx':
$("#error_msg").html(" ");
$("#candidate_list_reg_no").val($responce.data.fregno);
$("#candidate_list_reg_name").val($responce.data.fname);
displayCandidateEntryRegNoDetails();
break;
}
}
else
{
switch(document.getElementById('module_name_for_save').value)
{
case 'candidate_list':
$("#error_msg").html(" ");
$("#candidate_list_reg_no").val('');
$("#candidate_list_reg_name").val('');
$("#candidate_list_reg_no").focus();
alert('Invalid Reg No');
hideAllDivs();
break;
case 'IdentifySubjFreshEx':
$("#error_msg").html(" ");
$("#candidate_list_reg_no").val('');
$("#candidate_list_reg_name").val('');
$("#candidate_list_reg_no").focus();
alert('Invalid Reg No');
break;
}
}
}
function getSubDetails(id,icode)
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
$value=trim($("#"+id).val());
if($value != '')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubDetails.demo",
data:"field_id="+id+"&icode="+icode+"&value="+$value+"°ree_code="+$("#student_entry_degree_code").val()+"&exam="+$("#student_entry_exam").val(),
success:getSubDetailsResponse
});
}
break;
case 'Admission Entry reg':
$value=trim($("#"+id).val());
if($value != '')
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubDetails.demo",
data:"field_id="+id+"&icode="+icode+"&value="+$value+"°ree_code="+$("#student_entry_degree_code").val()+"&exam="+$("#student_entry_exam").val(),
success:getSubDetailsResponse
});
}
break;
case 'candidate_list':
$value=trim($("#"+id).val());
if($value != '')
{
window.location.$keyboardSubjectAppearingPopupfieldId=id;
$div_name_split=window.location.$keyboardSubjectAppearingPopupfieldId.split("_");
$exam=$div_name_split[1];
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubDetails.demo",
data:"field_id="+id+"&icode="+icode+"&value="+$value+"°ree_code="+$("#candidate_list_degree_code").val()+"&exam="+$exam,
success:getSubDetailsResponse
});
}
break;
case 'IdentifySubjFreshEx':
$value=trim($("#"+id).val());
if($value != '')
{
window.location.$keyboardSubjectAppearingPopupfieldId=id;
$div_name_split=window.location.$keyboardSubjectAppearingPopupfieldId.split("_");
$exam=$div_name_split[1];
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getSubDetails.demo",
data:"field_id="+id+"&icode="+icode+"&value="+$value+"°ree_code="+$("#candidate_list_degree_code").val()+"&exam="+$exam,
success:getSubDetailsResponse
});
}
break;
}
}
function getSubDetailsResponse($responce)
{
$responce = eval('(' + $responce + ')');
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
if($responce.error_code==0)
{
$("#error_msg").html(" ");
$check_dup=$responce.data.FSUBCODE;
$check_dup_flag=0;
for($m=0;$m<$g_subject_appearing.total_count;$m++)
{
if($m!=$responce.data.icode && ($check_dup==$("#se_sub_code_"+$m).val() ))
$check_dup_flag=1;
}
//alert($check_dup_flag);
if($check_dup_flag==0)
{
consol.log($responce.data.icode);
$("#se_sub_code_"+$responce.data.icode).val($responce.data.FSUBCODE);
$("#se_short_name_"+$responce.data.icode).val($responce.data.FSUBSHORT);
$("#se_sub_name_"+$responce.data.icode).val($responce.data.FSUBNAME);
}
else
{
alert('Sub Code '+$check_dup+' allready Selected');
$("#se_sub_code_"+$responce.data.icode).focus();
$("#se_sub_code_"+$responce.data.icode).val('');
return;
}
}
else
{ alert("Invalid Subject Code");
$("#se_sub_code_"+$responce.data).val('');
$("#se_short_name_"+$responce.data).val('');
$("#se_sub_name_"+$responce.data).val('');
$("#se_sub_code_"+$responce.data).focus();
$("#error_msg").html("Invalid Subject Code");
}
break;
case 'Admission Entry reg':
if($responce.error_code==0)
{
$("#error_msg").html(" ");
$check_dup=$responce.data.FSUBCODE;
$check_dup_flag=0;
/*for($m=0;$m<$g_subject_appearing.total_count;$m++)
{
if($m!=$responce.data.icode && ($check_dup==$("#se_sub_code_"+$m).val() ))
$check_dup_flag=1;
}*/
//alert($check_dup_flag);
if($check_dup_flag==0)
{
$("#se_sub_code_"+$responce.data.icode).val($responce.data.FSUBCODE);
$("#se_short_name_"+$responce.data.icode).val($responce.data.FSUBSHORT);
$("#se_sub_name_"+$responce.data.icode).val($responce.data.FSUBNAME);
}
else
{
alert('Sub Code '+$check_dup+' allready Selected');
$("#se_sub_code_"+$responce.data.icode).focus();
$("#se_sub_code_"+$responce.data.icode).val('');
return;
}
}
else
{ alert("Invalid Subject Code");
$("#se_sub_code_"+$responce.data).val('');
$("#se_short_name_"+$responce.data).val('');
$("#se_sub_name_"+$responce.data).val('');
$("#se_sub_code_"+$responce.data).focus();
$("#error_msg").html("Invalid Subject Code");
}
break;
case 'candidate_list':
$div_name_split=window.location.$keyboardSubjectAppearingPopupfieldId.split("_");
$div_name=$div_name_split[1];
$clicked_subject_id=$div_name_split[5];
$check_dup=$responce.data.FSUBCODE;
$check_dup_flag=0;
$total_count_for_div=$g_total_count_of_each_div['candidate_list_exam_'+$div_name+'_details'];
if($responce.error_code==0)
{
for($m=0;$m<$total_count_for_div;$m++)
{
if($m!=$clicked_subject_id && ($check_dup==$("#exam_"+$div_name+"_ce_sub_code_"+$m).val() || $check_dup==$("#exam_"+$div_name+"_ce_sub_code_"+$m).html()) )
$check_dup_flag=1;
}
if($check_dup_flag==0)
{
$("#exam_"+$div_name+"_ce_sub_code_"+$clicked_subject_id).val($responce.data.FSUBCODE);
$("#exam_"+$div_name+"_ce_short_name_"+$clicked_subject_id).html($responce.data.FSUBSHORT);
$("#exam_"+$div_name+"_ce_desc_"+$clicked_subject_id).html($responce.data.FSUBNAME);
}
else
{
alert('Sub Code '+$check_dup+' allready Selected');
$("#exam_"+$div_name+"_ce_sub_code_"+$clicked_subject_id).focus();
$("#exam_"+$div_name+"_ce_short_name_"+$clicked_subject_id).html("");
$("#exam_"+$div_name+"_ce_desc_"+$clicked_subject_id).html("");
return;
}
}
else
{
alert("Invalid Subject Code");
$("#exam_"+$div_name+"_ce_sub_code_"+$clicked_subject_id).focus();
$("#exam_"+$div_name+"_ce_short_name_"+$clicked_subject_id).html("");
$("#exam_"+$div_name+"_ce_desc_"+$clicked_subject_id).html("");
return;
}
break;
case 'IdentifySubjFreshEx':
$div_name_split=window.location.$keyboardSubjectAppearingPopupfieldId.split("_");
$div_name=$div_name_split[1];
$clicked_subject_id=$div_name_split[5];
$check_dup=$responce.data.FSUBCODE;
$checkIdentfySubj_dup=$check_dup;
$check_dup_flag=0;
$total_count_for_div=$g_total_count_of_each_div['candidate_list_exam_'+$div_name+'_details'];
if($responce.error_code==0)
{
for($m=0;$m<$total_count_for_div;$m++)
{
if($m!=$clicked_subject_id && ($check_dup==$("#exam_"+$div_name+"_ce_sub_code_"+$m).val() || $check_dup==$("#exam_"+$div_name+"_ce_sub_code_"+$m).html()) )
$check_dup_flag=1;
}
if($check_dup_flag==0)
{
$("#exam_"+$div_name+"_ce_sub_code_"+$clicked_subject_id).val($responce.data.FSUBCODE);
$("#exam_"+$div_name+"_ce_short_name_"+$clicked_subject_id).html($responce.data.FSUBSHORT);
$("#exam_"+$div_name+"_ce_desc_"+$clicked_subject_id).html($responce.data.FSUBNAME);
$setSubjectValidate=0;
}
else
{
alert('Sub Code '+$check_dup+' allready Selected');
$("#exam_"+$div_name+"_ce_sub_code_"+$clicked_subject_id).focus();
$("#exam_"+$div_name+"_ce_short_name_"+$clicked_subject_id).html("");
$("#exam_"+$div_name+"_ce_desc_"+$clicked_subject_id).html("");
$setSubjectValidate=-1;
return;
}
}
else
{
alert("Invalid Subject Code");
$("#exam_"+$div_name+"_ce_sub_code_"+$clicked_subject_id).focus();
$("#exam_"+$div_name+"_ce_short_name_"+$clicked_subject_id).html("");
$("#exam_"+$div_name+"_ce_desc_"+$clicked_subject_id).html("");
$setSubjectValidate=-1;
return ;
}
break;
}
}
function validateDateField($value,$id)
{
if(trim($value)!='')
{
if (!isDate($value,'d/M/y'))
{
alert('Please Enter Valid date as dd//mm/yy');
document.getElementById($id).value='';
document.getElementById($id).focus();
return;
}
}
}
function keyboardSubmitMarks(e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
var e = e || window.event;
if(keycode==85 && e.altKey)
{
SubmitMarksMarksSheet();
}
else if(keycode==67 && e.altKey)
{
CancelMarksMarksSheet();
}
else if(keycode==76 && e.altKey)
{
ClearMarksSheet();
}
}
/* Section Popup */
function PopupStudentSection()
{
openStudentSectionDetailsPopup();
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 342);
$(".ui-dialog").css({width:260});
}
|