git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24309 d1611594-4594-4d17-8e1d-87c2c4800839
parent
a9a29d9d8d
commit
796edc5c94
|
@ -7,6 +7,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
|
|||
import java.security.MessageDigest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
|
@ -114,8 +115,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
this.ubicacionList = ubicacionList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<UsuarioEmpresa> getLsUsuarioEmpresa() {
|
||||
return lsUsuarioEmpresa;
|
||||
}
|
||||
|
@ -220,7 +219,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
this.cmbPerfil = cmbPerfil;
|
||||
}
|
||||
|
||||
|
||||
public Combobox getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
@ -249,8 +247,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
return btnRemoverUbicacion;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public UsuarioEmpresaService getUsuarioEmpresaService() {
|
||||
return usuarioEmpresaService;
|
||||
}
|
||||
|
@ -362,11 +358,9 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
lsUsuarioEmpresa.addAll(usuarioEmpresaService.obtenerPorUsuario(usuario));
|
||||
}
|
||||
|
||||
|
||||
empresaList.setItemRenderer(new RenderUsuarioEmpresa());
|
||||
empresaList.setData(lsUsuarioEmpresa);
|
||||
|
||||
|
||||
txtCveEmpleado.focus();
|
||||
|
||||
if (usuario.getUsuarioId() == null) {
|
||||
|
@ -383,7 +377,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
txtNombMaterno.setDisabled(true);
|
||||
btnPesquisa.setVisible(false);
|
||||
|
||||
|
||||
}
|
||||
List<UsuarioPerfil> lsUsuarioPerfil = usuarioPerfilService.obtenerPorUsuario(usuario);
|
||||
if (!lsUsuarioPerfil.isEmpty()) {
|
||||
|
@ -405,7 +398,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
cmbPuntoVenta.setDisabled(Boolean.TRUE);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void onFocus$txtSenha(Event ev) {
|
||||
|
@ -483,7 +475,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
|
||||
usuario.setEmpleado(emp.get(0));
|
||||
|
||||
|
||||
} else {
|
||||
txtNombUsuario.setDisabled(false);
|
||||
txtNombPaterno.setDisabled(false);
|
||||
|
@ -518,7 +509,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
|
||||
}
|
||||
|
||||
|
||||
public void onClick$btnAdicionarEmpresa(Event ev) throws InterruptedException {
|
||||
if (cmbEmpresa.getSelectedItem() == null) {
|
||||
return;
|
||||
|
@ -535,7 +525,6 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
if (existeEmpresa) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
|
@ -712,12 +701,18 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onSelect$cmbParada(){
|
||||
|
||||
public void onChange$cmbParada() {
|
||||
Comboitem cbiParada = cmbParada.getSelectedItem();
|
||||
|
||||
if (cbiParada != null) {
|
||||
lsPuntoVenta = puntoVentaService.buscaPuntoVentaParada((Parada) cmbParada.getSelectedItem().getValue());
|
||||
cmbPuntoVenta.setModel(new ListModelList(lsPuntoVenta));
|
||||
if (lsPuntoVenta.isEmpty()){
|
||||
cmbPuntoVenta.setText((String)null);
|
||||
}
|
||||
}else{
|
||||
cmbPuntoVenta.setModel(new ListModelList(Collections.emptyList()));
|
||||
cmbPuntoVenta.setText((String)null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ public class RenderCategoriaDescuento implements ListitemRenderer {
|
|||
private CategoriaCtrlService categoriaCtrlService;
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
CategoriaCtrl cc = (CategoriaCtrl) o;
|
||||
String descricao = "";
|
||||
|
||||
Listcell lc = new Listcell(cc.getCategoriactrlId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
@ -47,13 +46,12 @@ public class RenderCategoriaDescuento implements ListitemRenderer {
|
|||
lc.setParent(lstm);
|
||||
if(!cc.getCategoriaDescuentoList().isEmpty()){
|
||||
|
||||
|
||||
sb = new StringBuilder();
|
||||
for(CategoriaDescuento catDesc : cc.getCategoriaDescuentoList()){
|
||||
|
||||
descricao = descricao + catDesc.getCategoria() != null ? catDesc.getCategoria().getDesccategoria() : "0"+ ", ";
|
||||
sb.append(catDesc.getCategoria()).append(", ");
|
||||
}
|
||||
descricao = descricao.substring(0,descricao.length()-1);
|
||||
lc = new Listcell(descricao);
|
||||
|
||||
lc = new Listcell(sb.toString());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20130214_1RC109
|
||||
versao = ADM_20130214_1RC110
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
|
|
@ -116,19 +116,14 @@
|
|||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('editarUsuarioController.lhParada.label')}"/>
|
||||
<hbox>
|
||||
<combobox id="cmbParada"
|
||||
mold="rounded" buttonVisible="true" width="100%"
|
||||
<combobox id="cmbParada" mold="rounded" buttonVisible="true" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
||||
</hbox>
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarUsuarioController.lhPuntoVenta.label')}"/>
|
||||
<hbox>
|
||||
<combobox id="cmbPuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
<combobox id="cmbPuntoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
Loading…
Reference in New Issue