public void Activar(BotonHistorialAsistencia botonFocus)
 {
     botonAsistenciaFocus = botonFocus;
     //textoConfirmacion.text = "Borrar Asistencia \"" + botonFocus.GetDisplayNombre() + "\"?";
     text.SetText("Borrar Asistencia \"" + botonFocus.GetDisplayNombre() + "\"?".ToUpper(), AppController.Idiomas.Español);
     text.SetText("Delete assitence form \"" + botonFocus.GetDisplayNombre() + "\"?".ToUpper(), AppController.Idiomas.Ingles);
     ToggleDesplegar();
 }
    public void MostrarPanelPlanilla(BotonHistorialAsistencia botonHistorialAsistencia)
    {
        ActivarPanel(3);

        panel_planilla.GetComponent <PanelPlanilla>().SetPanelPlanilla(botonHistorialAsistencia);

        CanvasController.instance.AgregarPanelAnterior(CanvasController.Paneles.HistorialPlanilla);
    }
Example #3
0
    public void SetPanelPlanilla(BotonHistorialAsistencia botonFocus_)
    {
        CanvasController.instance.retrocesoPausado = false;

        newDetalles = new List <DetalleAsistencia>();

        botonFocus = botonFocus_;

        detalles = AppController.instance.equipoActual.GetPlanillaWithName(botonFocus.GetNombre()).GetDetalles();

        CanvasController.instance.overlayPanel.SetNombrePanel("PLANILLA DE ASISTENCIA", AppController.Idiomas.Español);
        CanvasController.instance.overlayPanel.SetNombrePanel("ASSISTANCE FORM", AppController.Idiomas.Ingles);

        CrearPrefabs(detalles, false);

        //Si no tiene alias lo desactivo
        aliasText.gameObject.SetActive(true);
        if (botonFocus_.GetAlias() == "")
        {
            aliasText.gameObject.SetActive(false);
        }

        base.SetPanelAsistencia();

        fechaText.SetText("FECHA:\n" + botonFocus_.GetFecha(), AppController.Idiomas.Español);
        fechaText.SetText("DATE:\n" + botonFocus_.GetFecha(), AppController.Idiomas.Ingles);

        aliasText.SetText("ALIAS:\n" + botonFocus_.GetAlias(), AppController.Idiomas.Español);
        aliasText.SetText("ALIAS:\n" + botonFocus_.GetAlias(), AppController.Idiomas.Ingles);

        inputNuevoAlias.text = "";

        //Estado incial de los botones
        botonBorrar.SetActive(true);
        botonEditar.SetActive(true);
        botonGuardar.SetActive(false);
        inputNuevoAlias.gameObject.SetActive(false);
    }
 public void BorrarPlanilla(BotonHistorialAsistencia botonFocus)
 {
     Destroy(botonFocus.gameObject);
     listaBotonHistorial.Remove(botonFocus.gameObject);
     ActivarYDesactivarAdviceText();
 }