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.19.60.207
function LoadDailyReportQp() {
$g_focus_element = "";
$("#page_main_div").load("html_modules/daily_report_qp.html", function() {
$geditinternalcode = 0;
window.enable_proper_module = "DailyReportQP";
getDefaultHeadFooterLinks("Daily Report QP Code");
document.getElementById("display_module_name").innerHTML = "Daily Report";
document.getElementById("module_name_for_save").value = "DailyReportQP";
getBatchdet();
});
}
function getBatchdet() {
$.ajax({
type: "POST",
url: $host_url + "getBatchdet",
data: "id=",
success: getBatchdetSuccess
});
}
function getBatchdetSuccess($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 GenerateDailyReportQp() {
$date_start = document.getElementById("report_drpt_exam_date_from").value;
$date_end = document.getElementById("report_drpt_exam_date_to").value;
var fbatch = $("#fbatch").val();
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 +
"generateDaliyReportQp.demo&qp_code_start=" +
qp_start +
"&qp_code_end=" +
qp_end +
"&Date_start=" +
$date_start +
"&Date_end=" +
$date_end +
"&session=" +
$session_chck +
"&fbatch=" +
fbatch;
}
|