0020347: Especificação Multportais - filtro id Bloqueio Canal de vendas

bug#20347
dev:
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@103348 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdir 2020-09-17 16:42:40 +00:00
parent 0b058f2fd5
commit 5f24aba63c
4 changed files with 28 additions and 15 deletions

View File

@ -29,14 +29,12 @@ import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.MyComboRutaRenderer;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfRestricaoCanalVenta;
import com.trg.search.Filter;
@Controller("confRestricaoCanalVentaController")
@Scope("prototype")
@ -60,6 +58,7 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
private Textbox txtDescConf;
private Intbox txtServico;
private List<Empresa> lsEmpresa;
private Intbox txtIdBloqueio;
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
@ -112,6 +111,11 @@ public class BusquedaConfRestricaoCanalVentaController extends MyGenericForwardC
confRestricaoCanalVentaBusqueda.addFilterEqual("corridaId", servicio);
}
Integer idBloqueio = txtIdBloqueio.getValue();
if (idBloqueio != null) {
confRestricaoCanalVentaBusqueda.addFilterEqual("confRestricaoCanalVentaId", idBloqueio);
}
Comboitem cbiRuta = cmbRuta.getSelectedItem();
if (cbiRuta != null) {
Ruta ruta = (Ruta) cbiRuta.getValue();

View File

@ -5867,6 +5867,7 @@ confRestricaoCanalVentaController.TempoPermitir.label = Tiempo límite
confRestricaoCanalVentaController.TempoPermitirOBS.label = El controle se queda sin efecto (HH:mm) antes del horário de la salida
confRestricaoCanalVentaController.exibeconsultavendaweb.label = Exhibe consulta venta internet
confRestricaoCanalVentaController.exibecorridabloq.label = Exhibe servicio bloqueado en venta
confRestricaoCanalVentaController.IdBloqueio.label= ID Bloqueo
# Editar Conf Restricao Canal Venta
editarConfRestricaoCanalVentaController.window.title = Bloqueo de tramo por canal de venta

View File

@ -6121,6 +6121,7 @@ confRestricaoCanalVentaController.TempoPermitirOBS.label = O controle fica sem e
confRestricaoCanalVentaController.exibeconsultavendaweb.label = Exibe consulta venda Web
confRestricaoCanalVentaController.exibecorridabloq.label = Exibe serviço bloqueado na venda
confRestricaoCanalVentaController.tramoRestrito.label = Trechos restritos
confRestricaoCanalVentaController.IdBloqueio.label= ID Bloqueio
# Editar Conf Restricao Canal Venta
editarConfRestricaoCanalVentaController.window.title = Bloqueio de Trecho por Canal de Venda

View File

@ -26,18 +26,20 @@
<grid fixedLayout="true">
<columns>
<column width="20%" />
<column width="80%" />
<column width="15%" />
<column width="35%" />
<column width="15%" />
<column width="35%" />
</columns>
<rows>
<row>
<row spans="1,3">
<label
value="${c:l('confRestricaoCanalVentaController.lhDesc.label')}" />
<textbox id="txtDescConf" width="98%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
<row>
<row spans="1,3" >
<label
value="${c:l('confRestricaoCanalVentaController.lhEmpresa.label')}" />
<combobox id="cmbEmpresa"
@ -47,21 +49,21 @@
</row>
<row>
<row spans="1,3">
<label
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
<combobox id="cmbRuta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
mold="rounded" buttonVisible="true" width="70%" />
</row>
<row>
<row spans="1,3">
<label
value="${c:l('confRestricaoCanalVentaController.Origem.label')}" />
<combobox id="cmbOrigen" autodrop="true"
mold="rounded" buttonVisible="true" width="45%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
</row>
<row>
<row spans="1,3">
<label
value="${c:l('confRestricaoCanalVentaController.Destino.label')}" />
<combobox id="cmbDestino" autodrop="true"
@ -71,10 +73,9 @@
<row>
<label
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
<datebox id="dtServicio" width="30%"
<datebox id="dtServicio" width="50%"
mold="rounded" />
</row>
<row>
<label
value="${c:l('confRestricaoCanalVentaController.lhVigencia.label')}" />
<hbox>
@ -86,7 +87,7 @@
</h:td>
<h:td>
<datebox
id="feciniciovigencia" width="120px"
id="feciniciovigencia" width="90%"
mold="rounded" />
</h:td>
<h:td>
@ -95,18 +96,24 @@
</h:td>
<h:td>
<datebox
id="fecfinvigencia" width="120px"
id="fecfinvigencia" width="90%"
mold="rounded" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row>
<label
value="${c:l('confRestricaoCanalVentaController.Servico.label')}" />
<intbox id="txtServico" width="20%" />
<intbox id="txtServico" width="60%" />
<label
value="${c:l('confRestricaoCanalVentaController.IdBloqueio.label')}" />
<intbox id="txtIdBloqueio" width="60%" />
</row>
</rows>
</grid>