33 lines
861 B
JavaScript
33 lines
861 B
JavaScript
function InitPage()
|
|
{
|
|
if($("#casetable >tbody >tr").length<1)
|
|
{
|
|
document.getElementById("btnsave").style.display="none";
|
|
}
|
|
$('form tbody.scrollContent tr').hover(function () {
|
|
$(this).addClass('rowhover');
|
|
}, function () {
|
|
$(this).removeClass('rowhover');
|
|
});
|
|
$('form tbody.scrollContent tr').click(function(event) {
|
|
if (event.target.type !== 'checkbox') {
|
|
$(':checkbox', this).trigger('click');
|
|
}
|
|
checkList('chkrow','selall');
|
|
});
|
|
}
|
|
function ValidateGenerateReport(formname)
|
|
{
|
|
setHFList("casetable");
|
|
var uuids=$("#hfdelstat").val();
|
|
if(uuids=='')
|
|
{
|
|
CallMessage('BKLIST:error:Please select atleast one case to start report generation process.',3000,200,300);
|
|
return false;
|
|
}
|
|
else
|
|
{
|
|
SubmitForm('generatereport', '_parent', formname);
|
|
}
|
|
}
|