Subversion Repositories Integrator Subversion

Rev

Rev 541 | Rev 546 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 541 Rev 543
Line 399... Line 399...
399
        }
399
        }
400
       
400
       
401
        public void retirarDestinatario() {
401
        public void retirarDestinatario() {
402
                getEntidade().setPessoaDestinatario(null);
402
                getEntidade().setPessoaDestinatario(null);
403
        }
403
        }
404
       
-
 
405
        /************************************/
-
 
406
        /** REMESSA **/
-
 
407
        /************************************/
-
 
408
       
404
       
409
        public void emitirNotaFiscalRemessa() {
405
        public void emitirNotaFiscalRemessa() {
410
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
406
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
411
                        public void execute() {
407
                        public void execute() {
412
                                notaFiscalService.emitirNotaFiscalEletronica(getEntidade());
408
                                notaFiscalService.emitirNotaFiscalEletronica(getEntidade());
413
                                LancadorMensagem.lancarSucesso("NOTA FISCAL DE REMESSA EMITIDA COM SUCESSO");
409
                                LancadorMensagem.lancarSucesso("NOTA FISCAL DE REMESSA EMITIDA COM SUCESSO");
-
 
410
                        }
-
 
411
                });
-
 
412
        }
-
 
413
       
-
 
414
        public void emitirNotaFiscalImportacao() {
-
 
415
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
-
 
416
                        public void execute() {
-
 
417
                                notaFiscalService.emitirNotaFiscalEletronica(getEntidade());
-
 
418
                                LancadorMensagem.lancarSucesso("NOTA FISCAL DE IMPORTAÇÃO EMITIDA COM SUCESSO");
414
                        }
419
                        }
415
                });
420
                });
416
        }
421
        }
417
       
422
       
418
        public void cancelarNotaFiscal() {
423
        public void cancelarNotaFiscal() {
Line 446... Line 451...
446
        public void consultarProdutoParaVinculoNotaFiscal() {
451
        public void consultarProdutoParaVinculoNotaFiscal() {
447
                setProdutoDTOParaVinculoNotaFiscal(produtoService.consultarProdutoDTOPorCodigoOuCodigoEAN(getCodigoProdutoParaVinculoNotaFiscal()));
452
                setProdutoDTOParaVinculoNotaFiscal(produtoService.consultarProdutoDTOPorCodigoOuCodigoEAN(getCodigoProdutoParaVinculoNotaFiscal()));
448
                setListaCompraProdutoDTOParaVinculoNotaFiscal(produtoService.consultarComprasDoProduto(getProdutoDTOParaVinculoNotaFiscal().getSequencial()));
453
                setListaCompraProdutoDTOParaVinculoNotaFiscal(produtoService.consultarComprasDoProduto(getProdutoDTOParaVinculoNotaFiscal().getSequencial()));
449
        }
454
        }
450
       
455
       
451
        public void vinculoProdutoNaNotaFiscal() {
-
 
-
 
456
        public void vincularProdutoNaNotaFiscal() {
452
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
457
                new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() {
453
                        public void execute() {
458
                        public void execute() {
454
                                notaFiscalProdutoService.vinculoProdutoNaNotaFiscal(getEntidade().getSequencial(),
-
 
-
 
459
                                notaFiscalProdutoService.vincularProdutoNaNotaFiscal(getEntidade().getSequencial(),
455
                                                getProdutoDTOParaVinculoNotaFiscal(),
460
                                                getProdutoDTOParaVinculoNotaFiscal(),
456
                                                getCompraProdutoDTOParaVinculoNotaFiscal());
461
                                                getCompraProdutoDTOParaVinculoNotaFiscal());
457
                                setCodigoProdutoParaVinculoNotaFiscal("");
462
                                setCodigoProdutoParaVinculoNotaFiscal("");
458
                                setProdutoDTOParaVinculoNotaFiscal(null);
463
                                setProdutoDTOParaVinculoNotaFiscal(null);
459
                                setCompraProdutoDTOParaVinculoNotaFiscal(null);
464
                                setCompraProdutoDTOParaVinculoNotaFiscal(null);