bug #7788
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@63249 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ba518944ed
commit
14ff9db0aa
|
@ -140,7 +140,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private Textbox txtInscEstBairro;
|
||||
private Combobox cmbInscEstCidade;
|
||||
private Textbox txtInscEstCNPJ;
|
||||
private Textbox txtEquivalenciaAG;
|
||||
private Checkbox chkIndgennumfoliovtaintimpost;
|
||||
|
||||
private List<Categoria> lsCategorias;
|
||||
|
@ -280,7 +279,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
new Listcell(inscricaoEstadual.getComplemento()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getCep()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getBairro()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getEquivalenciaAG()).setParent(listItem);
|
||||
|
||||
|
||||
|
||||
listItem.setAttribute("data", inscricaoEstadual);
|
||||
|
@ -564,7 +563,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
String inscEstBairro = txtInscEstBairro.getValue();
|
||||
Ciudad ciudad = (Ciudad)cmbInscEstCidade.getSelectedItem().getValue();
|
||||
String inscEstCNPJ = txtInscEstCNPJ.getValue();
|
||||
String equivalenciaAG = txtEquivalenciaAG.getValue();
|
||||
|
||||
|
||||
for (int i = 0; i < inscEstadualList.getModel().getSize(); i++) {
|
||||
|
|
|
@ -144,7 +144,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
|
|||
import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
|
||||
import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS;
|
||||
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
||||
import com.rjconsultores.wsag.GeradorTitulosAG;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -286,7 +285,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
private Combobox cmbCategorias;
|
||||
private Combobox cmbEmpresaFechamentoParamptovta;
|
||||
private Combobox cmbLogFiles;
|
||||
private Combobox cmbLogFilesAG;
|
||||
private Button btnSalvarFormaPago;
|
||||
private Button btnApagar;
|
||||
private Button btnShowLog;
|
||||
|
@ -349,23 +347,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
private Checkbox ckIsento;
|
||||
private Checkbox checkSimulaIntegracion;
|
||||
private Checkbox checkTodosPuntosVenta;
|
||||
private Checkbox checkTodosPuntosVentaAG;
|
||||
private Checkbox checkDinheiro;
|
||||
private Checkbox checkCredito;
|
||||
private Checkbox checkDebito;
|
||||
private Checkbox checkTF;
|
||||
private Checkbox checkBOL;
|
||||
private Checkbox checkAdiantamentoAG;
|
||||
private Checkbox checkCartaoAG;
|
||||
private Checkbox checkBoletoAG;
|
||||
private Checkbox checkDepositoAG;
|
||||
private MyTextbox txtNumIEPuntoVenta;
|
||||
private Datebox fecIntegracion;
|
||||
private Datebox fecInicioAG;
|
||||
private Datebox fecFimAG;
|
||||
private Textbox logResult;
|
||||
private Datebox fecIntegracion;;
|
||||
private boolean integracionTotvs;
|
||||
private boolean integracionAG;
|
||||
private Timebox txtTempoParaImpressao;
|
||||
private Checkbox ckValidarTempoParaImpressao;
|
||||
private Checkbox checkLun;
|
||||
|
@ -756,9 +745,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
private void downloadLogIntegracao(Combobox cmb){
|
||||
String fileName = System.getProperty("jboss.server.log.dir") + "/" + cmb.getSelectedItem().getValue().toString();
|
||||
String fileZip = System.getProperty("jboss.server.log.dir") + "/" + cmb.getSelectedItem().getValue().toString().replace("log", "zip");
|
||||
public void onClick$btnDownload(Event event) {
|
||||
String fileName = System.getProperty("jboss.server.log.dir") + "/" + cmbLogFiles.getSelectedItem().getValue().toString();
|
||||
String fileZip = System.getProperty("jboss.server.log.dir") + "/" + cmbLogFiles.getSelectedItem().getValue().toString().replace("log", "zip");
|
||||
FileInputStream inputStream;
|
||||
try {
|
||||
excluirArquivosZip();
|
||||
|
@ -777,14 +766,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnDownload(Event event) {
|
||||
downloadLogIntegracao(cmbLogFiles);
|
||||
}
|
||||
|
||||
public void onClick$btnDownloadAG(Event event) {
|
||||
downloadLogIntegracao(cmbLogFilesAG);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private String readFile(String fileName) throws IOException {
|
||||
|
@ -1039,77 +1020,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
// }
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnEnviaAG(Event ev) throws InterruptedException {
|
||||
Connection myConn = null;
|
||||
try {
|
||||
myConn = dataSource.getConnection();
|
||||
Date dateInicio = fecInicioAG.getValue();
|
||||
|
||||
dateInicio = DateUtil.inicioFecha(dateInicio);
|
||||
Date dateFim = DateUtil.fimFecha(fecFimAG.getValue());
|
||||
|
||||
GeradorTitulosAG gerador = new GeradorTitulosAG(myConn, dateInicio, dateFim);
|
||||
log.info("puntoVentaId=" + puntoVenta.getPuntoventaId() + ";fecInicio=" + dateInicio + ";fecFin=" + dateFim);
|
||||
|
||||
gerador.send(checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
||||
} catch (Exception e) {
|
||||
log.error("Erro ao integrar", e);
|
||||
|
||||
if (e instanceof WrongValueException) {
|
||||
throw (WrongValueException) e;
|
||||
}
|
||||
|
||||
log.error("", e);
|
||||
|
||||
Messagebox.show(
|
||||
e.getMessage(),
|
||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnGeraTitulosAG(Event ev) throws InterruptedException {
|
||||
Connection myConn = null;
|
||||
try {
|
||||
myConn = dataSource.getConnection();
|
||||
Date dateInicio = fecInicioAG.getValue();
|
||||
|
||||
dateInicio = DateUtil.inicioFecha(dateInicio);
|
||||
Date dateFim = DateUtil.fimFecha(fecFimAG.getValue());
|
||||
|
||||
GeradorTitulosAG gerador = new GeradorTitulosAG(myConn, dateInicio, dateFim);
|
||||
log.info("puntoVentaId=" + puntoVenta.getPuntoventaId() + ";fecInicio=" + dateInicio + ";fecFin=" + dateFim);
|
||||
|
||||
gerador.execute(puntoVenta.getPuntoventaId(), checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
||||
|
||||
//gerador.send(checkAdiantamentoAG.isChecked(), checkBoletoAG.isChecked(), checkCartaoAG.isChecked(), checkDepositoAG.isChecked());
|
||||
} catch (Exception e) {
|
||||
log.error("Erro ao integrar", e);
|
||||
|
||||
if (e instanceof WrongValueException) {
|
||||
throw (WrongValueException) e;
|
||||
}
|
||||
|
||||
log.error("", e);
|
||||
|
||||
Messagebox.show(
|
||||
e.getMessage(),
|
||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
|
||||
} finally {
|
||||
// if (myConn != null) {
|
||||
// try {
|
||||
// myConn.close();
|
||||
// } catch (SQLException e) {
|
||||
// log.error("Erro ao fechar a conexão", e);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnAdicionarEmpresaBloqueada(Event ev) {
|
||||
Empresa e = (Empresa) cmbEmpresas.getSelectedItem().getValue();
|
||||
|
@ -3005,22 +2915,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
return integracionTotvs;
|
||||
}
|
||||
|
||||
public boolean isIntegracionAG() {
|
||||
integracionAG = false;
|
||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||
integracionAG = true;
|
||||
}
|
||||
return integracionAG;
|
||||
}
|
||||
|
||||
public void setIntegracionTotvs(boolean integracionTotvs) {
|
||||
this.integracionTotvs = integracionTotvs;
|
||||
}
|
||||
|
||||
public void setIntegracionAG(boolean integracionAG) {
|
||||
this.integracionAG = integracionAG;
|
||||
}
|
||||
|
||||
public List<String> getLsLogFiles() {
|
||||
return lsLogFiles;
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
<level value="DEBUG" />
|
||||
</logger>
|
||||
|
||||
<logger name="com.rjconsultores.ws">
|
||||
<level value="DEBUG" />
|
||||
</logger>
|
||||
|
||||
<logger name="org.hibernate">
|
||||
<level value="ERROR" />
|
||||
</logger>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
Manifest-Version: 1.0
|
||||
Implementation-Vendor: Potix Corporation
|
||||
Ant-Version: Apache Ant 1.7.1
|
||||
Implementation-Vendor: Potix Corporation
|
||||
Implementation-Title: org.zkoss.zkapp
|
||||
Implementation-Version: 5.0.0
|
||||
Specification-Vendor: Potix Corporation
|
||||
Specification-Title: ZK App
|
||||
Created-By: 10.0-b23 (Sun Microsystems Inc.)
|
||||
Specification-Title: ZK App
|
||||
Implementation-URL: http://www.zkoss.org/
|
||||
Specification-Version: 5.0.0
|
||||
|
||||
|
|
|
@ -911,7 +911,6 @@ editarEmpresaController.numero.label = Numero
|
|||
editarEmpresaController.complemento.label = Complemento
|
||||
editarEmpresaController.cep.label = CEP
|
||||
editarEmpresaController.bairro.label = Barrio
|
||||
editarEmpresaController.equivalencia.label = Equivalencia AG
|
||||
editarEmpresaController.cidade.label = Ciudad
|
||||
editarEmpresaController.estado.label = Estado
|
||||
editarEmpresaController.inscricaoestadual.label=Insc.Estadual
|
||||
|
@ -1160,7 +1159,6 @@ editarPuntoVentaController.erro.calle = Necesita informar la calle
|
|||
editarPuntoVentaController.erro.cpfCnpj= CPF ou CNPJ incorrecto
|
||||
editarPuntoVentaController.label.fecIntegracion=Fecha
|
||||
editarPuntoVentaController.tab.label.integracao=Integración
|
||||
editarPuntoVentaController.tab.label.integracaoag = Integración AG
|
||||
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integracion
|
||||
editarPuntoVentaController.lbCheckTodosPuntoVenta.value=Todos Puntos Venta
|
||||
editarPuntoVentaController.MSG.estacionVinculadaAgenciaOnDelete = Existen una o mas estaciones vinculadas a esta agencia
|
||||
|
@ -1175,13 +1173,6 @@ editarPuntoVentaController.btnDownload.tooltiptext=Download
|
|||
editarPuntoVentaController.lbTempoMinimoParaImpressao.value = Utilizar intervalo mínimo para Impresión
|
||||
editarPuntoVentaController.MSG.informarTempoMinimo.value = Informe o intervalo mínimo para Impresión
|
||||
|
||||
editarPuntoVentaController.label.fecInicioAG = Data Inicial
|
||||
editarPuntoVentaController.label.fecFimAG = Data Final
|
||||
editarPuntoVentaController.lbCheckCartaoAG.value = Cartão
|
||||
editarPuntoVentaController.lbCheckBoletoAG.value = Boleto
|
||||
editarPuntoVentaController.lbCheckDepositoAG.value = Depósito
|
||||
editarPuntoVentaController.lbCheckAdiantamentoAG.value = Adiantamentos
|
||||
|
||||
# Fechamento Conta Contábil Agencia
|
||||
editarPuntoVentaController.puntoventa.label = Agencia
|
||||
editarPuntoVentaController.btnPesquisa.label = Búsqueda
|
||||
|
|
|
@ -952,7 +952,6 @@ editarEmpresaController.numero.label = Numero
|
|||
editarEmpresaController.complemento.label = Complemento
|
||||
editarEmpresaController.cep.label = CEP
|
||||
editarEmpresaController.bairro.label = Bairro
|
||||
editarEmpresaController.equivalencia.label = Equivalência AG
|
||||
editarEmpresaController.cidade.label = Cidade
|
||||
editarEmpresaController.estado.label = Estado
|
||||
editarEmpresaController.inscricaoestadual.label=Insc.Estadual
|
||||
|
@ -1199,19 +1198,12 @@ editarPuntoVentaController.erro.calle= Necessita informar os dados do endereço
|
|||
editarPuntoVentaController.erro.cpfCnpj= CPF ou CNPJ incorreto
|
||||
editarPuntoVentaController.label.fecIntegracion=Data
|
||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||
editarPuntoVentaController.tab.label.integracaoag = Integração AG
|
||||
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integração
|
||||
editarPuntoVentaController.lbCheckTodosPuntoVenta.value=Todas as agências
|
||||
editarPuntoVentaController.MSG.estacionVinculadaAgenciaOnDelete = Existem uma ou mais estações vinculadas à esta agência
|
||||
editarPuntoVentaController.lbLocalidade.value = Localidade
|
||||
editarPuntoVentaController.lbCidade.value = Cidade
|
||||
editarPuntoVentaController.tab.label.empresas = Empresas
|
||||
editarPuntoVentaController.label.fecInicioAG = Data Inicial
|
||||
editarPuntoVentaController.label.fecFimAG = Data Final
|
||||
editarPuntoVentaController.lbCheckCartaoAG.value = Cartão
|
||||
editarPuntoVentaController.lbCheckBoletoAG.value = Boleto
|
||||
editarPuntoVentaController.lbCheckDepositoAG.value = Depósito
|
||||
editarPuntoVentaController.lbCheckAdiantamentoAG.value = Adiantamentos
|
||||
|
||||
editarPuntoVentaController.lbCheckDinheiro.value=R$
|
||||
editarPuntoVentaController.lbCheckCredito.value=CC
|
||||
|
|
|
@ -305,13 +305,6 @@
|
|||
maxlength="256"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.equivalencia.label')}" />
|
||||
<textbox id="txtEquivalenciaAG" width="98%"
|
||||
maxlength="20"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
@ -337,8 +330,8 @@
|
|||
label="${c:l('editarEmpresaController.inscEstCep.label')}"/>
|
||||
<listheader id="lhInscEstBairro" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstBairro.label')}"/>
|
||||
<listheader id="lhInscEstEquivalenciaAG" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.equivalencia.label')}"/>
|
||||
|
||||
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
|
|
@ -73,9 +73,6 @@
|
|||
<tab
|
||||
label="${c:l('editarPuntoVentaController.tab.label.integracao')}"
|
||||
visible="@{winEditarPuntoVenta$composer.integracionTotvs}" />
|
||||
<tab
|
||||
label="${c:l('editarPuntoVentaController.tab.label.integracaoag')}"
|
||||
visible="@{winEditarPuntoVenta$composer.integracionAG}" />
|
||||
|
||||
</tabs>
|
||||
|
||||
|
@ -1590,82 +1587,6 @@
|
|||
|
||||
<textbox width="100%" rows="18" id="logResult"/>
|
||||
</tabpanel>
|
||||
<!-- INTEGRACAO AG -->
|
||||
<tabpanel height="100%" visible="@{winEditarPuntoVenta$composer.integracionAG}">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.label.fecInicioAG')}" />
|
||||
<datebox id="fecInicioAG" constraint="no empty" width="60%" mold="rounded" lenient="false"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.label.fecFimAG')}" />
|
||||
<datebox id="fecFimAG" constraint="no empty" width="60%" mold="rounded" lenient="false"/>
|
||||
</row>
|
||||
<row>
|
||||
<checkbox id="checkTodosPuntosVentaAG"
|
||||
label="${c:l('editarPuntoVentaController.lbCheckTodosPuntoVenta.value')}"
|
||||
checked="false" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="20%" />
|
||||
<column width="20%" />
|
||||
<column width="20%" />
|
||||
<column width="20%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<checkbox id="checkAdiantamentoAG"
|
||||
label="${c:l('editarPuntoVentaController.lbCheckAdiantamentoAG.value')}"
|
||||
checked="true" />
|
||||
<checkbox id="checkCartaoAG"
|
||||
label="${c:l('editarPuntoVentaController.lbCheckCartaoAG.value')}"
|
||||
checked="true" />
|
||||
<checkbox id="checkBoletoAG"
|
||||
label="${c:l('editarPuntoVentaController.lbCheckBoletoAG.value')}"
|
||||
checked="true" />
|
||||
<checkbox id="checkDepositoAG"
|
||||
label="${c:l('editarPuntoVentaController.lbCheckDepositoAG.value')}"
|
||||
checked="true" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px"
|
||||
align="right">
|
||||
<button id="btnGeraTitulosAG"
|
||||
height="20" label="${c:l('busquedaEmpresaController.btnGeraTitulos.tooltiptext')}"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnGeraTitulos.tooltiptext')}" />
|
||||
<button id="btnEnviaAG"
|
||||
height="20" label="${c:l('busquedaEmpresaController.btnIntegracao.tooltiptext')}"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnIntegracao.tooltiptext')}" />
|
||||
</hbox>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbFileLog.value')}" />
|
||||
<combobox
|
||||
id="cmbLogFilesAG"
|
||||
mold="rounded" buttonVisible="true"
|
||||
model="@{winEditarPuntoVenta$composer.lsLogFiles}" />
|
||||
<button id="btnDownloadAG"
|
||||
height="20"
|
||||
label="${c:l('editarPuntoVentaController.btnDownload.tooltiptext')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.btnDownload.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<textbox width="100%" rows="18" id="logResultAG"/>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue