Пример #1
0
        //protected void cboplaca_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
        //{
        //    e.Item.Text = string.Concat(e.Item.Text.Split(' ')[0], "");
        //}
        public List <WS.DATA.EntradaSalidaRpt> getReporteEntrada(string fromdate, string todate, string placa, string codgeo)
        {
            LReportes re        = new LReportes();
            DateTime  _fromdate = Convert.ToDateTime(fromdate);
            DateTime  _todate   = Convert.ToDateTime(todate);
            var       list      = re.getlistEntradaSalida(_fromdate, _todate, placa, codgeo);

            return(list);
        }
Пример #2
0
        public static string ObtenerAuditoria(string _fini, string _ffin, string placa)
        {
            LReportes        l    = new LReportes();
            DateTime         fini = Convert.ToDateTime(_fini);
            DateTime         ffin = Convert.ToDateTime(_ffin);;
            List <Auditoria> list = l.getlistAuditoria(fini, ffin, placa);

            return(JsonConvert.SerializeObject(list));
        }
Пример #3
0
        public static string CargarReporte(string[] lista, string fechaI, string fechaF, string tipoRel, string tiempoDet, int radio)
        {
            string result = String.Empty;

            LReportes     lg    = new LReportes();
            List <string> placa = new List <string>(lista);
            //int tipoRel = Convert.ToInt32(rcbTipoRel.SelectedValue);
            var reporteCtrl = new ReporteController();
            List <Seguimiento>    listobjetos = reporteCtrl.ListaImeis(placa);
            List <string>         final       = listobjetos.Select(w => w.IMEI).ToList();
            string                plac        = toimeis(final);
            List <DetencionesRpt> reporte     = new List <DetencionesRpt>();
            int tiporel1   = Convert.ToInt32(tipoRel);
            int tiempoDet1 = Convert.ToInt32(tiempoDet);

            reporte = lg.ListarReporteDetenciones(plac, fechaI, fechaF, tiporel1, tiempoDet1, radio);
            foreach (var item in listobjetos)
            {
                reporte.Where(w => w.Vehiculo == item.IMEI).ToList().ForEach(f => f.Vehiculo = item.NroPlaca);
            }
            HttpContext.Current.Session["RptDetenciones"] = reporte;
            result = JsonConvert.SerializeObject(reporte, Formatting.Indented);
            return(result);
        }