#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::Report::Command::UKMechUnitSummary;
use strict;
use warnings;

use lib '/app/tools/common/lib';
use Common::Util;

use lib '/app/tools/rps/lib';
use RPS::Report::UKMechUnitSummary;
use RPS::Report::Command::BaseReport;
use RPS::DB::Item::UKMechanicalRun;

use base 'RPS::Report::Command::BaseReport';

sub cmd  { return 'uk_mech_unit_summary'; }
sub area { return 'report'; }

sub _getReport
{
    my ($self, $page) = @_;
    
    my $runID = $self->getParam('run_id'); 
    my $download = $self->getParam('download'); 
    return RPS::Report::UKMechUnitSummary->new(page => $page, runID => $runID, download => $download);
}


sub _getFilenamePrefix
{
    my ($self) = @_;
 
    my $runID = $self->getParam('run_id');
        
    return "Unit_Summary_$runID";    

}


1;
