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.142.42
function openDegreeDetailsPopup()
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
DegreePopHtml('FCADSTATUS');
break;
case 'candidate_list':
DegreePopHtml('FCCLSTATUS');
break;
case 'SaveMarkEntrySubjectwise':
DegreePopHtml('FCMESTATUS');
break;
case 'SaveBatchSetup':
DegreePopHtml('FCPRSTATUS');
break;
case 'SaveAttendanceEntry':
DegreePopHtml('FCMESTATUS');
break;
case 'saveAttendanceSummary':
DegreePopHtml('FCMESTATUS');
break;
default:
DegreePopHtml('');
break;
}
}
var $g_ref_data_arr='';
$host_url= getCookie('host_url');
$image_path= getCookie('image_path');
function DegreePopHtml($module)
{
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 272);
$(".ui-dialog").css({width:510});
$('#ui-dialog-title-dialog').html("Degree Details");
$main="<table id='degree_grid' class='scroll' ondblclick='selectDegreeCode();'></table> <div id='sub_grid_div3' class='scroll' style='text-align:center;'></div>";
document.getElementById('dialog').innerHTML=$main;
var degree =jQuery("#degree_grid").jqGrid(
{
url:$host_url+'degreeDetailsPopup.demo'+"&type="+$module,
datatype: "json",
colNames:['Code','Description'],
colModel:[{name:'FDEGREE',index:'FDEGREE', width:40 },{name:'FDESCPN',index:'FDESCPN', width:100 }],
rowNum:100,
rowList:[50,100,150,200],
imgpath:$image_path,
pager: jQuery('#sub_grid_div3'),
sortname: 'FDESCPN',
height:'169',
width:'507',
viewrecords: true,
sortorder: 'asc',
multiselect: false,
cellEdit: true,
//forceFit : true,
//cellsubmit: 'clientArray',
addCaption: "Add Recordddd"
}
).navGrid('#sub_grid_div3',{edit:false,add:false,del:false,search:false},{},{},{},{multipleSearch:true}).
navButtonAdd('#sub_grid_div3',{caption:"",
buttonicon :'ui-icon-search', onClickButton:function(){degree[0].toggleToolbar() } }).
navButtonAdd('#sub_grid_div3',{caption:"Select", onClickButton:function()
{
selectDegreeCode();
}
});
degree.filterToolbar();
$("#gs_FDEGREE").focus();
$('.ui-search-toolbar').bind('keydown',function(evt)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==40)
jQuery('#degree_grid').editCell(0,0,false);
/* if(kC==39)
$('#'+evt.target.id).focusNextInputField();
if(kC==37)
$('#'+evt.target.id).focusPreviousInputField(); */
} );
}
function selectDegreeCode()
{
var id=jQuery("#degree_grid").getGridParam('selrow');
if( id!=null )
{
$.ajax({
type: "POST",
async:false,
data: "degree_code="+id,
url: $host_url+"getdegreeNames.demo",
success: PopulateDegreeCodeResponse
});
$('#dialog').dialog("close");
}
else
{
alert("Please select row");
}
return;
}
function PopulateDegreeCodeResponse($responce)
{
$responce = eval('(' + $responce + ')');
if($responce.error_code == 0)
{
switch(document.getElementById('module_name_for_save').value)
{
case 'StudentEntry':
if($("#student_entry_degree_code").length)
{
document.getElementById('student_entry_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('student_entry_degree_name').value = $responce.data['FDESCPN'];
chkStudentEditAdd();
if(getCookie("FUNIVCODE") == '005')
getHonoursNames($responce.data['FDEGREE']);
else if(getCookie("FUNIVCODE") == '026')
GetCombination($responce.data['FDEGREE']);
else
getsubjectAppearingTotal();
if((document.getElementById('is_add_edit').value)=='Edit')
$("#student_entry_slno").focus();
else
$("#student_entry_sub_degree_code").focus();
}
break;
case 'IdentifyTransactions':
document.getElementById('it_degree_code').value = $responce.data['FDEGREE'];
//document.getElementById('it_degree_name').value = $responce.data['FDESCPN'];
break;
case 'ReportCandidateList':
document.getElementById('report_cl_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('report_cl_degree_name').value = $responce.data['FDESCPN'];
break;
case 'batch preparation Dairy':
document.getElementById('report_batch_prepation_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('report_batch_prepation_degree_name').value = $responce.data['FDESCPN'];
break;
case 'saveCollegeDegreeStatus':
document.getElementById('cds_Degree_code').value = $responce.data['FDEGREE'];
document.getElementById('cds_Degree_name').value = $responce.data['FDESCPN'];
getCollegeDegreeStatus();
break;
case 'Practical marks misc':
document.getElementById('degree_code').value = $responce.data['FDEGREE'];
document.getElementById('degree_name').value = $responce.data['FDESCPN'];
break;
case 'SaveAbsentEntrySubjectwise':
document.getElementById('abs_entry_sub_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('abs_sub_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('abs_sub_Examno').focus();
break;
case 'SaveMarkEntrySubjectwise':
document.getElementById('markentry_sub_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('markentry_sub_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('markentry_sub_Examno').focus();
break;
case 'SaveMarkEntrySubjectwise2':
document.getElementById('markentry_sub_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('markentry_sub_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('markentry_sub_Examno').focus();
break;
case 'SaveMarkEntryStudentwise':
document.getElementById('markentry_stu_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('markentry_stu_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('markentry_stu_Examno').focus();
break;
case 'candidate_list':
document.getElementById('candidate_list_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('candidate_list_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('candidate_list_reg_no').focus();
break;
case 'freezeModuleAtUniversityOrCollege':
$("#fmauc_degree_code").val($responce.data.FDEGREE);
$("#fmauc_degree_code_degree_name").val($responce.data.FDESCPN);
break;
case 'freezeModuleAtAdminCollegeSubject':
$("#fmacas_degree_code").val($responce.data.FDEGREE);
$("#fmacas_degree_name").val($responce.data.FDESCPN);
break;
case 'SavePracticalEntryFreezing':
$("#fmacas_degree_code").val($responce.data.FDEGREE);
$("#fmacas_degree_name").val($responce.data.FDESCPN);
document.getElementById('fmacas_sub_Examno').focus();
break;
case 'FreezeAdClMe':
$("#adclme_degree_code").val($responce.data.FDEGREE);
getAllAdClMeDegreeCode();
break;
case 'saveSubjectListAdmCl':
$("#report_sublist_adcl_degree_code").val($responce.data.FDEGREE);
$("#report_sublist_adcl_degree_name").val($responce.data.FDESCPN);
//alert('calling');
document.getElementById('report_sublist_adcl_Examno_start_from').focus();
break;
case 'saveSubjectListGeneral':
$("#report_sublist_general_degree_code").val($responce.data.FDEGREE);
$("#report_sublist_general_degree_name").val($responce.data.FDESCPN);
document.getElementById('report_exam_no_start_from').focus();
break;
case 'saveMarklistSubjectWise':
$("#report_marklist_subject_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_subject_degree_name").val($responce.data.FDESCPN);
break;
case 'saveMarklistStudentWise':
$("#report_marklist_student_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_student_degree_name").val($responce.data.FDESCPN);
break;
case 'saveRevaluation':
$("#revalution_degree_code").val($responce.data.FDEGREE);
$("#revalution_degree_name").val($responce.data.FDESCPN);
break;
case 'SaveRevaluationReport':
$("#report_revaluation_degree_code").val($responce.data.FDEGREE);
$("#report_revaluation_degree_name").val($responce.data.FDESCPN);
break;
case 'saveDatewar':
if($g_focus_element=='report_marklist_subject_degree_code')
{
$("#report_marklist_subject_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_subject_degree_name").val($responce.data.FDESCPN);
}
else
{
$("#report_marklist_subject_to_degree_code").val($responce.data.FDEGREE);
$("#report_marklist_subject_from_degree_name").val($responce.data.FDESCPN);
}
break;
case 'ReportAdmissionList':
$("#report_degree_code").val($responce.data.FDEGREE);
$("#report_degree_name").val($responce.data.FDESCPN);
break;
case 'ReportAdmissionList':
$("#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 'saveDispatchAnswersScript':
if($g_dispatch_popup==1)
{
$Textbox = document.getElementsByName("dispatch_ans_degree");
$NumTextBox = $Textbox.length;
$("#dispatch_degree_"+$NumTextBox).val($responce.data.FDEGREE);
document.getElementById('dispatch_exam_'+$NumTextBox).focus();
}
else
{
$("#dispatch_degree_1").val($responce.data.FDEGREE);
document.getElementById('dispatch_degree_1').focus();
}
break;
case 'saveDailyReport':
$id_daliy = window.location.g_daliy_id;
//$("#report_drpt_degree_code_start").val($responce.data.FDEGREE);
document.getElementById($id_daliy).value = $responce.data.FDEGREE;
break;
case 'saveAdmissionTicket':
$("#report_admission_ticket_degree_code").val($responce.data.FDEGREE);
$("#report_admission_ticket_degree_name").val($responce.data.FDESCPN);
break;
case 'SaveBatchSetup':
$("#batch_sub_degree_code").val($responce.data.FDEGREE);
$("#batch_sub_degree_name").val($responce.data.FDESCPN);
document.getElementById('batch_sub_Examno').focus();
break;
case 'Upload Photo':
document.getElementById('degree_code').value = $responce.data['FDEGREE'];
document.getElementById('degree_name').value = $responce.data['FDESCPN'];
break;
case 'IdentifySubjFreshEx':
document.getElementById('candidate_list_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('candidate_list_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('fresh_Examno').focus();
break;
case 'saveUserSubjIdentfy':
document.getElementById('user_subj_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('user_subj_degree_name').value = $responce.data['FDESCPN'];
break;
case 'Download Photo':
document.getElementById('degree_code').value = $responce.data['FDEGREE'];
document.getElementById('degree_name').value = $responce.data['FDESCPN'];
break;
case 'SaveAttendanceEntry':
document.getElementById('markentry_sub_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('markentry_sub_degree_name').value = $responce.data['FDESCPN'];
break;
case 'saveAttendanceSummary':
document.getElementById('report_marklist_subject_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('report_marklist_subject_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 'Marks List (Elements)':
document.getElementById('report_marklist_subject_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('report_marklist_subject_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('report_marklist_subject_Examno').focus();
break;
case 'I.A Marks Pending':
document.getElementById('report_marklist_student_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('report_marklist_student_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('report_marklist_student_Examno').focus();
break;
case 'Practical Daily Report':
document.getElementById('report_topsheet_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('report_topsheet_degree_name').value = $responce.data['FDESCPN'];
document.getElementById('report_topsheet_Examno').focus();
break;
case 'addmistion degree':
document.getElementById('degree_code').value = $responce.data['FDEGREE'];
document.getElementById('degree_name').value = $responce.data['FDESCPN'];
//document.getElementById('report_topsheet_Examno').focus();
break;
case 'iaemptyformat':
document.getElementById('ia_empty_degree_code').value = $responce.data['FDEGREE'];
document.getElementById('ia_empty_degree_name').value = $responce.data['FDESCPN'];
//document.getElementById('report_topsheet_Examno').focus();
break;
}
}
}
function Callpopup()
{
//var charCode = (evt.which) ? evt.which : event.keyCode;
alert("calling");
//if(charCode=='13')
selectDegreeCode();
}
/*document.onkeydown = function(evt){
var charCode = (evt.which) ? evt.which : event.keyCode;
alert("calling");
if(charCode=='13')
selectDegreeCode()
}*/
|