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.145.43.200
function callMarksEntryReportnew() {
$("#page_main_div").load(
"../html_modules/iaMarksReportnew.html?",
function () {
document.getElementById("display_module_name").innerHTML =
"Progress Report";
document.getElementById("module_name_for_save").value = "Progress Report";
getDefaultHeadFooterLinks("Progress Report New");
$("#all_subject_report").hide();
$("#subjectwise_report").hide();
let options = `<option value="">---Select---</option>`;
options += `<option value="summary">Summary</option>`;
if (window.db === "jssstu") {
$("#marks_tr").hide();
$("#marks").val("100");
} else {
options += `<option value="details">Details</option>`;
}
$("#type_report").html(options);
}
);
// getDegreeAndSem();
}
function getReportTypenew() {
// getDegreeAndSem();
var r_type = $("#r_type").val();
if (r_type == "all_sub") {
$("#all_subject_report").show();
$("#subjectwise_report").hide();
} else if (r_type == "subjectwise") {
$("#all_subject_report").hide();
$("#subjectwise_report").show();
}
getDegreeAndSemTypenew();
}
function getReportPdfOrExcel() {
var report = document.getElementById("r_pdf_excel_type").value;
console.log(report, "jhwdvcjh");
}
function getDegreeAndSemTypenew() {
$.ajax({
type: "GET",
url: $host_url + "getDegreeAndSemType",
success: function (response) {
let res = JSON.parse(response);
// console.log(res.data.length);
// return;
if (res.error_code == 0) {
var degree = `<option>---Select---</option>`;
for (var i = 0; i < res.data.length; i++) {
degree += `<option value='${res.data[i].fdegree}'>${res.data[i].fdegree} - ${res.data[i].fdescpn}</option>`;
}
$("#degree").html(degree);
$("#s_degree").html(degree);
} else {
alert(res.data.msg);
return;
}
},
});
}
function getIaMarksReportnew() {
let degree = $("#degree").val();
let sem = $("#semister").val();
let fromreg = $("#fromreg").val();
let toreg = $("#toreg").val();
let report = $("#r_pdf_excel_type").val();
if (degree == "---Select---" || degree == "") {
alert("Select Degree");
return;
}
if (sem == "---select---" || sem == "" || sem == null) {
alert("Select Exam No.");
return;
}
if (fromreg == "") {
alert("Enter from RegNo.");
return;
}
if (toreg == "") {
alert("Enter To RegNo.");
return;
}
if (report == "") {
alert("Select Report Type");
return;
}
var parameter =
"°ree=" +
degree +
"&sem=" +
sem +
"&fromreg=" +
fromreg +
"&toreg=" +
toreg;
console.log(parameter, "sem");
if (report == "PDF") {
window.open($host_url + "printIaMarksDetnew" + parameter);
} else {
window.open($host_url + "printIaMarksDetnewXl" + parameter);
}
}
function semisterDetnew() {
let degree = $("#degree").val();
$.ajax({
type: "GET",
data: "°ree=" + degree,
url: $host_url + "getSemisterDetails",
data: "°ree=" + degree,
success: function (response) {
let res = JSON.parse(response);
if (res.error_code == 0) {
var sem = `<option>---select---</option>`;
for (var i = 0; i < res.data.length; i++) {
sem += `<option value='${res.data[i].fexamno}'>${res.data[i].fexamno} - ${res.data[i].fexamname}</option>`;
}
$("#semister").html(sem);
} else {
alert(res.data.msg);
return;
}
},
});
}
function getSemisternew() {
let degree = $("#s_degree").val();
$.ajax({
type: "GET",
data: "°ree=" + degree,
url: $host_url + "getSemisterDetails",
data: "°ree=" + degree,
success: function (response) {
let res = JSON.parse(response);
// console.log(res);
// return;
if (res.error_code == 0) {
var sem = `<option>---select---</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);
$("#s_semister").html(sem);
} else {
alert(res.data.msg);
return;
}
},
});
}
function getSubjectnew() {
let degree = $("#s_degree").val();
let semester = $("#s_semister").val();
// console.log($degree);
// return;
$.ajax({
type: "GET",
data: "°ree=" + degree + "&sem=" + semester,
url: $host_url + "getSubjectDetails",
success: function (response) {
let res = JSON.parse(response);
// console.log(res);
// return;
var sub = `<option value="All">All</option>`;
if (res.error_code == 0) {
for (var i = 0; i < res.data.length; i++) {
let text = "";
if (window.db == "jssstu") {
text = res.data[i].fsubshort + " - " + res.data[i].fsubname;
} else {
text = res.data[i].fcsubcode + " - " + res.data[i].fsubname;
}
sub += `<option value='${res.data[i].fcsubcode}'>${text}</option>`;
}
$("#subject").html(sub);
} else {
alert(res.data.msg);
return;
}
},
});
}
function getSectionnew() {
let degree = $("#s_degree").val();
let sem = $("#s_semister").val();
$.ajax({
type: "GET",
data: "°ree=" + degree + "&sem=" + sem,
url: $host_url + "getSectionDetails",
success: function (response) {
let res = JSON.parse(response);
// console.log(res);
// return;
var sec = `<option value="All">All</option>`;
if (res.error_code == 0) {
for (var i = 0; i < res.data.length; i++) {
sec += `<option value='${res.data[i].fsection}'>${res.data[i].fsection}</option>`;
}
$("#section").html(sec);
} else {
alert(response.data.msg);
return;
}
},
});
}
function printMarkListSubWisenew() {
let degree = $("#s_degree").val();
let sem = $("#s_semister").val();
let subject = $("#subject").val();
let section = $("#section").val();
let fregno = $("#fregno").val();
let tregno = $("#tregno").val();
let marks = $("#marks").val();
let type = $("#type_report").val();
if (degree == "" || degree == "---Select---") {
alert("please Select Degree");
return;
}
if (sem == "" || sem == "---select---") {
alert("please Select examno");
return;
}
if (marks == "") {
alert("please enter marks");
return;
}
let parameter =
"°ree=" +
degree +
"&sem=" +
sem +
"&subject=" +
subject +
"§ion=" +
section +
"&fregno=" +
fregno +
"&tregno=" +
tregno +
"&marks=" +
marks +
"_blank";
let api = "";
if (window.db === "jssstu") {
api = "printMarkListSubWiseJssstu";
} else {
api = "printMarkListSubWisenew";
}
if (type == "summary") {
window.open($host_url + api + parameter);
} else if (type == "details") {
window.open($host_url + "printMarkListDetailsWisenew" + parameter);
}
}
|