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 org.zkoss.zul.Paging;
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl; import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Marca; import com.rjconsultores.ventaboletos.entidad.Marca;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion; import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente; import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.MarcaService; import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService; import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService; import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
@ -56,17 +58,21 @@ public class BusquedaConfiguracionCancelacionController extends MyGenericForward
private MotivoCancelacionService motivoCancelacionService; private MotivoCancelacionService motivoCancelacionService;
@Autowired @Autowired
private OrgaoConcedenteService orgaoConcedenteService; private OrgaoConcedenteService orgaoConcedenteService;
@Autowired
private ClaseServicioService claseServicioService;
private MyListbox cancelacionCtrlList; private MyListbox cancelacionCtrlList;
private Paging pagingCancelacion; private Paging pagingCancelacion;
private List<Marca> lsMarca; private List<Marca> lsMarca;
private List<MotivoCancelacion> lsMotivoCancelacion; private List<MotivoCancelacion> lsMotivoCancelacion;
private List<OrgaoConcedente> lsOrgaoConcedente; private List<OrgaoConcedente> lsOrgaoConcedente;
private List<ClaseServicio> lsClaseServicio;
private Combobox cmbMarca; private Combobox cmbMarca;
private Combobox cmbParadaDestino; private Combobox cmbParadaDestino;
private Combobox cmbParadaOrigem; private Combobox cmbParadaOrigem;
private Combobox cmbPuntoVenta; private Combobox cmbPuntoVenta;
private Combobox cmbMotivoCancelacion; private Combobox cmbMotivoCancelacion;
private Combobox cmbOrgaoConcedente; private Combobox cmbOrgaoConcedente;
private Combobox cmbClaseServicio;
public List<MotivoCancelacion> getLsMotivoCancelacion() { public List<MotivoCancelacion> getLsMotivoCancelacion() {
return lsMotivoCancelacion; return lsMotivoCancelacion;
@ -92,11 +98,20 @@ public class BusquedaConfiguracionCancelacionController extends MyGenericForward
this.lsOrgaoConcedente = lsOrgaoConcedente; this.lsOrgaoConcedente = lsOrgaoConcedente;
} }
public List<ClaseServicio> getLsClaseServicio() {
return lsClaseServicio;
}
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
this.lsClaseServicio = lsClaseServicio;
}
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos(); lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
lsClaseServicio = claseServicioService.obtenerTodos();
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa()); lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
@ -143,11 +158,16 @@ public class BusquedaConfiguracionCancelacionController extends MyGenericForward
PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null); PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null);
MotivoCancelacion motivoCancelacion = (MotivoCancelacion) (cmbMotivoCancelacion.getSelectedItem() != null ? cmbMotivoCancelacion.getSelectedItem().getValue() : null); MotivoCancelacion motivoCancelacion = (MotivoCancelacion) (cmbMotivoCancelacion.getSelectedItem() != null ? cmbMotivoCancelacion.getSelectedItem().getValue() : null);
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) (cmbOrgaoConcedente.getSelectedItem() != null ? cmbOrgaoConcedente.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) { if (orgaoConcedente != null) {
configCancelacionBusqueda.addFilterEqual("orgaoConcedente", orgaoConcedente); configCancelacionBusqueda.addFilterEqual("orgaoConcedente", orgaoConcedente);
} }
if (claseServicio != null) {
configCancelacionBusqueda.addFilterEqual("claseServicio", claseServicio);
}
if (marca != null) { if (marca != null) {
configCancelacionBusqueda.addFilterEqual("marca", marca); 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.CancelacionCargo;
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl; import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Marca; import com.rjconsultores.ventaboletos.entidad.Marca;
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion; import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente; import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.service.CancelacionCtrlService; import com.rjconsultores.ventaboletos.service.CancelacionCtrlService;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.MarcaService; import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService; import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService; import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
@ -60,6 +62,8 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
@Autowired @Autowired
private MotivoCancelacionService motivoCancelacionService; private MotivoCancelacionService motivoCancelacionService;
@Autowired @Autowired
private ClaseServicioService claseServicioService;
@Autowired
private OrgaoConcedenteService orgaoConcedenteService; private OrgaoConcedenteService orgaoConcedenteService;
private CancelacionCtrl cancelacionCtrl; private CancelacionCtrl cancelacionCtrl;
private static Logger log = Logger.getLogger(EditarConfiguracionCancelacionController.class); private static Logger log = Logger.getLogger(EditarConfiguracionCancelacionController.class);
@ -68,6 +72,7 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
private List<CancelacionCargo> lsCancelacionCargo; private List<CancelacionCargo> lsCancelacionCargo;
private List<MotivoCancelacion> lsMotivoCancelacion; private List<MotivoCancelacion> lsMotivoCancelacion;
private List<OrgaoConcedente> lsOrgaoConcedente; private List<OrgaoConcedente> lsOrgaoConcedente;
private List<ClaseServicio> lsClaseServicio;
private Combobox cmbMarca; private Combobox cmbMarca;
private Combobox cmbPuntoVenta; private Combobox cmbPuntoVenta;
private MyComboboxParada cmbParadaOrigem; private MyComboboxParada cmbParadaOrigem;
@ -131,10 +136,19 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
this.lsOrgaoConcedente = lsOrgaoConcedente; this.lsOrgaoConcedente = lsOrgaoConcedente;
} }
public List<ClaseServicio> getLsClaseServicio() {
return lsClaseServicio;
}
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
this.lsClaseServicio = lsClaseServicio;
}
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa()); lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos(); lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
lsClaseServicio = claseServicioService.obtenerTodos();
lsMotivoCancelacion = motivoCancelacionService.obtenerTodos(); lsMotivoCancelacion = motivoCancelacionService.obtenerTodos();
super.doAfterCompose(comp); super.doAfterCompose(comp);

View File

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

View File

@ -1311,6 +1311,7 @@ busquedaConfiguracionCancelacionController.lhCveDestino.label = Código destino
busquedaConfiguracionCancelacionController.lhMarca.label = Marca busquedaConfiguracionCancelacionController.lhMarca.label = Marca
busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar
busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Instituición concedente busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Instituición concedente
busquedaConfiguracionCancelacionController.lhClaseServicio.label = Clase de Servicio
# Pantalla Editar configuracional CANCELACION # Pantalla Editar configuracional CANCELACION
editarConfiguracionCancelacionController.window.title = Configuración de cancelación 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.lhMarca.label = Marca
busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar
busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Orgão Concedente busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Orgão Concedente
busquedaConfiguracionCancelacionController.lhClaseServicio.label = Clase do Serviço
# Pantalla Editar configuracional CANCELACION # Pantalla Editar configuracional CANCELACION
editarConfiguracionCancelacionController.window.title = Configuração de Cancelamento editarConfiguracionCancelacionController.window.title = Configuração de Cancelamento

View File

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

View File

@ -95,6 +95,15 @@
model="@{winEditarConfiguracionCancelacion$composer.lsOrgaoConcedente}" model="@{winEditarConfiguracionCancelacion$composer.lsOrgaoConcedente}"
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.orgaoConcedente}"/> selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.orgaoConcedente}"/>
</row> </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> </rows>
</grid> </grid>
</tabpanel> </tabpanel>