Example #1
0
 private void TreeView_ItemTapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e)
 {
     if (!e.Node.HasChildNodes)
     {
         Navigation.PushAsync(new CheckListDetailView());
     }
 }
        private async void TreeView_ItemTapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e)
        {
            string filename = "";

            try
            {
                var selficha = (e.Node.Content) as SubFolder;
                if (selficha != null)
                {
                    filename = selficha.SubFolderName + ".pdf";

                    IFolder rootFolder = await FileSystem.Current.GetFolderFromPathAsync("/storage/emulated/0/Fichas/");

                    ExistenceCheckResult folderexist = await rootFolder.CheckExistsAsync(filename);

                    if (folderexist == ExistenceCheckResult.FileExists)
                    {
                        DependencyService.Get <IFileManager>().OpenFile("/storage/emulated/0/Fichas/" + filename);
                    }
                }
            }
            catch (Exception ex)
            {
                await DisplayAlert("Error", ex.Message, "OK");
            }
        }
        private void TreeView_ItemTapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e)
        {
            string xclinea;
            var    selaudit = (e.Node.Content) as DetFolder;

            if (selaudit != null)
            {
                if ((selaudit.Clinea ?? string.Empty).Length == 0)
                {
                    xclinea = "00";
                }
                else
                {
                    xclinea = selaudit.Clinea;
                }
                //DisplayAlert("Error", selaudit.Careas+ selaudit.Status+ selaudit.Clinea+ selaudit.Faudit, "OK");
                if (selaudit.AuditCount > 0)
                {
                    if (selaudit.Status == "D")
                    {
                        if (taudit01 == "16")
                        {
                            App.Navigator.PushAsync(new CorteReauditoriaPage(xclinea + selaudit.Status + selaudit.Careas + selaudit.Faudit));
                        }
                        else
                        {
                            App.Navigator.PushAsync(new CosturaProcesoReauditoriaPage(xclinea + selaudit.Status + selaudit.Careas + selaudit.Faudit));
                        }
                    }
                    else
                    {
                        if (taudit01 == "16")
                        {
                            App.Navigator.PushAsync(new CorteDetallePage(xclinea + selaudit.Status + selaudit.Careas + selaudit.Faudit));
                        }
                        else
                        {
                            App.Navigator.PushAsync(new CosturaProcesoDetallePage(xclinea + selaudit.Status + selaudit.Careas + selaudit.Faudit));
                        }
                    }
                }
                else
                {
                    DisplayAlert("Aviso", "No existen auditorías con estado " + selaudit.FolderName + " en la fecha " + selaudit.Faudit, "OK");
                }
            }
        }
Example #4
0
 private void TreeView_ItemTapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e)
 {
     popupLayout.Dismiss();
 }