git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@26412 d1611594-4594-4d17-8e1d-87c2c4800839
parent
000d585f3d
commit
1e05719f2b
|
@ -35,7 +35,6 @@ import org.zkoss.zul.Image;
|
||||||
import org.zkoss.zul.Intbox;
|
import org.zkoss.zul.Intbox;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
import org.zkoss.zul.Radio;
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Tabbox;
|
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
import org.zkoss.zul.api.Timebox;
|
import org.zkoss.zul.api.Timebox;
|
||||||
|
|
||||||
|
@ -60,7 +59,6 @@ import com.rjconsultores.ventaboletos.entidad.PtovtaTitular;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
|
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
|
||||||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.ColoniaService;
|
import com.rjconsultores.ventaboletos.service.ColoniaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||||
|
@ -109,8 +107,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
@Autowired
|
@Autowired
|
||||||
private FormaPagoService formaPagoService;
|
private FormaPagoService formaPagoService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CiudadService ciudadService;
|
|
||||||
@Autowired
|
|
||||||
private ColoniaService coloniaService;
|
private ColoniaService coloniaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private PtovtaEmpresaService ptovtaEmpresaService;
|
private PtovtaEmpresaService ptovtaEmpresaService;
|
||||||
|
@ -145,7 +141,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private List<PtovtaHorario> lsHorario;
|
private List<PtovtaHorario> lsHorario;
|
||||||
private List<PtovtaEstoque> lsEstoque;
|
private List<PtovtaEstoque> lsEstoque;
|
||||||
private List<PuntoVenta> lsDestino;
|
private List<PuntoVenta> lsDestino;
|
||||||
private Tabbox tabboxTitle;
|
|
||||||
private Radio radDatosTarjetaSi;
|
private Radio radDatosTarjetaSi;
|
||||||
private Radio radDatosTarjetaNo;
|
private Radio radDatosTarjetaNo;
|
||||||
private Radio radAprobacionAutorizado;
|
private Radio radAprobacionAutorizado;
|
||||||
|
@ -169,7 +164,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Combobox cmbUsuarioBancario;
|
private Combobox cmbUsuarioBancario;
|
||||||
private Combobox cmbUsuarioBancarioPtoVtaUsuarioBancario;
|
private Combobox cmbUsuarioBancarioPtoVtaUsuarioBancario;
|
||||||
private Combobox cmbPosicao;
|
private Combobox cmbPosicao;
|
||||||
private Combobox cmbDestino;
|
|
||||||
private Combobox cmbReceita;
|
private Combobox cmbReceita;
|
||||||
private Button btnSalvarFormaPago;
|
private Button btnSalvarFormaPago;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
|
@ -210,6 +204,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Timebox timeboxFim;
|
private Timebox timeboxFim;
|
||||||
private Intbox txtQuant;
|
private Intbox txtQuant;
|
||||||
private Intbox txtcodAg;
|
private Intbox txtcodAg;
|
||||||
|
private Intbox txtMaxCancelacion;
|
||||||
private Textbox txtNumPtoVta;
|
private Textbox txtNumPtoVta;
|
||||||
private Textbox txtNomeBanco;
|
private Textbox txtNomeBanco;
|
||||||
private Textbox numtelefonodos;
|
private Textbox numtelefonodos;
|
||||||
|
@ -241,10 +236,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.btnApagar = btnApagar;
|
this.btnApagar = btnApagar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void aplicarMascara() {
|
public void aplicarMascara() {
|
||||||
|
|
||||||
|
|
||||||
Clients.evalJavaScript("jQuery('#" + txtNumFax.getUuid()
|
Clients.evalJavaScript("jQuery('#" + txtNumFax.getUuid()
|
||||||
+ "').mask('(999)9999-9999?9');jQuery('#" + numtelefonodos.getUuid()
|
+ "').mask('(999)9999-9999?9');jQuery('#" + numtelefonodos.getUuid()
|
||||||
+ "').mask('(999)9999-9999?9');jQuery('#" + numtelefonouno.getUuid()
|
+ "').mask('(999)9999-9999?9');jQuery('#" + numtelefonouno.getUuid()
|
||||||
|
@ -252,7 +245,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
@ -270,9 +262,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
||||||
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
txtCP.setDisabled(true);
|
txtCP.setDisabled(true);
|
||||||
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
||||||
|
@ -313,11 +302,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
if (puntoVenta.getComissaoId() != null) {
|
if (puntoVenta.getComissaoId() != null) {
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getComissaoId().getExcessoAlta() != null) {
|
if (puntoVenta.getComissaoId().getExcessoAlta() != null) {
|
||||||
txtExcessoAlta.setText(puntoVenta.getComissaoId().getExcessoAlta().toString());
|
txtExcessoAlta.setText(puntoVenta.getComissaoId().getExcessoAlta().toString());
|
||||||
|
|
||||||
|
@ -358,7 +345,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
txtRoyaties.setText(puntoVenta.getComissaoId().getRoyalties().toString());
|
txtRoyaties.setText(puntoVenta.getComissaoId().getRoyalties().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getComissaoId().getTarifaDev() != null) {
|
if (puntoVenta.getComissaoId().getTarifaDev() != null) {
|
||||||
if (puntoVenta.getComissaoId().getTarifaDev()) {
|
if (puntoVenta.getComissaoId().getTarifaDev()) {
|
||||||
checkTarifaDev.setChecked(true);
|
checkTarifaDev.setChecked(true);
|
||||||
|
@ -382,7 +368,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
checkPedagioDev.setChecked(false);
|
checkPedagioDev.setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (puntoVenta.getComissaoId().getSeguroDev() != null) {
|
if (puntoVenta.getComissaoId().getSeguroDev() != null) {
|
||||||
|
@ -416,7 +401,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getComissaoId().getPedagioReceita() != null) {
|
if (puntoVenta.getComissaoId().getPedagioReceita() != null) {
|
||||||
if (puntoVenta.getComissaoId().getPedagioReceita()) {
|
if (puntoVenta.getComissaoId().getPedagioReceita()) {
|
||||||
checkPedagioReceita.setChecked(true);
|
checkPedagioReceita.setChecked(true);
|
||||||
|
@ -492,8 +476,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getDiversosId().getVendaInternet() != null) {
|
if (puntoVenta.getDiversosId().getVendaInternet() != null) {
|
||||||
if (puntoVenta.getDiversosId().getVendaInternet()) {
|
if (puntoVenta.getDiversosId().getVendaInternet()) {
|
||||||
checkVendaInternet.setChecked(true);
|
checkVendaInternet.setChecked(true);
|
||||||
|
@ -547,7 +529,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
if (puntoVenta.getTitularId() != null) {
|
if (puntoVenta.getTitularId() != null) {
|
||||||
if (puntoVenta.getTitularId().getImagem() != null) {
|
if (puntoVenta.getTitularId().getImagem() != null) {
|
||||||
|
@ -559,8 +540,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
formaPagoList.setItemRenderer(new FormaPagoDetRender());
|
formaPagoList.setItemRenderer(new FormaPagoDetRender());
|
||||||
if (puntoVenta.getLsFormaPagoDet() == null) {
|
if (puntoVenta.getLsFormaPagoDet() == null) {
|
||||||
puntoVenta.setLsFormaPagoDet(new ArrayList<FormaPagoDet>());
|
puntoVenta.setLsFormaPagoDet(new ArrayList<FormaPagoDet>());
|
||||||
|
@ -578,7 +557,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
ptovtaEmpresaList.setItemRenderer(new PtovtaEmpresaRender());
|
ptovtaEmpresaList.setItemRenderer(new PtovtaEmpresaRender());
|
||||||
|
|
||||||
|
|
||||||
if (puntoVenta.getLsPtovtaEmpresa() == null) {
|
if (puntoVenta.getLsPtovtaEmpresa() == null) {
|
||||||
puntoVenta.setLsPtovtaEmpresa(new ArrayList<PtovtaEmpresa>());
|
puntoVenta.setLsPtovtaEmpresa(new ArrayList<PtovtaEmpresa>());
|
||||||
}
|
}
|
||||||
|
@ -586,7 +564,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsPtovtaEmpresa = puntoVenta.getLsPtovtaEmpresa();
|
lsPtovtaEmpresa = puntoVenta.getLsPtovtaEmpresa();
|
||||||
ptovtaEmpresaList.setData(lsPtovtaEmpresa);
|
ptovtaEmpresaList.setData(lsPtovtaEmpresa);
|
||||||
|
|
||||||
|
|
||||||
ptovtaAntecipaList.setItemRenderer(new PtovtaAntecipacomissaoRender());
|
ptovtaAntecipaList.setItemRenderer(new PtovtaAntecipacomissaoRender());
|
||||||
if (puntoVenta.getPtovtaAntecipacomissaoList() == null) {
|
if (puntoVenta.getPtovtaAntecipacomissaoList() == null) {
|
||||||
puntoVenta.setPtovtaAntecipacomissaoList(new ArrayList<PtovtaAntecipacomissao>());
|
puntoVenta.setPtovtaAntecipacomissaoList(new ArrayList<PtovtaAntecipacomissao>());
|
||||||
|
@ -608,7 +585,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
puntoVenta.setPtovtaEstoqueList(new ArrayList<PtovtaEstoque>());
|
puntoVenta.setPtovtaEstoqueList(new ArrayList<PtovtaEstoque>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
lsEstoque = puntoVenta.getPtovtaEstoqueList();
|
lsEstoque = puntoVenta.getPtovtaEstoqueList();
|
||||||
ptovtaEstoqueList.setData(lsEstoque);
|
ptovtaEstoqueList.setData(lsEstoque);
|
||||||
|
|
||||||
|
@ -637,7 +613,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
txtNome.focus();
|
txtNome.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void clearCombobox(Combobox combobox) {
|
public void clearCombobox(Combobox combobox) {
|
||||||
|
|
||||||
int size = combobox.getItemCount();
|
int size = combobox.getItemCount();
|
||||||
|
@ -693,10 +668,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void onSelect$cmbBanco() {
|
public void onSelect$cmbBanco() {
|
||||||
InstiFinanceira banco = (InstiFinanceira) cmbBanco.getSelectedItem().getValue();
|
InstiFinanceira banco = (InstiFinanceira) cmbBanco.getSelectedItem().getValue();
|
||||||
txtNomeBanco.setValue(banco.getNome());
|
txtNomeBanco.setValue(banco.getNome());
|
||||||
|
@ -736,6 +707,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
txtMaxCancelacion.getValue();
|
||||||
txtNome.getValue();
|
txtNome.getValue();
|
||||||
txtNumPtoVta.getValue();
|
txtNumPtoVta.getValue();
|
||||||
txtNumFax.getValue();
|
txtNumFax.getValue();
|
||||||
|
@ -779,7 +751,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
cmbTipoConta.getValue();
|
cmbTipoConta.getValue();
|
||||||
cmbPosicao.getValue();
|
cmbPosicao.getValue();
|
||||||
|
|
||||||
|
|
||||||
List<PuntoVenta> lsPuntoVenta = puntoVentaService.buscaPuntoVenta(txtNumPtoVta.getValue());
|
List<PuntoVenta> lsPuntoVenta = puntoVentaService.buscaPuntoVenta(txtNumPtoVta.getValue());
|
||||||
|
|
||||||
if (!lsPuntoVenta.isEmpty()) {
|
if (!lsPuntoVenta.isEmpty()) {
|
||||||
|
@ -949,9 +920,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List<PtovtaEmpresa> lsPto = new ArrayList<PtovtaEmpresa>();
|
List<PtovtaEmpresa> lsPto = new ArrayList<PtovtaEmpresa>();
|
||||||
for (PtovtaEmpresa pto : lsPtovtaEmpresa) {
|
for (PtovtaEmpresa pto : lsPtovtaEmpresa) {
|
||||||
if (!pto.getActivo()) {
|
if (!pto.getActivo()) {
|
||||||
|
@ -982,7 +950,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
if (puntoVenta.getPuntoventaId() == null) {
|
if (puntoVenta.getPuntoventaId() == null) {
|
||||||
puntoVentaService.suscribir(puntoVenta);
|
puntoVentaService.suscribir(puntoVenta);
|
||||||
puntoVentaList.addItem(puntoVenta);
|
puntoVentaList.addItemNovo(puntoVenta);
|
||||||
} else {
|
} else {
|
||||||
puntoVentaService.actualizacion(puntoVenta);
|
puntoVentaService.actualizacion(puntoVenta);
|
||||||
puntoVentaList.updateItem(puntoVenta);
|
puntoVentaList.updateItem(puntoVenta);
|
||||||
|
@ -1030,7 +998,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void uploadPhoto(UploadEvent event) {
|
public void uploadPhoto(UploadEvent event) {
|
||||||
org.zkoss.util.media.Media media = event.getMedia();
|
org.zkoss.util.media.Media media = event.getMedia();
|
||||||
|
|
||||||
|
@ -1053,7 +1020,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void onClick$btnSalvarAntecipa() throws InterruptedException {
|
public void onClick$btnSalvarAntecipa() throws InterruptedException {
|
||||||
dateAntecipData.getValue();
|
dateAntecipData.getValue();
|
||||||
txtAntecipRetem.getValue();
|
txtAntecipRetem.getValue();
|
||||||
|
@ -1061,7 +1027,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
try {
|
try {
|
||||||
PtovtaAntecipacomissao antecipa = new PtovtaAntecipacomissao();
|
PtovtaAntecipacomissao antecipa = new PtovtaAntecipacomissao();
|
||||||
|
|
||||||
|
|
||||||
antecipa.setData(dateAntecipData.getValue());
|
antecipa.setData(dateAntecipData.getValue());
|
||||||
antecipa.setPercentual(txtAntecipPercentual.getValueDecimal());
|
antecipa.setPercentual(txtAntecipPercentual.getValueDecimal());
|
||||||
antecipa.setRetem(txtAntecipRetem.getValueDecimal());
|
antecipa.setRetem(txtAntecipRetem.getValueDecimal());
|
||||||
|
@ -1074,8 +1039,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsAntecipacomissao.add(antecipa);
|
lsAntecipacomissao.add(antecipa);
|
||||||
ptovtaAntecipaList.setData(lsAntecipacomissao);
|
ptovtaAntecipaList.setData(lsAntecipacomissao);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
log.error(ex);
|
log.error(ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -1085,7 +1048,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void onClick$btnApagarAntecipa() {
|
public void onClick$btnApagarAntecipa() {
|
||||||
try {
|
try {
|
||||||
PtovtaAntecipacomissao antecipa = (PtovtaAntecipacomissao) ptovtaAntecipaList.getSelected();
|
PtovtaAntecipacomissao antecipa = (PtovtaAntecipacomissao) ptovtaAntecipaList.getSelected();
|
||||||
|
@ -1102,15 +1064,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void onClick$btnSalvarHorario() throws InterruptedException {
|
public void onClick$btnSalvarHorario() throws InterruptedException {
|
||||||
timeboxInicio.getValue();
|
timeboxInicio.getValue();
|
||||||
timeboxFim.getValue();
|
timeboxFim.getValue();
|
||||||
try {
|
try {
|
||||||
PtovtaHorario horario = new PtovtaHorario();
|
PtovtaHorario horario = new PtovtaHorario();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
horario.setInicio(timeboxInicio.getValue());
|
horario.setInicio(timeboxInicio.getValue());
|
||||||
horario.setFim(timeboxFim.getValue());
|
horario.setFim(timeboxFim.getValue());
|
||||||
horario.setPuntoventaId(puntoVenta);
|
horario.setPuntoventaId(puntoVenta);
|
||||||
|
@ -1121,8 +1080,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsHorario.add(horario);
|
lsHorario.add(horario);
|
||||||
ptovtaHorarioList.setData(lsHorario);
|
ptovtaHorarioList.setData(lsHorario);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
log.error(ex);
|
log.error(ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -1148,7 +1105,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void onClick$btnSalvarEstoque() throws InterruptedException {
|
public void onClick$btnSalvarEstoque() throws InterruptedException {
|
||||||
txtEspecie.getValue();
|
txtEspecie.getValue();
|
||||||
cmbForm.getValue();
|
cmbForm.getValue();
|
||||||
|
@ -1157,7 +1113,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
try {
|
try {
|
||||||
PtovtaEstoque estoque = new PtovtaEstoque();
|
PtovtaEstoque estoque = new PtovtaEstoque();
|
||||||
|
|
||||||
|
|
||||||
estoque.setEspecie(txtEspecie.getValue());
|
estoque.setEspecie(txtEspecie.getValue());
|
||||||
if (cmbForm.getSelectedItem() != null) {
|
if (cmbForm.getSelectedItem() != null) {
|
||||||
estoque.setFormCont(Integer.valueOf((String) cmbForm.getSelectedItem().getValue()));
|
estoque.setFormCont(Integer.valueOf((String) cmbForm.getSelectedItem().getValue()));
|
||||||
|
@ -1176,8 +1131,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsEstoque.add(estoque);
|
lsEstoque.add(estoque);
|
||||||
ptovtaEstoqueList.setData(lsEstoque);
|
ptovtaEstoqueList.setData(lsEstoque);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
log.error(ex);
|
log.error(ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -1475,11 +1428,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public PuntoVenta getPuntoVenta() {
|
public PuntoVenta getPuntoVenta() {
|
||||||
return puntoVenta;
|
return puntoVenta;
|
||||||
}
|
}
|
||||||
|
@ -1492,7 +1440,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
return puntoVentaList;
|
return puntoVentaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public MyListbox getAntecipaList() {
|
public MyListbox getAntecipaList() {
|
||||||
return ptovtaAntecipaList;
|
return ptovtaAntecipaList;
|
||||||
}
|
}
|
||||||
|
@ -1537,7 +1484,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsEmpresas = lsEmpresas;
|
this.lsEmpresas = lsEmpresas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<PuntoVenta> getLsDestino() {
|
public List<PuntoVenta> getLsDestino() {
|
||||||
return lsDestino;
|
return lsDestino;
|
||||||
}
|
}
|
||||||
|
@ -1554,7 +1500,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsAntecipacomissao = lsAntecipacomissao;
|
this.lsAntecipacomissao = lsAntecipacomissao;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<PtovtaHorario> getLsHorario() {
|
public List<PtovtaHorario> getLsHorario() {
|
||||||
return lsHorario;
|
return lsHorario;
|
||||||
}
|
}
|
||||||
|
@ -1619,7 +1564,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.cmbPessoa = cmbPessoa;
|
this.cmbPessoa = cmbPessoa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Image getImg() {
|
public Image getImg() {
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
@ -1865,8 +1809,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.txtNumAg = txtNumAg;
|
this.txtNumAg = txtNumAg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public List<UsuarioBancario> getLsUsuarioBancario() {
|
public List<UsuarioBancario> getLsUsuarioBancario() {
|
||||||
return lsUsuarioBancario;
|
return lsUsuarioBancario;
|
||||||
}
|
}
|
||||||
|
@ -1883,8 +1825,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsParamRecoleccion = lsParamRecoleccion;
|
this.lsParamRecoleccion = lsParamRecoleccion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public MyTextboxDecimal getTxtPassagemBaixa() {
|
public MyTextboxDecimal getTxtPassagemBaixa() {
|
||||||
return txtPassagemBaixa;
|
return txtPassagemBaixa;
|
||||||
}
|
}
|
||||||
|
@ -1965,8 +1905,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.txtRoyaties = txtRoyaties;
|
this.txtRoyaties = txtRoyaties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Intbox getTxtQuant() {
|
public Intbox getTxtQuant() {
|
||||||
return txtQuant;
|
return txtQuant;
|
||||||
}
|
}
|
||||||
|
@ -1983,9 +1921,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.txtcodAg = txtcodAg;
|
this.txtcodAg = txtcodAg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public MyTextbox getTxtNumFax() {
|
public MyTextbox getTxtNumFax() {
|
||||||
return txtNumFax;
|
return txtNumFax;
|
||||||
}
|
}
|
||||||
|
@ -2050,8 +1985,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.txtCarga = txtCarga;
|
this.txtCarga = txtCarga;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Datebox getDateAntecipData() {
|
public Datebox getDateAntecipData() {
|
||||||
return dateAntecipData;
|
return dateAntecipData;
|
||||||
}
|
}
|
||||||
|
@ -2076,7 +2009,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.txtAntecipPercentual = txtAntecipPercentual;
|
this.txtAntecipPercentual = txtAntecipPercentual;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Timebox getTimeboxInicio() {
|
public Timebox getTimeboxInicio() {
|
||||||
return timeboxInicio;
|
return timeboxInicio;
|
||||||
}
|
}
|
||||||
|
@ -2101,7 +2033,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.paramRecoleccionList = paramRecoleccionList;
|
this.paramRecoleccionList = paramRecoleccionList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<PtovtaEmpresa> getLsPtovtaEmpresa() {
|
public List<PtovtaEmpresa> getLsPtovtaEmpresa() {
|
||||||
return lsPtovtaEmpresa;
|
return lsPtovtaEmpresa;
|
||||||
}
|
}
|
||||||
|
@ -2110,7 +2041,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsPtovtaEmpresa = lsPtovtaEmpresa;
|
this.lsPtovtaEmpresa = lsPtovtaEmpresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public MyListbox getPtovtaEmpresaList() {
|
public MyListbox getPtovtaEmpresaList() {
|
||||||
return ptovtaEmpresaList;
|
return ptovtaEmpresaList;
|
||||||
}
|
}
|
||||||
|
@ -2135,5 +2065,4 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.ptovtaUsuarioBancarioList = ptovtaUsuarioBancarioList;
|
this.ptovtaUsuarioBancarioList = ptovtaUsuarioBancarioList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarPuntoVenta"?>
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarPuntoVenta"?>
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarPuntoVenta" border="normal"
|
<window id="winEditarPuntoVenta" border="normal"
|
||||||
apply="${editarPuntoVentaController}" height="575px" width="640px"
|
apply="${editarPuntoVentaController}" height="575px" width="640px"
|
||||||
|
|
Loading…
Reference in New Issue