Commit bf61d75c6ebfd1fe9627aec33c2eafc9b9a9ff5b

Authored by daniel@ruoso.com
1 parent 69c31cf6
Exists in master

Leva e traz as informações de timeout

git-svn-id: http://svn.softwarepublico.gov.br/svn/sistemadeatendimento/sistema/trunk@22 63db2ce5-8a6c-0410-abb9-a418dd412890
Fila-Servico/lib/Fila/Servico/Controller/WS/Gestao/Atendente.pm
... ... @@ -127,7 +127,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
127 127 'agendamento.nome',
128 128 'agendamento.tipopessoa',
129 129 'agendamento.cnpjf',
130   - 'agendamento.email'],
  130 + 'agendamento.email',
  131 + 'me.timeout_chamando',
  132 + 'me.timeout_concluido' ],
131 133 'as' => [ 'id_guiche',
132 134 'identificador',
133 135 'id_funcionario',
... ... @@ -143,7 +145,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
143 145 'agendamento_nome',
144 146 'agendamento_tipopessoa',
145 147 'agendamento_cnpjf',
146   - 'agendamento_email' ]});
  148 + 'agendamento_email',
  149 + 'timeout_chamando',
  150 + 'timeout_concluido' ]});
147 151  
148 152 #pega o estado do guiche, se for interno entao seleciona do servicoguiche, senao do servicoatendimento
149 153 my $estado_guiche = $c->stash->{guiche}->estados->search
... ... @@ -236,7 +240,7 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
236 240 ( map { $_ => $servico->get_column($_) }
237 241 qw/ id_servico id_classe nome informacoes / ),
238 242 }
239   - }
  243 + }
240 244 }
241 245  
242 246 my $guiche = $guiches->next;
... ... @@ -250,7 +254,8 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
250 254 { guiche =>
251 255 { ( map { $_ => $guiche->get_column($_) }
252 256 qw( id_guiche identificador estado estado_atendimento
253   - funcionario id_funcionario jid pausa_motivo ) ),
  257 + funcionario id_funcionario jid pausa_motivo
  258 + timeout_chamando timeout_concluido) ),
254 259 ( map { $guiche->get_column($_) ?
255 260 ($_ => DateTime::Format::XSD->format_datetime
256 261 (DateTime::Format::Pg->parse_datetime
... ...
Fila-Servico/lib/Fila/Servico/DB/Guiche.pm
... ... @@ -50,6 +50,16 @@ __PACKAGE__->add_columns
50 50 pular_opiniometro =>
51 51 {
52 52 data_type => 'integer',
  53 + },
  54 + timeout_chamando =>
  55 + {
  56 + data_type => 'integer',
  57 + default => 180,
  58 + },
  59 + timeout_concluido =>
  60 + {
  61 + data_type => 'integer',
  62 + default => 20,
53 63 }
54 64 );
55 65 __PACKAGE__->set_primary_key(qw(id_guiche));
... ...
Fila-Servico/schemas/fila-servico.xsd
... ... @@ -119,6 +119,8 @@
119 119 <xsd:element name="pausa_motivo" minOccurs="0" type="xsd:string" />
120 120 <xsd:element name="nome_servico" minOccurs="0" type="xsd:string" />
121 121 <xsd:element name="pular_opiniometro" minOccurs="0" type="xsd:integer" />
  122 + <xsd:element name="timeout_chamando" minOccurs="0" type="xsd:integer" />
  123 + <xsd:element name="timeout_concluido" minOccurs="0" type="xsd:integer" />
122 124 <xsd:element name="servicos" minOccurs="0">
123 125 <xsd:complexType>
124 126 <xsd:sequence>
... ...