fixes bug #9035
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@70863 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
16e096d86a
commit
48ab534299
|
@ -142,8 +142,9 @@ public class EditarRegionMetropolitanaController extends MyGenericForwardCompose
|
||||||
|
|
||||||
public void onClick$btnNovaParada(Event ev) throws InterruptedException {
|
public void onClick$btnNovaParada(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
if (regionMetropolitana.getRegionMetropolitanaId() == null)
|
// if (regionMetropolitana.getRegionMetropolitanaId() == null){
|
||||||
salvarRegionMetropolitana();
|
// salvarRegionMetropolitana();
|
||||||
|
// }
|
||||||
|
|
||||||
Parada parada = (Parada) cmbParada.getSelectedItem().getValue();
|
Parada parada = (Parada) cmbParada.getSelectedItem().getValue();
|
||||||
parada.setRegionMetropolitana(regionMetropolitana);
|
parada.setRegionMetropolitana(regionMetropolitana);
|
||||||
|
|
|
@ -117,6 +117,7 @@ public class EditarTarifaMinimaController extends MyGenericForwardComposer {
|
||||||
private MyListbox tarifaMinimaCategoriaList;
|
private MyListbox tarifaMinimaCategoriaList;
|
||||||
private Combobox cmbVigencia;
|
private Combobox cmbVigencia;
|
||||||
private Combobox cmbRegionMetropolitana;
|
private Combobox cmbRegionMetropolitana;
|
||||||
|
private Combobox cmbCoeficienteTarifa;
|
||||||
private List<VigenciaTarifa> lsVigenciaTarifa;
|
private List<VigenciaTarifa> lsVigenciaTarifa;
|
||||||
private List<Ruta> lsRuta;
|
private List<Ruta> lsRuta;
|
||||||
private List<CoeficienteTarifa> lsCoeficienteTarifa;
|
private List<CoeficienteTarifa> lsCoeficienteTarifa;
|
||||||
|
@ -169,6 +170,24 @@ public class EditarTarifaMinimaController extends MyGenericForwardComposer {
|
||||||
llenarMarcaPorClaseServicio();
|
llenarMarcaPorClaseServicio();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onChange$cmbRegionMetropolitana(InputEvent ev) {
|
||||||
|
|
||||||
|
if (ev.isChangingBySelectBack()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
cmbCoeficienteTarifa.setSelectedItem(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onChange$cmbCoeficienteTarifa(InputEvent ev) {
|
||||||
|
|
||||||
|
if (ev.isChangingBySelectBack()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
cmbRegionMetropolitana.setSelectedItem(null);
|
||||||
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
txtImportancia.getValue();
|
txtImportancia.getValue();
|
||||||
|
@ -205,6 +224,13 @@ public class EditarTarifaMinimaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
tarifaMinima.setRegionMetropolitana(regionMetropolitana);
|
tarifaMinima.setRegionMetropolitana(regionMetropolitana);
|
||||||
|
|
||||||
|
Comboitem cbiCoeficienteTarifa = cmbCoeficienteTarifa.getSelectedItem();
|
||||||
|
CoeficienteTarifa coeficienteTarifa = null;
|
||||||
|
if (cbiCoeficienteTarifa != null) {
|
||||||
|
coeficienteTarifa = (CoeficienteTarifa) cbiCoeficienteTarifa.getValue();
|
||||||
|
}
|
||||||
|
tarifaMinima.setCoeficienteTarifa(coeficienteTarifa);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (tarifaMinima.getOrgaoConcedente() == null) {
|
if (tarifaMinima.getOrgaoConcedente() == null) {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
|
|
@ -92,22 +92,6 @@
|
||||||
selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.ruta}" />
|
selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.ruta}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarifasMinimasController.lhOrigem.label')}"/>
|
|
||||||
<combobox id="cmbOrigem" constraint="no empty"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
||||||
initialValue="@{winEditarTarifaMinima$composer.tarifaMinima.origem}"
|
|
||||||
selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.origem}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarifasMinimasController.lhDestino.label')}"/>
|
|
||||||
<combobox id="cmbDestino" constraint="no empty"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
||||||
initialValue="@{winEditarTarifaMinima$composer.tarifaMinima.destino}"
|
|
||||||
selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.destino}"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaTarifaController.lhFeciniciovigencia.label')}"/>
|
<label value="${c:l('busquedaTarifaController.lhFeciniciovigencia.label')}"/>
|
||||||
|
@ -140,6 +124,24 @@
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTarifasMinimasController.lhOrigem.label')}"/>
|
||||||
|
<combobox id="cmbOrigem" constraint="no empty"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
initialValue="@{winEditarTarifaMinima$composer.tarifaMinima.origem}"
|
||||||
|
selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.origem}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('busquedaTarifasMinimasController.lhDestino.label')}"/>
|
||||||
|
<combobox id="cmbDestino" constraint="no empty"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
initialValue="@{winEditarTarifaMinima$composer.tarifaMinima.destino}"
|
||||||
|
selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.destino}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
<row visible="@{winEditarTarifaMinima$composer.tarifaMinimaSalva}">
|
<row visible="@{winEditarTarifaMinima$composer.tarifaMinimaSalva}">
|
||||||
<label id="lblCategorias"
|
<label id="lblCategorias"
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
||||||
|
|
Loading…
Reference in New Issue