//Get_Afiliacion Fondo Mutual public DataTable Get_AfiliacionFondo(BE_ReqAfilicacion Request) { DataTable dt = new DataTable(); try { clsConection Obj = new clsConection(); string Cadena = Obj.GetConexionString("Naylamp"); using (SqlConnection cn = new SqlConnection(Cadena)) { cn.Open(); using (SqlCommand cm = new SqlCommand()) { cm.CommandText = "[usp_Get_AfiliacionFondo]"; cm.CommandType = CommandType.StoredProcedure; cm.Parameters.AddWithValue("nFlag", Request.nFlag); cm.Parameters.AddWithValue("cPerIdeNumero", Request.cPerIdeNumero); cm.Parameters.AddWithValue("cPerIdeNumeroDNI", Request.cPerIdeNumeroDNI); cm.Parameters.AddWithValue("cDocCodigo", Request.cDocCodigo); cm.Connection = cn; using (SqlDataReader dr = cm.ExecuteReader()) dt.Load(dr); } } } catch (Exception) { throw; } return dt; }
//Get_AfiliacionFondo public DataTable Get_AfiliacionFondo(BE_ReqAfilicacion Request) { //Recuperando registros DataTable dt = new DataTable(); DA_Persona Obj = new DA_Persona(); return Obj.Get_AfiliacionFondo(Request); }