Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.222.110.231
var gdegree = "";
var gappfrom = "";
var gappto = "";
var gstatus = "";
var gentrytype = "";
var gexamno = "";
var alldeg = [];
/*
chnged address field updation
*/
function CallEnableRvRtReport() {
$("#page_main_div").load(
"../html_modules/rv_rt_report.html?v=22092018",
function () {
document.getElementById("display_module_name").innerHTML = "RV/RT Report";
document.getElementById("module_name_for_save").value =
"ReportCandidateList";
getDefaultHeadFooterLinks("RV/RT Report");
// $(".ui-tabs .ui-tabs-panel").css("padding", "0px");
// $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px");
loadDeggrp();
getDegree();
}
);
}
function loadDeggrp() {
$.ajax({
type: "GET",
url: $host_url + "getRVRTDeggrp",
success: function (res) {
var response = JSON.parse(res);
if (response.error_code == 0) {
var deggrp = "";
deggrp += `<option value='All'>All</option>`;
for (var i = 0; i < response.data.length; i++) {
deggrp += `<option value="${response.data[i].fdeggrp}">${response.data[i].fdeggrp} - ${response.data[i].fdesc}</option>`;
}
$("#deggrp").html(deggrp);
} else {
alert(response.data.msg);
return;
}
},
});
}
// function loadDegree() {
// $.ajax({
// type: "GET",
// url: $host_url + "getBatchWisePracticalDegree",
// success: function (res) {
// var response = JSON.parse(res);
// if (response.error_code == 0) {
// var degree = "";
// degree += `<option>---select---</option>`;
// for (var i = 0; i < response.data.length; i++) {
// degree += `<option value="${response.data[i].fdegree}">${response.data[i].fdegree} - ${response.data[i].fdescpn}</option>`;
// }
// $("#report_cl_degree_code").html(degree);
// } else {
// alert(response.data.data);
// return;
// }
// },
// });
// }
function loadAdmDegree() {
$.ajax({
type: "POST",
async: false,
url: $host_url + "loaddegree",
success: loaddegreeResponseAdm,
});
}
function loaddegreeResponseAdm($responceCat) {
$responceCat = eval("(" + $responceCat + ")");
if ($responceCat.error_code == 0) {
var optionsAsString = "<option value=''>--Select Degree--</option>";
for (var i = 0; i < $responceCat.data.length; i++) {
alldeg[i] = $responceCat.data[i].internal_code;
optionsAsString +=
"<option value='" +
$responceCat.data[i].internal_code +
"'>" +
$responceCat.data[i].internal_code +
"-" +
$responceCat.data[i].value +
"</option>";
}
$("#ttd_degree").append(optionsAsString);
$("#report_cl_degree_code").html(optionsAsString);
}
}
function loadexamno_ttd() {
var ttd_degree = $("#ttd_degree").val();
// $("#ttd_examno").html() = '';
// document.getElementById("ttd_examno") = null;
// $('#ttd_timetable').hide();
var parameters = `°ree=${$("#ttd_degree").val()}`;
$.ajax({
type: "POST",
data: parameters,
url: $host_url + "loadexamno_ttd",
success: loadexamno_ttdResponce,
});
}
function loadexamno_ttdResponce(responce) {
responce = eval("(" + responce + ")");
$.unblockUI();
console.log(responce);
var optionsAsString = "";
if (responce.error_code == 0) {
var optionsAsString = "<option value=''>--All--</option>";
for (var i = 0; i < responce.data.length; i++) {
optionsAsString +=
"<option value='" +
responce.data[i].fexamno +
"'>" +
responce.data[i].fexamname +
"</option>";
}
console.log(optionsAsString);
$("#ttd_examno").html(optionsAsString);
}
}
function DisplayTimetableDegreewise() {
var ttd_degree = $("#ttd_degree").val();
var ttd_examno = $("#ttd_examno").val();
if (empty(ttd_degree)) {
alert("Please Select Degree");
$("#ttd_degree").focus();
return false;
}
gdegree = ttd_degree;
gexamno = ttd_examno;
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>",
});
var parameters = `°ree=${$("#ttd_degree").val()}&examno=${$(
"#ttd_examno"
).val()}&alldeg=${alldeg}`;
console.log(parameters);
$.ajax({
type: "POST",
data: parameters,
url: $host_url + "DisplayTimetableDegreewise",
success: DisplayTimetableDegreewiseResponce,
});
}
function DisplayTimetableDegreewiseResponce(responce) {
responce = eval("(" + responce + ")");
$.unblockUI();
$("#ttd_timetable").html("");
$("#ttd_timetable").html(responce.data["html"]);
}
function GenerateRVRTreport() {
var degree = $("#report_cl_degree_code").val();
var regfrom = $("#report_cl_regno_start_from").val();
var regto = $("#report_cl_regno_end_to").val();
var deggrp = $("#deggrp").val();
var parameters =
"°grp=" +
deggrp +
"°ree=" +
degree +
"®from=" +
regfrom +
"®to=" +
regto;
window.open($host_url + "getRvPcDetailedReport" + parameters);
}
function getDegree() {
var deggrp = $("#deggrp").val();
$.ajax({
type: "GET",
url: $host_url + "getRVRTDegree°grp=" + deggrp,
success: function (res) {
var response = JSON.parse(res);
if (response.error_code == 0) {
var degree = "";
degree += `<option value='All'>All</option>`;
for (var i = 0; i < response.data.length; i++) {
degree += `<option value="${response.data[i].fdegree}">${response.data[i].fdegree} - ${response.data[i].fdesc}</option>`;
}
$("#report_cl_degree_code").html(degree);
} else {
alert(response.data.msg);
$("#report_cl_degree_code").html("");
return;
}
},
});
}
|