Merge pull request 'AL-5060' (!762) from AL-5060 into master
Reviewed-on: adm/VentaBoletosAdm#762 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master
commit
e85578bd05
|
@ -600,6 +600,9 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private MyListbox empresaFormasPagamentoSicfe;
|
||||
private MyListbox empresaFormasPagamentoSicfeSelecionado;
|
||||
|
||||
private MyListbox empresaFormasPagamentoSicfeNaoEmite;
|
||||
private MyListbox empresaFormasPagamentoSicfeNaoEmiteSelecionado;
|
||||
|
||||
private Checkbox chkIndProducaoCrediBanco;
|
||||
private Textbox txtUsuarioCrediBanco;
|
||||
private Textbox txtSenhaCrediBanco;
|
||||
|
@ -1014,6 +1017,11 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
empresaFormasPagamentoSicfeSelecionado.setItemRenderer(new RenderEmpresaSicfeFormasPagamento());
|
||||
empresaFormasPagamentoSicfe.addEventListener("onDrop", new _DragEvent());
|
||||
empresaFormasPagamentoSicfeSelecionado.addEventListener("onDrop", new _DragEvent());
|
||||
|
||||
empresaFormasPagamentoSicfeNaoEmite.setItemRenderer(new RenderEmpresaSicfeFormasPagamento());
|
||||
empresaFormasPagamentoSicfeNaoEmiteSelecionado.setItemRenderer(new RenderEmpresaSicfeFormasPagamento());
|
||||
empresaFormasPagamentoSicfeNaoEmite.addEventListener("onDrop", new _DragEvent());
|
||||
empresaFormasPagamentoSicfeNaoEmiteSelecionado.addEventListener("onDrop", new _DragEvent());
|
||||
|
||||
if (empresa.getEmpresaId() != null) {
|
||||
empresa = empresaService.obtenerID(empresa.getEmpresaId());
|
||||
|
@ -1871,6 +1879,29 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
if (selecionados.length > 0) {
|
||||
empresaFormasPagamentoSicfeSelecionado.setData(formaPagoService.buscarIn(selecionados));
|
||||
}
|
||||
|
||||
String[] valorSelecionadoNaoEmite = mapConfigSicfe.get("formasPagoNaoEmite") != null
|
||||
? mapConfigSicfe.get("formasPagoNaoEmite").toString().replace("[", "").replace("]", "")
|
||||
.replace(" ", "").trim().split(",")
|
||||
: null;
|
||||
|
||||
int tamanhoSelecionadoNaoEmite = valorSelecionadoNaoEmite != null ? valorSelecionadoNaoEmite.length : 0;
|
||||
|
||||
Short[] selecionadosNaoEmite = new Short[tamanhoSelecionadoNaoEmite];
|
||||
|
||||
for (int i = 0; i < tamanhoSelecionadoNaoEmite; i++) {
|
||||
if (StringUtils.isNotBlank(valorSelecionadoNaoEmite[i])) {
|
||||
selecionadosNaoEmite[i] = Short.valueOf(valorSelecionadoNaoEmite[i]);
|
||||
} else {
|
||||
selecionadosNaoEmite[i] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
empresaFormasPagamentoSicfeNaoEmite.setData(formaPagoService.buscarNotIn(selecionadosNaoEmite));
|
||||
|
||||
if (selecionadosNaoEmite.length > 0) {
|
||||
empresaFormasPagamentoSicfeNaoEmiteSelecionado.setData(formaPagoService.buscarIn(selecionadosNaoEmite));
|
||||
}
|
||||
}
|
||||
|
||||
private void adicionaInformacoesSicfe() {
|
||||
|
@ -1898,6 +1929,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
salvaValoresSicfe("indUsaTermica", String.valueOf(chkSicfeUsaTermica.isChecked()), mapConfigSicfe);
|
||||
salvaValoresSicfe("indDesconto100Emite", String.valueOf(chkSicfeDesconto100Emite.isChecked()), mapConfigSicfe);
|
||||
salvaValoresSicfe("formasPagoOrdemServico", Arrays.asList(retornaIdsFormaPagamento(empresaFormasPagamentoSicfeSelecionado.getListData())), mapConfigSicfe);
|
||||
salvaValoresSicfe("formasPagoNaoEmite", Arrays.asList(retornaIdsFormaPagamento(empresaFormasPagamentoSicfeNaoEmiteSelecionado.getListData())), mapConfigSicfe);
|
||||
salvaValoresSicfe("sucursal", txtSicfeSucursal.getValue(), mapConfigSicfe);
|
||||
}
|
||||
|
||||
|
@ -3943,5 +3975,22 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
public void setEmpresaFormasPagamentoSicfeSelecionado(MyListbox empresaFormasPagamentoSicfeSelecionado) {
|
||||
this.empresaFormasPagamentoSicfeSelecionado = empresaFormasPagamentoSicfeSelecionado;
|
||||
}
|
||||
|
||||
|
||||
public MyListbox getEmpresaFormasPagamentoSicfeNaoEmite() {
|
||||
return empresaFormasPagamentoSicfeNaoEmite;
|
||||
}
|
||||
|
||||
public void setEmpresaFormasPagamentoSicfeNaoEmite(MyListbox empresaFormasPagamentoSicfeNaoEmite) {
|
||||
this.empresaFormasPagamentoSicfeNaoEmite = empresaFormasPagamentoSicfeNaoEmite;
|
||||
}
|
||||
|
||||
public MyListbox getEmpresaFormasPagamentoSicfeNaoEmiteSelecionado() {
|
||||
return empresaFormasPagamentoSicfeNaoEmiteSelecionado;
|
||||
}
|
||||
|
||||
public void setEmpresaFormasPagamentoSicfeNaoEmiteSelecionado(
|
||||
MyListbox empresaFormasPagamentoSicfeNaoEmiteSelecionado) {
|
||||
this.empresaFormasPagamentoSicfeNaoEmiteSelecionado = empresaFormasPagamentoSicfeNaoEmiteSelecionado;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4838,6 +4838,7 @@ editarEmpresaController.semanal.label = Weekly
|
|||
editarEmpresaController.senhaIntegracaoAGR = Password
|
||||
editarEmpresaController.sexta.label = Friday
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfe = Hold and drag the payment methods that issue Credit to the table on the right.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeNaoEmite = Hold and drag the payment methods that DO NOT issue Sicfe to the table on the right.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeSelecionado = Selected payment methods
|
||||
editarEmpresaController.sicfe.indCreditoOrdemServico = Issues Credit only for Service Orders
|
||||
editarEmpresaController.sicfe.indDesconto100Emite = 100% discount issues Sicfe
|
||||
|
|
|
@ -4836,6 +4836,7 @@ editarEmpresaController.semanal.label = Semanal
|
|||
editarEmpresaController.senhaIntegracaoAGR = contraseña
|
||||
editarEmpresaController.sexta.label = Sexta-Feira
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfe = Mantenga presionados y arrastre los métodos de pago que emiten crédito a la tabla de la derecha.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeNaoEmite = Mantenga presionados y arrastre los métodos de pago que NO emiten Sicfe a la tabla de la derecha.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeSelecionado = Métodos de pago seleccionados
|
||||
editarEmpresaController.sicfe.indCreditoOrdemServico = Emitir crédito solo para órdenes de servicio
|
||||
editarEmpresaController.sicfe.indDesconto100Emite = Emisiones 100% descuento Sicfe
|
||||
|
|
|
@ -4836,6 +4836,7 @@ editarEmpresaController.semanal.label = Hebdomadaire
|
|||
editarEmpresaController.senhaIntegracaoAGR = Mot de passe
|
||||
editarEmpresaController.sexta.label = vendredi
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfe = Maintenez enfoncé et faites glisser les méthodes de paiement qui émettent du crédit vers le tableau de droite.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeNaoEmite = Maintenez et faites glisser les méthodes de paiement qui n'émettent PAS de Sicfe vers le tableau de droite.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeSelecionado = Modes de paiement sélectionnés
|
||||
editarEmpresaController.sicfe.indCreditoOrdemServico = Émettre un crédit uniquement pour les commandes de service
|
||||
editarEmpresaController.sicfe.indDesconto100Emite = 100% de réduction sur les numéros Sicfe
|
||||
|
|
|
@ -4832,6 +4832,7 @@ editarEmpresaController.semanal.label = Semanal
|
|||
editarEmpresaController.senhaIntegracaoAGR = Senha
|
||||
editarEmpresaController.sexta.label = Sexta-Feira
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfe = Segure e arraste para a tabela da direita as formas de pagamento que emitem Credito.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeNaoEmite = Segure e arraste para a tabela da direita as formas de pagamento que NÃO emitem Sicfe.
|
||||
editarEmpresaController.sicfe.empresaFormasPagamentoSicfeSelecionado = Formas de pagamento selecionadas
|
||||
editarEmpresaController.sicfe.indCreditoOrdemServico = Emite Crédito somente Ordem de Serviço
|
||||
editarEmpresaController.sicfe.indDesconto100Emite = Desconto 100% emite Sicfe
|
||||
|
|
|
@ -2794,7 +2794,30 @@
|
|||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
||||
<groupbox closable="false" mold="3d" >
|
||||
<caption label="${c:l('editarEmpresaController.sicfe.empresaFormasPagamentoSicfeNaoEmite')}" />
|
||||
<hlayout>
|
||||
<listbox id="empresaFormasPagamentoSicfeNaoEmite" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" height="120px" width="200px"
|
||||
droppable="true">
|
||||
</listbox>
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
<groupbox width="215px" closable="false" mold="3d" >
|
||||
<caption label="${c:l('editarEmpresaController.sicfe.empresaFormasPagamentoSicfeSelecionado')}" />
|
||||
<hlayout>
|
||||
<listbox id="empresaFormasPagamentoSicfeNaoEmiteSelecionado" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" height="120px" width="200px"
|
||||
droppable="true">
|
||||
</listbox>
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
<groupbox id="gbHabilitaSicfe" open="false" onOpen="chkIsSicfeHabilitado.setChecked(event.open);">
|
||||
|
|
Loading…
Reference in New Issue