gleimar 2013-02-14 20:25:33 +00:00
parent a9a29d9d8d
commit 796edc5c94
4 changed files with 564 additions and 576 deletions

View File

@ -24,7 +24,6 @@ public class RenderCategoriaDescuento implements ListitemRenderer {
private CategoriaCtrlService categoriaCtrlService; 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);
@ -47,13 +46,12 @@ public class RenderCategoriaDescuento implements ListitemRenderer {
lc.setParent(lstm); lc.setParent(lstm);
if(!cc.getCategoriaDescuentoList().isEmpty()){ if(!cc.getCategoriaDescuentoList().isEmpty()){
sb = new StringBuilder();
for(CategoriaDescuento catDesc : cc.getCategoriaDescuentoList()){ for(CategoriaDescuento catDesc : cc.getCategoriaDescuentoList()){
sb.append(catDesc.getCategoria()).append(", ");
descricao = descricao + catDesc.getCategoria() != null ? catDesc.getCategoria().getDesccategoria() : "0"+ ", ";
} }
descricao = descricao.substring(0,descricao.length()-1);
lc = new Listcell(descricao); lc = new Listcell(sb.toString());
lc.setParent(lstm); lc.setParent(lstm);
} }

View File

@ -7,7 +7,7 @@
# <controler>. <id>. <propiedade> = XXX # <controler>. <id>. <propiedade> = XXX
#Versao do VentaBoleto: #Versao do VentaBoleto:
versao = ADM_20130214_1RC109 versao = ADM_20130214_1RC110
# MSG Defaut: # MSG Defaut:
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100 MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100

View File

@ -116,19 +116,14 @@
<rows> <rows>
<row> <row>
<label value="${c:l('editarUsuarioController.lhParada.label')}"/> <label value="${c:l('editarUsuarioController.lhParada.label')}"/>
<hbox> <combobox id="cmbParada" mold="rounded" buttonVisible="true" width="100%"
<combobox id="cmbParada"
mold="rounded" buttonVisible="true" width="100%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/> use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
</hbox>
</row> </row>
<row> <row>
<label value="${c:l('editarUsuarioController.lhPuntoVenta.label')}"/> <label value="${c:l('editarUsuarioController.lhPuntoVenta.label')}"/>
<hbox> <combobox id="cmbPuntoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
<combobox id="cmbPuntoVenta" mold="rounded" buttonVisible="true" width="100%" />
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" width="100%" />
</hbox>
</row> </row>
</rows> </rows>
</grid> </grid>