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

use lib '/app/tools/common/lib';
use RSApache::Response::XSLT;
use Common::FormObject;

use lib '/app/tools/rps/lib';
use Common::FormObject;
use RPS::LabelRoyalty::LabelRoyaltyRunList;
use RPS::RoyaltyRun::RoyaltyRunStatusList;
use RPS::Payor::PayorList;
use RPS::Command;
use base 'RPS::Command';


sub cmd  { return 'list'; }
sub area { return 'label_royalty'; }

use constant kTemplate => "/app/tools/rps/templates/label_royalty/index.xsl";

sub execute
{
	my ($self) = @_;

	my $response = $self->SUPER::execute();
	return $response if $response;

	$self->{xml}{LabelRoyaltyRunList} = RPS::LabelRoyalty::LabelRoyaltyRunList->new();
    $self->{xml}{PayorList} = RPS::Payor::PayorList->new();

	$response = RSApache::Response::XSLT->new($self->{xml}, kTemplate);
	return $response;
}



1;
