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


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

//10561 10655
function callbundleDispatchDatewise() {
  $("#page_main_div").load(
    "../html_modules/bundledispatchdatewise.html",
    function() {
      document.getElementById("display_module_name").innerHTML =
        "Bundle Dispatch Entry Datewise";
      document.getElementById("module_name_for_save").value =
        "Bundle Dispatch Entry Datewise";
      getDefaultHeadFooterLinks("Bundle Dispatch Entry Datewise");

      var today = new Date();
      var dd = today.getDate();
      var mm = today.getMonth() + 1; //January is 0!

      var yyyy = today.getFullYear();
      if (dd < 10) {
        dd = "0" + dd;
      }
      if (mm < 10) {
        mm = "0" + mm;
      }
      var today = dd + "/" + mm + "/" + yyyy;
      document.getElementById("edate").value = today;
    }
  );
}

function DisplayBundalDetailsDatewise() {
  //$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });

  if (date_format($("#edate").val()) == "") {
    alert("Enter Date");
    $("#edate").focus();
    return false;
  }

  var session = $("input[name='session']:checked").val();

  //   $.blockUI({
  //     message:
  //       "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>"
  //   });
  $.ajax({
    type: "POST",
    async: true,
    data: "edate=" + trim($("#edate").val()) + "&session=" + session,
    url: $host_url + "DisplayBundalDetailsDatewise",
    success: DisplayBundalDetailsDatewiseResponse
  });
}

function DisplayBundalDetailsDatewiseResponse(responce) {
  responce = eval("(" + responce + ")");
  //$.unblockUI();
  if (responce.error_code == 0) {
    $("#room_allotment").html("");
    $("#room_allotment").html(responce.data["html"]);
  } else {
    alert(responce.data);
  }
}

function generateBundleNosDispatchQPWise(id) {
  window.location.href =
    $host_url + "generateBundleNosDispatchQPWise&fbunno=" + id;
}

function generateBundleNoDatewiseDispatch() {
  window.location.href =
    $host_url + "generateBundleNoDatewiseDispatch&edate=" + $("#edate").val();
}