0xV3NOMx
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.23.102.79


Current Path : /var/www/oasis/js/
Upload File :
Current File : /var/www/oasis/js/iamarks.js

function callMarksEntryIAReport() {
  $("#page_main_div").load(
    "../html_modules/marksEntryIAReport.html?",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Progress Report";
      document.getElementById("module_name_for_save").value = "Progress Report";
      getDefaultHeadFooterLinks("Progress Report");
    }
  );
  getDegreeAndSemType();
}

function getDegreeAndSemType() {
  $.ajax({
    type: "GET",
    url: $host_url + "getDegreeAndSemType",
    success: function (response) {
      let res = JSON.parse(response);
      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].fdescpn}'>${res.data[i].fdegree} - ${res.data[i].fdescpn}</option>`;
        }
        $("#degree").html(degree);
        $("#s_degree").html(degree);
      } else {
        alert(res.data.msg);
        return;
      }
    },
  });
}

function getSemisterDetails() {
  let degree = $("#degree").val();
  $.ajax({
    type: "GET",
    data: "&degree=" + degree,
    url: $host_url + "getSemisterDetails",
    data: "&degree=" + 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].fexamname}'>${res.data[i].fexamno} - ${res.data[i].fexamname}</option>`;
        }
        $("#semister").html(sem);
      } else {
        alert(res.data.msg);
        return;
      }
    },
  });
}

function printIaMarksReport() {
  let degree = $("#degree").val();
  let sem = $("#semister").val();
  let fromreg = $("#fromreg").val();
  let toreg = $("#toreg").val();

  if (degree == "---Select---") {
    alert("Select Degree");
    return;
  }
  if (sem == "---select---") {
    alert("Select Exam No.");
    return;
  }
  if (fromreg == "") {
    alert("Enter from RegNo.");
    return;
  }
  if (toreg == "") {
    alert("Enter To RegNo.");
    return;
  }
  var parameter =
    "&degree=" +
    degree +
    "&sem=" +
    sem +
    "&fromreg=" +
    fromreg +
    "&toreg=" +
    toreg;

  window.open($host_url + "printIaMarksDet" + parameter);
}