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.133.156.254


Current Path : /var/www/oasis/js/Report/
Upload File :
Current File : /var/www/oasis/js/Report/report_candidate_list.js

/*
 * CANDIDATE LIST PRINTING
 * PROGRAMED BY NAVEEN
 * DATE: 16/04/09
 * TIME: 10:15 AM
 *
 */
function LoadCandidateListPrinting() {
  $("#page_main_div").load(
    "../html_modules/candidate_list_printing.html",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Candidate List Report";
      document.getElementById("module_name_for_save").value =
        "ReportCandidateList";
      getDefaultHeadFooterLinks("Candidate List Printing");
      $("#report_cl_degree_code").val("");
      $("#report_degree_name").val("");
      $("#report_cl_regno_start_from").val();
    }
  );
  loadDegreeGeneral();
}

function loadDegreeGeneral() {
  $.ajax({
    type: "GET",
    url: $host_url + "getBatchWisePracticalDegree",
    success: function (res) {
      var response = JSON.parse(res);
      if (response.error_code == 0) {
        var degree = "";
        degree += `<option>---select---</option>`;
        for (var i = 0; i < response.data.length; i++) {
          degree += `<option value="${response.data[i].fdegree}">${response.data[i].fdegree} - ${response.data[i].fdescpn}</option>`;
        }
        $("#report_cl_degree_code").html(degree);
      } else {
        alert(response.data.data);
        return;
      }
    },
  });
}

function GenerateCandidateListReport() {
  if (trim($("#report_cl_degree_code").val()) == "") {
    alert("Please Enter Degree Code!!");
    $("#report_cl_degree_code").focus();
    return;
  }

  if (document.getElementById("report_cl_subcode").checked) {
    $search_field = "sub.FSUBCODE";
  }
  if (document.getElementById("report_cl_shortname").checked) {
    $search_field = "sub.FSUBSHORT";
  }

  window.open(
    $host_url +
      "generateCandidateListReport.demo&degree_code=" +
      trim($("#report_cl_degree_code").val()) +
      "&streg=" +
      trim($("#report_cl_regno_start_from").val()) +
      "&edreg=" +
      trim($("#report_cl_regno_end_to").val()) +
      "&search_field=" +
      $search_field
  );
}

function LoadCollegeWiseStudentListPrinting() {
  $("#page_main_div").load(
    "../html_modules/collegeWiseStudent_list_printing.html",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "College wise Student List Report";
      document.getElementById("module_name_for_save").value =
        "ReportCandidateList";
      getDefaultHeadFooterLinks("Collegewise Student List");
      $("#report_cl_degree_code").val("");
      $("#report_degree_name").val("");
      $("#report_cl_regno_start_from").val();
    }
  );
  loadDegreeGeneral();
}

function GenerateCollegeWiseStudListReport() {
  if (trim($("#report_cl_degree_code").val()) == "") {
    alert("Please Enter Degree Code!!");
    $("#report_cl_degree_code").focus();
    return;
  }

  window.open(
    $host_url +
      "generateCollegeWiseStudListReport.demo&degree_code=" +
      trim($("#report_cl_degree_code").val()) +
      "&streg=" +
      trim($("#report_cl_regno_start_from").val()) +
      "&edreg=" +
      trim($("#report_cl_regno_end_to").val())
  );
}