source: trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Data/ListEmployments.pm @ 2469

Last change on this file since 2469 was 2124, checked in by nanardon, 7 years ago

Allow to outut data as CSV

File size: 925 bytes
RevLine 
[2124]1package LATMOS::Accounts::Web::Controller::Data::ListEmployments;
2use Moose;
3use namespace::autoclean;
4
5BEGIN { extends 'Catalyst::Controller'; }
6
7=head1 NAME
8
9LATMOS::Accounts::Web::Controller::Data::EmploymentList - Catalyst Controller
10
11=head1 DESCRIPTION
12
13Catalyst Controller.
14
15=head1 METHODS
16
17=cut
18
19
20=head2 index
21
22=cut
23
24sub index :Path :Args(0) {
25    my ( $self, $c ) = @_;
26
27    $c->forward('/summary/listemployments/index');
28    $c->stash->{columns} = [ qw(user username firstday lastday contratType department) ];
29    $c->stash->{data} = $c->stash->{employments};
30    foreach my $row (@{ $c->stash->{data} }) {
31        utf8::decode( $row->{username} );
32    } 
33}
34
35
36
37=encoding utf8
38
39=head1 AUTHOR
40
41Olivier Thauvin,Guyancourt - B1428,+33 1 80285052,
42
43=head1 LICENSE
44
45This library is free software. You can redistribute it and/or modify
46it under the same terms as Perl itself.
47
48=cut
49
50__PACKAGE__->meta->make_immutable;
51
521;
Note: See TracBrowser for help on using the repository browser.