public List <BELenguajeProgramacion> fVerificarUsuarioxLenguaje(BELenguajeProgramacion objELLP) { List <BELenguajeProgramacion> objLista = new List <BELenguajeProgramacion>(); try { cmdSQL.Connection = NewConnection(ConfigurationManager.AppSettings[objELLP.DBConexion]); cmdSQL.CommandText = "USP_SAR_VER_UsuarioxLenguaje"; cmdSQL.CommandType = CommandType.StoredProcedure; cmdSQL.Parameters.Clear(); pAddParameter(cmdSQL, "@nUsuId", objELLP.pnUsuId, DbType.Int32); pAddParameter(cmdSQL, "@nLenId", objELLP.pnLenId, DbType.Int32); SqlDataReader drSQL = fLeer(cmdSQL); if (drSQL.HasRows) { objLista = (List <BELenguajeProgramacion>)ConvertirDataReaderALista <BELenguajeProgramacion>(drSQL); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } finally { if (cmdSQL.Connection.State == ConnectionState.Open) { cmdSQL.Connection.Close(); } } return(objLista); }
public List <BELenguajeProgramacion> fListaLenguajeProgramacionDA(BELenguajeProgramacion objELLP) { List <BELenguajeProgramacion> objListaAct = new List <BELenguajeProgramacion>(); try { cmdSQL.Connection = NewConnection(ConfigurationManager.AppSettings[objELLP.DBConexion]); cmdSQL.CommandType = CommandType.StoredProcedure; cmdSQL.Parameters.Clear(); cmdSQL.CommandText = "USP_SAR_SEL_ListaLenguajeProgramacion_Filter"; pAddParameter(cmdSQL, "@nLenId", objELLP.pnLenId == 0 ? 0 : objELLP.pnLenId, DbType.Int32); pAddParameter(cmdSQL, "@cLenNombre", objELLP.pcLenNombre == "" ? "" : objELLP.pcLenNombre, DbType.String); pAddParameter(cmdSQL, "@cLenAbreviatura", objELLP.pcLenAbreviatura == "" ? "" : objELLP.pcLenAbreviatura, DbType.String); pAddParameter(cmdSQL, "@cLenEliminado", objELLP.pcLenEliminado == "" ? "" : objELLP.pcLenEliminado, DbType.String); pAddParameter(cmdSQL, "@cOpcion", objELLP.pcOpcion == "" ? "00" : objELLP.pcOpcion, DbType.String); pAddParameter(cmdSQL, "@nPageNumber", objELLP.PageNumber == 0 ? 0 : objELLP.PageNumber, DbType.Int32); pAddParameter(cmdSQL, "@nPageZize", objELLP.PageSize == 0 ? 0 : objELLP.PageSize, DbType.Int32); SqlDataReader drSQL = fLeer(cmdSQL); objListaAct = (List <BELenguajeProgramacion>)ConvertirDataReaderALista <BELenguajeProgramacion>(drSQL); } catch (Exception ex) { throw new Exception(ex.Message, ex); } finally { if (cmdSQL.Connection.State == ConnectionState.Open) { cmdSQL.Connection.Close(); } } return(objListaAct); }
public IEnumerable <BELenguajeProgramacion> LIST_LenguajesProgramacion(string DBConexion) { List <BELenguajeProgramacion> lstLengPro = new List <BELenguajeProgramacion>(); try { BELenguajeProgramacion objLengPro = new BELenguajeProgramacion(); BLLenguajeProgramacion objBLLengPro = new BLLenguajeProgramacion(); objLengPro.DBConexion = DBConexion; objLengPro.pcOpcion = "01"; objLengPro.pcLenEliminado = "0"; lstLengPro = objBLLengPro.fListaLenguajeProgramacionBL(objLengPro); } catch (Exception ex) { var st = new StackTrace(ex, true); var frame = st.GetFrame(0); var line = frame.GetFileLineNumber(); throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, ex.Message + "; line:" + frame.ToString())); } return(lstLengPro); }
public List <BELenguajeProgramacion> fVerificarUsuarioxLenguajeBL(BELenguajeProgramacion objBE) { return(objDALengProg.fVerificarUsuarioxLenguaje(objBE)); }
public List <BELenguajeProgramacion> fListaLenguajeProgramacionBL(BELenguajeProgramacion objBeLengPro) { return(objDALengProg.fListaLenguajeProgramacionDA(objBeLengPro)); }
public List <BELenguajeProgramacion> fnListaLenguajeProgramacion(BELenguajeProgramacion Request) { return(objDALengProg.fListaLenguajeProgramacionDA(Request)); }