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,7 +127,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
127 'agendamento.nome', 127 'agendamento.nome',
128 'agendamento.tipopessoa', 128 'agendamento.tipopessoa',
129 'agendamento.cnpjf', 129 'agendamento.cnpjf',
130 - 'agendamento.email'], 130 + 'agendamento.email',
  131 + 'me.timeout_chamando',
  132 + 'me.timeout_concluido' ],
131 'as' => [ 'id_guiche', 133 'as' => [ 'id_guiche',
132 'identificador', 134 'identificador',
133 'id_funcionario', 135 'id_funcionario',
@@ -143,7 +145,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI { @@ -143,7 +145,9 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
143 'agendamento_nome', 145 'agendamento_nome',
144 'agendamento_tipopessoa', 146 'agendamento_tipopessoa',
145 'agendamento_cnpjf', 147 'agendamento_cnpjf',
146 - 'agendamento_email' ]}); 148 + 'agendamento_email',
  149 + 'timeout_chamando',
  150 + 'timeout_concluido' ]});
147 151
148 #pega o estado do guiche, se for interno entao seleciona do servicoguiche, senao do servicoatendimento 152 #pega o estado do guiche, se for interno entao seleciona do servicoguiche, senao do servicoatendimento
149 my $estado_guiche = $c->stash->{guiche}->estados->search 153 my $estado_guiche = $c->stash->{guiche}->estados->search
@@ -236,7 +240,7 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI { @@ -236,7 +240,7 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
236 ( map { $_ => $servico->get_column($_) } 240 ( map { $_ => $servico->get_column($_) }
237 qw/ id_servico id_classe nome informacoes / ), 241 qw/ id_servico id_classe nome informacoes / ),
238 } 242 }
239 - } 243 + }
240 } 244 }
241 245
242 my $guiche = $guiches->next; 246 my $guiche = $guiches->next;
@@ -250,7 +254,8 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI { @@ -250,7 +254,8 @@ sub status_guiche :WSDLPort('GestaoAtendente') :DBICTransaction('DB') :MI {
250 { guiche => 254 { guiche =>
251 { ( map { $_ => $guiche->get_column($_) } 255 { ( map { $_ => $guiche->get_column($_) }
252 qw( id_guiche identificador estado estado_atendimento 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 ( map { $guiche->get_column($_) ? 259 ( map { $guiche->get_column($_) ?
255 ($_ => DateTime::Format::XSD->format_datetime 260 ($_ => DateTime::Format::XSD->format_datetime
256 (DateTime::Format::Pg->parse_datetime 261 (DateTime::Format::Pg->parse_datetime
Fila-Servico/lib/Fila/Servico/DB/Guiche.pm
@@ -50,6 +50,16 @@ __PACKAGE__->add_columns @@ -50,6 +50,16 @@ __PACKAGE__->add_columns
50 pular_opiniometro => 50 pular_opiniometro =>
51 { 51 {
52 data_type => 'integer', 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 __PACKAGE__->set_primary_key(qw(id_guiche)); 65 __PACKAGE__->set_primary_key(qw(id_guiche));
Fila-Servico/schemas/fila-servico.xsd
@@ -119,6 +119,8 @@ @@ -119,6 +119,8 @@
119 <xsd:element name="pausa_motivo" minOccurs="0" type="xsd:string" /> 119 <xsd:element name="pausa_motivo" minOccurs="0" type="xsd:string" />
120 <xsd:element name="nome_servico" minOccurs="0" type="xsd:string" /> 120 <xsd:element name="nome_servico" minOccurs="0" type="xsd:string" />
121 <xsd:element name="pular_opiniometro" minOccurs="0" type="xsd:integer" /> 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 <xsd:element name="servicos" minOccurs="0"> 124 <xsd:element name="servicos" minOccurs="0">
123 <xsd:complexType> 125 <xsd:complexType>
124 <xsd:sequence> 126 <xsd:sequence>