Correção de erro em tela de cadastro de totalizadores.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@45191 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c35a6cb898
commit
c3ae7dd71a
|
@ -123,8 +123,6 @@ public class EditarTotnaofiscalEmpresaController extends MyGenericForwardCompose
|
||||||
}
|
}
|
||||||
|
|
||||||
totnaofiscalEmpresa.setDescricao(txtDescricao.getText());
|
totnaofiscalEmpresa.setDescricao(txtDescricao.getText());
|
||||||
totnaofiscalEmpresa.setIndice(StringUtils.leftPad(txtIndice.getText(), 2, "0"));
|
|
||||||
totnaofiscalEmpresa.setIndimportar(chkImportarImp.isChecked());
|
|
||||||
|
|
||||||
totnaofiscalEmpresa.setActivo(true);
|
totnaofiscalEmpresa.setActivo(true);
|
||||||
totnaofiscalEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
totnaofiscalEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
|
|
@ -22,14 +22,9 @@ public class TotnaofiscalEmpresaListItemRenderer implements ListitemRenderer {
|
||||||
Listcell tipoTotalizadorCell = new Listcell(totnaofiscalEmpresa.getTipototalizador());
|
Listcell tipoTotalizadorCell = new Listcell(totnaofiscalEmpresa.getTipototalizador());
|
||||||
tipoTotalizadorCell.setParent(listItem);
|
tipoTotalizadorCell.setParent(listItem);
|
||||||
|
|
||||||
Listcell indiceCell = new Listcell(totnaofiscalEmpresa.getIndice());
|
|
||||||
indiceCell.setParent(listItem);
|
|
||||||
|
|
||||||
Listcell descricaoCell = new Listcell(totnaofiscalEmpresa.getDescricao());
|
Listcell descricaoCell = new Listcell(totnaofiscalEmpresa.getDescricao());
|
||||||
descricaoCell.setParent(listItem);
|
descricaoCell.setParent(listItem);
|
||||||
|
|
||||||
Listcell indimportarCell = new Listcell((totnaofiscalEmpresa.getIndimportar())?"Sim":"Năo");
|
|
||||||
indimportarCell.setParent(listItem);
|
|
||||||
|
|
||||||
TipoEventoExtra tipoEventoExtra = totnaofiscalEmpresa.getTipoeventoextra();
|
TipoEventoExtra tipoEventoExtra = totnaofiscalEmpresa.getTipoeventoextra();
|
||||||
Listcell tipoeventoextraCell = new Listcell((tipoEventoExtra != null)?tipoEventoExtra.toString():"");
|
Listcell tipoeventoextraCell = new Listcell((tipoEventoExtra != null)?tipoEventoExtra.toString():"");
|
||||||
|
|
|
@ -61,15 +61,9 @@
|
||||||
<listheader image="/gui/img/create_doc.gif" align="right"
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
label="${c:l('busquedaTotnaofiscalEmpresaController.tipototalizador.label')}" sort="auto(tipototalizador)"/>
|
label="${c:l('busquedaTotnaofiscalEmpresaController.tipototalizador.label')}" sort="auto(tipototalizador)"/>
|
||||||
|
|
||||||
<listheader image="/gui/img/create_doc.gif" align="right"
|
|
||||||
label="${c:l('busquedaTotnaofiscalEmpresaController.indice.label')}" sort="auto(indice)" width="10%"/>
|
|
||||||
|
|
||||||
<listheader image="/gui/img/create_doc.gif" align="right"
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
label="${c:l('busquedaTotnaofiscalEmpresaController.descricao.label')}" sort="auto(descricao)"/>
|
label="${c:l('busquedaTotnaofiscalEmpresaController.descricao.label')}" sort="auto(descricao)"/>
|
||||||
|
|
||||||
<listheader image="/gui/img/create_doc.gif" align="right"
|
|
||||||
label="${c:l('busquedaTotnaofiscalEmpresaController.indimportar.label')}" sort="auto(indimportar)" width="7%"/>
|
|
||||||
|
|
||||||
<listheader image="/gui/img/create_doc.gif" align="right"
|
<listheader image="/gui/img/create_doc.gif" align="right"
|
||||||
label="${c:l('busquedaTotnaofiscalEmpresaController.tipoeventoextra.label')}" sort="auto(tipoeventoextra)"/>
|
label="${c:l('busquedaTotnaofiscalEmpresaController.tipoeventoextra.label')}" sort="auto(tipoeventoextra)"/>
|
||||||
|
|
||||||
|
|
|
@ -58,14 +58,6 @@
|
||||||
selectedItem="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.tipoeventoextra}"/>
|
selectedItem="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.tipoeventoextra}"/>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTotnaofiscalEmpresaController.indice.label')}" />
|
|
||||||
<textbox id="txtIndice" width="30px"
|
|
||||||
maxlength="2"
|
|
||||||
value="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.indice}"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
|
||||||
constraint="no empty"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaTotnaofiscalEmpresaController.descricao.label')}" />
|
<label value="${c:l('busquedaTotnaofiscalEmpresaController.descricao.label')}" />
|
||||||
<textbox id="txtDescricao" width="300px"
|
<textbox id="txtDescricao" width="300px"
|
||||||
|
@ -75,11 +67,6 @@
|
||||||
constraint="no empty"/>
|
constraint="no empty"/>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTotnaofiscalEmpresaController.indimportar.label')}" />
|
|
||||||
<checkbox id="chkImportarImp"
|
|
||||||
checked="@{winEditarTotnaofiscalEmpresa$composer.totnaofiscalEmpresa.indimportar}" />
|
|
||||||
</row>
|
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue