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 : 13.59.1.58
//Jijo Added SubDegree.
function openRevalutionRegnoPopup()
{
switch(document.getElementById('module_name_for_save').value)
{
case 'Revaluation':
RegNoPopHtml('FCADSTATUS');
break;
default:
RegNoPopHtml('');
break;
}
}
var $g_ref_data_arr='';
$host_url= getCookie('host_url');
$image_path= getCookie('image_path');
function RegNoPopHtml($module)
{
$('#dialog').dialog('open');
$("#dialog").data("height.dialog", 222);
$(".ui-dialog").css({width:460});
$('#ui-dialog-title-dialog').html("Reg No");
$main="<table id='reval_regno_grid' class='scroll' ondblclick='SelectRegnoCode();'></table> <div id='sub_grid_div3' class='scroll' style='text-align:center;'></div>";
document.getElementById('dialog').innerHTML=$main;
var open_reg =jQuery("#reval_regno_grid").jqGrid(
{
url:$host_url+'RegnoDetailsPopup.demo'+"&type="+$module,
datatype: "json",
colNames:['Reg No'],
colModel:[{name:'Fregno',index:'Fregno', width:80 }],
rowNum:10,
rowList:[5,10,15,20,25,30],
imgpath:$image_path,
pager: jQuery('#sub_grid_div3'),
sortname: 'id',
height:'119',
width:'457',
viewrecords: true,
sortorder: 'desc',
multiselect: false,
cellEdit: true,
//forceFit : true,
//cellsubmit: 'clientArray',
addCaption: "Add Recordddd"
}
).navGrid('#sub_grid_div3',{edit:false,add:false,del:false,search:false},{},{},{},{multipleSearch:true}).
navButtonAdd('#sub_grid_div3',{caption:"",
buttonicon :'ui-icon-search', onClickButton:function(){open_reg[0].toggleToolbar() } }).
navButtonAdd('#sub_grid_div3',{caption:"Select", onClickButton:function()
{
SelectRegnoCode();
}
});
open_reg.filterToolbar();
$("#gs_Fregno").focus();
$('.ui-search-toolbar').bind('keydown',function(evt)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
if(kC==40)
jQuery('#reval_regno_grid').editCell(0,0,false);
});
}
function SelectRegnoCode()
{
var id=jQuery("#reval_regno_grid").getGridParam('selrow');
if( id!=null)
{
var sub_row_reg=jQuery("#reval_regno_grid").getRowData(id);
$("#revalution_start").val(sub_row_reg['Fregno']);
$('#dialog').dialog("close");
}
}
|