fixes bug#21590
dev: Wallace qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@105651 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9fed22bc19
commit
e6de0fda03
|
@ -14,6 +14,7 @@ import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Radiogroup;
|
import org.zkoss.zul.Radiogroup;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.PerfilFuncion;
|
import com.rjconsultores.ventaboletos.entidad.PerfilFuncion;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.SistemaEnum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -59,14 +60,22 @@ public class RenderPermisoSelecao implements ListitemRenderer {
|
||||||
boolean indLectura = permiso.getIndLectura() == null ? true : permiso.getIndLectura();
|
boolean indLectura = permiso.getIndLectura() == null ? true : permiso.getIndLectura();
|
||||||
|
|
||||||
// Estava ficando null quando não era clicado na tela - set no valor
|
// Estava ficando null quando não era clicado na tela - set no valor
|
||||||
permiso.setIndLectura(indLectura);
|
|
||||||
|
|
||||||
|
if(permiso.getFuncionSistema().getSistema().getSistemaId()==SistemaEnum.VENDA_SERVIDOR.getValor()) {
|
||||||
|
permiso.setIndLectura((Boolean.FALSE));
|
||||||
|
radReadOnly.setDisabled((Boolean.TRUE));
|
||||||
|
radWrite.setChecked((Boolean.TRUE));
|
||||||
|
radWrite.setDisabled((Boolean.TRUE));
|
||||||
|
}else {
|
||||||
|
permiso.setIndLectura(indLectura);
|
||||||
if (indLectura) {
|
if (indLectura) {
|
||||||
radReadOnly.setChecked(Boolean.TRUE);
|
radReadOnly.setChecked(Boolean.TRUE);
|
||||||
}
|
}
|
||||||
if (!indLectura) {
|
if (!indLectura) {
|
||||||
radWrite.setChecked(Boolean.TRUE);
|
radWrite.setChecked(Boolean.TRUE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
radReadOnly.setAttribute("tipo", "radReadOnly");
|
radReadOnly.setAttribute("tipo", "radReadOnly");
|
||||||
radReadOnly.setAttribute("data", o);
|
radReadOnly.setAttribute("data", o);
|
||||||
radReadOnly.addEventListener("onCheck", listenerGenerico);
|
radReadOnly.addEventListener("onCheck", listenerGenerico);
|
||||||
|
|
Loading…
Reference in New Issue