public List <Object> gerenciaRequisitosMinimosTO(int acao, string ConnectionString) { try { lista_dados = new List <object>(); dt = new System.Data.DataTable(); dt = _dao.GerenciaRequisitosMinimos(this._codigoreq, this._componentes, acao, ConnectionString); if (!(dt == null)) { if (dt.Rows.Count > 0) { if (acao != 2) { lista_dados.Add(dt.Rows[0][0].ToString()); } else { for (int x = 0; x < dt.Rows.Count; x++) { RequisitosMinimosTO item = new RequisitosMinimosTO(false); item.CodigoReq = int.Parse(dt.Rows[x]["CODIGOREQ"].ToString()); item.Componentes = dt.Rows[x]["COMPONENTES"].ToString(); } } } } return(lista_dados); } catch (Exception ex) { throw ex; } }
public List<Object> gerenciaRequisitosMinimosTO(int acao, string ConnectionString) { try { lista_dados = new List<object>(); dt = new System.Data.DataTable(); dt = _dao.GerenciaRequisitosMinimos(this._codigoreq, this._componentes, acao, ConnectionString); if (!(dt == null)) { if (dt.Rows.Count > 0) { if (acao != 2) { lista_dados.Add(dt.Rows[0][0].ToString()); } else { for (int x = 0; x < dt.Rows.Count; x++) { RequisitosMinimosTO item = new RequisitosMinimosTO(false); item.CodigoReq = int.Parse(dt.Rows[x]["CODIGOREQ"].ToString()); item.Componentes = dt.Rows[x]["COMPONENTES"].ToString(); } } } } return lista_dados; } catch (Exception ex) { throw ex; } }