コード例 #1
0
        public string ListandoServicios_new()
        {
            object loDatos;

            try
            {
                NUbicacion_Lecturas obj_negocio = new NUbicacion_Lecturas();
                loDatos = obj_negocio.Capa_Negocio_Get_ListaServicios_new();
                return(_Serialize(loDatos, true));
            }
            catch (Exception ex)
            {
                return(_Serialize(ex.Message, true));
            }
        }
コード例 #2
0
        public string ListandoUbicacionLecturas(string fechaAsigna, int servicio, int operario)
        {
            object loDatos;

            try
            {
                NUbicacion_Lecturas obj_negocio = new NUbicacion_Lecturas();
                loDatos = obj_negocio.Capa_Negocio_Get_UbicacionLecturas(fechaAsigna, servicio, operario);
                return(_Serialize(loDatos, true));
            }
            catch (Exception ex)
            {
                return(_Serialize(ex.Message, true));
            }
        }
コード例 #3
0
        public ActionResult JsonSeguimiento_lectura_Resumen(string FechaAsiga, int servicio, int operario)
        {
            List <UbicacionOperario> list = new List <UbicacionOperario>();

            try
            {
                list = new NUbicacion_Lecturas().NSeguimiento_Lecturas_Resumen(FechaAsiga, servicio, operario);
            }
            catch (Exception e)
            {
                return(new ContentResult
                {
                    Content = MvcApplication._Serialize(e.Message),
                    ContentType = "application/json"
                });
            }
            return(new ContentResult
            {
                Content = MvcApplication._Serialize(list),
                ContentType = "application/json"
            });
        }