Imports System.Net.Http Imports System.Net.Http.Headers Imports WebIntranet.ClasesDatosAdmin Public Class titulaciones Inherits System.Web.UI.Page Protected Async Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'If (Session("persona") Is Nothing) Then ' ("Default.aspx", False) 'Else Dim token As String = Session("token") Dim client As New HttpClient() client.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("Bearer", token) client.BaseAddress = New Uri(ConfigurationManager.AppSettings("SwaggerVB")) Dim idPers = Session("persona").Personas(0).idPersona Dim url As String = "/api/TITULACIONES/GetWithIncludes/" & idPers Dim puestosItems = Await UtilAntifraude.ObtenerObjeto(Of List(Of ClasesDatosAdmin.TITULACIONES))(client, url) Dim htmlTabla = "" If puestosItems.Count > 0 Then htmlTabla += "
| Descripción | " + "Centro | " + "Fecha expedición | " + "Fecha incripción provisional | " + "Fecha incripción definitiva |
|---|---|---|---|---|
| " + If(itm.RUTA IsNot Nothing, "" + itm.DESCRIPCION + "", itm.DESCRIPCION) + " | " + "" + itm.CENTRO + " | " + "" + If(itm.FECHA_EXPEDICION IsNot Nothing, itm.FECHA_EXPEDICION.ToString.Substring(0, 10), "") + " | " + "" + If(itm.FECHA_INSCRIPCION_PROVISIONAL IsNot Nothing, itm.FECHA_INSCRIPCION_PROVISIONAL.ToString.Substring(0, 10), "") + " | " + "" + If(itm.FECHA_INSCRIPCION_DEFINITIVA IsNot Nothing, itm.FECHA_INSCRIPCION_DEFINITIVA.ToString.Substring(0, 10), "") + " |
No se han encontrado resultados
" End If divTabla.InnerHtml = htmlTabla End Sub End Class