alteração no cadastro do usuário no combobox localidade e ponto de venda
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24294 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5584fe4301
commit
74eed8801c
|
@ -1,5 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
* and open the template in the editor.
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
|
||||||
|
@ -169,17 +168,17 @@ public class BusquedaUsuarioController extends MyGenericForwardComposer {
|
||||||
pagingUsuario.getPageSize());
|
pagingUsuario.getPageSize());
|
||||||
|
|
||||||
String nombUsuario = txtNombUsuario.getText();
|
String nombUsuario = txtNombUsuario.getText();
|
||||||
if (nombUsuario != null) {
|
if (!nombUsuario.equals("")) {
|
||||||
sistemaBusqueda.addFilterLike("nombusuario", "%" + nombUsuario.trim().concat("%"));
|
sistemaBusqueda.addFilterLike("nombusuario", "%" + nombUsuario.trim().concat("%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
String nombPaterno = txtNombPaterno.getText();
|
String nombPaterno = txtNombPaterno.getText();
|
||||||
if (nombPaterno != null) {
|
if (!nombPaterno.equals("")) {
|
||||||
sistemaBusqueda.addFilterLike("nombpaterno", "%" + nombPaterno.trim().concat("%"));
|
sistemaBusqueda.addFilterLike("nombpaterno", "%" + nombPaterno.trim().concat("%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
String nombMaterno = txtNombMaterno.getText();
|
String nombMaterno = txtNombMaterno.getText();
|
||||||
if (nombMaterno != null) {
|
if (!nombMaterno.equals("")) {
|
||||||
sistemaBusqueda.addFilterLike("nombmaterno", "%" + nombMaterno.trim().concat("%"));
|
sistemaBusqueda.addFilterLike("nombmaterno", "%" + nombMaterno.trim().concat("%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.zkoss.zk.ui.util.Clients;
|
||||||
import org.zkoss.zul.Button;
|
import org.zkoss.zul.Button;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.ListModelList;
|
||||||
import org.zkoss.zul.Tab;
|
import org.zkoss.zul.Tab;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
@ -39,6 +40,7 @@ import com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpleadoService;
|
import com.rjconsultores.ventaboletos.service.EmpleadoService;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.PerfilService;
|
import com.rjconsultores.ventaboletos.service.PerfilService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioEmpresaService;
|
import com.rjconsultores.ventaboletos.service.UsuarioEmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioPerfilService;
|
import com.rjconsultores.ventaboletos.service.UsuarioPerfilService;
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||||
|
@ -72,8 +74,11 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
||||||
private EmpleadoService empleadoService;
|
private EmpleadoService empleadoService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmpresaService empresaService;
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private PuntoVentaService puntoVentaService;
|
||||||
private List<Perfil> lsPerfil;
|
private List<Perfil> lsPerfil;
|
||||||
private List<Empresa> lsEmpresa;
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<PuntoVenta> lsPuntoVenta = null;
|
||||||
private Perfil perfilSeleccionada;
|
private Perfil perfilSeleccionada;
|
||||||
private List<UsuarioUbicacion> lsUsuarioUbicacion;
|
private List<UsuarioUbicacion> lsUsuarioUbicacion;
|
||||||
private List<UsuarioEmpresa> lsUsuarioEmpresa;
|
private List<UsuarioEmpresa> lsUsuarioEmpresa;
|
||||||
|
@ -707,7 +712,16 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnAdicionarUbicacion(Event ev) {
|
public void onSelect$cmbParada(){
|
||||||
|
|
||||||
|
Comboitem cbiParada = cmbParada.getSelectedItem();
|
||||||
|
if(cbiParada!= null){
|
||||||
|
lsPuntoVenta = puntoVentaService.buscaPuntoVentaParada((Parada) cmbParada.getSelectedItem().getValue());
|
||||||
|
cmbPuntoVenta.setModel(new ListModelList(lsPuntoVenta));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnAdicionarUbicacion() {
|
||||||
Comboitem cbiParada = cmbParada.getSelectedItem();
|
Comboitem cbiParada = cmbParada.getSelectedItem();
|
||||||
Comboitem cbiPuntoVenta = cmbPuntoVenta.getSelectedItem();
|
Comboitem cbiPuntoVenta = cmbPuntoVenta.getSelectedItem();
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,11 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaClase;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaClase;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaCtrl;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaCtrl;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CategoriaMarca;
|
import com.rjconsultores.ventaboletos.entidad.CategoriaMarca;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CategoriaCtrlService;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.zkoss.zul.Listcell;
|
import org.zkoss.zul.Listcell;
|
||||||
import org.zkoss.zul.Listitem;
|
import org.zkoss.zul.Listitem;
|
||||||
import org.zkoss.zul.ListitemRenderer;
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
@ -16,9 +20,11 @@ import org.zkoss.zul.ListitemRenderer;
|
||||||
* @author rodrigo
|
* @author rodrigo
|
||||||
*/
|
*/
|
||||||
public class RenderCategoriaDescuento implements ListitemRenderer {
|
public class RenderCategoriaDescuento implements ListitemRenderer {
|
||||||
|
@Autowired
|
||||||
|
private CategoriaCtrlService categoriaCtrlService;
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
CategoriaCtrl cc = (CategoriaCtrl) o;
|
CategoriaCtrl cc = (CategoriaCtrl) o;
|
||||||
|
String descricao = "";
|
||||||
|
|
||||||
Listcell lc = new Listcell(cc.getCategoriactrlId().toString());
|
Listcell lc = new Listcell(cc.getCategoriactrlId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
@ -39,6 +45,17 @@ public class RenderCategoriaDescuento implements ListitemRenderer {
|
||||||
}
|
}
|
||||||
lc = new Listcell(sb2.toString());
|
lc = new Listcell(sb2.toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
if(!cc.getCategoriaDescuentoList().isEmpty()){
|
||||||
|
|
||||||
|
|
||||||
|
for(CategoriaDescuento catDesc : cc.getCategoriaDescuentoList()){
|
||||||
|
|
||||||
|
descricao = descricao + catDesc.getCategoria() != null ? catDesc.getCategoria().getDesccategoria() : "0"+ ", ";
|
||||||
|
}
|
||||||
|
descricao = descricao.substring(0,descricao.length()-1);
|
||||||
|
lc = new Listcell(descricao);
|
||||||
|
lc.setParent(lstm);
|
||||||
|
}
|
||||||
|
|
||||||
lstm.setAttribute("data", cc);
|
lstm.setAttribute("data", cc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -890,6 +890,7 @@ busquedaConfiguracionCategoriaController.btnRefresh.tooltiptext = Atualizar
|
||||||
busquedaConfiguracionCategoriaController.btnNovo.tooltiptext = Incluir
|
busquedaConfiguracionCategoriaController.btnNovo.tooltiptext = Incluir
|
||||||
busquedaConfiguracionCategoriaController.btnCerrar.tooltiptext = Fechar
|
busquedaConfiguracionCategoriaController.btnCerrar.tooltiptext = Fechar
|
||||||
busquedaConfiguracionCategoriaController.btnPesquisa.label = Pesquisa
|
busquedaConfiguracionCategoriaController.btnPesquisa.label = Pesquisa
|
||||||
|
busquedaConfiguracionCategoriaController.lhTipoPassagem.label = Tipo de Passagem
|
||||||
|
|
||||||
|
|
||||||
# Pantalla Editar Configuração Categoría
|
# Pantalla Editar Configuração Categoría
|
||||||
|
@ -1988,6 +1989,7 @@ busquedaUsuarioController.CveUsuario.label = Login
|
||||||
busquedaUsuarioController.CveEmpleado.label = Código de Empregado
|
busquedaUsuarioController.CveEmpleado.label = Código de Empregado
|
||||||
editarUsuarioController.lhEmpresa.label = Empresa
|
editarUsuarioController.lhEmpresa.label = Empresa
|
||||||
editarUsuarioController.chkCorteTurnoAutomatico.label = Corte Automático
|
editarUsuarioController.chkCorteTurnoAutomatico.label = Corte Automático
|
||||||
|
editarUsuarioController.MSG.usuarioempresa = É necessário informar pelo menos um empresa
|
||||||
|
|
||||||
|
|
||||||
#cREADO POR mANUEL
|
#cREADO POR mANUEL
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<window id="winBusquedaConfiguracionCategoria"
|
<window id="winBusquedaConfiguracionCategoria"
|
||||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||||
apply="${busquedaConfiguracionCategoriaController}"
|
apply="${busquedaConfiguracionCategoriaController}"
|
||||||
height="400px" width="650px" border="normal" contentStyle="overflow:auto">
|
height="500px" width="980px" border="normal" contentStyle="overflow:auto">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfiguracionCategoriaController.btnRefresh.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfiguracionCategoriaController.btnRefresh.tooltiptext')}" />
|
||||||
|
@ -48,11 +48,13 @@
|
||||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('busquedaConfiguracionCategoriaController.lhDesc.label')}" sort="auto(empresa.nombempresa)"/>
|
label="${c:l('busquedaConfiguracionCategoriaController.lhDesc.label')}" sort="auto(empresa.nombempresa)"/>
|
||||||
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif" width="35%"
|
||||||
label="${c:l('busquedaConfiguracionCategoriaController.lhMarca.label')}"/>
|
label="${c:l('busquedaConfiguracionCategoriaController.lhMarca.label')}"/>
|
||||||
|
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('busquedaConfiguracionCategoriaController.lhClase.label')}"/>
|
label="${c:l('busquedaConfiguracionCategoriaController.lhClase.label')}"/>
|
||||||
|
<listheader image="/gui/img/create_doc.gif" width="35%"
|
||||||
|
label="${c:l('busquedaConfiguracionCategoriaController.lhTipoPassagem.label')}"/>
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</window>
|
</window>
|
||||||
|
|
|
@ -60,12 +60,12 @@
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaUsuarioController.nombpaterno.label')}"/>
|
<label value="${c:l('busquedaUsuarioController.nombpaterno.label')}"/>
|
||||||
<textbox id="txtNombPaterno" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="30"
|
<textbox id="txtNombPaterno" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="30"
|
||||||
value="@{winEditarUsuario$composer.usuario.nombpaterno}" constraint="no empty"/>
|
value="@{winEditarUsuario$composer.usuario.nombpaterno}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaUsuarioController.nombmaterno.label')}"/>
|
<label value="${c:l('busquedaUsuarioController.nombmaterno.label')}"/>
|
||||||
<textbox id="txtNombMaterno" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="30"
|
<textbox id="txtNombMaterno" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="30"
|
||||||
value="@{winEditarUsuario$composer.usuario.nombmaterno}" constraint="no empty"/>
|
value="@{winEditarUsuario$composer.usuario.nombmaterno}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarUsuarioController.senha.label')}"/>
|
<label value="${c:l('editarUsuarioController.senha.label')}"/>
|
||||||
|
@ -126,8 +126,8 @@
|
||||||
<label value="${c:l('editarUsuarioController.lhPuntoVenta.label')}"/>
|
<label value="${c:l('editarUsuarioController.lhPuntoVenta.label')}"/>
|
||||||
<hbox>
|
<hbox>
|
||||||
<combobox id="cmbPuntoVenta"
|
<combobox id="cmbPuntoVenta"
|
||||||
mold="rounded" buttonVisible="true" width="100%"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
mold="rounded" buttonVisible="true" width="100%" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
|
|
Loading…
Reference in New Issue