Пример #1
0
		public async void ShowGra03PescaPuertoColumnWithData( HttpJsonLoader http_loader, int anio_index, int zona_index, int periodo_index, int region_index ){
			
			GraFather displayPage = new Gra03PescaPuertoColumn (http_loader, anio_index, 
				                        zona_index, periodo_index, region_index);
			displayPage.SetRootPage (this);
			await Detail.Navigation.PushAsync (new NavigationPage (displayPage));
			//Detail = new NavigationPage (displayPage);
		}
Пример #2
0
		public async void ShowGra08GruposRangoBarWithData( HttpJsonLoader http_loader, int anio_index, int zona_index, 
			int periodo_index, int rango_index ){

			GraFather displayPage = new Gra08GruposRangoBar (http_loader, anio_index, 
				                        zona_index, periodo_index, rango_index);
			displayPage.SetRootPage (this);
			await Detail.Navigation.PushAsync (new NavigationPage (displayPage));
			//Detail = new NavigationPage (displayPage);
		}
		public Gra04PescaPlantaBar( HttpJsonLoader http_loader, int anio_index, int zona_index, 
			int periodo_index, int region_index, int puerto_index ){
			http_loader_ = http_loader;
			zonaNameList_ = http_loader_.lzonas;
			g02List_ = http_loader.lgrafico02;
			g03List_ = http_loader.lgrafico03;

			first_time_loading_years = true;
			first_time_loading_zones = true;
			first_time_loading_periods = true;
			first_time_loading_regions = true;
			first_time_loading_puertos = true;

			GetChart();
			this.Content = main_page_;


			p_list_year_.Items.Clear ();
			foreach (dtoAnio yearName in http_loader_.lanios)
			{
				p_list_year_.Items.Add(yearName.anoTempo.ToString());
			}
			p_list_year_.SelectedIndex = anio_index;

			p_list_zone_.Items.Clear ();
			foreach (dtoZona zoneName in http_loader_.lzonas) {
				p_list_zone_.Items.Add (zoneName.descripcionZona);
			}
			p_list_zone_.SelectedIndex = zona_index;


			p_list_period_.Items.Clear ();
			foreach (dtoPeriodo periodoId in http_loader_.lperiodos) {
				p_list_period_.Items.Add ( periodoId.periodo );
			}
			p_list_period_.SelectedIndex = periodo_index;

			p_list_region_.Items.Clear ();
			foreach (dtoGrafico02 g02_item in http_loader_.lgrafico02) {
				p_list_region_.Items.Add (g02_item.descripcionRegion);
			}
			p_list_region_.SelectedIndex = region_index;

			p_list_puerto_.Items.Clear ();
			foreach (dtoGrafico03 g03_item in http_loader_.lgrafico03) {
				p_list_puerto_.Items.Add (g03_item.descripcionPuerto);
			}
			p_list_puerto_.SelectedIndex = puerto_index;

			indicator.SetBinding (ActivityIndicator.IsRunningProperty, "row_chart_already_loading");
			indicator.SetBinding (ActivityIndicator.IsVisibleProperty, "row_chart_already_loading");
			indicator.BindingContext = this;
			row_chart_already_loading = false;
		}
		public Gra08GruposRangoBar ( HttpJsonLoader http_loader, int anio_index, int zona_index, 
			int periodo_index, int rango_index){
			http_loader_ = http_loader;
			zonaNameList_ = http_loader_.lzonas;

			first_time_loading_years = true;
			first_time_loading_zones = true;
			first_time_loading_periods = true;
			first_time_loading_rangos = true;

			GetChart();
			this.Content = main_page_;


			p_list_year_.Items.Clear ();
			foreach (dtoAnio yearName in http_loader_.lanios)
			{
				p_list_year_.Items.Add(yearName.anoTempo.ToString());
			}
			p_list_year_.SelectedIndex = anio_index;

			p_list_zone_.Items.Clear ();
			foreach (dtoZona zoneName in http_loader_.lzonas) {
				p_list_zone_.Items.Add (zoneName.descripcionZona);
			}
			p_list_zone_.SelectedIndex = zona_index;


			p_list_period_.Items.Clear ();
			foreach (dtoPeriodo periodoId in http_loader_.lperiodos) {
				p_list_period_.Items.Add ( periodoId.periodo );
			}
			p_list_period_.SelectedIndex = periodo_index;


			p_list_rango_.SelectedIndex = rango_index;

			indicator.SetBinding (ActivityIndicator.IsRunningProperty, "row_chart_already_loading");
			indicator.SetBinding (ActivityIndicator.IsVisibleProperty, "row_chart_already_loading");
			indicator.BindingContext = this;
			row_chart_already_loading = false;
		}