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.224.60.19
Current Path : /var/www/oasis/js_old/ |
| Current File : /var/www/oasis/js_old/ack_rv_rt_application.js |
function CallEnableAckRvRtApplication() {
$("#page_main_div").load(
"../html_modules/ack_rv_rt_application.html?v=17082016",
function() {
document.getElementById("display_module_name").innerHTML =
"Acknowledge RV/RT Applications";
document.getElementById("module_name_for_save").value =
"Acknowledge RV/RT Applications";
getDefaultHeadFooterLinks("Acknowledge RV/RT Applications");
$(".ui-tabs .ui-tabs-panel").css("padding", "0px");
$(".ui-tabs .ui-tabs-panel").css("padding-top", "21px");
}
);
}
function DisplayAllAckApplications() {
$.ajax({
type: "POST",
data:
"&app_no_from=" +
$("#app_no_from").val() +
"&app_no_to=" +
$("#app_no_to ").val(),
url: $host_url + "DisplayAllAckApplications",
success: DisplayAllAckApplicationsResponce
});
}
var total;
function DisplayAllAckApplicationsResponce(responce) {
responce = eval("(" + responce + ")");
$("#ack_rv_rt_application_details").html("");
$("#ack_rv_rt_application_details").html(responce.data["html"]);
total = responce.data["count"];
}
function AcknowledgeSelectedApplications() {
checked_app_nos = new Array();
var obj = $("input[id*='ack_check_box_']");
jQuery.each(obj, function(k, v) {
row_id = v["id"].split("_")[3];
if ($(this).is(":checked")) checked_app_nos.push(row_id);
});
if (empty(checked_app_nos)) {
alert("Please select minumum one application to acknowledge.");
return false;
}
$.ajax({
type: "POST",
data: "checked_app_nos=" + checked_app_nos,
url: $host_url + "AcknowledgeSelectedApplications",
success: AcknowledgeSelectedApplicationsResponce
});
}
function AcknowledgeSelectedApplicationsResponce(responce) {
responce = eval("(" + responce + ")");
alert(responce.data);
DisplayAllAckApplications();
}
function Checkallrvapplication($id) {
var k;
if (document.getElementById("arun").checked == true) {
//alert(total);
for (k = 1; k < parseInt(total); k++) {
//alert("ack_hidden"+k);
var APPNO = document.getElementById("ack_hidden" + k).value;
//alert(APPNO);
document.getElementById("ack_check_box_" + APPNO).checked = true;
}
} else {
for (k = 1; k < total; k++) {
var APPNO = document.getElementById("ack_hidden" + k).value;
document.getElementById("ack_check_box_" + APPNO).checked = false;
}
}
}
function PrintRevaluationApplicationForm(app_no) {
window.location.href =
$host_url + "PrintRevaluationApplicationForm&app_no=" + app_no;
}
function DownloadRvRtAckApplications() {
window.location.href = $host_url + "DownloadRvRtAckApplications";
}
|