internal LsSumario_Procedimento Listar() { try { var m_oSumario_Procedimento = new LsSumario_Procedimento(); sbSQL.Length = 0; //sbSQL.Append("SELECT IDINT063, IDINT058, DSPRC, DTPRC"); //sbSQL.Append(" FROM TBINT063"); sbSQL.Append("SELECT IDINT063, IDINT058, DSPRC, DTPRC"); sbSQL.Append(" FROM TBINT063 WHERE IDINT058 = " + Convert.ToInt32(UtSessao.Sessao["Id058"])); oAdapter = ObterDataAdapter(sbSQL.ToString()); ITableMapping objMapping = oAdapter.TableMappings.Add("Table" , LsSumario_Procedimento.tbSumario_Procedimento); objMapping.ColumnMappings.Add("IDINT063",LsSumario_Procedimento.cpCodigo); objMapping.ColumnMappings.Add("IDINT058",LsSumario_Procedimento.cpidint058); objMapping.ColumnMappings.Add("DSPRC",LsSumario_Procedimento.cpnome); objMapping.ColumnMappings.Add("DTPRC",LsSumario_Procedimento.cpdtprc); oAdapter.Fill(m_oSumario_Procedimento); return m_oSumario_Procedimento; } catch (Exception en) { throw new Dor.Util.OperacaoInvalidaBD(en); } }
public override System.Data.DataSet Listar() { LsSumario_Procedimento m_oLsSumario_Procedimento = new LsSumario_Procedimento(); repositorio.Conectar(); m_oLsSumario_Procedimento = this.repositorio.Listar(); repositorio.Desconectar(); return m_oLsSumario_Procedimento; }