/// <summary> /// Autor: rcontreras /// Fecha: 23-09-2015 /// </summary> /// <param name="oRq"></param> /// <returns></returns> public List <Local> DLista(Request_Local_Operario oRq) { try { List <Local> lOb = new List <Local>(); using (IDataReader iDr = DatabaseFactory.CreateDatabase().ExecuteReader("dsige_operario_servicio_select", oRq.ope_id)) { if (iDr != null) { while (iDr.Read()) { lOb.Add( new Local() { loc_id = Convert.ToInt32(iDr["loc_id"]), loc_nombre = Convert.ToString(iDr["loc_descripcion"]), loc_estado = Convert.ToInt32(iDr["loc_estado"]) } ); } } } return(lOb); } catch (Exception e) { throw e; } }
/// <summary> /// Autor: rcontreras /// Fecha: 23-09-2015 /// </summary> /// <param name="oRq"></param> /// <returns></returns> public List <Local> NLista(Request_Local_Operario oRq) { try { return(new DLocal().DLista(oRq)); } catch (Exception e) { throw e; } }