fixes bug #6427
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@45591 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
27bea08d1b
commit
0239ee198a
|
@ -67,10 +67,10 @@ public class BusquedaPrecoApanheController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<PrecoApanhe> hotelBusqueda = new HibernateSearchObject<PrecoApanhe>(PrecoApanhe.class, pagingPrecoApanhe.getPageSize());
|
HibernateSearchObject<PrecoApanhe> precoApanhes = new HibernateSearchObject<PrecoApanhe>(PrecoApanhe.class, pagingPrecoApanhe.getPageSize());
|
||||||
|
|
||||||
hotelBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
precoApanhes.addFilterEqual("activo", Boolean.TRUE);
|
||||||
plwPrecoApanhe.init(hotelBusqueda, precoApanheList, pagingPrecoApanhe);
|
plwPrecoApanhe.init(precoApanhes, precoApanheList, pagingPrecoApanhe);
|
||||||
|
|
||||||
if (precoApanheList.getData().length == 0) {
|
if (precoApanheList.getData().length == 0) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -92,6 +92,7 @@ public class EditarPrecoApanheController extends MyGenericForwardComposer {
|
||||||
precoApanhe.setActivo(Boolean.TRUE);
|
precoApanhe.setActivo(Boolean.TRUE);
|
||||||
precoApanhe.setFecmodif(Calendar.getInstance().getTime());
|
precoApanhe.setFecmodif(Calendar.getInstance().getTime());
|
||||||
precoApanhe.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
precoApanhe.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
precoApanhe.setPreco(txtPreco.getValueDecimal());
|
||||||
|
|
||||||
if (precoApanhe.getPrecoapanheId() == null) {
|
if (precoApanhe.getPrecoapanheId() == null) {
|
||||||
precoApanheService.suscribir(precoApanhe);
|
precoApanheService.suscribir(precoApanhe);
|
||||||
|
|
|
@ -63,8 +63,8 @@ public class MyComboboxColonia extends Combobox {
|
||||||
} else {
|
} else {
|
||||||
lsColonia.clear();
|
lsColonia.clear();
|
||||||
|
|
||||||
BindingListModel listModelCiudad = new BindingListModelList(lsColonia, true);
|
BindingListModel listModelColonia = new BindingListModelList(lsColonia, true);
|
||||||
MyComboboxColonia.this.setModel(listModelCiudad);
|
MyComboboxColonia.this.setModel(listModelColonia);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -73,8 +73,8 @@ public class MyComboboxColonia extends Combobox {
|
||||||
|
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
InputEvent ev = (InputEvent) event;
|
InputEvent ev = (InputEvent) event;
|
||||||
String strCiudad = ev.getValue();
|
String strColonia = ev.getValue();
|
||||||
if (strCiudad.length() < 2) {
|
if (strColonia.length() < 2) {
|
||||||
lsColonia.clear();
|
lsColonia.clear();
|
||||||
|
|
||||||
BindingListModel listModelColonia = new BindingListModelList(lsColonia, true);
|
BindingListModel listModelColonia = new BindingListModelList(lsColonia, true);
|
||||||
|
@ -90,11 +90,11 @@ public class MyComboboxColonia extends Combobox {
|
||||||
return initialValue;
|
return initialValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInitialValue(Ciudad initialValue) {
|
public void setInitialValue(Colonia initialValue) {
|
||||||
if (initialValue == null) {
|
if (initialValue == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<Ciudad> ls = new ArrayList<Ciudad>();
|
List<Colonia> ls = new ArrayList<Colonia>();
|
||||||
ls.add(initialValue);
|
ls.add(initialValue);
|
||||||
|
|
||||||
this.setModel(new BindingListModelList(ls, false));
|
this.setModel(new BindingListModelList(ls, false));
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class ItemMenuPrecoApanhe extends DefaultItemMenuSistema {
|
||||||
@Override
|
@Override
|
||||||
public void ejecutar() {
|
public void ejecutar() {
|
||||||
PantallaUtileria.openWindow("/gui/tarifas/busquedaPrecoApanhe.zul",
|
PantallaUtileria.openWindow("/gui/tarifas/busquedaPrecoApanhe.zul",
|
||||||
Labels.getLabel("busquedaPrecoApanheContorller.window.title"), getArgs(), desktop);
|
Labels.getLabel("busquedaPrecoApanheController.window.title"), getArgs(), desktop);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,9 +63,9 @@
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbPreco" value="${c:l('editarPrecoApanheController.lhPreco.label')}"/>
|
<label id="lbPreco" value="${c:l('editarPrecoApanheController.lhPreco.label')}"/>
|
||||||
<textbox id="txtPreco" constraint="no empty" width="20%" maxlength="10"
|
<textbox id="txtPreco" width="20%"
|
||||||
value="@{winEditarPrecoApanhe$composer.precoApanhe.preco}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
precision="7" scale="2" maxlength="9" constraint="no empty"/>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in New Issue