Commit da parte da adm bug #7273

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@54377 d1611594-4594-4d17-8e1d-87c2c4800839
master
daniel.zauli 2016-03-30 20:22:43 +00:00
parent f1872413c0
commit b0bdd9b167
7 changed files with 60 additions and 1 deletions

View File

@ -21,11 +21,13 @@ import org.zkoss.zul.Combobox;
import org.zkoss.zul.Paging;
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Marca;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
@ -56,17 +58,21 @@ public class BusquedaConfiguracionCancelacionController extends MyGenericForward
private MotivoCancelacionService motivoCancelacionService;
@Autowired
private OrgaoConcedenteService orgaoConcedenteService;
@Autowired
private ClaseServicioService claseServicioService;
private MyListbox cancelacionCtrlList;
private Paging pagingCancelacion;
private List<Marca> lsMarca;
private List<MotivoCancelacion> lsMotivoCancelacion;
private List<OrgaoConcedente> lsOrgaoConcedente;
private List<ClaseServicio> lsClaseServicio;
private Combobox cmbMarca;
private Combobox cmbParadaDestino;
private Combobox cmbParadaOrigem;
private Combobox cmbPuntoVenta;
private Combobox cmbMotivoCancelacion;
private Combobox cmbOrgaoConcedente;
private Combobox cmbClaseServicio;
public List<MotivoCancelacion> getLsMotivoCancelacion() {
return lsMotivoCancelacion;
@ -91,12 +97,21 @@ public class BusquedaConfiguracionCancelacionController extends MyGenericForward
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
this.lsOrgaoConcedente = lsOrgaoConcedente;
}
public List<ClaseServicio> getLsClaseServicio() {
return lsClaseServicio;
}
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
this.lsClaseServicio = lsClaseServicio;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
lsClaseServicio = claseServicioService.obtenerTodos();
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
@ -143,10 +158,15 @@ public class BusquedaConfiguracionCancelacionController extends MyGenericForward
PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null);
MotivoCancelacion motivoCancelacion = (MotivoCancelacion) (cmbMotivoCancelacion.getSelectedItem() != null ? cmbMotivoCancelacion.getSelectedItem().getValue() : null);
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) (cmbOrgaoConcedente.getSelectedItem() != null ? cmbOrgaoConcedente.getSelectedItem().getValue() : null);
ClaseServicio claseServicio = (ClaseServicio) (cmbClaseServicio.getSelectedItem() != null ? cmbClaseServicio.getSelectedItem().getValue() : null);
if (orgaoConcedente != null) {
configCancelacionBusqueda.addFilterEqual("orgaoConcedente", orgaoConcedente);
}
if (claseServicio != null) {
configCancelacionBusqueda.addFilterEqual("claseServicio", claseServicio);
}
if (marca != null) {
configCancelacionBusqueda.addFilterEqual("marca", marca);

View File

@ -28,12 +28,14 @@ import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.CancelacionCargo;
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Marca;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.service.CancelacionCtrlService;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
@ -60,6 +62,8 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
@Autowired
private MotivoCancelacionService motivoCancelacionService;
@Autowired
private ClaseServicioService claseServicioService;
@Autowired
private OrgaoConcedenteService orgaoConcedenteService;
private CancelacionCtrl cancelacionCtrl;
private static Logger log = Logger.getLogger(EditarConfiguracionCancelacionController.class);
@ -68,6 +72,7 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
private List<CancelacionCargo> lsCancelacionCargo;
private List<MotivoCancelacion> lsMotivoCancelacion;
private List<OrgaoConcedente> lsOrgaoConcedente;
private List<ClaseServicio> lsClaseServicio;
private Combobox cmbMarca;
private Combobox cmbPuntoVenta;
private MyComboboxParada cmbParadaOrigem;
@ -130,11 +135,20 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
this.lsOrgaoConcedente = lsOrgaoConcedente;
}
public List<ClaseServicio> getLsClaseServicio() {
return lsClaseServicio;
}
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
this.lsClaseServicio = lsClaseServicio;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
lsClaseServicio = claseServicioService.obtenerTodos();
lsMotivoCancelacion = motivoCancelacionService.obtenerTodos();
super.doAfterCompose(comp);

View File

@ -38,6 +38,9 @@ public class RenderConfiguracionCancelacion implements ListitemRenderer {
lc = new Listcell(cancelacion.getOrgaoConcedente() == null ? "" : cancelacion.getOrgaoConcedente().getDescOrgao());
lc.setParent(lstm);
lc = new Listcell(cancelacion.getClaseServicio() == null ? "" : cancelacion.getClaseServicio().getDescclase());
lc.setParent(lstm);
lstm.setAttribute("data", cancelacion);
}

View File

@ -1311,6 +1311,7 @@ busquedaConfiguracionCancelacionController.lhCveDestino.label = Código destino
busquedaConfiguracionCancelacionController.lhMarca.label = Marca
busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar
busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Instituición concedente
busquedaConfiguracionCancelacionController.lhClaseServicio.label = Clase de Servicio
# Pantalla Editar configuracional CANCELACION
editarConfiguracionCancelacionController.window.title = Configuración de cancelación

View File

@ -1348,6 +1348,7 @@ busquedaConfiguracionCancelacionController.lhCveDestino.label = Código Destino
busquedaConfiguracionCancelacionController.lhMarca.label = Marca
busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar
busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Orgão Concedente
busquedaConfiguracionCancelacionController.lhClaseServicio.label = Clase do Serviço
# Pantalla Editar configuracional CANCELACION
editarConfiguracionCancelacionController.window.title = Configuração de Cancelamento

View File

@ -8,7 +8,7 @@
<window id="winBusquedaConfiguracionCancelacion"
title="${c:l('busquedaConfiguracionCancelacionController.window.title')}"
apply="${busquedaConfiguracionCancelacionController}"
contentStyle="overflow:auto" height="500px" width="1000px"
contentStyle="overflow:auto" height="500px" width="1155px"
border="normal">
<toolbar>
<button id="btnRefresh" image="/gui/img/refresh.png"
@ -75,6 +75,14 @@
mold="rounded" buttonVisible="true" width="90%"
model="@{winBusquedaConfiguracionCancelacion$composer.lsOrgaoConcedente}" />
</row>
<row>
<label
value="${c:l('busquedaConfiguracionCancelacionController.lhClaseServicio.label')}" />
<combobox id="cmbClaseServicio"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" width="90%"
model="@{winBusquedaConfiguracionCancelacion$composer.lsClaseServicio}" />
</row>
</rows>
</grid>
@ -110,6 +118,9 @@
<listheader image="/gui/img/builder.gif"
label="${c:l('busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label')}"
sort="auto(orgaoConcedente.descOrgao)" />
<listheader image="/gui/img/builder.gif"
label="${c:l('busquedaConfiguracionCancelacionController.lhClaseServicio.label')}"
sort="auto(claseServicio.descclase)" />
</listhead>
</listbox>
</window>

View File

@ -95,6 +95,15 @@
model="@{winEditarConfiguracionCancelacion$composer.lsOrgaoConcedente}"
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.orgaoConcedente}"/>
</row>
<row>
<label
value="${c:l('busquedaConfiguracionCancelacionController.lhClaseServicio.label')}" />
<combobox id="cmbClaseServicio"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" width="90%"
model="@{winEditarConfiguracionCancelacion$composer.lsClaseServicio}"
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.claseServicio}"/>
</row>
</rows>
</grid>
</tabpanel>