bug #9358
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@71781 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4c113d53af
commit
c12b766062
|
@ -44,6 +44,7 @@ import com.rjconsultores.ventaboletos.entidad.CategoriaClase;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaCorrida;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaCorrida;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaCtrl;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaCtrl;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento.TipoDescontoComponentePreco;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaMarca;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaMarca;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaMercado;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaMercado;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaOrgao;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaOrgao;
|
||||||
|
@ -58,8 +59,8 @@ import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||||
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.Ruta;
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento.TipoDescontoComponentePreco;
|
|
||||||
import com.rjconsultores.ventaboletos.enums.HorarioLiberacaoVendaPassagem;
|
import com.rjconsultores.ventaboletos.enums.HorarioLiberacaoVendaPassagem;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.TipoPassagemCores;
|
||||||
import com.rjconsultores.ventaboletos.service.CategoriaCorridaService;
|
import com.rjconsultores.ventaboletos.service.CategoriaCorridaService;
|
||||||
import com.rjconsultores.ventaboletos.service.CategoriaCtrlService;
|
import com.rjconsultores.ventaboletos.service.CategoriaCtrlService;
|
||||||
import com.rjconsultores.ventaboletos.service.CategoriaPeriodoService;
|
import com.rjconsultores.ventaboletos.service.CategoriaPeriodoService;
|
||||||
|
@ -194,6 +195,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
private Checkbox chkSabado;
|
private Checkbox chkSabado;
|
||||||
private Checkbox chkDomingo;
|
private Checkbox chkDomingo;
|
||||||
|
|
||||||
|
private Radio radioCorLaranja;
|
||||||
|
private Radio radioCorVerde;
|
||||||
|
|
||||||
private Radio radioHorarioLiberacaoVendaOrigem;
|
private Radio radioHorarioLiberacaoVendaOrigem;
|
||||||
private Radio radioHorarioLiberacaoVendaTrecho;
|
private Radio radioHorarioLiberacaoVendaTrecho;
|
||||||
|
@ -841,6 +844,14 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
cDescuento.setTipodesccomppreco(TipoDescontoComponentePreco.DESCONTO_COMPONENTE_PRECO_PERC.getValor());
|
cDescuento.setTipodesccomppreco(TipoDescontoComponentePreco.DESCONTO_COMPONENTE_PRECO_PERC.getValor());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(radioCorLaranja.isChecked()) {
|
||||||
|
cDescuento.setCorpoltrona(TipoPassagemCores.LARANJA);
|
||||||
|
} else if(radioCorVerde.isChecked()) {
|
||||||
|
cDescuento.setCorpoltrona(TipoPassagemCores.VERDE);
|
||||||
|
} else {
|
||||||
|
cDescuento.setCorpoltrona(null);
|
||||||
|
}
|
||||||
|
|
||||||
cDescuento.setDesccomppreco(desccomppreco.getValue());
|
cDescuento.setDesccomppreco(desccomppreco.getValue());
|
||||||
|
|
||||||
lsCategoriaDescuento.add(cDescuento);
|
lsCategoriaDescuento.add(cDescuento);
|
||||||
|
@ -1501,4 +1512,12 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCorLaranja() {
|
||||||
|
return TipoPassagemCores.LARANJA.getUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCorVerde() {
|
||||||
|
return TipoPassagemCores.VERDE.getUrl();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento.TipoDescontoComponentePreco;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento.TipoDescontoComponentePreco;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Constante;
|
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||||
import com.rjconsultores.ventaboletos.enums.HorarioLiberacaoVendaPassagem;
|
import com.rjconsultores.ventaboletos.enums.HorarioLiberacaoVendaPassagem;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.TipoPassagemCores;
|
||||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
@ -101,6 +102,9 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
private Checkbox radioCompPrecoPor;
|
private Checkbox radioCompPrecoPor;
|
||||||
private Decimalbox desccomppreco;
|
private Decimalbox desccomppreco;
|
||||||
|
|
||||||
|
private Radio radioCorLaranja;
|
||||||
|
private Radio radioCorVerde;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
categoriaDescuentoList = (MyListbox) Executions.getCurrent().getArg().get("categoriaDescuentoList");
|
categoriaDescuentoList = (MyListbox) Executions.getCurrent().getArg().get("categoriaDescuentoList");
|
||||||
|
@ -216,6 +220,12 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
}
|
}
|
||||||
desccomppreco.setValue(categoriaDescuento.getDesccomppreco());
|
desccomppreco.setValue(categoriaDescuento.getDesccomppreco());
|
||||||
|
|
||||||
|
if(TipoPassagemCores.LARANJA.equals(categoriaDescuento.getCorpoltrona())) {
|
||||||
|
radioCorLaranja.setChecked(true);
|
||||||
|
}else if(TipoPassagemCores.VERDE.equals(categoriaDescuento.getCorpoltrona())) {
|
||||||
|
radioCorVerde.setChecked(true);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
private void preencherDataHora(Integer tiempoMinutos){
|
private void preencherDataHora(Integer tiempoMinutos){
|
||||||
if (tiempoMinutos != null){
|
if (tiempoMinutos != null){
|
||||||
|
@ -293,6 +303,14 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
categoriaDescuento.setHorarioLiberacaoVendaPassagem(HorarioLiberacaoVendaPassagem.HORARIO_LIBERACAO_VENDA_TRECHO);
|
categoriaDescuento.setHorarioLiberacaoVendaPassagem(HorarioLiberacaoVendaPassagem.HORARIO_LIBERACAO_VENDA_TRECHO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(radioCorLaranja.isChecked()) {
|
||||||
|
categoriaDescuento.setCorpoltrona(TipoPassagemCores.LARANJA);
|
||||||
|
} else if(radioCorVerde.isChecked()) {
|
||||||
|
categoriaDescuento.setCorpoltrona(TipoPassagemCores.VERDE);
|
||||||
|
} else {
|
||||||
|
categoriaDescuento.setCorpoltrona(null);
|
||||||
|
}
|
||||||
|
|
||||||
categoriaDescuento.setAsientosReservados(asientosReservados.getValue());
|
categoriaDescuento.setAsientosReservados(asientosReservados.getValue());
|
||||||
categoriaDescuento.setIndexigedocpasajero(chkExigedocpasajero.isChecked());
|
categoriaDescuento.setIndexigedocpasajero(chkExigedocpasajero.isChecked());
|
||||||
categoriaDescuento.setIndexigefecnacimientopasajero(chkExigefecnacimientopasajero.isChecked());
|
categoriaDescuento.setIndexigefecnacimientopasajero(chkExigefecnacimientopasajero.isChecked());
|
||||||
|
@ -439,4 +457,12 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCorLaranja() {
|
||||||
|
return TipoPassagemCores.LARANJA.getUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCorVerde() {
|
||||||
|
return TipoPassagemCores.VERDE.getUrl();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,3">
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaPassagem.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaPassagem.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
|
@ -233,6 +233,22 @@
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaTrecho.value')}" />
|
label="${c:l('editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaTrecho.value')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblCores.value')}" />
|
||||||
|
<hbox>
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioCorNenhuma"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblCoresNenhuma.value')}"
|
||||||
|
selected="true" />
|
||||||
|
<radio id="radioCorLaranja"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.lblCoresLaranja.value')}"
|
||||||
|
image="@{winEditarConfiguracionCategoria$composer.corLaranja}" />
|
||||||
|
<radio id="radioCorVerde"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.lblCoresVerde.value')}"
|
||||||
|
image="@{winEditarConfiguracionCategoria$composer.corVerde}" />
|
||||||
|
</radiogroup>
|
||||||
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,3" id="linhaLiberarPoltronasQuandoOnibus">
|
<row spans="1,3" id="linhaLiberarPoltronasQuandoOnibus">
|
||||||
<label id="lblLiberacionSolamenteEnvasado"
|
<label id="lblLiberacionSolamenteEnvasado"
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
<label id="lblMsgTiempo" value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value')}"/>
|
<label id="lblMsgTiempo" value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value')}"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,3">
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaPassagem.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaPassagem.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
|
@ -131,6 +131,23 @@
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblCores.value')}" />
|
||||||
|
<hbox>
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioCorNenhuma"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblCoresNenhuma.value')}"
|
||||||
|
selected="true" />
|
||||||
|
<radio id="radioCorLaranja"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.lblCoresLaranja.value')}"
|
||||||
|
image="@{winEditarConfiguracionCategoriasDatosCategoria$composer.corLaranja}" />
|
||||||
|
<radio id="radioCorVerde"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.lblCoresVerde.value')}"
|
||||||
|
image="@{winEditarConfiguracionCategoriasDatosCategoria$composer.corVerde}" />
|
||||||
|
</radiogroup>
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 128 B |
Binary file not shown.
After Width: | Height: | Size: 181 B |
Loading…
Reference in New Issue