コード例 #1
0
        public Entidades.HistoricoPesquisa Salvar(Entidades.HistoricoPesquisa h)
        {
            try
            {
                Dados.HistoricoPesquisa negHistPesq = new Dados.HistoricoPesquisa();

                DataTable dtRetorno = new DataTable();

                negHistPesq.Salvar(h, ref dtRetorno);

                foreach (DataRow item in dtRetorno.Rows)
                {
                    Entidades.HistoricoPesquisa hist = new Entidades.HistoricoPesquisa();

                    hist.IdHistoricoConsulta = int.Parse(item["ID_HISTORICO_CONSULTA"].ToString());
                    hist.ProtocoloRetorno    = item["PROTOCOLO_RETORNO"].ToString();

                    return(hist);
                }

                return(new Entidades.HistoricoPesquisa());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
        public void SalvarHistoricoFornecedor(Entidades.HistoricoPesquisa h)
        {
            try
            {
                Dados.HistoricoPesquisa negHistPesq = new Dados.HistoricoPesquisa();

                DataTable dtRetorno = new DataTable();

                negHistPesq.SalvarHistoricoFornecedor(h, ref dtRetorno);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }