예제 #1
0
 private List <sp_reporteGeocerca_Result> asignarIDGeocerca(ref int n)
 {
     foreach (GridViewRow r in gdvGeocerca.Rows)
     {
         CheckBox check = (CheckBox)r.FindControl("ckboxGeocerca");
         if (check.Checked == true)
         {
             n    = Convert.ToInt32(r.Cells[1].Text);
             list = zonasControl.exportarGeocerca(n);
         }
     }
     return(list);
 }
예제 #2
0
        public string pintarGeocerca(string id)
        {
            string data = String.Empty;

            if (id.Equals(""))
            {
                return("Por favor, Seleccione una Geocerca");
            }

            int cod = Convert.ToInt32(id);

            if (cod > 0)
            {
                List <sp_reporteGeocerca_Result> list = zonasControl.exportarGeocerca(cod);
                data = JsonConvert.SerializeObject(list, Formatting.Indented);
            }
            else
            {
                data = "Por favor, Seleccione una Geocerca";
            }

            return(data);
        }