Browse Source

Se agrego el boton para guardar en la vista de mantenimientos

master
mramirezg 10 months ago
parent
commit
560dac1346
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      src/main/java/mx/gob/jumapacelaya/ui/MantenimientoView.java

+ 15
- 1
src/main/java/mx/gob/jumapacelaya/ui/MantenimientoView.java View File

@ -46,6 +46,7 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
private final HorizontalLayout firmasLayout;
private final DatePicker fecha;
private final ComboBox<String> tipoMantt;
private final HorizontalLayout botonesLayout;
Span userSignSpan = new Span("Nombre Usuario");
@ -57,6 +58,7 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
this.actualizacionesLayout = new VerticalLayout();
this.etiquetaLayout = new VerticalLayout();
this.firmasLayout = new HorizontalLayout();
this.botonesLayout = new HorizontalLayout();
HorizontalLayout fechaLayout = new HorizontalLayout();
//Componentes de texto
@ -131,9 +133,10 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
addActualizacionesSection();
correctivoLayout();
signLayout();
buttons();
add(fechaLayout, departamentoLayout, controlsLayout, actualizacionesLayout, etiquetaLayout, firmasLayout);
add(fechaLayout, departamentoLayout, controlsLayout, actualizacionesLayout, etiquetaLayout, firmasLayout, botonesLayout);
}
@ -368,6 +371,17 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
}
private void buttons() {
HorizontalLayout buttonsLayout = new HorizontalLayout();
Button btnGuardar = new Button("Guardar");
btnGuardar.addThemeVariants(ButtonVariant.LUMO_PRIMARY);
buttonsLayout.setSizeFull();
buttonsLayout.add(btnGuardar);
botonesLayout.add(buttonsLayout);
}
@Override
public void beforeEnter(BeforeEnterEvent beforeEnterEvent) {
String fechaParam = beforeEnterEvent.getLocation().getQueryParameters().getParameters().get("fecha") != null


Loading…
Cancel
Save