Ejemplo n.º 1
0
        public IEnumerable <CustoOrcamentoModel> Get()
        {
            try
            {
                var listCustoOrcamento = CustoOrcamentoRepository.List();

                foreach (CustoOrcamentoModel custoOrcamento in listCustoOrcamento)
                {
                    var custoId = MetodosGenericosService.DlookupOrcamentaria("CUSTO_ID", "T_ORCA_CUSTO_ORCAMENTO", $"CUSTO_ORCAMENTO_ID = {custoOrcamento.CUSTO_ORCAMENTO_ID}");

                    custoOrcamento.CUSTO_OBRA = CustoService.GetComParametro(new CustoQO(int.Parse(custoId), "")).ToArray()[0];
                }

                return(listCustoOrcamento);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <CustoModel> Get([FromQuery] CustoQO custo)
 {
     return(CustoService.GetComParametro(custo));
 }