fixes bug #8321
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@63053 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
43e7f2e2ea
commit
fcac108e5c
|
@ -29,6 +29,7 @@ import org.zkoss.zul.ListModelList;
|
|||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Tab;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.Label;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empleado;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
@ -39,7 +40,6 @@ import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
|||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.entidad.UsuarioEmpresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
|
||||
import com.rjconsultores.ventaboletos.entidad.UsuarioSesion;
|
||||
import com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.EmpleadoService;
|
||||
|
@ -51,6 +51,7 @@ import com.rjconsultores.ventaboletos.service.UsuarioPerfilService;
|
|||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioSesionService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioUbicacionService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.segurida.PerfilJerarquia;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -119,7 +120,9 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
private Checkbox chkCorteTurnoAutomatico;
|
||||
private Button btnRemoverEmpresa;
|
||||
private Button btnAdicionarEmpresa;
|
||||
private Label lblDescMac;
|
||||
private Radio radioSim;
|
||||
private Textbox txtDescMac;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -181,7 +184,11 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
txtSenha.setText(CONTRASENA_VACIA);
|
||||
txtConfirmSenha.setText(CONTRASENA_VACIA);
|
||||
}
|
||||
|
||||
if(ApplicationProperties.getInstance().exibirEstacaoCadastroUsuario()){
|
||||
txtDescMac.setVisible(true);
|
||||
lblDescMac.setVisible(true);
|
||||
|
||||
}
|
||||
validaUsuarioAdmin(perfilUsuario);
|
||||
|
||||
}
|
||||
|
|
|
@ -106,6 +106,16 @@
|
|||
<checkbox id="chkCorteTurnoAutomatico"
|
||||
checked="@{winEditarUsuario$composer.usuario.indCorteAutomatico}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaEstacionController.lhDescMac.label')}" visible="false" id="lblDescMac" />
|
||||
<textbox id="txtDescMac" width="90%"
|
||||
visible="false"
|
||||
constraint="${c:new('com.rjconsultores.ventaboletos.web.utilerias.MACConstraint')}"
|
||||
maxlength="17"
|
||||
value="@{winEditarUsuario$composer.usuario.descMac}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
|
|
Loading…
Reference in New Issue