Adm - Tela de Busca de Agência
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30926 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
71498dc706
commit
6f4cd7e2fa
|
@ -12,40 +12,40 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
public class RenderPuntoVenta implements ListitemRenderer {
|
public class RenderPuntoVenta implements ListitemRenderer {
|
||||||
|
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
PuntoVenta puntoVenta = (PuntoVenta) o;
|
PuntoVenta puntoVenta = (PuntoVenta) o;
|
||||||
|
|
||||||
Listcell lc = new Listcell(puntoVenta.getPuntoventaId().toString());
|
Listcell lc = new Listcell(puntoVenta.getNumPuntoVenta().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(puntoVenta.getNombpuntoventa());
|
lc = new Listcell(puntoVenta.getNombpuntoventa());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
Empresa empresa = puntoVenta.getEmpresa();
|
Empresa empresa = puntoVenta.getEmpresa();
|
||||||
if (empresa != null) {
|
if (empresa != null) {
|
||||||
lc = new Listcell(empresa.getNombempresa());
|
lc = new Listcell(empresa.getNombempresa());
|
||||||
} else {
|
} else {
|
||||||
lc = new Listcell("");
|
lc = new Listcell("");
|
||||||
}
|
}
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(puntoVenta.getDireccioncalle());
|
lc = new Listcell(puntoVenta.getDireccioncalle());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(puntoVenta.getDireccionnumero());
|
lc = new Listcell(puntoVenta.getDireccionnumero());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(puntoVenta.getNumtelefonouno());
|
lc = new Listcell(puntoVenta.getNumtelefonouno());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(puntoVenta.getNumtelefonodos());
|
lc = new Listcell(puntoVenta.getNumtelefonodos());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", puntoVenta);
|
lstm.setAttribute("data", puntoVenta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<window id="winBusquedaPuntoVenta"
|
<window id="winBusquedaPuntoVenta"
|
||||||
title="${c:l('busquedaPuntoVentaController.window.title')}"
|
title="${c:l('busquedaPuntoVentaController.window.title')}"
|
||||||
apply="${busquedaPuntoVentaController}" contentStyle="overflow:auto"
|
apply="${busquedaPuntoVentaController}" contentStyle="overflow:auto"
|
||||||
height="510px" width="950px" border="normal">
|
height="510px" width="960px" border="normal">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||||
width="35px"
|
width="35px"
|
||||||
|
@ -138,9 +138,9 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
vflex="true" multiple="false">
|
vflex="true" multiple="false">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader image="/gui/img/create_doc.gif" width="55px"
|
<listheader image="/gui/img/create_doc.gif" width="114px"
|
||||||
label="${c:l('busquedaPuntoVentaController.lhId.label')}"
|
label="${c:l('busquedaPuntoVentaController.lhNumero.label')}"
|
||||||
sort="auto(puntoventaId)" />
|
sort="auto(numPuntoVenta)" />
|
||||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('busquedaPuntoVentaController.lhDesc.label')}"
|
label="${c:l('busquedaPuntoVentaController.lhDesc.label')}"
|
||||||
sort="auto(nombpuntoventa)" width="200px" />
|
sort="auto(nombpuntoventa)" width="200px" />
|
||||||
|
@ -152,13 +152,13 @@
|
||||||
sort="auto(direccioncalle)" width="200px" />
|
sort="auto(direccioncalle)" width="200px" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbNumero.value')}"
|
label="${c:l('editarPuntoVentaController.lbNumero.value')}"
|
||||||
sort="auto(direccionnumero)" width="110px" />
|
sort="auto(direccionnumero)" width="95px" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}"
|
label="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}"
|
||||||
sort="auto(numtelefonouno)" width="110px" />
|
sort="auto(numtelefonouno)" width="100px" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}"
|
label="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}"
|
||||||
sort="auto(numtelefonodos)" width="110px" />
|
sort="auto(numtelefonodos)" width="100px" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in New Issue