|
|
@ -2,9 +2,6 @@ package mx.gob.jumapacelaya.views; |
|
|
|
|
|
|
|
import com.vaadin.flow.component.button.Button; |
|
|
|
import com.vaadin.flow.component.button.ButtonVariant; |
|
|
|
import com.vaadin.flow.component.checkbox.CheckboxGroup; |
|
|
|
import com.vaadin.flow.component.combobox.ComboBox; |
|
|
|
import com.vaadin.flow.component.html.H1; |
|
|
|
import com.vaadin.flow.component.html.H2; |
|
|
|
import com.vaadin.flow.component.html.H3; |
|
|
|
import com.vaadin.flow.component.html.Span; |
|
|
@ -12,6 +9,8 @@ import com.vaadin.flow.component.orderedlayout.HorizontalLayout; |
|
|
|
import com.vaadin.flow.component.orderedlayout.VerticalLayout; |
|
|
|
import com.vaadin.flow.component.textfield.NumberField; |
|
|
|
import com.vaadin.flow.component.textfield.TextField; |
|
|
|
import com.vaadin.flow.router.BeforeEnterEvent; |
|
|
|
import com.vaadin.flow.router.BeforeEnterObserver; |
|
|
|
import com.vaadin.flow.router.PageTitle; |
|
|
|
import com.vaadin.flow.router.Route; |
|
|
|
|
|
|
@ -20,7 +19,9 @@ import java.time.format.DateTimeFormatter; |
|
|
|
|
|
|
|
@PageTitle("Verificacion") |
|
|
|
@Route(value = "verificacion", layout = MainLayout.class) |
|
|
|
public class VerificacionView extends VerticalLayout { |
|
|
|
public class VerificacionView extends VerticalLayout implements BeforeEnterObserver { |
|
|
|
|
|
|
|
private H3 label; |
|
|
|
|
|
|
|
public VerificacionView() { |
|
|
|
|
|
|
@ -74,12 +75,9 @@ public class VerificacionView extends VerticalLayout { |
|
|
|
formularioLayout.setSpacing(true); |
|
|
|
formularioLayout.setPadding(true); |
|
|
|
|
|
|
|
H3 label = new H3(); |
|
|
|
label.setText("Solicitud de Verificación [USUARIO]"); |
|
|
|
|
|
|
|
Span labelTexto = new Span(); |
|
|
|
labelTexto.setText("Prepara la solicitud:"); |
|
|
|
label = new H3("Solicitud de Descuento en adeudo [USUARIO]"); |
|
|
|
|
|
|
|
Span labelTexto = new Span("Prepara la solicitud:"); |
|
|
|
|
|
|
|
|
|
|
|
NumberField predio = new NumberField("Predio:"); |
|
|
@ -105,4 +103,18 @@ public class VerificacionView extends VerticalLayout { |
|
|
|
formularioLayout.setSpacing(false); |
|
|
|
this.add(formularioLayout, btnVerSolicitud); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void beforeEnter(BeforeEnterEvent event) { |
|
|
|
String usuario = event.getLocation().getQueryParameters().getParameters().get("usuarioid") != null |
|
|
|
? event.getLocation().getQueryParameters().getParameters().get("usuarioid").stream().findFirst().orElse(null) |
|
|
|
: null; |
|
|
|
|
|
|
|
if (usuario != null) { |
|
|
|
label.setText("Solicitud de Descuento en adeudo [" + usuario + "]"); |
|
|
|
} else { |
|
|
|
label.setText("Usuario Desconocido"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |