- correção exibição da combinação na geração aut. de tramos e ruta
- correção da busca de tipo servicio - remoção da opção no hh offline git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24454 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
df3f9bee1c
commit
605fcddcda
|
@ -248,22 +248,27 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
||||||
Columns columns = new Columns();
|
Columns columns = new Columns();
|
||||||
|
|
||||||
Column columnSecuencia = new Column("#");
|
Column columnSecuencia = new Column("#");
|
||||||
columnSecuencia.setWidth("7%");
|
columnSecuencia.setWidth("5%");
|
||||||
columns.appendChild(columnSecuencia);
|
columns.appendChild(columnSecuencia);
|
||||||
|
|
||||||
Column columnOrigen = new Column(Labels.getLabel("gridRutaSecuencia.columnOrigen.label"));
|
Column columnOrigen = new Column(Labels.getLabel("gridRutaSecuencia.columnOrigen.label"));
|
||||||
|
columnOrigen.setWidth("24%");
|
||||||
columns.appendChild(columnOrigen);
|
columns.appendChild(columnOrigen);
|
||||||
|
|
||||||
Column columnDestino = new Column(Labels.getLabel("gridRutaSecuencia.columnDestino.label"));
|
Column columnDestino = new Column(Labels.getLabel("gridRutaSecuencia.columnDestino.label"));
|
||||||
|
columnDestino.setWidth("24%");
|
||||||
columns.appendChild(columnDestino);
|
columns.appendChild(columnDestino);
|
||||||
|
|
||||||
Column columnVia = new Column(Labels.getLabel("gridRutaSecuencia.columnVia.label"));
|
Column columnVia = new Column(Labels.getLabel("gridRutaSecuencia.columnVia.label"));
|
||||||
|
columnVia.setWidth("18%");
|
||||||
columns.appendChild(columnVia);
|
columns.appendChild(columnVia);
|
||||||
|
|
||||||
Column kmsReal = new Column(Labels.getLabel("gridRutaSecuencia.columnKmsReal.label"));
|
Column kmsReal = new Column(Labels.getLabel("gridRutaSecuencia.columnKmsReal.label"));
|
||||||
|
kmsReal.setWidth("10%");
|
||||||
columns.appendChild(kmsReal);
|
columns.appendChild(kmsReal);
|
||||||
|
|
||||||
Column tiempoRecorrido = new Column(Labels.getLabel("gridRutaSecuencia.columnTiempoRecorrido.label"));
|
Column tiempoRecorrido = new Column(Labels.getLabel("gridRutaSecuencia.columnTiempoRecorrido.label"));
|
||||||
|
tiempoRecorrido.setWidth("12%");
|
||||||
columns.appendChild(tiempoRecorrido);
|
columns.appendChild(tiempoRecorrido);
|
||||||
|
|
||||||
Column columnIDTramo = new Column(Labels.getLabel("gridRutaSecuencia.columnIDTramo.label"));
|
Column columnIDTramo = new Column(Labels.getLabel("gridRutaSecuencia.columnIDTramo.label"));
|
||||||
|
|
|
@ -107,10 +107,9 @@ public class BusquedaTipoServicioController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<TipoServicio> claseServicioBusqueda =
|
HibernateSearchObject<TipoServicio> claseServicioBusqueda =new HibernateSearchObject<TipoServicio>(TipoServicio.class, pagingTipoServicio.getPageSize());
|
||||||
new HibernateSearchObject<TipoServicio>(TipoServicio.class, pagingTipoServicio.getPageSize());
|
|
||||||
|
|
||||||
claseServicioBusqueda.addFilterLike("descservicio", "%" + txtNombre.getText().trim().concat("%"));
|
//claseServicioBusqueda.addFilterLike("descservicio", "%" + txtNombre.getText().trim().concat("%"));
|
||||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
claseServicioBusqueda.addSortAsc("descservicio");
|
claseServicioBusqueda.addSortAsc("descservicio");
|
||||||
claseServicioBusqueda.addFilterNotEqual("tiposervicioId", -1);
|
claseServicioBusqueda.addFilterNotEqual("tiposervicioId", -1);
|
||||||
|
|
|
@ -136,7 +136,6 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
|
||||||
private Integer ultimaSecuencia;
|
private Integer ultimaSecuencia;
|
||||||
private Boolean secuenciaFoiAlterada = Boolean.FALSE;
|
private Boolean secuenciaFoiAlterada = Boolean.FALSE;
|
||||||
private Boolean modificado = Boolean.FALSE;
|
private Boolean modificado = Boolean.FALSE;
|
||||||
private Checkbox chkVentaOffLine;
|
|
||||||
private static Logger log = Logger.getLogger(EditarCatalogoDeRutaController.class);
|
private static Logger log = Logger.getLogger(EditarCatalogoDeRutaController.class);
|
||||||
private boolean carregouCombinacao;
|
private boolean carregouCombinacao;
|
||||||
private Intbox txtNumRuta;
|
private Intbox txtNumRuta;
|
||||||
|
@ -639,7 +638,6 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
|
||||||
ruta.setFecmodif(Calendar.getInstance().getTime());
|
ruta.setFecmodif(Calendar.getInstance().getTime());
|
||||||
ruta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
ruta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
ruta.setClaseServicio((ClaseServicio) cmbClase.getSelectedItem().getValue());
|
ruta.setClaseServicio((ClaseServicio) cmbClase.getSelectedItem().getValue());
|
||||||
ruta.setVentaOffLine(chkVentaOffLine.isChecked());
|
|
||||||
|
|
||||||
if (rdSi.isChecked()) {
|
if (rdSi.isChecked()) {
|
||||||
ruta.setIndNombreObligatorio(Boolean.TRUE);
|
ruta.setIndNombreObligatorio(Boolean.TRUE);
|
||||||
|
|
|
@ -70,7 +70,6 @@ public class EditarTramoRutaController extends MyGenericForwardComposer {
|
||||||
private List<Empresa> lsEmpresa;
|
private List<Empresa> lsEmpresa;
|
||||||
private Combobox cmbClaseServicio;
|
private Combobox cmbClaseServicio;
|
||||||
private Combobox cmbOrgaoConcedente;
|
private Combobox cmbOrgaoConcedente;
|
||||||
private Checkbox chkVentaHandHeld;
|
|
||||||
private Checkbox chkSolicitaNombrePasajero;
|
private Checkbox chkSolicitaNombrePasajero;
|
||||||
private MyTextbox txtDscRuta;
|
private MyTextbox txtDscRuta;
|
||||||
private Window winEditarTramoRuta;
|
private Window winEditarTramoRuta;
|
||||||
|
@ -117,7 +116,6 @@ public class EditarTramoRutaController extends MyGenericForwardComposer {
|
||||||
rutaTramoVO.setClaseServicio((ClaseServicio) cmbClaseServicio.getSelectedItem().getValue());
|
rutaTramoVO.setClaseServicio((ClaseServicio) cmbClaseServicio.getSelectedItem().getValue());
|
||||||
rutaTramoVO.setOrgaoConcedente((OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue());
|
rutaTramoVO.setOrgaoConcedente((OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue());
|
||||||
rutaTramoVO.setSolicitaNombrePasajero(chkSolicitaNombrePasajero.isChecked());
|
rutaTramoVO.setSolicitaNombrePasajero(chkSolicitaNombrePasajero.isChecked());
|
||||||
rutaTramoVO.setVentaHandHeld(chkVentaHandHeld.isChecked());
|
|
||||||
rutaTramoVO.setLsSecuenciaRutaTramoVO(gridRutaSecuencia.getLsSecuenciaRutaTramoVO());
|
rutaTramoVO.setLsSecuenciaRutaTramoVO(gridRutaSecuencia.getLsSecuenciaRutaTramoVO());
|
||||||
rutaTramoVO.setLsEmpresa(lsRutaEmpresa);
|
rutaTramoVO.setLsEmpresa(lsRutaEmpresa);
|
||||||
rutaTramoVO.setPrefixo(txtPrefixo.getValue());
|
rutaTramoVO.setPrefixo(txtPrefixo.getValue());
|
||||||
|
@ -173,7 +171,6 @@ public class EditarTramoRutaController extends MyGenericForwardComposer {
|
||||||
rutaTramoVO.setClaseServicio((ClaseServicio) cmbClaseServicio.getSelectedItem().getValue());
|
rutaTramoVO.setClaseServicio((ClaseServicio) cmbClaseServicio.getSelectedItem().getValue());
|
||||||
rutaTramoVO.setOrgaoConcedente((OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue());
|
rutaTramoVO.setOrgaoConcedente((OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue());
|
||||||
rutaTramoVO.setSolicitaNombrePasajero(chkSolicitaNombrePasajero.isChecked());
|
rutaTramoVO.setSolicitaNombrePasajero(chkSolicitaNombrePasajero.isChecked());
|
||||||
rutaTramoVO.setVentaHandHeld(chkVentaHandHeld.isChecked());
|
|
||||||
rutaTramoVO.setLsSecuenciaRutaTramoVO(gridRutaSecuencia.getLsSecuenciaRutaTramoVO());
|
rutaTramoVO.setLsSecuenciaRutaTramoVO(gridRutaSecuencia.getLsSecuenciaRutaTramoVO());
|
||||||
|
|
||||||
if (radIda.isChecked()) {
|
if (radIda.isChecked()) {
|
||||||
|
|
|
@ -38,17 +38,14 @@
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<paging id="pagingTipoServicio" pageSize="15"/>
|
<paging id="pagingTipoServicio" pageSize="15"/>
|
||||||
<hbox height="310px" >
|
<listbox id="tipoServicioList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||||
<listbox id="tipoServicioList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listhead sizable="true">
|
||||||
vflex="true" multiple="false">
|
<listheader id="lhId" width="10%" image="/gui/img/create_doc.gif"
|
||||||
<listhead sizable="true">
|
label="${c:l('busquedaTipoServicioController.lhId.label')}" sort="auto(tiposervicioId)"/>
|
||||||
<listheader id="lhId" width="10%" image="/gui/img/create_doc.gif"
|
|
||||||
label="${c:l('busquedaTipoServicioController.lhId.label')}" sort="auto(tiposervicioId)"/>
|
|
||||||
|
|
||||||
<listheader id="lhDesc" width="90%" image="/gui/img/create_doc.gif"
|
<listheader id="lhDesc" width="90%" image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('busquedaTipoServicioController.lhDesc.label')}" sort="auto(descservicio)"/>
|
label="${c:l('busquedaTipoServicioController.lhDesc.label')}" sort="auto(descservicio)"/>
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</hbox>
|
|
||||||
</window>
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
<?component name="intbox" extends="intbox" constraint="no empty" style="text-align:right; color:#373842" inplace="true" width="55px"?>
|
<?component name="intbox" extends="intbox" constraint="no empty" style="text-align:right; color:#373842" inplace="true" width="55px"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk>
|
||||||
<window id="winEditarCombinacionTramoRuta" border="normal"
|
<window id="winEditarCombinacionTramoRuta" border="normal"
|
||||||
width="900px" apply="${editarCombinacionTramoRutaController}"
|
width="900px" apply="${editarCombinacionTramoRutaController}"
|
||||||
height="550px">
|
height="550px">
|
||||||
|
@ -32,8 +32,8 @@
|
||||||
|
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<vbox>
|
<vbox width="100%">
|
||||||
<tabbox id="tb">
|
<tabbox id="tb" width="100%" >
|
||||||
<tabs id="tabs">
|
<tabs id="tabs">
|
||||||
<tab id="A"
|
<tab id="A"
|
||||||
label="${c:l('editarCombinacionTramoRutaController.tabIda.label')}" />
|
label="${c:l('editarCombinacionTramoRutaController.tabIda.label')}" />
|
||||||
|
@ -41,8 +41,8 @@
|
||||||
label="${c:l('editarCombinacionTramoRutaController.tabRegreso.label')}" />
|
label="${c:l('editarCombinacionTramoRutaController.tabRegreso.label')}" />
|
||||||
</tabs>
|
</tabs>
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
<tabpanel>
|
<tabpanel width="100%">
|
||||||
<grid id="gridRutaSecuenciaIda" mold="paging" pageSize="14"
|
<grid id="gridRutaSecuenciaIda" mold="paging" pageSize="14" width="100%"
|
||||||
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.GridRutaTramo"
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.GridRutaTramo"
|
||||||
height="445px">
|
height="445px">
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in New Issue