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.138.134.77
var g_freeze_details="";
function LoadEnableFreezeMarks()
{
$("#page_main_div").load('html_modules/freeze_marks.html',function()
{
document.getElementById('display_module_name').innerHTML = 'Freeze Marks';
document.getElementById('module_name_for_save').value = 'FreezeMarks';
getDefaultHeadFooterLinks("Freeze Marks");
});
}
function checkValidCheckNo(this_obj,system_check_no)
{
if((this_obj.value)!=(system_check_no) && this_obj.value!="")
{
alert("Invalid Check No.");
var id=this_obj.id;
$("#"+id).val("");
$("#"+id).focus();
return false;
}
}
function DisplayFreezeMarksGrid()
{
var freeze_code=$("#freeze_qp_code").val();
$.ajax({
type: "POST",
//async:false,
url: $host_url+"DisplayFreezeMarksGrid",
data:"freeze_code="+freeze_code,
success: DisplayFreezeMarksGridResponce
});
}
function DisplayFreezeMarksGridResponce(responce)
{
responce = eval('(' + responce + ')');
g_freeze_details=responce.data.freeze_data;
$('#freeze_marks_grid_div').html(responce.data.html);
$('#freeze_marks_grid_div').show();
var k=1;
jQuery.each(g_freeze_details, function(ke, v)
{
var freeze=v['FFREEZE'];
if(freeze=='T')
{
document.getElementById('input_frez_'+k).checked =true;
}
else
{
document.getElementById('input_frez_'+k).checked =false;
$('#td_report_'+k).html(" ")
}
k++;
});
}
function SaveFreezeMarks()
{
var freeze_obj=new Object();
var j=0;
var k=1;
var freeze_val='';
jQuery.each(g_freeze_details, function(ke, v)
{
if(document.getElementById('input_frez_'+k).checked == true)
{
freeze_val='T';
}
else
freeze_val='F';
freeze_obj[j]=new Object();
freeze_obj[j]['f_qp_code']=$("#td_qp_"+k).html();
freeze_obj[j]['f_pack']=$("#td_pack_"+k).html();
freeze_obj[j]['f_val']=$("#td_val_"+k).html();
freeze_obj[j]['f_check']=$("#input_check_no_"+k).val();
if(empty($("#input_check_no_"+k).val()))
freeze_val='F';
freeze_obj[j]['f_frez']=freeze_val;
j++;
k++;
});
var myjsonfreeze_obj = JSON.stringify(freeze_obj);
var lstr_data="&freeze_packet_details="+myjsonfreeze_obj;
$.ajax({
type: "POST",
//async:false,
url: $host_url+"SaveFreezeMarks",
data:lstr_data,
success:SaveFreezeMarksResponce
});
}
function SaveFreezeMarksResponce(responce)
{
responce = eval('(' + responce + ')');
alert(responce.data);
}
function GenerateEvaluationReportFromFreezeScreen(id)
{
var str="&evaluation_packet_no="+trim(($("#td_pack_"+id).html()));
str+="&evaluation_qp_code="+ ($("#td_qp_"+id).html());
str+="&evaluation_val_no="+trim ($("#td_val_"+id).html());
//alert(str);
window.location.href = $host_url+"GenerateEvaluationReport"+str;
}
|