//Get_TipoDocporNroCaja public DataTable Get_TipoDocporNroCaja(BE_TipoDocporNroCaja Request) { //Recuperando registros DataTable dt = new DataTable(); DA_CtaCteServicioFacturacion Obj = new DA_CtaCteServicioFacturacion(); return Obj.Get_TipoDocporNroCaja(Request); }
//--------------------------------- // SELECT usp_Get_TipoDocporNroCaja //--------------------------------- public DataTable Get_TipoDocporNroCaja(BE_TipoDocporNroCaja 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_TipoDocporNroCaja"; cm.CommandType = CommandType.StoredProcedure; cm.Parameters.AddWithValue("cPerJurCodigo", Request.cPerJurCodigo); cm.Parameters.AddWithValue("nCajCodigo", Request.nCajCodigo); cm.Connection = cn; using (SqlDataReader dr = cm.ExecuteReader()) dt.Load(dr); } } } catch (Exception) { throw; } return dt; }