fixes bug#6444
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@45739 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
56b0c3167e
commit
6ea5b62b1f
|
@ -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<FormaPago> lsTipoformapagoTotalBus = new ArrayList<FormaPago>();
|
||||
|
||||
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"),
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<zk>
|
||||
<window id="winEditarFormapagoEmpresa" title="${c:l('editarFormapagoEmpresaController.window.title')}"
|
||||
apply="${editarFormapagoEmpresaController}" contentStyle="overflow:auto"
|
||||
height="200px" width="450px" border="normal" >
|
||||
height="215px" width="450px" border="normal" >
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
|
@ -50,18 +50,27 @@
|
|||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('busquedaFormapagoEmpresaController.descricao.label')}" />
|
||||
<label value="${c:l('busquedaFormapagoEmpresaController.descricao.label')}" />
|
||||
<textbox id="txtDescricao" width="300px"
|
||||
maxlength="20"
|
||||
value="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.descricao}"
|
||||
constraint="no empty"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('busquedaFormapagoEmpresaController.formapagototalbus.label')}"/>
|
||||
<combobox id="cmbTipoformapagoTotalBus" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="70%"
|
||||
model="@{winEditarFormapagoEmpresa$composer.lsTipoformapagoTotalBus}"
|
||||
selectedItem="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.formaPago}"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('busquedaFormapagoEmpresaController.vinculada.label')}"/>
|
||||
<radiogroup>
|
||||
<radio id="radVinculado" label="${c:l('MSG.SI')}" />
|
||||
<radio id="radNaoVinculado" label="${c:l('MSG.NO')}" checked="true"/>
|
||||
</radiogroup>
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
|
|
Loading…
Reference in New Issue