//---------------- // PerJuridica (Vista) //---------------- // para obtener por tipo de empresa ? (hacer SP) public DataTable Get_PerJurTipInversion(BE_ReqPerJurSecEconomico 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_PerJurSecEconomico]"; cm.CommandType = CommandType.StoredProcedure; cm.Parameters.AddWithValue("cFlag", Request.cFlag); cm.Connection = cn; using (SqlDataReader dr = cm.ExecuteReader()) dt.Load(dr); } } } catch (Exception) { throw; } return dt; }
//---------------- // PerJuridica //---------------- public DataTable Get_PerJurTipInversion(BE_ReqPerJurSecEconomico Request) { //Recuperando registros DataTable dt = new DataTable(); DA_Persona Obj = new DA_Persona(); return Obj.Get_PerJurTipInversion(Request); }