daniel.zauli 2016-01-14 17:39:30 +00:00
parent 480a3daef3
commit d0263a7f63
5 changed files with 31 additions and 13 deletions

View File

@ -18,37 +18,37 @@ public class AidfListItemRenderer implements ListitemRenderer {
Listcell idCell = new Listcell(aidf.getAidfId().toString());
idCell.setParent(listItem);
Listcell especieCell = new Listcell(aidf.getAidfEspecie().toString());
Listcell especieCell = aidf.getAidfEspecie() == null ? new Listcell("") : new Listcell(aidf.getAidfEspecie().toString());
especieCell.setParent(listItem);
Listcell tipoCell = new Listcell(aidf.getAidfTipo().toString());
Listcell tipoCell = aidf.getAidfTipo() == null ? new Listcell("") : new Listcell(aidf.getAidfTipo().toString());
tipoCell.setParent(listItem);
Listcell estadoCell = new Listcell(aidf.getEstado().toString());
Listcell estadoCell = aidf.getEstado() == null ? new Listcell("") : new Listcell(aidf.getEstado().toString());
estadoCell.setParent(listItem);
Listcell empresaCell = new Listcell(aidf.getEmpresa().toString());
Listcell empresaCell = aidf.getEmpresa() == null ? new Listcell("") : new Listcell(aidf.getEmpresa().toString());
empresaCell.setParent(listItem);
Listcell inscEstadualCell = StringUtils.isBlank(aidf.getInscestadual())?new Listcell("") :new Listcell(aidf.getInscestadual());
inscEstadualCell.setParent(listItem);
Listcell docFiscalCell = new Listcell(aidf.getDocfiscal());
Listcell docFiscalCell = aidf.getDocfiscal() == null ? new Listcell("") : new Listcell(aidf.getDocfiscal());
docFiscalCell.setParent(listItem);
Listcell acFiscalCell = new Listcell(aidf.getAcfiscal());
Listcell acFiscalCell = aidf.getAcfiscal() == null ? new Listcell("") : new Listcell(aidf.getAcfiscal());
acFiscalCell.setParent(listItem);
Listcell serieCell = new Listcell(aidf.getSerie());
Listcell serieCell = aidf.getSerie() == null ? new Listcell("") : new Listcell(aidf.getSerie());
serieCell.setParent(listItem);
Listcell subserieCell = new Listcell(aidf.getSubserie());
Listcell subserieCell = aidf.getSubserie() == null ? new Listcell("") : new Listcell(aidf.getSubserie());
subserieCell.setParent(listItem);
Listcell formInicialCell = new Listcell(aidf.getForminicial());
Listcell formInicialCell = aidf.getForminicial() == null ? new Listcell("") : new Listcell(aidf.getForminicial());
formInicialCell.setParent(listItem);
Listcell formFinalCell = new Listcell(aidf.getFormfinal());
Listcell formFinalCell = aidf.getFormfinal() == null ? new Listcell("") : new Listcell(aidf.getFormfinal());
formFinalCell.setParent(listItem);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

View File

@ -173,12 +173,25 @@ public class EditarAidfController extends MyGenericForwardComposer {
cmbEstado.getValue();
cmbInscestadual.getValue();
txtSerie.getValue();
txtForminicial.getValue();
txtFormfinal.getValue();
txtDocFiscal.getValue();
Comboitem inscEstadualSeleccionada = cmbInscestadual.getSelectedItem();
String _inscestadual = inscEstadualSeleccionada != null ? inscEstadualSeleccionada.getValue().toString() : "";
aidf.setInscestadual(_inscestadual);
Long x = aidfService.validarDocFiscalSerieFormInicialFinal(aidf);
if(x != -1){
Messagebox.show(
Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoFormIniFin", new Object[] { x }),
Labels.getLabel("editarAidfController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return;
}
aidf.setActivo(true);
aidf.setFecmodif(Calendar.getInstance().getTime());
aidf.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());

View File

@ -5518,6 +5518,7 @@ editarAidfController.MSG.suscribirOK=Aidf se guardó exitosamente! La movimentac
editarAidfController.MSG.noWrite=Não será possível editar ou excluir esta AIDF uma vez que existem passagens vinculadas à mesma
editarAidfController.btnApagar.MSG.Deseja.Borrar = Deseja eliminar esta AIDF?
editarAidfController.btnApagar.MSG.borrarOK = AIDF Excluida com Sucesso.
editarAidfController.btnSalvar.MSG.conflitoFormIniFin = Os campos 'Form.Inicial' e/ou 'Form.Final' desta Aidf estão dentro do intervalo dos mesmos campos da Aidf de ID {0} de mesma 'Série' e 'Doc.Fiscal'.
movimentacionBilhetesController.window.title=Movimentación de estoque
movimentacionBilhetesController.MSG.suscribirOK=Movimentación se guardó exitosamente!

View File

@ -5599,6 +5599,7 @@ editarAidfController.MSG.suscribirOK=Aidf gravada com sucesso! A movimentação
editarAidfController.MSG.noWrite=Não será possível editar ou excluir esta AIDF uma vez que existem passagens vinculadas à mesma
editarAidfController.btnApagar.MSG.Deseja.Borrar = Deseja eliminar esta AIDF?
editarAidfController.btnApagar.MSG.borrarOK = AIDF Excluida com Sucesso.
editarAidfController.btnSalvar.MSG.conflitoFormIniFin = Os campos 'Form.Inicial' e/ou 'Form.Final' desta Aidf estão dentro do intervalo dos mesmos campos da Aidf de ID {0} de mesma 'Série' e 'Doc.Fiscal'.
movimentacionBilhetesController.window.title=Movimentação de Estoque
movimentacionBilhetesController.MSG.suscribirOK=Movimentação gravada com sucesso!

View File

@ -61,7 +61,8 @@
value="${c:l('busquedaAidfController.docfiscal.label')}" />
<textbox id="txtDocFiscal" width="100px"
maxlength="20" value="@{winEditarAidf$composer.aidf.docfiscal}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
constraint="no empty"/>
</row>
<row>
<label
@ -89,14 +90,16 @@
value="${c:l('busquedaAidfController.forminicial.label')}" />
<textbox id="txtForminicial" width="100px"
maxlength="20" value="@{winEditarAidf$composer.aidf.forminicial}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
constraint="no empty"/>
</row>
<row>
<label
value="${c:l('busquedaAidfController.formfinal.label')}" />
<textbox id="txtFormfinal" width="100px"
maxlength="20" value="@{winEditarAidf$composer.aidf.formfinal}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
constraint="no empty"/>
</row>
<row>
<label