fixes bug #6688
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@49540 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
91e9d00b2b
commit
670430213d
|
@ -16,6 +16,7 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.api.Comboitem;
|
||||
|
@ -49,6 +50,8 @@ public class EditarCategoriaController extends MyGenericForwardComposer {
|
|||
private static Logger log = Logger.getLogger(EditarCategoriaController.class);
|
||||
private MyTextbox txtNome;
|
||||
private Combobox cmbGrupoCategoria;
|
||||
|
||||
private Checkbox chkIndconferenciafisicacomissao;
|
||||
|
||||
private List<GrupoCategoria> lsGrupoCategoria;
|
||||
|
||||
|
@ -72,16 +75,20 @@ public class EditarCategoriaController extends MyGenericForwardComposer {
|
|||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
}
|
||||
|
||||
chkIndconferenciafisicacomissao.setChecked(categoria.getIndconferenciafisicacomissao());
|
||||
|
||||
txtNome.focus();
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
txtNome.getValue();
|
||||
chkIndconferenciafisicacomissao.getValue();
|
||||
try {
|
||||
categoria.setActivo(true);
|
||||
categoria.setFecmodif(Calendar.getInstance().getTime());
|
||||
categoria.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
categoria.setIndconferenciafisicacomissao(chkIndconferenciafisicacomissao.isChecked());
|
||||
|
||||
Comboitem grupo = cmbGrupoCategoria.getSelectedItem();
|
||||
|
||||
|
@ -89,7 +96,7 @@ public class EditarCategoriaController extends MyGenericForwardComposer {
|
|||
categoria.setGrupoCategoria((GrupoCategoria)grupo.getValue());
|
||||
}
|
||||
|
||||
if (categoria.getCategoriaId() != null) {
|
||||
/*if (categoria.getCategoriaId() != null) {
|
||||
List<Categoria> lsCategoria = categoriaService.buscar(categoria.getDesccategoria());
|
||||
if (!lsCategoria.isEmpty()) {
|
||||
Messagebox.show(
|
||||
|
@ -98,7 +105,7 @@ public class EditarCategoriaController extends MyGenericForwardComposer {
|
|||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
if (categoria.getCategoriaId() == null) {
|
||||
List<Categoria> lsCategoria =
|
||||
|
|
|
@ -324,7 +324,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
|||
public void onClick$btnEncerrarMovimentoDiario(Event event) throws InterruptedException {
|
||||
try {
|
||||
if(conferenciaComissaoService.isBilhetesSemConferencia(conferencia)) {
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.bilheteSemConferenciaFormapago"),
|
||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.bilheteSemConferenciaFormapagoCategoria"),
|
||||
Labels.getLabel("conferenciaController.window.title"),
|
||||
Messagebox.OK,Messagebox.EXCLAMATION);
|
||||
return;
|
||||
|
|
|
@ -2,11 +2,13 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.constantes.DescricaoTipoVenta;
|
||||
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.BoletoComissao;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.BigDecimalUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.LocaleUtil;
|
||||
|
@ -43,7 +45,12 @@ public class RenderBoletoComissao implements ListitemRenderer {
|
|||
lc = new Listcell(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(total, LocaleUtil.getLocale()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(boletoComissao.getDescmotivocancelacion());
|
||||
if(StringUtils.isNotBlank(boletoComissao.getDescmotivocancelacion())) {
|
||||
lc = new Listcell(boletoComissao.getDescmotivocancelacion());
|
||||
} else {
|
||||
IndStatusBoleto indStatusBoleto = IndStatusBoleto.getIndStatusBoleto(boletoComissao.getIndstatusboleto());
|
||||
lc = new Listcell(indStatusBoleto != null ? indStatusBoleto.getValue() : "");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(boletoComissao.getStatusDescricao());
|
||||
|
|
|
@ -705,6 +705,7 @@ editarCategoriaController.MSG.suscribirOK = Tipo de pasaje se registró exitosam
|
|||
editarCategoriaController.MSG.borrarPergunta = Deseas eliminar este tipo de pasaje?
|
||||
editarCategoriaController.MSG.borrarOK = Tipo de pasaje se eliminó exitosamente
|
||||
editarCategoriaController.MSG.tiempo = Tiempo mínimo mayor que tiempo máximo
|
||||
editarCategoriaController.lbIndconferenciafisicacomissao.value = Requerir Comisión verificación física
|
||||
|
||||
# Muestra a Moneda da Búsqueda
|
||||
busquedaMonedaController.window.title = Moneda
|
||||
|
@ -5911,7 +5912,7 @@ conferenciaController.MSG.borrarLogConferenciaPergunta = Deseja Eliminar esta ob
|
|||
conferenciaController.lbl.sim = Si
|
||||
conferenciaController.lbl.nao = No
|
||||
conferenciaController.lhFormpago.value = Forma Pago
|
||||
conferenciaController.MSG.bilheteSemConferenciaFormapago = Existem Bilhetes com Forma Pago sem conferência
|
||||
conferenciaController.MSG.bilheteSemConferenciaFormapagoCategoria = Existem Bilhetes com Forma Pago ou Categoria sem conferência
|
||||
conferenciaController.MSG.eventosFinanceirosSemConferenciaFormapago = Existem Eventos Financeiros com Forma Pago sem conferência
|
||||
|
||||
# Editar LogConferencia Comissao
|
||||
|
|
|
@ -741,6 +741,7 @@ editarCategoriaController.MSG.suscribirOK = Tipo de Passagem Registrado com Suce
|
|||
editarCategoriaController.MSG.borrarPergunta = Deseja Eliminar este tipo de passagem?
|
||||
editarCategoriaController.MSG.borrarOK = Tipo de Passagem Excluido com Sucesso.
|
||||
editarCategoriaController.MSG.tiempo = Tempo mínimo maior que tempo máximo
|
||||
editarCategoriaController.lbIndconferenciafisicacomissao.value = Exigir Conferência Fisíca Comissão
|
||||
|
||||
# Muestra a Moeda da Pesquisa
|
||||
busquedaMonedaController.window.title = Moeda
|
||||
|
@ -6052,7 +6053,7 @@ conferenciaController.MSG.borrarLogConferenciaPergunta = Deseja Eliminar esta ob
|
|||
conferenciaController.lbl.sim = Sim
|
||||
conferenciaController.lbl.nao = Não
|
||||
conferenciaController.lhFormpago.value = Forma Pago
|
||||
conferenciaController.MSG.bilheteSemConferenciaFormapago = Existem Bilhetes com Forma Pago sem conferência
|
||||
conferenciaController.MSG.bilheteSemConferenciaFormapagoCategoria = Existem Bilhetes com Forma Pago ou Categoria sem conferência
|
||||
conferenciaController.MSG.eventosFinanceirosSemConferenciaFormapago = Existem Eventos Financeiros com Forma Pago sem conferência
|
||||
|
||||
# Editar LogConferencia Comissao
|
||||
|
|
|
@ -45,6 +45,12 @@
|
|||
model="@{winEditarCategoria$composer.lsGrupoCategoria}"
|
||||
selectedItem="@{winEditarCategoria$composer.categoria.grupoCategoria}" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbIndconferenciafisicacomissao"
|
||||
value="${c:l('editarCategoriaController.lbIndconferenciafisicacomissao.value')}" />
|
||||
<checkbox id="chkIndconferenciafisicacomissao"
|
||||
value="@{winEditarEmpresa$composer.categoria.indconferenciafisicacomissao}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue