// private Label lblMateria, lblNogpo, lblMaestro, lblSalon; public kardexPage() { list_inst = new List <Modelos.Kardex>(); objWsKardex = new WSKardex(); // NavigationPage.SetHasNavigationBar(this, false); //eliminar barra de navegación DashBoard dashBoard = new DashBoard(); CrearGUIAsync(); }
// private Label lblMateria, lblNogpo, lblMaestro, lblSalon; public CargaAdemicaPage() { list_inst = new List <Modelos.CargaAcademica>(); objWsKardex = new WSCargaacademica(); // NavigationPage.SetHasNavigationBar(this, false); //eliminar barra de navegación DashBoard dashBoard = new DashBoard(); CrearGUIAsync(); }
// private Label lblMateria, lblNogpo, lblMaestro, lblSalon; public GruposCalificar() { list_inst = new List <Modelos.Grupo>(); objWsKardex = new WSGrupos(); // NavigationPage.SetHasNavigationBar(this, false); //eliminar barra de navegación DashBoard dashBoard = new DashBoard(); CrearGUIAsync(); }
// private Label lblMateria, lblNogpo, lblMaestro, lblSalon; public AlumnosCorreo() { list_inst = new List <Modelos.Alumnos>(); objWsKardex = new WSAlumnos(); // NavigationPage.SetHasNavigationBar(this, false); //eliminar barra de navegación DashBoard dashBoard = new DashBoard(); CrearGUIAsync(); }
public MasterDetail() { DashBoard dashBoard = new DashBoard(); dashBoard.lvMenu.ItemSelected += (sender, e) => NavigationToPage(e.SelectedItem as Item); this.Master = dashBoard; MainPage login = new MainPage(); this.Detail = new NavigationPage(login); }
private void crearGui() { menuPage = new DashBoard(); fondo = new SIIXPATM.Vistas.AddMateria(); menuPage.lvMenu.ItemSelected += (Sender, e) => NavigationToPage(e.SelectedItem as Item); Master = menuPage; Detail = new NavigationPage(fondo); }
public void CrearGUIAsync() { menuPage = new DashBoard(); menuPage.lvMenu.ItemSelected += (sender, e) => NavigationToPage(e.SelectedItem as Item); var lblmateria = new Label() { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "CveMat", TextColor = Color.Gray, FontFamily = "Roboto" }; var lblMateria = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Materia", TextColor = Color.Gray, FontFamily = "Roboto" }; var lblGrupo = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Grupo", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; var lblDia = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Dia", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblhorario = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Horario", TextColor = Color.Gray, FontFamily = "Roboto", }; lv_inst = new ListView() { HasUnevenRows = true, //Estandarizar items ItemTemplate = new DataTemplate(typeof(ResultCellCargaAcademica)) }; st_inst = new StackLayout() { Orientation = StackOrientation.Vertical, Padding = new Thickness(20), Children = { new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.Center, Padding = new Thickness(30), Children = { lblmateria, lblMateria, lblGrupo, lblDia, lblhorario } }, lv_inst } }; Content = st_inst; }
public void CrearGUIAsync() { menuPage = new DashBoard(); menuPage.lvMenu.ItemSelected += (sender, e) => NavigationToPage(e.SelectedItem as Item); var lblMateria = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Materia", TextColor = Color.Gray, FontFamily = "Roboto" }; var lblMaestro = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Maestro", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; var lblGrupo = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Grupo", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; var lblDia = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Dia", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblHorario = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Horas", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblSalon = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Salon", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblHorteo = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Hor Teo", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblHorpra = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Hor Pra", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblCreditos = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Creditos", TextColor = Color.Gray, FontFamily = "Roboto", }; lv_inst = new ListView() { HasUnevenRows = true, //Estandarizar items ItemTemplate = new DataTemplate(typeof(ResultCellGruposCalificar)) }; lv_inst.ItemSelected += (sender, e) => { Grupo objIns = (Grupo)e.SelectedItem; Settings.Settings.nogpo = objIns.nogpo; Settings.Settings.cvemat = objIns.cvemat; Settings.Settings.MateriaName = objIns.materia; DisplayAlert("Grupo seleccionado", Settings.Settings.nogpo + "\n" + Settings.Settings.MateriaName + "\n", "Aceptar"); //Agregar con settings Navigation.PushModalAsync(new AlumnosCalificar()); }; st_inst = new StackLayout() { Orientation = StackOrientation.Vertical, Padding = new Thickness(20), Children = { new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.Center, Padding = new Thickness(20), Children = { lblMateria, lblGrupo, lblMaestro, lblDia, lblSalon, lblCreditos } }, lv_inst } }; Content = st_inst; }
public void CrearGUIAsync() { menuPage = new DashBoard(); menuPage.lvMenu.ItemSelected += (sender, e) => NavigationToPage(e.SelectedItem as Item); var lblMateria = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Materia", TextColor = Color.Gray, FontFamily = "Roboto" }; var lblMaestro = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Maestro", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; var lblGrupo = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Grupo", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; var lblDia = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Dia", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblHorario = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Horas", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblSalon = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Salon", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblHorteo = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Hor Teo", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblHorpra = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Hor Pra", TextColor = Color.Gray, FontFamily = "Roboto", }; var lblCreditos = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "Creditos", TextColor = Color.Gray, FontFamily = "Roboto", }; lv_inst = new ListView() { HasUnevenRows = true, //Estandarizar items ItemTemplate = new DataTemplate(typeof(ResultCellCalificaciones)) }; lv_inst.ItemSelected += (sender, e) => { Grupo objIns = (Grupo)e.SelectedItem; listas lis = new listas(); Settings.Settings.nogpo = objIns.nogpo; Settings.Settings.cvemat = objIns.cvemat; DisplayAlert("Grupo seleccionado", Settings.Settings.nogpo + "\n" + Settings.Settings.cvemat + "\n", "Aceptar"); if (Settings.Settings.rol.Equals("Alumno")) { lis.cvemat = objIns.cvemat; lis.nogpo = objIns.nogpo; lis.nocont = Settings.Settings.nocont; lis.parcial_1 = 0; lis.parcial_2 = 0; lis.parcial_3 = 0; lis.parcial_4 = 0; DisplayAlert("Correcto", "Acceso correcto", "Aceptar materia lista " + lis.nocont + " " + lis.cvemat + " " + lis.nogpo); actAlumno.actAlumno(lis); // await DisplayAlert("Correcto", "Acceso correcto", "Aceptar materia " + list_inst[0].materia); } // Navigation.PushModalAsync(new AlumnosCalificar()); }; st_inst = new StackLayout() { Orientation = StackOrientation.Vertical, Padding = new Thickness(20), Children = { new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.Center, Padding = new Thickness(20), Children = { lblMateria, lblGrupo, lblMaestro, lblDia, lblSalon, lblCreditos } }, lv_inst } }; Content = st_inst; }
public void CrearGUIAsync() { menuPage = new DashBoard(); menuPage.lvMenu.ItemSelected += (sender, e) => NavigationToPage(e.SelectedItem as Item); var lblGrupo = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "grupo", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; var lblAlumno = new Label { HorizontalTextAlignment = TextAlignment.Start, FontSize = 8, Text = "alumno", TextColor = Color.Gray, FontFamily = "Roboto", FontAttributes = FontAttributes.Bold }; lv_inst = new ListView() { HasUnevenRows = true, //Estandarizar items ItemTemplate = new DataTemplate(typeof(ResultCellGrupoAlumnos)) }; lv_inst.ItemSelected += (sender, e) => { Alumnos objIns = (Alumnos)e.SelectedItem; Settings.Settings.AlumnoName = objIns.alumno; Settings.Settings.nocont = objIns.nocont; Settings.Settings.AlumnoEmail = objIns.email; DisplayAlert("Alumno seleccionado", Settings.Settings.AlumnoName + "\n" + Settings.Settings.nocont + "\n" + Settings.Settings.AlumnoEmail + "\n", "Aceptar"); Navigation.PushModalAsync(new Correo()); }; st_inst = new StackLayout() { Orientation = StackOrientation.Vertical, Padding = new Thickness(20), Children = { new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.Center, Padding = new Thickness(20), Children = { lblGrupo, lblAlumno } }, lv_inst } }; Content = st_inst; }
public void CrearGUIAsync() { menuPage = new DashBoard(); menuPage.lvMenu.ItemSelected += (sender, e) => NavigationToPage(e.SelectedItem as Item); /* * lblMateria= new Label * { * Text = "Materia", * FontSize = 15, * TextColor = Color.FromHex("#003399"), * HorizontalOptions = LayoutOptions.CenterAndExpand, * }; * lblNogpo = new Label * { * Text = "grupo", * FontSize = 15, * TextColor = Color.FromHex("#003399"), * HorizontalOptions = LayoutOptions.CenterAndExpand, * }; * lblMaestro = new Label * { * Text = "maestro", * FontSize = 15, * TextColor = Color.FromHex("#003399"), * HorizontalOptions = LayoutOptions.CenterAndExpand, * }; * * lblSalon = new Label * { * Text = "salon", * FontSize = 15, * TextColor = Color.FromHex("#003399"), * HorizontalOptions = LayoutOptions.CenterAndExpand, * }; * * stGrupos = new StackLayout * { * Orientation = StackOrientation.Horizontal, * HeightRequest = 500, * WidthRequest = 400, * HorizontalOptions = LayoutOptions.Center, * Children = * { * lblMateria, * lblNogpo, * lblMaestro, * lblSalon * } * }; * * */ lv_inst = new ListView() { HasUnevenRows = true, //Estandarizar items ItemTemplate = new DataTemplate(typeof(ResultCellGrupos)) }; st_inst = new StackLayout() { Orientation = StackOrientation.Vertical, Padding = new Thickness(20), Children = { lv_inst } }; Content = st_inst; }