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


Current Path : /var/www/oasis/custom_js/
Upload File :
Current File : /var/www/oasis/custom_js/practical_report_popups.js

function GenerateBatchSetupPopup() {
  var win_width = window.screen.width;
  $("#batch_dialog").dialog("open");
  $("#batch_dialog").data("width.dialog", 400);
  $("#batch_dialog").data("position.dialog", [(win_width - 400) / 2, 90]);
  $("#ui-dialog-title-batch_dialog").html("Batch Setup Popup");
  var path = "../html_modules/batch_setup_popup.html";
  $("#batch_dialog").load(path, function () {});
}

function GenerateWorkSheetPopup() {
  var win_width = window.screen.width;
  $("#batch_dialog").dialog("open");
  $("#batch_dialog").data("width.dialog", 400);
  $("#batch_dialog").data("position.dialog", [(win_width - 400) / 2, 90]);
  $("#ui-dialog-title-batch_dialog").html("Work Sheet Setup");
  var path = "../html_modules/batch_setup_work_sheet.html";
  $("#batch_dialog").load(path, function () {
    //$("#from_batch").val(trim($("#batch_sub_final_subcode").val()));
    // $("#to_batch").val(trim($("#batch_sub_final_subcode").val()));
  });
}

function GenerateBatchDairy() {
  var win_width = window.screen.width;
  $("#batch_dialog").dialog("open");
  $("#batch_dialog").data("width.dialog", 400);
  $("#batch_dialog").data("position.dialog", [(win_width - 400) / 2, 90]);
  $("#ui-dialog-title-batch_dialog").html("Work Sheet Setup");
  var path = "../html_modules/batch_setup_work_sheet.html";
  $("#batch_dialog").load(path, function () {
    //$("#from_batch").val(trim($("#batch_sub_final_subcode").val()));
    // $("#to_batch").val(trim($("#batch_sub_final_subcode").val()));
  });
}

function GenerateBatchSetupPopupDetails() {
  switch (document.getElementById("module_name_for_save").value) {
    case "SaveBatchSetup":
      GenerateFromBatchPrepration();
      break;
    case "SavePracticalEntryFreezing":
      GenerateFromBatchBatchTimeTable();
      break;
    case "bacthpreparation":
      GenerateBatchpreparationDairy();
      break;
  }
}
function GenerateBatchWorkSheets() {
  switch (document.getElementById("module_name_for_save").value) {
    case "SaveBatchSetup":
      GenerateBatchWorkSheetsFromBatchPreparation();
      break;
    case "SavePracticalEntryFreezing":
      GenerateBatchWorkSheetsFromBatchTimeTable();
      break;
    case "bacthpreparation":
      GenerateBatchpreparationDairy();
      break;
  }
}

function GenerateAttendanceSheetPopup() {
  var win_width = window.screen.width;
  $("#batch_dialog").dialog("open");
  $("#batch_dialog").data("width.dialog", 400);
  $("#batch_dialog").data("position.dialog", [(win_width - 400) / 2, 90]);
  $("#ui-dialog-title-batch_dialog").html("Attendance Sheet");
  var path = "../html_modules/batch_setup_attendance_sheet.html";
  $("#batch_dialog").load(path, function () {
    //$("#from_batch").val(trim($("#batch_sub_final_subcode").val()));
    // $("#to_batch").val(trim($("#batch_sub_final_subcode").val()));
  });
}

function GenerateAttendanceSheet() {
  GenerateAttendanceSheetPreparation();
}