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


Current Path : /proc/thread-self/root/var/www/oasis/js/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/js/examappfeereport.js

function callExamFeeApplication() {
  $("#page_main_div").load(
    "../html_modules/examappfeereport.html",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Exam Application Fee Report";
      document.getElementById("module_name_for_save").value =
        "Exam Application Fee Report";
      getDefaultHeadFooterLinks("Exam Application Fee Report");
      if (db == "jssu") {
        $("#semTitle").html("Sem / Year");
      } else {
        $("#semTitle").html("Semester");
      }
      // console.log(db);
      loadStudentAppFeeDeggrp();
    }
  );
}

function loadStudentAppFeeDeggrp() {
  $.ajax({
    type: "GET",
    url: $host_url + "studentAppFeeDeggrp",
    success: function (res) {
      let response = JSON.parse(res);
      console.log(response);
      let options = "";
      if (response.error_code === 0) {
        options += `<option>---select---</option>`;
        for (let i in response.data) {
          options += `<option value='${response.data[i].fdeggrp}'>${response.data[i].fdescpn}</option>`;
          i++;
        }
        $("#deggrp").html(options);
      } else {
        alert(response.data.msg);
        return;
      }
    },
  });
}

function getStudAppFeeDegree() {
  let deggrp = $("#deggrp").val();
  $.ajax({
    type: "GET",
    url: $host_url + "getStudAppFeeDegree",
    data: "deggrp=" + deggrp,
    success: function (res) {
      const response = JSON.parse(res);
      let options = "";
      if (response.error_code === 0) {
        options += `<option>---select---</option>`;
        for (let i in response.data) {
          options += `<option value='${response.data[i].fdegree}'>${response.data[i].fdescpn}</option>`;
          i++;
        }
        $("#degree").html(options);
      } else {
        alert(response.data.msg);
        return;
      }
    },
  });
}

function getStudentAppFeeReport() {
  let deggrp = $("#deggrp").val();
  let degree = $("#degree").val();
  let sem = $("#sem").val();

  if (deggrp === "---select---") {
    alert("select degree group");
    return;
  }
  if (degree === "---select---") {
    alert("select degree");
    return;
  }
  window.open(
    $host_url +
      "getStudentAppFeeReport" +
      "&deggrp=" +
      deggrp +
      "&degree=" +
      degree +
      "&sem=" +
      sem +
      "&db=" +
      db
  );
}

function getSemDet() {
  let deggrp = $("#deggrp").val();
  let degree = $("#degree").val();

  $.ajax({
    type: "GET",
    url: $host_url + "getSemDet",
    data: "deggrp=" + deggrp + "&degree=" + degree,
    success: function (res) {
      const response = JSON.parse(res);
      let options = "";
      if (response.error_code === 0) {
        options += `<option>---select---</option>`;
        options += `<option value='All'>All</option>`;
        for (let i in response.data) {
          options += `<option value='${response.data[i].fexamno}'>${response.data[i].fexamno}</option>`;
          i++;
        }
        $("#sem").html(options);
      } else {
        alert(response.data.msg);
        return;
      }
    },
  });
}