- correção novo usuario associar empresa
- correção tamnho cve usuario - correção campo doc empresa git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24144 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f841b0f402
commit
e1239d3003
|
@ -9,6 +9,8 @@ import java.util.ArrayList;
|
|||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.collections.Predicate;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -517,10 +519,19 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
|
||||
|
||||
public void onClick$btnAdicionarEmpresa(Event ev) throws InterruptedException {
|
||||
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
final Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
if (empresa != null) {
|
||||
List<UsuarioEmpresa> listUe = usuarioEmpresaService.obtenerPorEmpresaUsuario(empresa, usuario);
|
||||
if(!listUe.isEmpty()){
|
||||
|
||||
boolean existeEmpresa = CollectionUtils.exists(lsUsuarioEmpresa,new Predicate() {
|
||||
|
||||
@Override
|
||||
public boolean evaluate(Object object) {
|
||||
return ((UsuarioEmpresa)object).getEmpresa().equals(empresa);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if(existeEmpresa){
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("editarUsuarioController.window.title"),
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20130205_1RC105
|
||||
versao = ADM_20130207_1RC106
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
@ -1955,7 +1955,7 @@ busquedaUsuarioController.btnRefresh.tooltiptext = Atualizar
|
|||
busquedaUsuarioController.btnNovo.tooltiptext = Incluir
|
||||
busquedaUsuarioController.btnCerrar.tooltiptext = Fechar
|
||||
busquedaUsuarioController.lhId.label = ID
|
||||
busquedaUsuarioController.cveEmpleado.label = Código de Empregado
|
||||
busquedaUsuarioController.cveEmpleado.label = Código Empregado
|
||||
busquedaUsuarioController.nombusuario.label = Nome Usuário
|
||||
busquedaUsuarioController.nombpaterno.label = Sobrenome Paterno
|
||||
busquedaUsuarioController.nombmaterno.label = Sobrenome Materno
|
||||
|
@ -1982,7 +1982,7 @@ editarUsuarioController.lhPuntoVenta.label = Ponto de Venda ( Agência )
|
|||
editarUsuarioController.lhCNPJ.label = CNPJ
|
||||
editarUsuarioController.lhTipo.label = Tipo
|
||||
editarUsuarioController.lhDescricao.label = Descrição
|
||||
busquedaUsuarioController.CveUsuario.label = Código de Usuário
|
||||
busquedaUsuarioController.CveUsuario.label = Login
|
||||
busquedaUsuarioController.CveEmpleado.label = Código de Empregado
|
||||
editarUsuarioController.lhEmpresa.label = Empresa
|
||||
editarUsuarioController.chkCorteTurnoAutomatico.label = Corte Automático
|
||||
|
|
|
@ -64,13 +64,6 @@
|
|||
label="${c:l('editarEmpresaController.IndTipo.3')}" />
|
||||
</combobox>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.rfc.label')}" />
|
||||
<textbox id="txtRFC" width="100px"
|
||||
maxlength="13" value="@{winEditarEmpresa$composer.empresa.rfc}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.cnpj.label')}" />
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaUsuarioController.cveEmpleado.label')}"/>
|
||||
<textbox id="txtCveEmpleado" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
<textbox id="txtCveEmpleado" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="10"/>
|
||||
</row>
|
||||
<row spans="2">
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
|
|
Loading…
Reference in New Issue