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 : 18.225.54.147


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

function callIASummaryReport() {
  $("#page_main_div").load(
    "../html_modules/iaSummaryReport.html?",
    function () {
      document.getElementById("display_module_name").innerHTML = "IA Report";
      document.getElementById("module_name_for_save").value =
        "IA Summary Report";
      getDefaultHeadFooterLinks("IA Summary Report");
    }
  );
  getIADegrees();
}

function getIADegrees() {
  $.ajax({
    type: "GET",
    url: $host_url + "getDegreeAndSemType",
    success: function (response) {
      let res = JSON.parse(response);
      if (res.error_code == 0) {
        var degree = `<option>All</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 GenerateIASumReport() {
  let degree = $("#degree").val();
  let sem = $("#semister").val();
  let fromreg = $("#fromreg").val();
  let toreg = $("#toreg").val();
  let r_type = $("#r_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;
  }

  var parameter =
    "&degree=" +
    degree +
    "&sem=" +
    sem +
    "&fromreg=" +
    fromreg +
    "&toreg=" +
    toreg;

  if (r_type == "attlist") {
    window.open($host_url + "printAttShotageList" + parameter);
  } else if (r_type == "shortlist") {
    window.open($host_url + "printAttCISShotageList" + parameter);
  }
}

function getIASemisterDet() {
  let degree = $("#degree").val();
  if (degree == "All") return;
  $.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>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;
      }
    },
  });
}