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.116.24.148
function subjectwiseblock() {
$g_mes_valid_reg_no = 0;
$geditinternalcode = 0;
$g_mes_save_after_error_flag = 0;
$g_mes_edit_valid_marks_flag = 0;
$limit_start = 0;
$limit = 0;
$("#page_main_div").load(
"../html_modules/subshort.html?v=31072017",
function() {
document.getElementById("display_module_name").innerHTML =
"Subject Wise Block";
document.getElementById("module_name_for_save").value =
"Subject Wise Block";
getDefaultHeadFooterLinks("Subject Wise Block");
$("#main_mark_entry_div").hide();
$("#markentry_sub_degree_code").focus();
document.getElementById("markentry_sub_degree_code").disabled = false;
document.getElementById("markentry_sub_final_subcode").disabled = false;
document.getElementById("markentry_sub_Examno").disabled = false;
}
);
$("#module_details_div").hide();
}
// Svae All Date From Mark Entry Subjectwise Module
function saveSubjectwiseBlock() {
var att_data = new Object();
var validstatus = false;
html_objects = $("input[id*='h_']");
jQuery.each(html_objects, function(k, v) {
var internal_code = v["id"].split("_")[1];
if ($("#h_" + internal_code).val() == "U") {
att_data[internal_code] = new Object();
var status = "F";
if (document.getElementById(`${internal_code}`).checked == true) {
status = "T";
} else {
status = "F";
}
att_data[internal_code]["status"] = status;
att_data[internal_code]["fregno"] = internal_code;
att_data[internal_code]["remarks"] = $("#remarks_" + internal_code).val();
}
});
console.log(att_data);
var myJSONText = encodeURIComponent(JSON.stringify(att_data));
$list_data +=
"&output_details=" +
myJSONText +
"&fdegree=" +
$("#markentry_sub_degree_code").val() +
"&fexamno=" +
$("#markentry_sub_Examno").val() +
"&fsubcode=" +
$("#markentry_sub_final_subcode").val();
$.ajax({
type: "POST",
async: false,
url: $host_url + "saveSubjectwiseBlock",
data: $list_data,
success: saveSubjectwiseBlockResponce
});
} // END SAVE
function saveSubjectwiseBlockResponce($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
$("#markentry_sub_degree_code").focus;
} else {
alert($responce.data);
}
}
function GetSubShortRegisterNumbers() {
//alert('calling');
$("#mes_default_reg_div").hide();
if ($("#markentry_sub_degree_code").val() == "") {
alert("Enter Degree");
$("#markentry_sub_degree_code").focus();
return;
}
if ($("#markentry_sub_final_subcode").val() == "") {
alert("Enter Subject Code");
$("#markentry_sub_final_subcode").focus();
return;
}
if ($("#markentry_sub_Examno").val() == "") {
alert("Enter Examno");
$("#markentry_sub_Examno").focus();
return;
}
$list_data = "fdegree=" + $("#markentry_sub_degree_code").val();
$list_data += "&fsubcode=" + $("#markentry_sub_final_subcode").val();
$list_data += "&fexamno=" + $("#markentry_sub_Examno").val();
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='images/ajax-loader.gif' border='0'></h1>"
});
$.ajax({
type: "POST",
//async:false,
url: $host_url + "GetSubShortRegisterNumbers",
data: $list_data,
success: GetSubShortRegisterNumbersNosResponse
});
}
function GetSubShortRegisterNumbersNosResponse($responce) {
$responce = eval("(" + $responce + ")");
$.unblockUI();
if ($responce.error_code == 0) {
$("#main_mark_entry_div").hide();
$("#mes_default_reg_div").show();
mes_default_reg_div;
document.getElementById("markentry_sub_degree_code").disabled = true;
document.getElementById("markentry_sub_final_subcode").disabled = true;
document.getElementById("markentry_sub_Examno").disabled = true;
$("#mes_default_reg_div").html($responce.data.table);
}
}
function updatehiddenfiled(reg) {
document.getElementById("h_" + reg).value = "U";
}
function shortageReport() {
parameters =
"&fdegree=" +
trim($("#markentry_sub_degree_code").val()) +
"&fexamno=" +
trim($("#markentry_sub_Examno").val()) +
"&fsubcode=" +
trim($("#markentry_sub_final_subcode").val());
window.location.href = $host_url + "shortageReport.demo" + parameters;
}
|