public IEnumerable <LiquidacaoDespesaNota> Fetch(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.List <LiquidacaoDespesaNota>("PR_SUBEMPENHO_NOTA_CONSULTAR",
                                                    new SqlParameter("@id_subempenho_nota", entity.Id),
                                                    new SqlParameter("@tb_subempenho_id_subempenho", entity.SubempenhoId)
                                                    ));
 }
示例#2
0
 public IEnumerable <LiquidacaoDespesaNota> Fetch(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.List <LiquidacaoDespesaNota>("PR_RAP_REQUISICAO_NOTA_CONSULTAR",
                                                    new SqlParameter("@id_rap_requisicao_nota", entity.Id),
                                                    new SqlParameter("@tb_rap_requisicao_id_rap_requisicao", entity.SubempenhoId)
                                                    ));
 }
 public int Add(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.Get <int>("PR_SUBEMPENHO_NOTA_INCLUIR",
                                 new SqlParameter("@tb_subempenho_id_subempenho", entity.SubempenhoId),
                                 new SqlParameter("@nr_ordem", entity.Ordem),
                                 new SqlParameter("@cd_nota", entity.CodigoNotaFiscal)
                                 ));
 }
 public int Edit(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.Get <int>("PR_SUBEMPENHO_NOTA_ALTERAR",
                                 new SqlParameter("@id_subempenho_nota", entity.Id),
                                 new SqlParameter("@tb_subempenho_id_subempenho", entity.SubempenhoId),
                                 new SqlParameter("@cd_nota", entity.CodigoNotaFiscal)
                                 ));
 }
示例#5
0
 public int Add(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.Get <int>("PR_RAP_REQUISICAO_NOTA_INCLUIR",
                                 new SqlParameter("@tb_rap_requisicao_id_rap_requisicao", entity.SubempenhoId),
                                 new SqlParameter("@nr_ordem", entity.Ordem),
                                 new SqlParameter("@cd_nota", entity.CodigoNotaFiscal)
                                 ));
 }
示例#6
0
 public int Edit(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.Get <int>("PR_RAP_REQUISICAO_NOTA_ALTERAR",
                                 new SqlParameter("@id_rap_requisicao_nota", entity.Id),
                                 new SqlParameter("@tb_rap_requisicao_id_rap_requisicao", entity.SubempenhoId),
                                 new SqlParameter("@cd_nota", entity.CodigoNotaFiscal)
                                 ));
 }
 public int Save(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.Get <int>("PR_SUBEMPENHO_CANCELAMENTO_NOTA_SALVAR",
                                 new SqlParameter("@id_subempenho_cancelamento_nota", entity.Id),
                                 new SqlParameter("@tb_subempenho_cancelamento_id_subempenho_cancelamento", entity.SubempenhoId),
                                 new SqlParameter("@nr_ordem", entity.Ordem),
                                 new SqlParameter("@cd_nota", entity.CodigoNotaFiscal)
                                 ));
 }
 public int Save(LiquidacaoDespesaNota entity)
 {
     return(DataHelper.Get <int>("PR_RAP_ANULACAO_NOTA_SALVAR",
                                 new SqlParameter("@id_rap_anulacao_nota", entity.Id),
                                 new SqlParameter("@tb_rap_anulacao_id_rap_anulacao", entity.SubempenhoId),
                                 new SqlParameter("@nr_ordem", entity.Ordem),
                                 new SqlParameter("@cd_nota", entity.CodigoNotaFiscal)
                                 ));
 }
        public int SalvarOuAlterar(LiquidacaoDespesaNota entity, int resource, short action)
        {
            try
            {
                entity.Id = _repository.Save(entity);

                return(entity.Id);
            }
            catch (Exception ex)
            {
                throw SaveLog(ex, action, resource);
            }
        }
        public AcaoEfetuada Alterar(LiquidacaoDespesaNota entity, int resource, short action)
        {
            try
            {
                _repository.Edit(entity);

                return(AcaoEfetuada.Sucesso);
            }
            catch (Exception ex)
            {
                throw SaveLog(ex, actionId: action, functionalityId: resource);
            }
        }
示例#11
0
        public int SalvarOuAlterar(LiquidacaoDespesaNota entity, int resource, short action)
        {
            try
            {
                entity.Id = _repository.Save(entity);

                if (resource > 0)
                {
                    LogSucesso(action, resource, $"SubempenhoNota {entity.Id}, Subempenho {entity.SubempenhoId}");
                }

                return(entity.Id);
            }
            catch (Exception ex)
            {
                throw SaveLog(ex, action, resource);
            }
        }
 public IEnumerable <LiquidacaoDespesaNota> Buscar(LiquidacaoDespesaNota entity)
 {
     return(_repository.Fetch(entity));
 }