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


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

function LoadAdmissionListing() {
  $("#page_main_div").load(
    "../../html_modules/admission_list.html?v=03102018",
    function() {
      $("#admstatus").hide();
      document.getElementById("display_module_name").innerHTML =
        "Admission List Report";
      document.getElementById("module_name_for_save").value =
        "ReportAdmissionList";
      $("#report_degree_code").val("");
      $("#report_degree_name").val("");
      getDefaultHeadFooterLinks("Admission Listing");
      loadAdmListDegree();
    }
  );
}

function loadAdmListDegree() {
  $.ajax({
    type: "POST",
    async: false,
    url: $host_url + "loaddegree",
    success: loaddegreeResponseAdmList
  });
}

function loaddegreeResponseAdmList($responceCat) {
  $responceCat = eval("(" + $responceCat + ")");
  if ($responceCat.error_code == 0) {
    var optionsAsString = "<option value=''>--Select Degree--</option>";
    for (var i = 0; i < $responceCat.data.length; i++) {
      optionsAsString +=
        "<option value='" +
        $responceCat.data[i].internal_code +
        "'>" +
        $responceCat.data[i].internal_code +
        "-" +
        $responceCat.data[i].value +
        "</option>";
    }
    $("#report_degree_code").append(optionsAsString);
  }
}

function GenerateAdmissionReport() {
  var report_type = $("#type").val();
  var parameters = "";
  if (trim($("#type").val()) == "") {
    alert("Please Select Report Type");
    $("#type").focus();
    return;
  }

  if (report_type == "bdc") {
    if (trim($("#report_degree_code").val()) == "") {
      alert("Please Select Valid Degree Code..!");
      $("#report_degree_code").focus();
      return;
    }
    parameters = "&degree_code=" + trim($("#report_degree_code").val());
    window.location.href = $host_url + "PrintBasicDataColl.demo" + parameters;
    return;
  } else if (report_type == "bdcs") {
    if (trim($("#faculty").val()) == "") {
      alert("Please Select Faculty..!");
      $("#report_degree_code").focus();
      return;
    }
    parameters = "&Faculty=" + trim($("#faculty").val());
    window.location.href = $host_url + "printBasicDataSum.demo" + parameters;
    return;
  } else if (
    report_type == "rgsfp" ||
    report_type == "rgsad" ||
    report_type == "rgsap" ||
    report_type == "rgsal"
  ) {
    if (trim($("#report_degree_code").val()) == "") {
      alert("Please Select Valid Degree Code..!");
      $("#report_degree_code").focus();
      return;
    } else if (trim($("#appfrom").val()) == "") {
      alert("Please Enter Application from");
      $("#appfrom").focus();
      return;
    } else if (trim($("#appto").val()) == "") {
      alert("Please Enter Application to");
      $("#appto").focus();
      return;
    }
    parameters =
      "&degree_code=" +
      trim($("#report_degree_code").val()) +
      "&appfrom=" +
      trim($("#appfrom").val()) +
      "&appto=" +
      trim($("#appto").val());
    window.location.href =
      $host_url +
      "PrintRegStudList.demo" +
      parameters +
      "&reporttype=" +
      $("#type").val();
    return;
  } else if (report_type == "adml") {
    if (trim($("#report_degree_code").val()) == "") {
      alert("Please Select Valid Degree Code..!");
      $("#report_degree_code").focus();
      return;
    } else if (trim($("#appfrom").val()) == "") {
      alert("Please Enter Application from");
      $("#appfrom").focus();
      return;
    } else if (trim($("#appto").val()) == "") {
      alert("Please Enter Application to");
      $("#appto").focus();
      return;
    }
    var parameters =
      "&degree_code=" +
      trim($("#report_degree_code").val()) +
      "&exam_no=A" +
      "&status=" +
      trim($("#status").val()) +
      "&appfrom=" +
      trim($("#appfrom").val()) +
      "&appto=" +
      trim($("#appto").val());
    window.location.href =
      $host_url + "generateAdmissionReport.demo" + parameters;
  } else if (trim($("#type").val()) == "adli") {
    var parameters =
      "&degree_code=" +
      trim($("#report_degree_code").val()) +
      "&exam_no=" +
      trim($("#year").val()) +
      "&appfrom=" +
      trim($("#appfrom").val()) +
      "&appto=" +
      trim($("#appto").val());
    window.location.href = $host_url + "generateadmlist.demo" + parameters;
  }

  /*if(trim($("#appfrom").val()) == '' )
	{
		alert('Please Enter Application from');
		$("#appfrom").focus();
		return;
	}
	else if(trim($("#appto").val()) == '' )
	{
		alert('Please Enter Application to');
		$("#appto").focus();
		return;
	}
	else if(trim($("#type").val()) == '' )
	{
		alert('Please Select Report Type');
		$("#type").focus();
		return;
	}
	else if(trim($("#status").val()) == '' && trim($("#type").val()) !='admp')
	{
		alert('Please Select Application status');
		$("#status").focus();
		return;
	}
	
	var parameters = "&degree_code="+trim(($("#report_degree_code").val()))+"&exam_no=A"+"&status="+trim($("#status").val())+"&regstatus="+trim($("#regstatus").val())+"&appfrom="+trim($("#appfrom").val())+"&appto="+trim($("#appto").val());
	
	if(trim($("#type").val()) =='adml')
		window.location.href = $host_url+"generateAdmissionReport.demo"+parameters; 
	else if(trim($("#type").val()) =='admp')
		window.location.href = $host_url+"PrintRegStudList.demo"+parameters+"&reporttype=summary";
	else if(trim($("#type").val()) =='adcb')
		window.location.href = $host_url+"PrintCombinationDeatils.demo"+parameters+"&reporttype=summary";
	else if(trim($("#type").val()) =='adsu')
		window.location.href = $host_url+"PrintAdmissionSummary.demo"+parameters+"&reporttype=summary";
*/
}

function showstatusadm() {
  // $('#admstatus').show();
  $("#hfaculty").hide();
  $("#hdegree").show();
  var type = $("#type").val();

  if (type == "bdc") {
    $("#admstatus").hide();
    $("#appRange").hide();
  } else if (type == "bdcs") {
    $("#hfaculty").show();
    $("#hdegree").hide();
    $("#admstatus").hide();
  } else if (
    type == "rgsfp" ||
    type == "rgsad" ||
    type == "rgsap" ||
    type == "rgsal"
  ) {
    $("#admstatus").hide();
    $("#appRange").show();
  } else if (type == "adml") {
  }
}

/*
 *
 * FOR THE Report degree list
 * PROGRAMED BY NAVEEN
 * DATE: 13/03/09
 * TIME: 1:15 PM
 *
 */