diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/impressaofiscal/EditarFormapagoEmpresaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/impressaofiscal/EditarFormapagoEmpresaController.java index c527dadb1..777f21c47 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/impressaofiscal/EditarFormapagoEmpresaController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/impressaofiscal/EditarFormapagoEmpresaController.java @@ -16,6 +16,7 @@ import org.zkoss.zk.ui.event.Event; import org.zkoss.zul.Button; import org.zkoss.zul.Combobox; import org.zkoss.zul.Comboitem; +import org.zkoss.zul.Radio; import org.zkoss.zul.Textbox; import com.rjconsultores.ventaboletos.entidad.Empresa; @@ -66,7 +67,7 @@ public class EditarFormapagoEmpresaController extends MyGenericForwardComposer private List lsTipoformapagoTotalBus = new ArrayList(); private Button btnApagar; - + private Radio radVinculado; private static Logger log = Logger.getLogger(EditarFormapagoEmpresaController.class); @@ -91,8 +92,11 @@ public class EditarFormapagoEmpresaController extends MyGenericForwardComposer formapagoEmpresa = (FiscalFormapagoEmpresa) Executions.getCurrent().getArg().get("formapagoEmpresa"); formapagoEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("formapagoEmpresaList"); - if (formapagoEmpresa.getFiscalformapagoempresaId() == null) + if (formapagoEmpresa.getFiscalformapagoempresaId() == null){ btnApagar.setVisible(Boolean.FALSE); + }else{ + radVinculado.setSelected(formapagoEmpresa.getIndVinculado()); + } } @@ -122,7 +126,7 @@ public class EditarFormapagoEmpresaController extends MyGenericForwardComposer formapagoEmpresa.setFecmodif(Calendar.getInstance().getTime()); formapagoEmpresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); - if(formapagoEmpresa.getTipoformapago()!= TipoFormaPagamento.CUSTOM.name() && formapagoEmpresaList.getListData().contains(formapagoEmpresa)){ + if(!formapagoEmpresa.getTipoformapago().equals(TipoFormaPagamento.CUSTOM.name()) && formapagoEmpresaList.getListData().contains(formapagoEmpresa)){ Messagebox.show( Labels.getLabel("editarFormapagoEmpresaController.MSG.erroTipoFormaPago"), Labels.getLabel("editarFormapagoEmpresaController.window.title"), diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 7b5c4bde1..f51b736bc 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -5366,8 +5366,9 @@ editarTotnaofiscalEmpresaController.MSG.erroTipoEventoExtra=Tipo Evento Extra j busquedaFormapagoEmpresaController.window.title=Impressão Fiscal :: Formas de Pagamento busquedaFormapagoEmpresaController.empresa.label=Empresa busquedaFormapagoEmpresaController.tipoformapago.label=Tipo Forma Pago -busquedaFormapagoEmpresaController.descricao.label=Descrição +busquedaFormapagoEmpresaController.descricao.label=Descrição ECF busquedaFormapagoEmpresaController.formapagototalbus.label=Forma Pago TotalBus +busquedaFormapagoEmpresaController.vinculada.label=Vinculado (Operação Tef) busquedaFormapagoEmpresaController.btnPesquisa.label=Pesquisar editarFormapagoEmpresaController.MSG.suscribirOK=Forma de pagamento gravado com sucesso! diff --git a/web/gui/impressaofiscal/editarFormapagoEmpresa.zul b/web/gui/impressaofiscal/editarFormapagoEmpresa.zul index 569c592c9..7b9bf49bf 100644 --- a/web/gui/impressaofiscal/editarFormapagoEmpresa.zul +++ b/web/gui/impressaofiscal/editarFormapagoEmpresa.zul @@ -7,7 +7,7 @@ + height="215px" width="450px" border="normal" > @@ -50,18 +50,27 @@ - + + + +