diff --git a/Fila-Servico/lib/Fila/Servico/Controller/WS/Gestao/Atendente.pm b/Fila-Servico/lib/Fila/Servico/Controller/WS/Gestao/Atendente.pm
index 82f1ff3..69f5755 100644
--- a/Fila-Servico/lib/Fila/Servico/Controller/WS/Gestao/Atendente.pm
+++ b/Fila-Servico/lib/Fila/Servico/Controller/WS/Gestao/Atendente.pm
@@ -127,7 +127,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
'agendamento.nome',
'agendamento.tipopessoa',
'agendamento.cnpjf',
- 'agendamento.email'],
+ 'agendamento.email',
+ 'me.timeout_chamando',
+ 'me.timeout_concluido' ],
'as' => [ 'id_guiche',
'identificador',
'id_funcionario',
@@ -143,7 +145,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
'agendamento_nome',
'agendamento_tipopessoa',
'agendamento_cnpjf',
- 'agendamento_email' ]});
+ 'agendamento_email',
+ 'timeout_chamando',
+ 'timeout_concluido' ]});
#pega o estado do guiche, se for interno entao seleciona do servicoguiche, senao do servicoatendimento
my $estado_guiche = $c->stash->{guiche}->estados->search
@@ -236,7 +240,7 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
( map { $_ => $servico->get_column($_) }
qw/ id_servico id_classe nome informacoes / ),
}
- }
+ }
}
my $guiche = $guiches->next;
@@ -250,7 +254,8 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
{ guiche =>
{ ( map { $_ => $guiche->get_column($_) }
qw( id_guiche identificador estado estado_atendimento
- funcionario id_funcionario jid pausa_motivo ) ),
+ funcionario id_funcionario jid pausa_motivo
+ timeout_chamando timeout_concluido) ),
( map { $guiche->get_column($_) ?
($_ => DateTime::Format::XSD->format_datetime
(DateTime::Format::Pg->parse_datetime
diff --git a/Fila-Servico/lib/Fila/Servico/DB/Guiche.pm b/Fila-Servico/lib/Fila/Servico/DB/Guiche.pm
index 1ea28d2..9bc92f6 100644
--- a/Fila-Servico/lib/Fila/Servico/DB/Guiche.pm
+++ b/Fila-Servico/lib/Fila/Servico/DB/Guiche.pm
@@ -50,6 +50,16 @@ __PACKAGE__->add_columns
pular_opiniometro =>
{
data_type => 'integer',
+ },
+ timeout_chamando =>
+ {
+ data_type => 'integer',
+ default => 180,
+ },
+ timeout_concluido =>
+ {
+ data_type => 'integer',
+ default => 20,
}
);
__PACKAGE__->set_primary_key(qw(id_guiche));
diff --git a/Fila-Servico/schemas/fila-servico.xsd b/Fila-Servico/schemas/fila-servico.xsd
index f0bb9b0..2b4af9b 100644
--- a/Fila-Servico/schemas/fila-servico.xsd
+++ b/Fila-Servico/schemas/fila-servico.xsd
@@ -119,6 +119,8 @@
+
+
--
libgit2 0.21.2