Esempio n. 1
0
        public string get_Suministros_Trabajados(string FechaAsiga, int servicio, int operario)
        {
            object loDatos;

            try
            {
                loDatos = new NSeguimiento_Operario().Capa_Negocio_get_Suministros_Trabajados(FechaAsiga, servicio, operario);
                return(_Serialize(loDatos, true));
            }
            catch (Exception ex)
            {
                return(_Serialize(ex.Message, true));
            }
        }
Esempio n. 2
0
        public ActionResult JsonSeguimiento_Operarios_GPS_Reparto(string FechaAsiga, int servicio, int operario, string suministro, string medidor)
        {
            List <UbicacionOperario_GPS> list = new List <UbicacionOperario_GPS>();

            try
            {
                list = new NSeguimiento_Operario().NSeguimientoOperario_GPS_reparto(FechaAsiga, servicio, operario, suministro, medidor);
            }
            catch (Exception e)
            {
                return(new ContentResult
                {
                    Content = MvcApplication._Serialize(e.Message),
                    ContentType = "application/json"
                });
            }
            return(new ContentResult
            {
                Content = MvcApplication._Serialize(list),
                ContentType = "application/json"
            });
        }
Esempio n. 3
0
        public ActionResult descargar_informacion_reparto_excel(string FechaAsiga, int servicio, int operario, string suministro, string medidor)
        {
            object list;

            try
            {
                list = new NSeguimiento_Operario().Ndescargar_informacion_reparto_excel(FechaAsiga, servicio, operario, suministro, medidor, ((Sesion)Session["Session_Usuario_Acceso"]).usuario.usu_id);
            }
            catch (Exception e)
            {
                return(new ContentResult
                {
                    Content = MvcApplication._Serialize(e.Message),
                    ContentType = "application/json"
                });
            }
            return(new ContentResult
            {
                Content = MvcApplication._Serialize(list),
                ContentType = "application/json"
            });
        }
        public ActionResult JsonSeguimiento_Operarios_GPS2(string __a, string __b, string lista)
        {
            List <UbicacionOperario_GPS> list = new List <UbicacionOperario_GPS>();

            try
            {
                list = new NSeguimiento_Operario().NSeguimientoOperario_GPS(Convert.ToInt32(__a), __b, lista);
            }
            catch (Exception e)
            {
                return(new ContentResult
                {
                    Content = MvcApplication._Serialize(e.Message),
                    ContentType = "application/json"
                });
            }


            return(new ContentResult
            {
                Content = MvcApplication._Serialize(list),
                ContentType = "application/json"
            });
        }