Alteração do cadastro de ponto de venda (agencia)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@22225 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4239d331b0
commit
b60bfa9baa
|
@ -4,6 +4,7 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
@ -16,13 +17,16 @@ import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.UiException;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.UploadEvent;
|
||||||
import org.zkoss.zkplus.databind.BindingListModel;
|
import org.zkoss.zkplus.databind.BindingListModel;
|
||||||
import org.zkoss.zkplus.databind.BindingListModelList;
|
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||||
import org.zkoss.zul.Button;
|
import org.zkoss.zul.Button;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
import org.zkoss.zul.Doublebox;
|
import org.zkoss.zul.Doublebox;
|
||||||
|
import org.zkoss.zul.Image;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
import org.zkoss.zul.Radio;
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
@ -36,7 +40,10 @@ import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Nodo;
|
import com.rjconsultores.ventaboletos.entidad.Nodo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ParamRecoleccion;
|
import com.rjconsultores.ventaboletos.entidad.ParamRecoleccion;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario;
|
import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtovtaAgenciaBancaria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtovtaBanco;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa;
|
import com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa;
|
||||||
|
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;
|
||||||
|
@ -47,6 +54,8 @@ import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||||
import com.rjconsultores.ventaboletos.service.MonedaService;
|
import com.rjconsultores.ventaboletos.service.MonedaService;
|
||||||
import com.rjconsultores.ventaboletos.service.NodoService;
|
import com.rjconsultores.ventaboletos.service.NodoService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
|
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PtovtaAgenciaBancariaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PtovtaBancoService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
|
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
|
@ -72,6 +81,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Autowired
|
@Autowired
|
||||||
private PuntoVentaService puntoVentaService;
|
private PuntoVentaService puntoVentaService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PtovtaAgenciaBancariaService agenciaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmpresaService empresaService;
|
private EmpresaService empresaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -79,6 +91,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
@Autowired
|
@Autowired
|
||||||
private MonedaService monedaService;
|
private MonedaService monedaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
private PtovtaBancoService ptovtaBancoService;
|
||||||
|
@Autowired
|
||||||
private NodoService nodoService;
|
private NodoService nodoService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private FormaPagoService formaPagoService;
|
private FormaPagoService formaPagoService;
|
||||||
|
@ -92,6 +106,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private PtoVtaUsuarioBancarioService ptoVtaUsuarioBancarioService;
|
private PtoVtaUsuarioBancarioService ptoVtaUsuarioBancarioService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private UsuarioBancarioService usuarioBancarioService;
|
private UsuarioBancarioService usuarioBancarioService;
|
||||||
|
private PtovtaAgenciaBancaria agenciaBancaria;
|
||||||
private PuntoVenta puntoVenta;
|
private PuntoVenta puntoVenta;
|
||||||
private Textbox txtCP;
|
private Textbox txtCP;
|
||||||
private MyListbox puntoVentaList;
|
private MyListbox puntoVentaList;
|
||||||
|
@ -101,6 +116,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private MyListbox ptovtaUsuarioBancarioList;
|
private MyListbox ptovtaUsuarioBancarioList;
|
||||||
private static Logger log = Logger.getLogger(EditarPuntoVentaController.class);
|
private static Logger log = Logger.getLogger(EditarPuntoVentaController.class);
|
||||||
private List<Empresa> lsEmpresas;
|
private List<Empresa> lsEmpresas;
|
||||||
|
private List<PtovtaBanco> lsBanco;
|
||||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||||
private List<Moneda> lsMoneda;
|
private List<Moneda> lsMoneda;
|
||||||
private List<Colonia> lsColonia;
|
private List<Colonia> lsColonia;
|
||||||
|
@ -112,6 +128,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private List<UsuarioBancario> lsUsuarioBancario;
|
private List<UsuarioBancario> lsUsuarioBancario;
|
||||||
private List<PtovtaEmpresa> lsPtovtaEmpresa;
|
private List<PtovtaEmpresa> lsPtovtaEmpresa;
|
||||||
private List<PtoVtaUsuarioBancario> lsPtovtaUsuarioBancario;
|
private List<PtoVtaUsuarioBancario> lsPtovtaUsuarioBancario;
|
||||||
|
private List<PtovtaAgenciaBancaria> lsAgencia;
|
||||||
|
|
||||||
|
|
||||||
private MyTextbox txtNome;
|
private MyTextbox txtNome;
|
||||||
private Radio radDatosTarjetaSi;
|
private Radio radDatosTarjetaSi;
|
||||||
private Radio radDatosTarjetaNo;
|
private Radio radDatosTarjetaNo;
|
||||||
|
@ -125,8 +144,23 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Combobox cmbTipoPontoVenta;
|
private Combobox cmbTipoPontoVenta;
|
||||||
private Combobox cmbMoneda;
|
private Combobox cmbMoneda;
|
||||||
private Combobox cmbNodo;
|
private Combobox cmbNodo;
|
||||||
|
private Combobox cmbBanco;
|
||||||
|
private Combobox cmbPessoa;
|
||||||
|
private Combobox cmbTipoConta;
|
||||||
private Button btnSalvarFormaPago;
|
private Button btnSalvarFormaPago;
|
||||||
private Doublebox txtCargosExtras;
|
private Doublebox txtCargosExtras;
|
||||||
|
private MyTextbox txtNumFax;
|
||||||
|
private MyTextbox txtCompl;
|
||||||
|
private Textbox txtNumAg;
|
||||||
|
private Textbox txtConta;
|
||||||
|
private Textbox txtDigito;
|
||||||
|
private Textbox txtBilhetes;
|
||||||
|
private Textbox txtCarga;
|
||||||
|
private Textbox txtNomeBanco;
|
||||||
|
private Textbox txtTitularNome;
|
||||||
|
private Textbox txtTitularCpf;
|
||||||
|
private Textbox txtTitularRg;
|
||||||
|
private Textbox txtTitularEmissor;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
private Combobox cmbCiudad;
|
private Combobox cmbCiudad;
|
||||||
private Combobox cmbColonia;
|
private Combobox cmbColonia;
|
||||||
|
@ -135,6 +169,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Combobox cmbUsuarioBancarioPtoVtaUsuarioBancario;
|
private Combobox cmbUsuarioBancarioPtoVtaUsuarioBancario;
|
||||||
private MyTextboxDecimal importeInicial;
|
private MyTextboxDecimal importeInicial;
|
||||||
private MyTextboxDecimal importeAdicional;
|
private MyTextboxDecimal importeAdicional;
|
||||||
|
private Image img;
|
||||||
|
|
||||||
|
|
||||||
public Button getBtnApagar() {
|
public Button getBtnApagar() {
|
||||||
return btnApagar;
|
return btnApagar;
|
||||||
|
@ -144,10 +180,21 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.btnApagar = btnApagar;
|
this.btnApagar = btnApagar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
popularCombobox(cmbPessoa, this.getPessoa());
|
||||||
|
popularCombobox(cmbTipoConta, this.getTipoConta());
|
||||||
|
|
||||||
lsEmpresas = empresaService.obtenerIndTipo1();
|
lsEmpresas = empresaService.obtenerIndTipo1();
|
||||||
lsMoneda = monedaService.obtenerTodos();
|
lsMoneda = monedaService.obtenerTodos();
|
||||||
|
lsBanco = ptovtaBancoService.obtenerTodos();
|
||||||
lsCiudad = ciudadService.obtenerTodos();
|
lsCiudad = ciudadService.obtenerTodos();
|
||||||
lsColonia = new ArrayList<Colonia>();
|
lsColonia = new ArrayList<Colonia>();
|
||||||
lsNodos = nodoService.obtenerTodos();
|
lsNodos = nodoService.obtenerTodos();
|
||||||
|
@ -155,10 +202,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
||||||
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
txtCP.setDisabled(true);
|
txtCP.setDisabled(true);
|
||||||
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
||||||
|
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
puntoVenta = puntoVentaService.obtenerID(puntoVenta.getPuntoventaId());
|
puntoVenta = puntoVentaService.obtenerID(puntoVenta.getPuntoventaId());
|
||||||
if (puntoVenta.getColonia() != null) {
|
if (puntoVenta.getColonia() != null) {
|
||||||
|
@ -179,6 +228,39 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
|
if (puntoVenta.getAgenciaId()!= null) {
|
||||||
|
if (puntoVenta.getAgenciaId()!= null) {
|
||||||
|
if(puntoVenta.getAgenciaId().getBancoId()!= null){
|
||||||
|
cmbBanco.setText(puntoVenta.getAgenciaId().getBancoId().getCodigo());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(puntoVenta.getAgenciaId().getPessoa() != null){
|
||||||
|
cmbPessoa.setText(puntoVenta.getAgenciaId().getPessoa());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(puntoVenta.getAgenciaId().getTipo() != null){
|
||||||
|
cmbPessoa.setText(puntoVenta.getAgenciaId().getTipo());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
puntoVenta.setAgenciaId(new PtovtaAgenciaBancaria());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
|
if(puntoVenta.getTitularId() != null){
|
||||||
|
if (puntoVenta.getTitularId().getImagem() != null) {
|
||||||
|
img.setContent(new org.zkoss.image.AImage("foto",puntoVenta.getTitularId().getImagem()));
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
puntoVenta.setTitularId(new PtovtaTitular());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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>());
|
||||||
|
@ -186,6 +268,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsFormaPagoDet = puntoVenta.getLsFormaPagoDet();
|
lsFormaPagoDet = puntoVenta.getLsFormaPagoDet();
|
||||||
formaPagoList.setData(lsFormaPagoDet);
|
formaPagoList.setData(lsFormaPagoDet);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
paramRecoleccionList.setItemRenderer(new ParamRecoleccionRender());
|
paramRecoleccionList.setItemRenderer(new ParamRecoleccionRender());
|
||||||
if (puntoVenta.getLsParamRecoleccion() == null) {
|
if (puntoVenta.getLsParamRecoleccion() == null) {
|
||||||
puntoVenta.setLsParamRecoleccion(new ArrayList<ParamRecoleccion>());
|
puntoVenta.setLsParamRecoleccion(new ArrayList<ParamRecoleccion>());
|
||||||
|
@ -195,10 +281,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
paramRecoleccionList.setData(lsParamRecoleccion);
|
paramRecoleccionList.setData(lsParamRecoleccion);
|
||||||
|
|
||||||
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>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lsPtovtaEmpresa = puntoVenta.getLsPtovtaEmpresa();
|
lsPtovtaEmpresa = puntoVenta.getLsPtovtaEmpresa();
|
||||||
ptovtaEmpresaList.setData(lsPtovtaEmpresa);
|
ptovtaEmpresaList.setData(lsPtovtaEmpresa);
|
||||||
|
|
||||||
|
@ -227,6 +317,42 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
txtNome.focus();
|
txtNome.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearCombobox(Combobox combobox) {
|
||||||
|
|
||||||
|
int size = combobox.getItemCount();
|
||||||
|
|
||||||
|
for (int i = size - 1; i >= 0; i--){
|
||||||
|
combobox.removeItemAt(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void popularCombobox(Combobox cmb, List<String> lista) throws Exception{
|
||||||
|
|
||||||
|
clearCombobox(cmb);
|
||||||
|
|
||||||
|
List<String> getList = lista;
|
||||||
|
|
||||||
|
if(!getList.isEmpty()){
|
||||||
|
|
||||||
|
for (String obj : getList) {
|
||||||
|
|
||||||
|
Comboitem comboItem = new Comboitem(obj);
|
||||||
|
comboItem.setValue(obj);
|
||||||
|
comboItem.setParent(cmb);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onSelect$cmbBanco(){
|
||||||
|
PtovtaBanco banco = (PtovtaBanco) cmbBanco.getSelectedItem().getValue();
|
||||||
|
txtNomeBanco.setValue(banco.getNome());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void onChange$cmbCiudad(Event ev) {
|
public void onChange$cmbCiudad(Event ev) {
|
||||||
if (cmbCiudad.getSelectedItem() == null) {
|
if (cmbCiudad.getSelectedItem() == null) {
|
||||||
return;
|
return;
|
||||||
|
@ -250,6 +376,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
txtNome.getValue();
|
txtNome.getValue();
|
||||||
|
txtNumFax.getValue();
|
||||||
|
txtCompl.getValue();
|
||||||
|
txtNumAg.getValue();
|
||||||
cmbEmpresa.getValue();
|
cmbEmpresa.getValue();
|
||||||
cmbParada.getValue();
|
cmbParada.getValue();
|
||||||
cmbTipoPontoVenta.getValue();
|
cmbTipoPontoVenta.getValue();
|
||||||
|
@ -258,6 +387,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
cmbColonia.setConstraint("no empty");
|
cmbColonia.setConstraint("no empty");
|
||||||
cmbColonia.getValue();
|
cmbColonia.getValue();
|
||||||
cmbCiudad.getValue();
|
cmbCiudad.getValue();
|
||||||
|
cmbBanco.getValue();
|
||||||
|
cmbPessoa.getValue();
|
||||||
|
cmbTipoConta.getValue();
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (puntoVenta.getEmpresa() == null) {
|
if (puntoVenta.getEmpresa() == null) {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -319,6 +453,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
puntoVenta.setLsParamRecoleccion(lsParamRecoleccion);
|
puntoVenta.setLsParamRecoleccion(lsParamRecoleccion);
|
||||||
puntoVenta.setLsPtovtaEmpresa(lsPtovtaEmpresa);
|
puntoVenta.setLsPtovtaEmpresa(lsPtovtaEmpresa);
|
||||||
puntoVenta.setLsPtovtaUsuarioBancario(lsPtovtaUsuarioBancario);
|
puntoVenta.setLsPtovtaUsuarioBancario(lsPtovtaUsuarioBancario);
|
||||||
|
puntoVenta.setAgenciaId(preencherAgenciaBancaria());
|
||||||
|
puntoVenta.setTitularId(preencherTitular());
|
||||||
|
|
||||||
|
|
||||||
List<PtovtaEmpresa> lsPto = new ArrayList<PtovtaEmpresa>();
|
List<PtovtaEmpresa> lsPto = new ArrayList<PtovtaEmpresa>();
|
||||||
for (PtovtaEmpresa pto : lsPtovtaEmpresa) {
|
for (PtovtaEmpresa pto : lsPtovtaEmpresa) {
|
||||||
|
@ -403,9 +540,93 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void uploadPhoto(UploadEvent event) {
|
||||||
|
org.zkoss.util.media.Media media = event.getMedia();
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (media instanceof org.zkoss.image.Image) {
|
||||||
|
img.setContent(new org.zkoss.image.AImage(media.getName(),
|
||||||
|
media.getStreamData()));
|
||||||
|
} else {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarPuntoVentaController.MSG.errorIMG") + " " + media,
|
||||||
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
} catch (IOException ex) {
|
||||||
|
log.error(ex);
|
||||||
|
throw UiException.Aide.wrap(ex);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
log.error(ex);
|
||||||
|
throw UiException.Aide.wrap(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public PtovtaTitular preencherTitular(){
|
||||||
|
|
||||||
|
txtTitularNome.getValue();
|
||||||
|
txtTitularCpf.getValue();
|
||||||
|
txtTitularRg.getValue();
|
||||||
|
txtTitularEmissor.getValue();
|
||||||
|
|
||||||
|
PtovtaTitular titular = new PtovtaTitular();
|
||||||
|
titular.setNome(txtTitularNome.getValue());
|
||||||
|
titular.setCpf(txtTitularCpf.getValue());
|
||||||
|
titular.setRg(txtTitularRg.getValue());
|
||||||
|
titular.setNome(txtTitularEmissor.getValue());
|
||||||
|
if (img.getContent() != null) {
|
||||||
|
titular.setImagem(img.getContent().getByteData());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
titular.setActivo(Boolean.TRUE);
|
||||||
|
titular.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
titular.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
|
return titular;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public PtovtaAgenciaBancaria preencherAgenciaBancaria() {
|
||||||
|
cmbBanco.getValue();
|
||||||
|
cmbPessoa.getValue();
|
||||||
|
txtNumAg.getValue();
|
||||||
|
|
||||||
|
txtConta.getValue();
|
||||||
|
txtDigito.getValue();
|
||||||
|
txtBilhetes.getValue();
|
||||||
|
txtCarga.getValue();
|
||||||
|
|
||||||
|
PtovtaBanco banco = new PtovtaBanco();
|
||||||
|
PtovtaAgenciaBancaria agencia = new PtovtaAgenciaBancaria();
|
||||||
|
banco = (PtovtaBanco) cmbBanco.getSelectedItem().getValue();
|
||||||
|
agencia.setBancoId(banco);
|
||||||
|
agencia.setNumagencia(txtNumAg.getValue());
|
||||||
|
agencia.setNumconta(txtConta.getValue());
|
||||||
|
agencia.setDigito(txtDigito.getValue());
|
||||||
|
|
||||||
|
agencia.setCarga(txtCarga.getValue());
|
||||||
|
agencia.setBilhetes(txtBilhetes.getValue());
|
||||||
|
agencia.setBancoId(banco);
|
||||||
|
agencia.setPessoa((String) cmbPessoa.getSelectedItem().getValue());
|
||||||
|
agencia.setTipo((String) cmbTipoConta.getSelectedItem().getValue());
|
||||||
|
|
||||||
|
agencia.setActivo(Boolean.TRUE);
|
||||||
|
agencia.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
agencia.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
|
||||||
|
return agencia;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvarFormaPago(Event ev) throws InterruptedException {
|
public void onClick$btnSalvarFormaPago(Event ev) throws InterruptedException {
|
||||||
cmbFormaPago.getValue();
|
cmbFormaPago.getValue();
|
||||||
txtCargosExtras.getValue();
|
txtCargosExtras.getValue();
|
||||||
|
txtNumFax.getValue();
|
||||||
try {
|
try {
|
||||||
FormaPago formaPago = new FormaPago();
|
FormaPago formaPago = new FormaPago();
|
||||||
try {
|
try {
|
||||||
|
@ -675,6 +896,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getPessoa() {
|
||||||
|
return PtovtaAgenciaBancaria.getPessoaList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getTipoConta() {
|
||||||
|
return PtovtaAgenciaBancaria.getTipoContaList();
|
||||||
|
}
|
||||||
|
|
||||||
public PuntoVenta getPuntoVenta() {
|
public PuntoVenta getPuntoVenta() {
|
||||||
return puntoVenta;
|
return puntoVenta;
|
||||||
}
|
}
|
||||||
|
@ -747,6 +976,47 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsMoneda = lsMoneda;
|
this.lsMoneda = lsMoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PtovtaBancoService getBancoService() {
|
||||||
|
return ptovtaBancoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBancoService(PtovtaBancoService ptovtaBancoService) {
|
||||||
|
this.ptovtaBancoService = ptovtaBancoService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PtovtaBanco> getLsBanco() {
|
||||||
|
return lsBanco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsBanco(List<PtovtaBanco> lsBanco) {
|
||||||
|
this.lsBanco = lsBanco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbBanco() {
|
||||||
|
return cmbBanco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbBanco(Combobox cmbBanco) {
|
||||||
|
this.cmbBanco = cmbBanco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbPessoa() {
|
||||||
|
return cmbPessoa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbPessoa(Combobox cmbPessoa) {
|
||||||
|
this.cmbPessoa = cmbPessoa;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Image getImg() {
|
||||||
|
return img;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImg(Image img) {
|
||||||
|
this.img = img;
|
||||||
|
}
|
||||||
|
|
||||||
public Radio getRadAprobacionAutorizado() {
|
public Radio getRadAprobacionAutorizado() {
|
||||||
return radAprobacionAutorizado;
|
return radAprobacionAutorizado;
|
||||||
}
|
}
|
||||||
|
@ -959,6 +1229,16 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.txtCP = txtCP;
|
this.txtCP = txtCP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtNumAg() {
|
||||||
|
return txtNumAg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtNumAg(Textbox txtNumAg) {
|
||||||
|
this.txtNumAg = txtNumAg;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public List<UsuarioBancario> getLsUsuarioBancario() {
|
public List<UsuarioBancario> getLsUsuarioBancario() {
|
||||||
return lsUsuarioBancario;
|
return lsUsuarioBancario;
|
||||||
}
|
}
|
||||||
|
@ -975,6 +1255,40 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsParamRecoleccion = lsParamRecoleccion;
|
this.lsParamRecoleccion = lsParamRecoleccion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Textbox getTxtConta() {
|
||||||
|
return txtConta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtConta(Textbox txtConta) {
|
||||||
|
this.txtConta = txtConta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtDigito() {
|
||||||
|
return txtDigito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtDigito(Textbox txtDigito) {
|
||||||
|
this.txtDigito = txtDigito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtBilhetes() {
|
||||||
|
return txtBilhetes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtBilhetes(Textbox txtBilhetes) {
|
||||||
|
this.txtBilhetes = txtBilhetes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtCarga() {
|
||||||
|
return txtCarga;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCarga(Textbox txtCarga) {
|
||||||
|
this.txtCarga = txtCarga;
|
||||||
|
}
|
||||||
|
|
||||||
public MyListbox getParamRecoleccionList() {
|
public MyListbox getParamRecoleccionList() {
|
||||||
return paramRecoleccionList;
|
return paramRecoleccionList;
|
||||||
}
|
}
|
||||||
|
@ -983,6 +1297,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.paramRecoleccionList = paramRecoleccionList;
|
this.paramRecoleccionList = paramRecoleccionList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<PtovtaEmpresa> getLsPtovtaEmpresa() {
|
public List<PtovtaEmpresa> getLsPtovtaEmpresa() {
|
||||||
return lsPtovtaEmpresa;
|
return lsPtovtaEmpresa;
|
||||||
}
|
}
|
||||||
|
@ -991,6 +1306,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
this.lsPtovtaEmpresa = lsPtovtaEmpresa;
|
this.lsPtovtaEmpresa = lsPtovtaEmpresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public MyListbox getPtovtaEmpresaList() {
|
public MyListbox getPtovtaEmpresaList() {
|
||||||
return ptovtaEmpresaList;
|
return ptovtaEmpresaList;
|
||||||
}
|
}
|
||||||
|
|
|
@ -486,6 +486,8 @@ editarPuntoVentaController.lbNome.value = Ponto de Venda ( Agência )
|
||||||
editarPuntoVentaController.lbActivo.value = Ativo
|
editarPuntoVentaController.lbActivo.value = Ativo
|
||||||
editarPuntoVentaController.lbCalle.value = Rua
|
editarPuntoVentaController.lbCalle.value = Rua
|
||||||
editarPuntoVentaController.lbNumero.value = Número
|
editarPuntoVentaController.lbNumero.value = Número
|
||||||
|
editarPuntoVentaController.lbCompl.value = Complemento
|
||||||
|
editarPuntoVentaController.lbCompl.value = Complemento
|
||||||
editarPuntoVentaController.lbDescCorreo.value = Endereço de email
|
editarPuntoVentaController.lbDescCorreo.value = Endereço de email
|
||||||
editarPuntoVentaController.lbColonia.value = Bairro
|
editarPuntoVentaController.lbColonia.value = Bairro
|
||||||
editarPuntoVentaController.lbCodPostal.value = CP
|
editarPuntoVentaController.lbCodPostal.value = CP
|
||||||
|
@ -496,8 +498,9 @@ editarPuntoVentaController.lbdscContrasenaInternet.value = Senha Internet
|
||||||
editarPuntoVentaController.lbPoblacion.value = População
|
editarPuntoVentaController.lbPoblacion.value = População
|
||||||
editarPuntoVentaController.lbMunicipio.value = Município
|
editarPuntoVentaController.lbMunicipio.value = Município
|
||||||
editarPuntoVentaController.lbEstado.value = Estado
|
editarPuntoVentaController.lbEstado.value = Estado
|
||||||
editarPuntoVentaController.lbTelefonoUno.value = Telefone 1
|
editarPuntoVentaController.lbTelefonoUno.value = Telefone
|
||||||
editarPuntoVentaController.lbTelefonoDos.value = Telefone 2
|
editarPuntoVentaController.lbTelefonoDos.value = Celular
|
||||||
|
editarPuntoVentaController.lbNumFax.value = Fax
|
||||||
editarPuntoVentaController.lbNumEdirecion.value = Endereço
|
editarPuntoVentaController.lbNumEdirecion.value = Endereço
|
||||||
editarPuntoVentaController.lbIndDatosTarjeta.value = Base de dados
|
editarPuntoVentaController.lbIndDatosTarjeta.value = Base de dados
|
||||||
editarPuntoVentaController.lbNodo.value = Servidor
|
editarPuntoVentaController.lbNodo.value = Servidor
|
||||||
|
@ -524,8 +527,14 @@ editarPuntoVentaController.MSG.Achou.ParamRecoleccion = Parametro para sangria j
|
||||||
editarPuntoVentaController.MSG.Achou.PtovtaEmpresa = Empresas para Venda já está registrada.
|
editarPuntoVentaController.MSG.Achou.PtovtaEmpresa = Empresas para Venda já está registrada.
|
||||||
editarPuntoVentaController.MSG.Achou.PtovtaUsuario = Empresa já está registrado.
|
editarPuntoVentaController.MSG.Achou.PtovtaUsuario = Empresa já está registrado.
|
||||||
editarPuntoVentaController.tab.label.endereco = Endereço
|
editarPuntoVentaController.tab.label.endereco = Endereço
|
||||||
|
editarPuntoVentaController.tab.label.banco = Banco
|
||||||
|
editarPuntoVentaController.tab.label.titular = Titular/Foto
|
||||||
|
editarPuntoVentaController.tab.label.antecipa = Antecipa. Com.
|
||||||
|
editarPuntoVentaController.tab.label.horario = Horários
|
||||||
|
editarPuntoVentaController.tab.label.comissao = Comissão
|
||||||
editarPuntoVentaController.tab.label.recoleccion = Sangria
|
editarPuntoVentaController.tab.label.recoleccion = Sangria
|
||||||
editarPuntoVentaController.tab.label.empVenta = Empresas para Venda
|
editarPuntoVentaController.tab.label.empVenta = Empresas para Venda
|
||||||
|
editarPuntoVentaController.tab.label.estoque = Estoque Mínimo
|
||||||
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
||||||
editarPuntoVentaController.lbCP.value = Cod. Postal
|
editarPuntoVentaController.lbCP.value = Cod. Postal
|
||||||
|
|
||||||
|
@ -3836,3 +3845,52 @@ editarAliasServicoController.MSG.suscribirOK = Alias Localidade gravado com suce
|
||||||
editarAliasServicoController.MSG.borrarPergunta = Deseja apagar Alias Localidade?
|
editarAliasServicoController.MSG.borrarPergunta = Deseja apagar Alias Localidade?
|
||||||
editarAliasServicoController.MSG.borrarOK = Alias Localidade apagado com sucesso.
|
editarAliasServicoController.MSG.borrarOK = Alias Localidade apagado com sucesso.
|
||||||
editarAliasServicoController.btnBuscarServico.tooltiptext = Buscar Serviço
|
editarAliasServicoController.btnBuscarServico.tooltiptext = Buscar Serviço
|
||||||
|
|
||||||
|
#Editar Agencia Bancaria
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbBanco.value = Banco
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbNumAg.value = Número da Agência
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbTipoConta.value = Tipo Conta
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbNumConta.value = Número Conta
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbPessoa.value = Pessoa
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbBilhetes.value = Bilhetes
|
||||||
|
editarConfiguracionAgenciaBancariaController.lbCarga.value = Carga
|
||||||
|
|
||||||
|
#Editar Titular
|
||||||
|
editarConfiguracionTitularController.lbNome.value = Nome
|
||||||
|
editarConfiguracionTitularController.lbCpf.value = CPF
|
||||||
|
editarConfiguracionTitularController.lbRg.value = RG
|
||||||
|
editarConfiguracionTitularController.lbOrgEmis.value = Orgão Emissor
|
||||||
|
editarConfiguracionTitularController.lbUpload.value = Foto
|
||||||
|
editarConfiguracionTitularController.btnUpload.Foto = Selecionar Imagem
|
||||||
|
editarConfiguracionTitularController.btnUpload.tooltiptext = Inserir a foto do titular
|
||||||
|
|
||||||
|
#Editar AntecipaComissao
|
||||||
|
editarConfiguracionAntecipaComController.lbData.value = Data
|
||||||
|
editarConfiguracionAntecipaComController.lbRetem.value = Retém
|
||||||
|
editarConfiguracionAntecipaComController.lbPercentual.value = Percentual
|
||||||
|
editarConfiguracionAntecipaController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarConfiguracionAntecipaController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarConfiguracionAntecipaController.lblData.value = Data
|
||||||
|
editarConfiguracionAntecipaController.lblRetem.value = Retem
|
||||||
|
editarConfiguracionAntecipaController.lblPercentual.value = Percentual
|
||||||
|
|
||||||
|
#Editar Horario
|
||||||
|
editarConfiguracionHorarioController.lbInicio.value = Início
|
||||||
|
editarConfiguracionHorarioController.lbFim.value = Fim
|
||||||
|
editarConfiguracionHorarioController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarConfiguracionHorarioController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarConfiguracionHorarioController.lblInicio.value = Início
|
||||||
|
editarConfiguracionHorarioController.lblFim.value = Fim
|
||||||
|
|
||||||
|
#Editar Estoque
|
||||||
|
editarConfiguracionEstoqueController.lbEspecie.value = Espécie
|
||||||
|
editarConfiguracionEstoqueController.lbForm.value = Form. Cont.
|
||||||
|
editarConfiguracionEstoqueController.lbQuant.value = Quantidade
|
||||||
|
editarConfiguracionEstoqueController.lbLote.value = Lote Form.
|
||||||
|
editarConfiguracionEstoqueController.btnApagar.tooltiptext = Eliminar
|
||||||
|
editarConfiguracionEstoqueController.btnSalvar.tooltiptext = Salvar
|
||||||
|
editarConfiguracionEstoqueController.lblEspecie.value = Espécie
|
||||||
|
editarConfiguracionEstoqueController.lblForm.value = Form. Cont.
|
||||||
|
editarConfiguracionEstoqueController.lblQuant.value = Quantidade
|
||||||
|
editarConfiguracionEstoqueController.lblLote.value = Lote Form.
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<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="520px" width="640px"
|
apply="${editarPuntoVentaController}" height="520px" width="640px"
|
||||||
contentStyle="overflow:auto"
|
contentStyle="overflow:auto" xmlns:h="http://www.w3.org/1999/xhtml"
|
||||||
title="${c:l('editarPuntoVentaController.window.title')}">
|
title="${c:l('editarPuntoVentaController.window.title')}">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
@ -26,18 +26,17 @@
|
||||||
|
|
||||||
<tabbox>
|
<tabbox>
|
||||||
<tabs width="200px">
|
<tabs width="200px">
|
||||||
<tab
|
<tab label="${c:l('editarPuntoVentaController.window.title')}" />
|
||||||
label="${c:l('editarPuntoVentaController.window.title')}" />
|
<tab label="${c:l('editarPuntoVentaController.tab.label.endereco')}" />
|
||||||
<tab
|
<tab label="${c:l('editarPuntoVentaController.tab.label.banco')}" />
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.endereco')}" />
|
<tab label="${c:l('editarPuntoVentaController.tab.label.titular')}" />
|
||||||
<tab
|
<tab label="${c:l('editarPuntoVentaController.tab.label.antecipa')}" />
|
||||||
label="${c:l('indexController.mniFormaPago.label')}" />
|
<tab label="${c:l('editarPuntoVentaController.tab.label.horario')}" />
|
||||||
<tab
|
<tab label="${c:l('indexController.mniFormaPago.label')}" />
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.recoleccion')}" />
|
<tab label="${c:l('editarPuntoVentaController.tab.label.recoleccion')}" />
|
||||||
<tab
|
<tab label="${c:l('editarPuntoVentaController.tab.label.empVenta')}" />
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.empVenta')}" />
|
<tab label="${c:l('editarPuntoVentaController.tab.label.estoque')}" />
|
||||||
<tab visible="false"
|
<tab visible="false" label="${c:l('editarPuntoVentaController.tab.label.usuBancario')}" />
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.usuBancario')}" />
|
|
||||||
</tabs>
|
</tabs>
|
||||||
|
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
|
@ -128,6 +127,16 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<!--fax-->
|
||||||
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.lbNumFax.value')}" />
|
||||||
|
<textbox id="txtNumFax"
|
||||||
|
constraint="no zero" width="70%" maxlength="10"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.numfax}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<!-- Nodo -->
|
<!-- Nodo -->
|
||||||
<label
|
<label
|
||||||
|
@ -196,6 +205,7 @@
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
<!-- ENDERECO -->
|
||||||
<tabpanel>
|
<tabpanel>
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -221,6 +231,15 @@
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.direccionnumero}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.direccionnumero}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<!--compl-->
|
||||||
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.lbCompl.value')}" />
|
||||||
|
<textbox id="txtCompl"
|
||||||
|
width="70%" maxlength="30"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.compl}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<!-- descCorreo -->
|
<!-- descCorreo -->
|
||||||
<label
|
<label
|
||||||
|
@ -258,6 +277,232 @@
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- DADOS AGENCIA BANCARIA -->
|
||||||
|
<tabpanel height="215px">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbBanco.value')}" />
|
||||||
|
<hbox>
|
||||||
|
<h:table border="none">
|
||||||
|
<h:tr>
|
||||||
|
|
||||||
|
<h:td>
|
||||||
|
<combobox id="cmbBanco"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="45%" mold="rounded" buttonVisible="true"
|
||||||
|
model="@{winEditarPuntoVenta$composer.lsBanco}" />
|
||||||
|
</h:td>
|
||||||
|
<h:td>
|
||||||
|
<textbox id="txtNomeBanco" width="215px" disabled="true" />
|
||||||
|
|
||||||
|
</h:td>
|
||||||
|
|
||||||
|
</h:tr>
|
||||||
|
</h:table>
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbNumAg.value')}" />
|
||||||
|
<textbox id="txtNumAg"
|
||||||
|
width="70%" maxlength="10"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numagencia}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
|
||||||
|
<combobox id="cmbTipoConta"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbNumConta.value')}" />
|
||||||
|
|
||||||
|
<hbox>
|
||||||
|
<h:table border="none">
|
||||||
|
<h:tr>
|
||||||
|
|
||||||
|
<h:td>
|
||||||
|
<textbox id="txtConta" width="250px" maxlength="9"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numconta}"/>
|
||||||
|
</h:td>
|
||||||
|
<h:td>
|
||||||
|
<label value=" - "/>
|
||||||
|
<textbox id="txtDigito" width="20%" maxlength="1"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.digito}" />
|
||||||
|
</h:td>
|
||||||
|
|
||||||
|
</h:tr>
|
||||||
|
</h:table>
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbPessoa.value')}" />
|
||||||
|
<combobox id="cmbPessoa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="70%" mold="rounded" buttonVisible="true"/>
|
||||||
|
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbBilhetes.value')}" />
|
||||||
|
<textbox id="txtBilhetes" width="70%"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.bilhetes}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbCarga.value')}" />
|
||||||
|
<textbox id="txtCarga" width="70%"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.carga}"/>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</tabpanel>
|
||||||
|
|
||||||
|
<!-- TITULAR -->
|
||||||
|
<tabpanel height="220px">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionTitularController.lbNome.value')}" />
|
||||||
|
<textbox id="txtTitularNome" width="70%"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.titularId.nome}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionTitularController.lbCpf.value')}" />
|
||||||
|
<textbox id="txtTitularCpf" width="70%" maxlength="14"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.titularId.cpf}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionTitularController.lbRg.value')}" />
|
||||||
|
<textbox id="txtTitularRg" width="70%" maxlength="16"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.titularId.rg}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionTitularController.lbOrgEmis.value')}" />
|
||||||
|
<textbox id="txtTitularEmissor" width="70%" maxlength="5"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.titularId.orgaoemissor}"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
|
||||||
|
<fileupload label="${c:l('editarConfiguracionTitularController.btnUpload.Foto')}"
|
||||||
|
onUpload="winEditarPuntoVenta$composer.uploadPhoto(event)"/>
|
||||||
|
<image id="img" height="100px" width="150px" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</tabpanel>
|
||||||
|
|
||||||
|
<!-- DADOS ANTECIPACOMISSAO -->
|
||||||
|
<tabpanel height="300px">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAntecipaComController.lbData.value')}" />
|
||||||
|
<textbox id="txtAntecipData"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAntecipaComController.lbRetem.value')}" />
|
||||||
|
<textbox id="txtAntecipRetem"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionAntecipaComController.lbPercentual.value')}" />
|
||||||
|
<textbox id="txtAntecipPercentual"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px"
|
||||||
|
align="right">
|
||||||
|
<button id="btnApagarAntecipa" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionAntecipaController.btnApagar.tooltiptext')}" />
|
||||||
|
<button id="btnSalvarAntecipa" height="20"
|
||||||
|
image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionAntecipaController.btnSalvar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<listbox id="antecipaList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhData"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionAntecipaController.lblData.value')}" />
|
||||||
|
<listheader id="lhRetem"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionAntecipaController.lblRetem.value')}" />
|
||||||
|
<listheader id="lhPercentual"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionAntecipaController.lblPercentual.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
<!-- DADOS DO HORARIO -->
|
||||||
|
<tabpanel height="300px">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionHorarioController.lbInicio.value')}" />
|
||||||
|
<textbox id="txtInicio"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionHorarioController.lbFim.value')}" />
|
||||||
|
<textbox id="txtFim"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px"
|
||||||
|
align="right">
|
||||||
|
<button id="btnApagarHorario" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionHorarioController.btnApagar.tooltiptext')}" />
|
||||||
|
<button id="btnSalvarHorario" height="20"
|
||||||
|
image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionHorarioController.btnSalvar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<listbox id="horarioList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhInicio"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionHorarioController.lblInicio.value')}" />
|
||||||
|
<listheader id="lhFim"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionHorarioController.lblFim.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
<!-- formas de pagamento -->
|
||||||
<tabpanel height="300px">
|
<tabpanel height="300px">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -267,7 +512,7 @@
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label id="lblFormaPago"
|
<label id="lblFormaPago"
|
||||||
value="${c:l('editarConfiguracionFormaPagoController.lblInicial.value')}" />
|
value="${c:l('editarFormaPagoController.lbNome.value')}" />
|
||||||
<combobox id="cmbFormaPago"
|
<combobox id="cmbFormaPago"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
width="80%" mold="rounded" buttonVisible="true"
|
width="80%" mold="rounded" buttonVisible="true"
|
||||||
|
@ -359,6 +604,8 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
|
||||||
|
|
||||||
<!-- Empresas para venta -->
|
<!-- Empresas para venta -->
|
||||||
<tabpanel height="300px">
|
<tabpanel height="300px">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
|
@ -400,6 +647,69 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
<!-- DADOS DO ESTOQUE -->
|
||||||
|
<tabpanel height="300px" >
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionEstoqueController.lbEspecie.value')}" />
|
||||||
|
<textbox id="txtEspecie"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionEstoqueController.lbForm.value')}" />
|
||||||
|
<textbox id="txtForm"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionEstoqueController.lbQuant.value')}" />
|
||||||
|
<textbox id="txtQuant"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionEstoqueController.lbLote.value')}" />
|
||||||
|
<textbox id="txtLote"
|
||||||
|
constraint="no empty" width="70%" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px"
|
||||||
|
align="right">
|
||||||
|
<button id="btnApagarEstoque" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionEstoqueController.btnApagar.tooltiptext')}" />
|
||||||
|
<button id="btnSalvarEstoque" height="20"
|
||||||
|
image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionEstoqueController.btnSalvar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<listbox id="estoqueList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="lhEspecie"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionEstoqueController.lblEspecie.value')}" />
|
||||||
|
<listheader id="lhForm"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionEstoqueController.lblForm.value')}" />
|
||||||
|
<listheader id="lhQuant"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionEstoqueController.lblQuant.value')}" />
|
||||||
|
<listheader id="lhLote"
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfiguracionEstoqueController.lblLote.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
|
||||||
<!-- Usuario Bancario -->
|
<!-- Usuario Bancario -->
|
||||||
<tabpanel height="300px">
|
<tabpanel height="300px">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
|
|
Loading…
Reference in New Issue