Correções - Movimentação de estoque centralizado - Agencia
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@32438 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2b09ab9fad
commit
2eede4f612
|
@ -148,7 +148,7 @@ public class MovimentacionBilhetesController extends MyGenericForwardComposer {
|
|||
Aidf aidf = (Aidf)aidfSeleccionada.getValue();
|
||||
|
||||
Comboitem origemSeleccionada = cmbPuntoVentaOrigem.getSelectedItem();
|
||||
PuntoVenta origem = (PuntoVenta)origemSeleccionada.getValue();
|
||||
PuntoVenta origem = origemSeleccionada != null ? (PuntoVenta)origemSeleccionada.getValue() : null;
|
||||
|
||||
Comboitem destinoSeleccionado = cmbPuntoVentaDestino.getSelectedItem();
|
||||
PuntoVenta destino = (PuntoVenta)destinoSeleccionado.getValue();
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
@ -19,16 +18,14 @@ import org.zkoss.zul.Comboitem;
|
|||
import org.zkoss.zul.Longbox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
import com.rjconsultores.ventaboletos.service.EstacionService;
|
||||
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
@Controller("movimentacionBilhetesPuntoVentaController")
|
||||
|
@ -57,7 +54,7 @@ public class MovimentacionBilhetesPuntoVentaController extends MyGenericForwardC
|
|||
private Combobox cmbEstacionDestino;
|
||||
|
||||
private List<PuntoVenta> lsPuntoVenta;
|
||||
private Combobox cmbPuntoVenta;
|
||||
private MyComboboxPuntoVenta cmbPuntoVenta;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -65,9 +62,11 @@ public class MovimentacionBilhetesPuntoVentaController extends MyGenericForwardC
|
|||
lsEstacion = new ArrayList<Estacion>();
|
||||
lsTipoMovimentacion = movimentacionBilhetesService.obtenerTiposMovimetacionPuntoVenta();
|
||||
|
||||
setLsPuntoVenta(puntoVentaService.buscarPuntosVentaPorUsuario(UsuarioLogado.getUsuarioLogado()));
|
||||
setLsPuntoVenta(new ArrayList<PuntoVenta>());
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
txtForminicial.setConstraint("no empty");
|
||||
}
|
||||
|
||||
public void onChange$cmbPuntoVenta(Event ev) {
|
||||
|
@ -86,6 +85,13 @@ public class MovimentacionBilhetesPuntoVentaController extends MyGenericForwardC
|
|||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
|
||||
cmbPuntoVenta.getValue();
|
||||
cmbEstacionOrigem.getValue();
|
||||
cmbEstacionDestino.getValue();
|
||||
cmbTipoMovimentacion.getValue();
|
||||
|
||||
txtForminicial.getValue();
|
||||
|
||||
try{
|
||||
|
||||
Comboitem puntoVentaSeleccionada = cmbPuntoVenta.getSelectedItem();
|
||||
|
@ -118,15 +124,18 @@ public class MovimentacionBilhetesPuntoVentaController extends MyGenericForwardC
|
|||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
cmbEstacionDestino.setSelectedItem(null);
|
||||
cmbEstacionOrigem.setSelectedItem(null);
|
||||
txtForminicial.setValue(null);
|
||||
cmbEstacionOrigem.setSelectedItem(null);
|
||||
txtFormfinal.setValue(null);
|
||||
txtCantidad.setValue(null);
|
||||
|
||||
} catch (Exception ex) {
|
||||
|
||||
String msgError = ex.getMessage();
|
||||
if(msgError == null)
|
||||
msgError = Labels.getLabel("MSG.Error");
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
msgError,
|
||||
Labels.getLabel("movimentacionBilhetesController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
|
|
@ -324,6 +324,12 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.AbastoCentral</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AbastoHisto</value>
|
||||
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Clasificacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AbastoBoleto</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DetAbastoBoleto</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.FolioPreimpreso</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RequisicionBoleto</value>
|
||||
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<label
|
||||
value="${c:l('winMovimentacionBilhetesPuntoVenta.puntoventa.label')}" />
|
||||
<combobox id="cmbPuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
width="70%" mold="rounded" buttonVisible="true"
|
||||
|
||||
model="@{winMovimentacionBilhetesPuntoVenta$composer.lsPuntoVenta}"/>
|
||||
|
|
Loading…
Reference in New Issue