fixes bug#12555
dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@86683 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e00f49115a
commit
ab7cb8cd0b
|
@ -155,7 +155,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaChe
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
|
||||||
import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
|
import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
|
||||||
import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS;
|
import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS;
|
||||||
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
||||||
|
@ -219,6 +218,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private FechamentoParamptovtaService fechamentoParamptovtaService;
|
private FechamentoParamptovtaService fechamentoParamptovtaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CategoriaBloqueioImpPosteriorService categoriaBloqueioImpPosteriorService;
|
private CategoriaBloqueioImpPosteriorService categoriaBloqueioImpPosteriorService;
|
||||||
|
@Autowired
|
||||||
|
private ConstanteService constanteService;
|
||||||
|
|
||||||
private PuntoVenta puntoVenta;
|
private PuntoVenta puntoVenta;
|
||||||
private Textbox txtCP;
|
private Textbox txtCP;
|
||||||
|
@ -1417,6 +1418,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
txtCarga.getValue();
|
txtCarga.getValue();
|
||||||
txtAntecipRetem.getValue();
|
txtAntecipRetem.getValue();
|
||||||
txtAntecipPercentual.getValue();
|
txtAntecipPercentual.getValue();
|
||||||
|
numtelefonodos.getValue();
|
||||||
|
numtelefonouno.getValue();
|
||||||
|
|
||||||
getTxtTaxaConvenienciaPorc().getValue();
|
getTxtTaxaConvenienciaPorc().getValue();
|
||||||
if (getTxtTaxaConvenienciaPorc().getValue() != null &&
|
if (getTxtTaxaConvenienciaPorc().getValue() != null &&
|
||||||
getTxtTaxaConvenienciaPorc().getValue().compareTo(BigDecimal.ZERO) == 1) {
|
getTxtTaxaConvenienciaPorc().getValue().compareTo(BigDecimal.ZERO) == 1) {
|
||||||
|
@ -1638,18 +1642,24 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
puntoVenta.setDateFechamento(dateFechamento.getValue());
|
puntoVenta.setDateFechamento(dateFechamento.getValue());
|
||||||
String getString = null;
|
String getString = null;
|
||||||
|
|
||||||
|
puntoVenta.setNumfax(null);
|
||||||
if (!txtNumFax.getValue().equals("")) {
|
if (!txtNumFax.getValue().equals("")) {
|
||||||
getString = this.replaceTextbox(txtNumFax);
|
getString = this.replaceTextbox(txtNumFax);
|
||||||
if (getString.length() >= 11) {
|
if (getString.length() >= 11) {
|
||||||
puntoVenta.setNumfax(txtNumFax.getValue().replace("_", ""));
|
puntoVenta.setNumfax(txtNumFax.getValue().replace("_", ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puntoVenta.setNumtelefonouno(null);
|
||||||
if (!numtelefonouno.getValue().equals("")) {
|
if (!numtelefonouno.getValue().equals("")) {
|
||||||
getString = this.replaceTextbox(numtelefonouno);
|
getString = this.replaceTextbox(numtelefonouno);
|
||||||
if (getString.length() >= 11) {
|
if (getString.length() >= 11) {
|
||||||
puntoVenta.setNumtelefonouno(numtelefonouno.getValue().replace("_", ""));
|
puntoVenta.setNumtelefonouno(numtelefonouno.getValue().replace("_", ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puntoVenta.setNumtelefonodos(null);
|
||||||
if (!numtelefonodos.getValue().equals("")) {
|
if (!numtelefonodos.getValue().equals("")) {
|
||||||
getString = this.replaceTextbox(numtelefonodos);
|
getString = this.replaceTextbox(numtelefonodos);
|
||||||
if (getString.length() >= 11) {
|
if (getString.length() >= 11) {
|
||||||
|
@ -1788,8 +1798,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
|
||||||
private boolean validarEmail() throws InterruptedException {
|
private boolean validarEmail() throws InterruptedException {
|
||||||
|
|
||||||
|
descCorreo.getValue();
|
||||||
|
|
||||||
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
|
|
||||||
Constante constante = constanteService.buscarPorNomeConstante("TOTALBUS_EMAIL_OPCIONAL_PV");
|
Constante constante = constanteService.buscarPorNomeConstante("TOTALBUS_EMAIL_OPCIONAL_PV");
|
||||||
|
|
||||||
if(constante == null || constante.getValorconstante().equals("0")){
|
if(constante == null || constante.getValorconstante().equals("0")){
|
||||||
|
|
Loading…
Reference in New Issue