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.144.3.235
function CallenableDocVerifyExamApp() {
$("#page_main_div").load("../html_modules/doc_verification.html", function() {
document.getElementById("display_module_name").innerHTML =
"Confirm Category / Income";
document.getElementById("module_name_for_save").value =
"Verify Documents for Exam Application Form";
getDefaultHeadFooterLinks("Verify Documents For Exam Application Form");
});
}
function DisplayAllVerifyExamApplications() {
if ($("#reg_no_from").val() == "") {
alert("enter Reg.No.");
$("#reg_no_from").focus();
return false;
}
$.ajax({
type: "POST",
data:
"®_no_from=" +
$("#reg_no_from").val() +
"®_no_to=" +
$("#reg_no_to ").val(),
url: $host_url + "DisplayAllVerifyExamApplications",
success: DisplayAllVerifyExamApplicationsResponce
});
}
function DisplayAllVerifyExamApplicationsResponce(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == "0") {
$("#ack_rv_rt_application_details").html("");
$("#ack_rv_rt_application_details").html(responce.data["html"]);
} else {
$("#ack_rv_rt_application_details").html("");
}
}
function saveVerifyDocExamAppStatus() {
var category = $("#category").val();
if (category == 0) {
alert("select category");
$("#category").focus();
return false;
}
var feetype = $("#feetype").val();
if (feetype == 0) {
alert("select fee type");
$("#feetype").focus();
return false;
}
var arr = [];
$("#reval_table_data >tbody >tr").each((i, el) => {
var data = {};
data.fregno = $(el)
.find("td.fregno")
.html();
data.fcategory = $(el)
.find("td>select.category")
.val();
data.ffeetype = $(el)
.find("td>select.feetype")
.val();
console.log(data);
arr.push(data);
});
var postdata = arr.filter((i, el) => {
if (el.fregno !== null) return el;
});
console.log(postdata);
if (arr.length == 0 || postdata.length == 0) {
alert("Data Not found");
return;
}
$.ajax({
type: "POST",
data: "data=" + JSON.stringify(postdata),
url: $host_url + "saveVerifyDocExamAppStatus",
success: saveVerifyDocExamAppStatusResponce
});
}
function saveVerifyDocExamAppStatusResponce(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == "0") {
alert(responce.data);
}
}
|