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


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_Daily_Report_barcode.js

function LoadDailyReportBarcode() {
  $g_focus_element = "";
  $("#page_main_div").load(
    "../html_modules/daily_report_barcode.html",
    function() {
      $geditinternalcode = 0;
      window.enable_proper_module = "DailyReportQP";
      getDefaultHeadFooterLinks("Daily Report(Bar Code)");
      document.getElementById("display_module_name").innerHTML =
        "Daily Report(Bar Code)";
      document.getElementById("module_name_for_save").value = "DailyReportQP";

      var today = new Date();
      var dd = today.getDate();
      var mm = today.getMonth() + 1;
      var yyyy = today.getFullYear();
      var date = dd + "/" + mm + "/" + yyyy;
      $("#report_drpt_exam_date_from").val(date);
      $("#report_drpt_exam_date_to").val(date);
    }
  );
}

/* function getDegExmDaily($thsId)
 {
	if($thsId == 'report_drpt_SubCode_start')
	{
		 window.location.g_popup_degree_code=$("#report_drpt_degree_code_start").val();
		// $deg=$("#report_drpt_degree_code_start").val();
		 window.location.g_popup_exam_no=$("#report_drpt_Examno_start").val();
		// $exam=$("#report_drpt_Examno_start").val();
		// alert($deg+'-'+$exam);
	}
	else if($thsId == 'report_drpt_SubCode_End')
	{
		 window.location.g_popup_degree_code=$("#report_drpt_degree_code_End").val();
		// $deg=$("#report_drpt_degree_code_End").val();
		 window.location.g_popup_exam_no=$("#report_drpt_Examno_End").val();
		 //$exam=$("#report_drpt_Examno_End").val();
		 //alert($deg+'-'+$exam);
	}
} */

function GenerateDailyReportBarcode() {
  $date_start = document.getElementById("report_drpt_exam_date_from").value;
  // $date_end = document.getElementById("report_drpt_exam_date_to").value;

  if (trim($("#qp_code_start").val()) == "") {
    alert("Please Enter QP Code!!");
    $("#qp_code_start").focus();
    return;
  }

  if (document.getElementById("report_drpt_session_morning").checked) {
    $session_chck = "'AM'";
  } else if (document.getElementById("report_drpt_session_afternoon").checked) {
    $session_chck = "'PM'";
  } else if (document.getElementById("report_drpt_session_both").checked) {
    $session_chck = "'PM','AM'";
  }

  qp_start = document.getElementById("qp_code_start").value;
  qp_end = trim(document.getElementById("qp_code_end").value);
  if (qp_end == "") {
    qp_end = qp_start;
  }

  window.location.href =
    $host_url +
    "exam_attendance_det&qp_code_start=" +
    qp_start +
    "&qp_code_end=" +
    qp_end +
    "&Date_start=" +
    $date_start +
    "&session=" +
    $session_chck;
}