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.220.13.15
Current Path : /var/www/oasis/js/ |
| Current File : /var/www/oasis/js/qpSummaryReport.js |
function callQPSummaryReport() {
$("#page_main_div").load(
"../html_modules/qpSummaryReport.html?",
function () {
document.getElementById("display_module_name").innerHTML =
"QP Summary Report";
document.getElementById("module_name_for_save").value =
"QP Summary Report";
getDefaultHeadFooterLinks("QP Summary Report");
}
);
}
function getIASemisterDet() {
let degree = $("#degree").val();
if (degree == "All") return;
$.ajax({
type: "GET",
data: "°ree=" + degree,
url: $host_url + "getSemisterDetails",
success: function (response) {
let res = JSON.parse(response);
if (res.error_code == 0) {
var sem = `<option>All</option>`;
for (var i = 0; i < res.data.length; i++) {
sem += `<option value='${res.data[i].fexamno} - ${res.data[i].fexamname}'>${res.data[i].fexamno} - ${res.data[i].fexamname}</option>`;
}
$("#semister").html(sem);
} else {
alert(res.data.msg);
return;
}
},
});
}
function viewQPSummary() {
let date = $("#frm_date").val();
$.ajax({
type: "GET",
data: "&date=" + date,
url: $host_url + "getQPSummary",
success: function (response) {
let res = JSON.parse(response);
console.log(res);
return;
var tableDate = "";
var sl = 0;
tableDate += `<table>
<table head>
<th>Sl No.</th>
<th>QP Code</th>
<th>Subject</th>
<th>Session</th>
<th>Count</th>
<th>Additional QP</th>
</table head>`;
for (var i = 0; i < res.data.length; i++) {
tableDate += `<table body>
<td>${sl}</td>
<td>${res.data[i].fqpcode1}</td>
<td>${res.data[i].fsubname}</td>
<td>${res.data[i].freasoncd}</td>
<td>${res.data[i].cnt}</td>
<td></td>`;
}
},
});
}
|