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.Button;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
@ -66,7 +67,7 @@ public class EditarFormapagoEmpresaController extends MyGenericForwardComposer
|
||||||
private List<FormaPago> lsTipoformapagoTotalBus = new ArrayList<FormaPago>();
|
private List<FormaPago> lsTipoformapagoTotalBus = new ArrayList<FormaPago>();
|
||||||
|
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
|
private Radio radVinculado;
|
||||||
private static Logger log = Logger.getLogger(EditarFormapagoEmpresaController.class);
|
private static Logger log = Logger.getLogger(EditarFormapagoEmpresaController.class);
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,8 +92,11 @@ public class EditarFormapagoEmpresaController extends MyGenericForwardComposer
|
||||||
formapagoEmpresa = (FiscalFormapagoEmpresa) Executions.getCurrent().getArg().get("formapagoEmpresa");
|
formapagoEmpresa = (FiscalFormapagoEmpresa) Executions.getCurrent().getArg().get("formapagoEmpresa");
|
||||||
formapagoEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("formapagoEmpresaList");
|
formapagoEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("formapagoEmpresaList");
|
||||||
|
|
||||||
if (formapagoEmpresa.getFiscalformapagoempresaId() == null)
|
if (formapagoEmpresa.getFiscalformapagoempresaId() == null){
|
||||||
btnApagar.setVisible(Boolean.FALSE);
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
}else{
|
||||||
|
radVinculado.setSelected(formapagoEmpresa.getIndVinculado());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +126,7 @@ public class EditarFormapagoEmpresaController extends MyGenericForwardComposer
|
||||||
formapagoEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
formapagoEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
||||||
formapagoEmpresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
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(
|
Messagebox.show(
|
||||||
Labels.getLabel("editarFormapagoEmpresaController.MSG.erroTipoFormaPago"),
|
Labels.getLabel("editarFormapagoEmpresaController.MSG.erroTipoFormaPago"),
|
||||||
Labels.getLabel("editarFormapagoEmpresaController.window.title"),
|
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.window.title=Impressão Fiscal :: Formas de Pagamento
|
||||||
busquedaFormapagoEmpresaController.empresa.label=Empresa
|
busquedaFormapagoEmpresaController.empresa.label=Empresa
|
||||||
busquedaFormapagoEmpresaController.tipoformapago.label=Tipo Forma Pago
|
busquedaFormapagoEmpresaController.tipoformapago.label=Tipo Forma Pago
|
||||||
busquedaFormapagoEmpresaController.descricao.label=Descrição
|
busquedaFormapagoEmpresaController.descricao.label=Descrição ECF
|
||||||
busquedaFormapagoEmpresaController.formapagototalbus.label=Forma Pago TotalBus
|
busquedaFormapagoEmpresaController.formapagototalbus.label=Forma Pago TotalBus
|
||||||
|
busquedaFormapagoEmpresaController.vinculada.label=Vinculado (Operação Tef)
|
||||||
busquedaFormapagoEmpresaController.btnPesquisa.label=Pesquisar
|
busquedaFormapagoEmpresaController.btnPesquisa.label=Pesquisar
|
||||||
|
|
||||||
editarFormapagoEmpresaController.MSG.suscribirOK=Forma de pagamento gravado com sucesso!
|
editarFormapagoEmpresaController.MSG.suscribirOK=Forma de pagamento gravado com sucesso!
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<zk>
|
<zk>
|
||||||
<window id="winEditarFormapagoEmpresa" title="${c:l('editarFormapagoEmpresaController.window.title')}"
|
<window id="winEditarFormapagoEmpresa" title="${c:l('editarFormapagoEmpresaController.window.title')}"
|
||||||
apply="${editarFormapagoEmpresaController}" contentStyle="overflow:auto"
|
apply="${editarFormapagoEmpresaController}" contentStyle="overflow:auto"
|
||||||
height="200px" width="450px" border="normal" >
|
height="215px" width="450px" border="normal" >
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
@ -50,18 +50,27 @@
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaFormapagoEmpresaController.descricao.label')}" />
|
<label value="${c:l('busquedaFormapagoEmpresaController.descricao.label')}" />
|
||||||
<textbox id="txtDescricao" width="300px"
|
<textbox id="txtDescricao" width="300px"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
value="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.descricao}"
|
value="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.descricao}"
|
||||||
constraint="no empty"/>
|
constraint="no empty"/>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaFormapagoEmpresaController.formapagototalbus.label')}"/>
|
<label value="${c:l('busquedaFormapagoEmpresaController.formapagototalbus.label')}"/>
|
||||||
<combobox id="cmbTipoformapagoTotalBus" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<combobox id="cmbTipoformapagoTotalBus" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
model="@{winEditarFormapagoEmpresa$composer.lsTipoformapagoTotalBus}"
|
model="@{winEditarFormapagoEmpresa$composer.lsTipoformapagoTotalBus}"
|
||||||
selectedItem="@{winEditarFormapagoEmpresa$composer.formapagoEmpresa.formaPago}"/>
|
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>
|
</row>
|
||||||
|
|
||||||
</rows>
|
</rows>
|
||||||
|
|
Loading…
Reference in New Issue