コード例 #1
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Aseguramiento_de_PlantiosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Aseguramiento_de_PlantiosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Aseguramiento_de_PlantiosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Aseguramiento_de_Plantioss == null)
            {
                result.Detalle_Aseguramiento_de_Plantioss = new List <Detalle_Aseguramiento_de_Plantios>();
            }

            var data = result.Detalle_Aseguramiento_de_Plantioss.Select(m => new Detalle_Aseguramiento_de_PlantiosGridModel
            {
                Clave = m.Clave
                , Motivo_de_RegistroDescripcion = (string)m.Motivo_de_Registro_Motivo_de_Registro.Descripcion
                , TipoDescripcion = (string)m.Tipo_Tipo_de_Plantio.Descripcion
                , No__de_Plantios = m.No__de_Plantios
                , Kilogramos      = m.Kilogramos
                , Metodo_de_DestruccionDescripcion = (string)m.Metodo_de_Destruccion_Metodo_de_Destruccion.Descripcion
                , Superficie      = m.Superficie
                , Altura          = m.Altura
                , Densidad        = m.Densidad
                , Peso_por_planta = m.Peso_por_planta
                , Latitud         = m.Latitud
                , Longitud        = m.Longitud
                , Largo           = m.Largo
                , Ancho           = m.Ancho
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #2
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IOtros_Domicilios_InvolucradoApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Otros_Domicilios_InvolucradoPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IOtros_Domicilios_InvolucradoApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Otros_Domicilios_Involucrados == null)
            {
                result.Otros_Domicilios_Involucrados = new List <Otros_Domicilios_Involucrado>();
            }

            var data = result.Otros_Domicilios_Involucrados.Select(m => new Otros_Domicilios_InvolucradoGridModel
            {
                Clave             = m.Clave
                , EstadoNombre    = (string)m.Estado_Estado.Nombre
                , MunicipioNombre = (string)m.Municipio_Municipio.Nombre
                , PoblacionNombre = (string)m.Poblacion_Colonia.Nombre
                , ColoniaNombre   = (string)m.Colonia_Colonia.Nombre
                , Codigo_Postal   = m.Codigo_Postal
                , Calle           = m.Calle
                , Entre_Calle     = m.Entre_Calle
                , Y_Calle         = m.Y_Calle
                , Numero_Exterior = m.Numero_Exterior
                , Numero_Interior = m.Numero_Interior
                , Coordenada_X    = m.Coordenada_X
                , Coordenada_Y    = m.Coordenada_Y
                , Observaciones   = m.Observaciones
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #3
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize, string where, string order)
        {
            where = HttpUtility.UrlEncode(where);

            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _ISpartan_SettingsApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetDataTableConfiguration(filter, new Spartan_SettingsPropertyMapper());
            }

            if (!String.IsNullOrEmpty(where))
            {
                configuration.WhereClause = configuration.WhereClause == "" ? where : "(" + configuration.WhereClause + " AND " + where + ")";
            }
            if (!String.IsNullOrEmpty(order))
            {
                configuration.OrderByClause = order;
            }


            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _ISpartan_SettingsApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Spartan_Settingss == null)
            {
                result.Spartan_Settingss = new List <Spartan_Settings>();
            }

            var data = result.Spartan_Settingss.Select(m => new Spartan_SettingsGridModel
            {
                Clave   = m.Clave
                , Valor = m.Valor
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #4
0
        public void Export(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return;
            }

            _IDetalle_de_Documentos_Mandamiento_JudicialApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Documentos_Mandamiento_JudicialPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_Documentos_Mandamiento_JudicialApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Documentos_Mandamiento_Judicials == null)
            {
                result.Detalle_de_Documentos_Mandamiento_Judicials = new List <Detalle_de_Documentos_Mandamiento_Judicial>();
            }

            var data = result.Detalle_de_Documentos_Mandamiento_Judicials.Select(m => new Detalle_de_Documentos_Mandamiento_JudicialGridModel
            {
                Clave = m.Clave
            }).ToList();

            switch (exportFormatType)
            {
            case ExportFormatType.PDF:
                PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_Documentos_Mandamiento_JudicialList_" + DateTime.Now.ToString());
                break;

            case ExportFormatType.EXCEL:
                ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_Documentos_Mandamiento_JudicialList_" + DateTime.Now.ToString());
                break;

            case ExportFormatType.CSV:
                CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString());
                break;
            }
        }
コード例 #5
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Registro_Beneficiarios_EmpresaApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Registro_Beneficiarios_EmpresaPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Registro_Beneficiarios_EmpresaApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Registro_Beneficiarios_Empresas == null)
            {
                result.Detalle_Registro_Beneficiarios_Empresas = new List <Detalle_Registro_Beneficiarios_Empresa>();
            }

            var data = result.Detalle_Registro_Beneficiarios_Empresas.Select(m => new Detalle_Registro_Beneficiarios_EmpresaGridModel
            {
                Folio = m.Folio
                , Numero_de_Empleado = m.Numero_de_Empleado
                , UsuarioName        = (string)m.Usuario_Spartan_User.Name
                , Nombres            = m.Nombres
                , Apellido_Paterno   = m.Apellido_Paterno
                , Apellido_Materno   = m.Apellido_Materno
                , Nombre_Completo    = m.Nombre_Completo
                , Email  = m.Email
                , Activo = m.Activo
                , SuscripcionNombre_del_Plan = (string)m.Suscripcion_Planes_de_Suscripcion.Nombre_del_Plan
                , Codigo_de_Referencia       = m.Codigo_de_Referencia
                , EstatusDescripcion         = (string)m.Estatus_Estatus.Descripcion
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #6
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IServicios_AlternativosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Servicios_AlternativosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IServicios_AlternativosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Servicios_Alternativoss == null)
            {
                result.Servicios_Alternativoss = new List <Servicios_Alternativos>();
            }

            var data = result.Servicios_Alternativoss.Select(m => new Servicios_AlternativosGridModel
            {
                Clave = m.Clave
                , CJusticia_Alternativa          = m.CJusticia_Alternativa
                , Medios_AlternativosDescripcion = (string)m.Medios_Alternativos_Medios_Alternativos.Descripcion
                , Motivo        = m.Motivo
                , Derechos      = m.Derechos
                , Procedimiento = m.Procedimiento
                , Solicita_Medios_Alternativos  = m.Solicita_Medios_Alternativos
                , Se_CanalizaDescripcion        = (string)m.Se_Canaliza_Tipo_de_Instancia.Descripcion
                , Investigacion_con_Detenido    = m.Investigacion_con_Detenido
                , Investigacion_sin_Detenido    = m.Investigacion_sin_Detenido
                , Turnar_a_Justicia_Alternativa = m.Turnar_a_Justicia_Alternativa
                , Instancia_Externa             = m.Instancia_Externa
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #7
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Aseguramiento_de_Pistas_de_AterrizajeApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Aseguramiento_de_Pistas_de_AterrizajePropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Aseguramiento_de_Pistas_de_AterrizajeApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Aseguramiento_de_Pistas_de_Aterrizajes == null)
            {
                result.Detalle_Aseguramiento_de_Pistas_de_Aterrizajes = new List <Detalle_Aseguramiento_de_Pistas_de_Aterrizaje>();
            }

            var data = result.Detalle_Aseguramiento_de_Pistas_de_Aterrizajes.Select(m => new Detalle_Aseguramiento_de_Pistas_de_AterrizajeGridModel
            {
                Clave = m.Clave
                , Motivo_de_RegistroDescripcion = (string)m.Motivo_de_Registro_Motivo_de_Registro.Descripcion
                , TipoDescripcion           = (string)m.Tipo_Tipo_de_Pista_de_Aterrizaje.Descripcion
                , Suelo                     = m.Suelo
                , Descripcion               = m.Descripcion
                , Localizacion_1            = m.Localizacion_1
                , Latitud                   = m.Latitud
                , Longitud                  = m.Longitud
                , Orientacion_deDescripcion = (string)m.Orientacion_de_Tipo_de_Orientacion.Descripcion
                , OrientacionDescripcion    = (string)m.Orientacion_Tipo_de_Orientacion.Descripcion
                , Largo                     = m.Largo
                , Ancho                     = m.Ancho
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #8
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Codigos_ReferidosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Codigos_ReferidosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Codigos_ReferidosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Codigos_Referidoss == null)
            {
                result.Detalle_Codigos_Referidoss = new List <Detalle_Codigos_Referidos>();
            }

            var data = result.Detalle_Codigos_Referidoss.Select(m => new Detalle_Codigos_ReferidosGridModel
            {
                Folio = m.Folio
                , SuscripcionNombre_del_Plan       = (string)m.Suscripcion_Planes_de_Suscripcion.Nombre_del_Plan
                , Porcentaje_de_descuento          = m.Porcentaje_de_descuento
                , Fecha_inicio_vigencia            = (m.Fecha_inicio_vigencia == null ? string.Empty : Convert.ToDateTime(m.Fecha_inicio_vigencia).ToString(ConfigurationProperty.DateFormat))
                , Fecha_fin_vigencia               = (m.Fecha_fin_vigencia == null ? string.Empty : Convert.ToDateTime(m.Fecha_fin_vigencia).ToString(ConfigurationProperty.DateFormat))
                , Cantidad_maxima_de_referenciados = m.Cantidad_maxima_de_referenciados
                , Codigo_para_Referenciados        = m.Codigo_para_Referenciados
                , Autorizado = m.Autorizado
                , Usuario_que_autorizaName = (string)m.Usuario_que_autoriza_Spartan_User.Name
                , Fecha_de_autorizacion    = (m.Fecha_de_autorizacion == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_autorizacion).ToString(ConfigurationProperty.DateFormat))
                , Hora_de_autorizacion     = m.Hora_de_autorizacion
                , EstatusDescripcion       = (string)m.Estatus_Estatus.Descripcion
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #9
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_Invitado_de_NotificacionApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Invitado_de_NotificacionPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_Invitado_de_NotificacionApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Invitado_de_Notificacions == null)
            {
                result.Detalle_de_Invitado_de_Notificacions = new List <Detalle_de_Invitado_de_Notificacion>();
            }

            var data = result.Detalle_de_Invitado_de_Notificacions.Select(m => new Detalle_de_Invitado_de_NotificacionGridModel
            {
                Folio                = m.Folio
                , Nombre_Completo    = m.Nombre_Completo
                , Telefono           = m.Telefono
                , Correo_Electronico = m.Correo_Electronico
                , EstadoNombre       = (string)m.Estado_Estado.Nombre
                , MunicipioNombre    = (string)m.Municipio_Municipio.Nombre
                , PoblacionNombre    = (string)m.Poblacion_Colonia.Nombre
                , ColoniaNombre      = (string)m.Colonia_Colonia.Nombre
                , Codigo_Postal      = m.Codigo_Postal
                , Calle              = m.Calle
                , Numero_Exterior    = m.Numero_Exterior
                , Numero_Interior    = m.Numero_Interior
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #10
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_PlatillosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_PlatillosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_PlatillosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Platilloss == null)
            {
                result.Detalle_Platilloss = new List <Detalle_Platillos>();
            }

            var data = result.Detalle_Platilloss.Select(m => new Detalle_PlatillosGridModel
            {
                Folio = m.Folio
                , Lleva_fracciones          = m.Lleva_fracciones
                , Cantidad                  = m.Cantidad
                , Cantidad_fraccionCantidad = (string)m.Cantidad_fraccion_Cantidad_fraccion_platillos.Cantidad
                , Unidad = m.Unidad
                , IngredienteNombre_Ingrediente = (string)m.Ingrediente_Ingredientes.Nombre_Ingrediente
                , Caracteristica          = m.Caracteristica
                , Unidad_SMAE             = m.Unidad_SMAE
                , Equivalente_Unidad_SMAE = m.Equivalente_Unidad_SMAE
                , Porciones     = m.Porciones
                , Detalle       = m.Detalle
                , Detalle_Super = m.Detalle_Super
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #11
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Sucursales_ProveedoresApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Sucursales_ProveedoresPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Sucursales_ProveedoresApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Sucursales_Proveedoress == null)
            {
                result.Detalle_Sucursales_Proveedoress = new List <Detalle_Sucursales_Proveedores>();
            }

            var data = result.Detalle_Sucursales_Proveedoress.Select(m => new Detalle_Sucursales_ProveedoresGridModel
            {
                Folio = m.Folio
                , Tipo_de_SucursalDescripcion = (string)m.Tipo_de_Sucursal_Tipo_de_Sucursal.Descripcion
                , Email           = m.Email
                , Telefono        = m.Telefono
                , Calle           = m.Calle
                , Numero_exterior = m.Numero_exterior
                , Numero_interior = m.Numero_interior
                , Colonia         = m.Colonia
                , C_P_            = m.C_P_
                , Ciudad          = m.Ciudad
                , Estado          = m.Estado
                , Pais            = m.Pais
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #12
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Pagos_EmpresaApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Pagos_EmpresaPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Pagos_EmpresaApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Pagos_Empresas == null)
            {
                result.Detalle_Pagos_Empresas = new List <Detalle_Pagos_Empresa>();
            }

            var data = result.Detalle_Pagos_Empresas.Select(m => new Detalle_Pagos_EmpresaGridModel
            {
                Folio = m.Folio
                , SuscripcionNombre_del_Plan = (string)m.Suscripcion_Planes_de_Suscripcion.Nombre_del_Plan
                , Concepto_de_Pago           = m.Concepto_de_Pago
                , Fecha_de_Suscripcion       = (m.Fecha_de_Suscripcion == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Suscripcion).ToString(ConfigurationProperty.DateFormat))
                , Numero_de_Pago             = m.Numero_de_Pago
                , De_Total_de_Pagos          = m.De_Total_de_Pagos
                , Fecha_Limite_de_Pago       = (m.Fecha_Limite_de_Pago == null ? string.Empty : Convert.ToDateTime(m.Fecha_Limite_de_Pago).ToString(ConfigurationProperty.DateFormat))
                , Recordatorio_dias          = m.Recordatorio_dias
                , Forma_de_PagoNombre        = (string)m.Forma_de_Pago_Formas_de_Pago.Nombre
                , Fecha_de_Pago      = (m.Fecha_de_Pago == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Pago).ToString(ConfigurationProperty.DateFormat))
                , EstatusDescripcion = (string)m.Estatus_Estatus_de_Pago.Descripcion
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #13
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Laboratorios_ClinicosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Laboratorios_ClinicosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Laboratorios_ClinicosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Laboratorios_Clinicoss == null)
            {
                result.Detalle_Laboratorios_Clinicoss = new List <Detalle_Laboratorios_Clinicos>();
            }

            var data = result.Detalle_Laboratorios_Clinicoss.Select(m => new Detalle_Laboratorios_ClinicosGridModel
            {
                Folio = m.Folio
                , Numero_de_Empleado_Titular      = m.Numero_de_Empleado_Titular
                , Nombre_Completo                 = m.Nombre_Completo
                , Familiar_del_Empleado           = m.Familiar_del_Empleado
                , Numero_de_Empleado_Beneficiario = m.Numero_de_Empleado_Beneficiario
                , IndicadorIndicador              = (string)m.Indicador_Indicadores_Laboratorio.Indicador
                , Resultado = m.Resultado
                , Unidad    = m.Unidad
                , Intervalo_de_referencia = m.Intervalo_de_referencia
                , Fecha_de_Resultado      = (m.Fecha_de_Resultado == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Resultado).ToString(ConfigurationProperty.DateFormat))
                , Estatus_Indicador       = m.Estatus_Indicador
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #14
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Contactos_EmpresaApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Contactos_EmpresaPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Contactos_EmpresaApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Contactos_Empresas == null)
            {
                result.Detalle_Contactos_Empresas = new List <Detalle_Contactos_Empresa>();
            }

            var data = result.Detalle_Contactos_Empresas.Select(m => new Detalle_Contactos_EmpresaGridModel
            {
                Folio                = m.Folio
                , Nombre_completo    = m.Nombre_completo
                , Correo             = m.Correo
                , Telefono           = m.Telefono
                , Contacto_Principal = m.Contacto_Principal
                , AreaNombre         = (string)m.Area_areas_Empresas.Nombre
                , Acceso_al_Sistema  = m.Acceso_al_Sistema
                , Nombre_de_usuario  = m.Nombre_de_usuario
                , Recibe_Alertas     = m.Recibe_Alertas
                , EstatusDescripcion = (string)m.Estatus_Estatus.Descripcion
                , Folio_UsuarioName  = (string)m.Folio_Usuario_Spartan_User.Name
            }).ToList();

            return(PartialView("_Print", data));
        }
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _ISpartan_WorkFlow_Roles_by_StateApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Spartan_WorkFlow_Roles_by_StatePropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _ISpartan_WorkFlow_Roles_by_StateApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Spartan_WorkFlow_Roles_by_States == null)
            {
                result.Spartan_WorkFlow_Roles_by_States = new List <Spartan_WorkFlow_Roles_by_State>();
            }

            var data = result.Spartan_WorkFlow_Roles_by_States.Select(m => new Spartan_WorkFlow_Roles_by_StateGridModel
            {
                Roles_by_StateId        = m.Roles_by_StateId
                , User_Role             = m.User_Role
                , Phase_Transition      = m.Phase_Transition
                , Permission_To_Consult = m.Permission_To_Consult
                , Permission_To_New     = m.Permission_To_New
                , Permission_To_Modify  = m.Permission_To_Modify
                , Permission_to_Delete  = m.Permission_to_Delete
                , Permission_To_Export  = m.Permission_To_Export
                , Permission_To_Print   = m.Permission_To_Print
                , Permission_Settings   = m.Permission_Settings
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #16
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Suscripciones_EmpresaApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Suscripciones_EmpresaPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Suscripciones_EmpresaApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Suscripciones_Empresas == null)
            {
                result.Detalle_Suscripciones_Empresas = new List <Detalle_Suscripciones_Empresa>();
            }

            var data = result.Detalle_Suscripciones_Empresas.Select(m => new Detalle_Suscripciones_EmpresaGridModel
            {
                Folio = m.Folio
                , Cantidad_de_Beneficiarios  = m.Cantidad_de_Beneficiarios
                , SuscripcionNombre_del_Plan = (string)m.Suscripcion_Planes_de_Suscripcion.Nombre_del_Plan
                , Fecha_de_inicio            = (m.Fecha_de_inicio == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_inicio).ToString(ConfigurationProperty.DateFormat))
                , Fecha_Fin = (m.Fecha_Fin == null ? string.Empty : Convert.ToDateTime(m.Fecha_Fin).ToString(ConfigurationProperty.DateFormat))
                , Nombre_de_la_Suscripcion = m.Nombre_de_la_Suscripcion
                , Frecuencia_de_PagoNombre = (string)m.Frecuencia_de_Pago_Frecuencia_de_pago_Empresas.Nombre
                , Costo = m.Costo
                , EstatusDescripcion = (string)m.Estatus_Estatus_de_Suscripcion.Descripcion
                , Beneficiarios_extra_por_titular = m.Beneficiarios_extra_por_titular
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #17
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Aseguramiento_Otros_AseguramientosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Aseguramiento_Otros_AseguramientosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Aseguramiento_Otros_AseguramientosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Aseguramiento_Otros_Aseguramientoss == null)
            {
                result.Detalle_Aseguramiento_Otros_Aseguramientoss = new List <Detalle_Aseguramiento_Otros_Aseguramientos>();
            }

            var data = result.Detalle_Aseguramiento_Otros_Aseguramientoss.Select(m => new Detalle_Aseguramiento_Otros_AseguramientosGridModel
            {
                Clave = m.Clave
                , Motivo_de_RegistroDescripcion = (string)m.Motivo_de_Registro_Motivo_de_Registro.Descripcion
                , TipoDescripcion             = (string)m.Tipo_Tipo_de_Equipo_Tactico.Descripcion
                , Marca                       = m.Marca
                , Modelo                      = m.Modelo
                , Inventario                  = m.Inventario
                , Serie                       = m.Serie
                , Unidad_de_MedidaDescripcion = (string)m.Unidad_de_Medida_Unidad_de_Medida_de_Equipo_Tactico.Descripcion
                , Cantidad                    = m.Cantidad
                , Observaciones               = m.Observaciones
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #18
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Plan_Actos_de_InvestigacionApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Plan_Actos_de_InvestigacionPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Plan_Actos_de_InvestigacionApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Plan_Actos_de_Investigacions == null)
            {
                result.Detalle_Plan_Actos_de_Investigacions = new List <Detalle_Plan_Actos_de_Investigacion>();
            }

            var data = result.Detalle_Plan_Actos_de_Investigacions.Select(m => new Detalle_Plan_Actos_de_InvestigacionGridModel
            {
                Clave = m.Clave
                , CategoriaDescripcion         = (string)m.Categoria_Categoria_de_Servicio_de_Apoyo.Descripcion
                , Servicio_a_SolicitarServicio = (string)m.Servicio_a_Solicitar_Tipo_de_Servicio_de_Apoyo.Servicio
                , Hecho_Delictivo_Acreditado   = m.Hecho_Delictivo_Acreditado
                , Tiempo_Estandar          = m.Tiempo_Estandar
                , Ponderacion              = m.Ponderacion
                , Fecha_Contestacion       = (m.Fecha_Contestacion == null ? string.Empty : Convert.ToDateTime(m.Fecha_Contestacion).ToString(ConfigurationProperty.DateFormat))
                , Hora_Contestacion        = m.Hora_Contestacion
                , Contestacion             = m.Contestacion
                , Usuario_que_ContestaName = (string)m.Usuario_que_Contesta_Spartan_User.Name
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #19
0
        public ActionResult Get()
        {
            NameValueCollection filter = Request.QueryString;
            var configuration          = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Persona_Moral_MPIPropertyMapper());
            }

            var pageSize  = Convert.ToInt32(filter["pageSize"]);
            var pageIndex = Convert.ToInt32(filter["pageIndex"]);
            var result    = _IDetalle_de_Persona_Moral_MPIApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Persona_Moral_MPIs == null)
            {
                result.Detalle_de_Persona_Moral_MPIs = new List <Detalle_de_Persona_Moral_MPI>();
            }

            return(Json(new
            {
                data = result.Detalle_de_Persona_Moral_MPIs.Select(m => new Detalle_de_Persona_Moral_MPIGridModel
                {
                    Clave = m.Clave
                    , Nombre = m.Nombre
                    , Apellido_Paterno = m.Apellido_Paterno
                    , Apellido_Materno = m.Apellido_Materno
                    , Nombre_Completo = m.Nombre_Completo
                    , Calidad_Juridica = m.Calidad_Juridica
                    , Razon_Social = m.Razon_Social
                    , PaisNombre = CultureHelper.GetTraduction(m.Pais_Pais.Clave.ToString(), "Nombre") ?? (string)m.Pais_Pais.Nombre
                    , EstadoNombre = CultureHelper.GetTraduction(m.Estado_Estado.Clave.ToString(), "Nombre") ?? (string)m.Estado_Estado.Nombre
                    , MunicipioNombre = CultureHelper.GetTraduction(m.Municipio_Municipio.Clave.ToString(), "Nombre") ?? (string)m.Municipio_Municipio.Nombre
                    , LocalidadDescripcion = CultureHelper.GetTraduction(m.Localidad_Localidad.Clave.ToString(), "Descripcion") ?? (string)m.Localidad_Localidad.Descripcion
                    , ColoniaNombre = CultureHelper.GetTraduction(m.Colonia_Colonia.Clave.ToString(), "Nombre") ?? (string)m.Colonia_Colonia.Nombre
                    , Calle = m.Calle
                    , Numero_Exterior = m.Numero_Exterior
                    , Numero_Interior = m.Numero_Interior
                    , Telefono = m.Telefono
                    , Extension = m.Extension
                    , Celular = m.Celular
                    , Correo_Electronico = m.Correo_Electronico
                }).ToList(),
                itemsCount = result.RowCount
            }, JsonRequestBehavior.AllowGet));
        }
コード例 #20
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_SeguimientoApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_SeguimientoPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_SeguimientoApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Seguimientos == null)
            {
                result.Detalle_de_Seguimientos = new List <Detalle_de_Seguimiento>();
            }

            var data = result.Detalle_de_Seguimientos.Select(m => new Detalle_de_SeguimientoGridModel
            {
                Clave           = m.Clave
                , Especialista  = m.Especialista
                , Solicitante   = m.Solicitante
                , Requerido     = m.Requerido
                , Archivo       = m.Archivo
                , Observaciones = m.Observaciones
                , Cumplimiento  = m.Cumplimiento
                , Tipo_de_SeguimientoDescripcion = (string)m.Tipo_de_Seguimiento_Tipo_de_Seguimiento.Descripcion
                , Cantidad_del_Monto             = m.Cantidad_del_Monto
                , Fecha_de_Cumplimiento          = (m.Fecha_de_Cumplimiento == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Cumplimiento).ToString(ConfigurationProperty.DateFormat))
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #21
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_Solicitud_de_IndicioApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Solicitud_de_IndicioPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_Solicitud_de_IndicioApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Solicitud_de_Indicios == null)
            {
                result.Detalle_de_Solicitud_de_Indicios = new List <Detalle_de_Solicitud_de_Indicio>();
            }

            var data = result.Detalle_de_Solicitud_de_Indicios.Select(m => new Detalle_de_Solicitud_de_IndicioGridModel
            {
                Clave = m.Clave
                , Fecha_de_Solicitud     = (m.Fecha_de_Solicitud == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Solicitud).ToString(ConfigurationProperty.DateFormat))
                , Hora_de_Solicitud      = m.Hora_de_Solicitud
                , Nombre_del_Solicitante = m.Nombre_del_Solicitante
                , Motivo = m.Motivo
                , Numero_de_IndicioDescripcion      = (string)m.Numero_de_Indicio_Indicios_para_MPI.Descripcion
                , Nombre_de_Indicio                 = m.Nombre_de_Indicio
                , Descripcion_de_Entrega_de_Indicio = m.Descripcion_de_Entrega_de_Indicio
                , Diligencia_que_SolicitaServicio   = (string)m.Diligencia_que_Solicita_Servicios_Periciales.Servicio
            }).ToList();

            return(PartialView("_Print", data));
        }
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Facturacion_EspecialistasApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Facturacion_EspecialistasPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Facturacion_EspecialistasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Facturacion_Especialistass == null)
            {
                result.Detalle_Facturacion_Especialistass = new List <Detalle_Facturacion_Especialistas>();
            }

            var data = result.Detalle_Facturacion_Especialistass.Select(m => new Detalle_Facturacion_EspecialistasGridModel
            {
                Folio = m.Folio
                , Fecha_de_Registro        = (m.Fecha_de_Registro == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Registro).ToString(ConfigurationProperty.DateFormat))
                , Folio_Factura            = m.Folio_Factura
                , Periodo_Facturado        = m.Periodo_Facturado
                , Cantidad                 = m.Cantidad
                , Estatus                  = m.Estatus
                , Fecha_programada_de_Pago = (m.Fecha_programada_de_Pago == null ? string.Empty : Convert.ToDateTime(m.Fecha_programada_de_Pago).ToString(ConfigurationProperty.DateFormat))
                , Pagada        = m.Pagada
                , Fecha_de_pago = (m.Fecha_de_pago == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_pago).ToString(ConfigurationProperty.DateFormat))
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #23
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_Servicios_PericialesApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Servicios_PericialesPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_Servicios_PericialesApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Servicios_Pericialess == null)
            {
                result.Detalle_de_Servicios_Pericialess = new List <Detalle_de_Servicios_Periciales>();
            }

            var data = result.Detalle_de_Servicios_Pericialess.Select(m => new Detalle_de_Servicios_PericialesGridModel
            {
                Clave = m.Clave
                , ServicioServicio = (string)m.Servicio_Servicios_Periciales.Servicio
                , Especialista     = m.Especialista
                , Estatus_del_DictamenDescripcion = (string)m.Estatus_del_Dictamen_Estatus_del_Dictamen.Descripcion
                , Observaciones      = m.Observaciones
                , Fecha_del_Dictamen = (m.Fecha_del_Dictamen == null ? string.Empty : Convert.ToDateTime(m.Fecha_del_Dictamen).ToString(ConfigurationProperty.DateFormat))
                , Dictamen           = m.Dictamen
                , Rol_de_Donde_ProvieneDescripcion = (string)m.Rol_de_Donde_Proviene_Rol_de_Diligencia.Descripcion
                , ObservacionesD = m.ObservacionesD
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #24
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Consulta_Actividades_Registro_EventoApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Consulta_Actividades_Registro_EventoPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Consulta_Actividades_Registro_EventoApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Consulta_Actividades_Registro_Eventos == null)
            {
                result.Detalle_Consulta_Actividades_Registro_Eventos = new List <Detalle_Consulta_Actividades_Registro_Evento>();
            }

            var data = result.Detalle_Consulta_Actividades_Registro_Eventos.Select(m => new Detalle_Consulta_Actividades_Registro_EventoGridModel
            {
                Folio = m.Folio
                , ActividadNombre_de_la_Actividad = (string)m.Actividad_Detalle_Actividades_Evento.Nombre_de_la_Actividad
                , Tipo_de_ActividadDescripcion    = (string)m.Tipo_de_Actividad_Tipos_de_Actividades.Descripcion
                , EspecialidadEspecialidad        = (string)m.Especialidad_Especialidades.Especialidad
                , ImparteName          = (string)m.Imparte_Spartan_User.Name
                , Fecha                = (m.Fecha == null ? string.Empty : Convert.ToDateTime(m.Fecha).ToString(ConfigurationProperty.DateFormat))
                , Lugares_disponibles  = m.Lugares_disponibles
                , Horarios_disponibles = m.Horarios_disponibles
                , Ubicacion            = m.Ubicacion
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #25
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_Solicitud_Bitacora_de_CoincidApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Solicitud_Bitacora_de_CoincidPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_Solicitud_Bitacora_de_CoincidApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Solicitud_Bitacora_de_Coincids == null)
            {
                result.Detalle_de_Solicitud_Bitacora_de_Coincids = new List <Detalle_de_Solicitud_Bitacora_de_Coincid>();
            }

            var data = result.Detalle_de_Solicitud_Bitacora_de_Coincids.Select(m => new Detalle_de_Solicitud_Bitacora_de_CoincidGridModel
            {
                Clave                                = m.Clave
                , Nombre_Completo                    = m.Nombre_Completo
                , Alias                              = m.Alias
                , Numero_de_Expediente               = m.Numero_de_Expediente
                , Fuente_de_Origen                   = m.Fuente_de_Origen
                , Tipo_de_AcuerdoDescripcion         = (string)m.Tipo_de_Acuerdo_Tipo_de_Acuerdo.Descripcion
                , Cumplido                           = m.Cumplido
                , Razon_de_IncumplimientoDescripcion = (string)m.Razon_de_Incumplimiento_Razon_de_Incumplimiento.Descripcion
                , Observaciones                      = m.Observaciones
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #26
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Ejercicios_RutinasApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Ejercicios_RutinasPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Ejercicios_RutinasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Ejercicios_Rutinass == null)
            {
                result.Detalle_Ejercicios_Rutinass = new List <Detalle_Ejercicios_Rutinas>();
            }

            var data = result.Detalle_Ejercicios_Rutinass.Select(m => new Detalle_Ejercicios_RutinasGridModel
            {
                Folio = m.Folio
                , Orden_de_realizacion             = m.Orden_de_realizacion
                , Secuencia                        = m.Secuencia
                , Enfoque_del_EjercicioDescripcion = (string)m.Enfoque_del_Ejercicio_Tipo_de_Enfoque_del_Ejercicio.Descripcion
                , EjercicioNombre_del_Ejercicio    = (string)m.Ejercicio_Ejercicios.Nombre_del_Ejercicio
                , Cantidad_de_series               = m.Cantidad_de_series
                , Cantidad_de_repeticiones         = m.Cantidad_de_repeticiones
                , Descanso_en_segundos             = m.Descanso_en_segundos
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #27
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Planes_de_RutinasApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Planes_de_RutinasPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Planes_de_RutinasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Planes_de_Rutinass == null)
            {
                result.Detalle_Planes_de_Rutinass = new List <Detalle_Planes_de_Rutinas>();
            }

            var data = result.Detalle_Planes_de_Rutinass.Select(m => new Detalle_Planes_de_RutinasGridModel
            {
                Folio = m.Folio
                , Numero_de_DiaDia                 = (string)m.Numero_de_Dia_Dias_de_la_semana.Dia
                , Fecha                            = (m.Fecha == null ? string.Empty : Convert.ToDateTime(m.Fecha).ToString(ConfigurationProperty.DateFormat))
                , Orden_de_Realizacion             = m.Orden_de_Realizacion
                , Secuencia_del_Ejercicio          = m.Secuencia_del_Ejercicio
                , Enfoque_del_EjercicioDescripcion = (string)m.Enfoque_del_Ejercicio_Tipo_de_Enfoque_del_Ejercicio.Descripcion
                , EjercicioNombre_del_Ejercicio    = (string)m.Ejercicio_Ejercicios.Nombre_del_Ejercicio
                , Realizado                        = m.Realizado
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #28
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_IndiciosApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_IndiciosPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_IndiciosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Indicioss == null)
            {
                result.Detalle_de_Indicioss = new List <Detalle_de_Indicios>();
            }

            var data = result.Detalle_de_Indicioss.Select(m => new Detalle_de_IndiciosGridModel
            {
                Clave = m.Clave
                , Numero_de_Indicio      = m.Numero_de_Indicio
                , Nombre_de_Indicio      = m.Nombre_de_Indicio
                , Descripcion_de_Indicio = m.Descripcion_de_Indicio
                , Motivo_de_Indicio      = m.Motivo_de_Indicio
                , DiligenciaServicio     = (string)m.Diligencia_Servicios_Periciales.Servicio
                , Ubicacion          = m.Ubicacion
                , EstatusDescripcion = (string)m.Estatus_Estatus_de_Indicio.Descripcion
            }).ToList();

            return(PartialView("_Print", data));
        }
コード例 #29
0
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_de_Historial_de_Emergencia_CCApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Historial_de_Emergencia_CCPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_de_Historial_de_Emergencia_CCApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_de_Historial_de_Emergencia_CCs == null)
            {
                result.Detalle_de_Historial_de_Emergencia_CCs = new List <Detalle_de_Historial_de_Emergencia_CC>();
            }

            var data = result.Detalle_de_Historial_de_Emergencia_CCs.Select(m => new Detalle_de_Historial_de_Emergencia_CCGridModel
            {
                Clave                  = m.Clave
                , Fecha                = (m.Fecha == null ? string.Empty : Convert.ToDateTime(m.Fecha).ToString(ConfigurationProperty.DateFormat))
                , Hora                 = m.Hora
                , Latitud              = m.Latitud
                , Longitud             = m.Longitud
                , Estatus              = m.Estatus
                , Comentarios          = m.Comentarios
                , Usuario_que_registra = m.Usuario_que_registra
            }).ToList();

            return(PartialView("_Print", data));
        }
        //[ObjectAuth(ObjectId = ModuleObjectId.EMPLEADOS_OBJECT, PermissionType = PermissionTypes.Export)]
        public ActionResult Print(string format, int pageIndex, int pageSize)
        {
            var exportFormatType = (ExportFormatType)Enum.Parse(
                typeof(ExportFormatType), format, true);

            if (!_tokenManager.GenerateToken())
            {
                return(null);
            }

            _IDetalle_Especialistas_PacientesApiConsumer.SetAuthHeader(_tokenManager.Token);

            NameValueCollection filter = Request.QueryString;

            var configuration = new GridConfiguration()
            {
                OrderByClause = "", WhereClause = ""
            };

            if (filter != null)
            {
                configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Especialistas_PacientesPropertyMapper());
            }

            pageSize = pageSize == 0 ? int.MaxValue : pageSize;

            var result = _IDetalle_Especialistas_PacientesApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource;

            if (result.Detalle_Especialistas_Pacientess == null)
            {
                result.Detalle_Especialistas_Pacientess = new List <Detalle_Especialistas_Pacientes>();
            }

            var data = result.Detalle_Especialistas_Pacientess.Select(m => new Detalle_Especialistas_PacientesGridModel
            {
                Folio = m.Folio
                , EspecialistaName         = (string)m.Especialista_Spartan_User.Name
                , EspecialidadEspecialidad = (string)m.Especialidad_Especialidades.Especialidad
                , Fecha_inicio             = (m.Fecha_inicio == null ? string.Empty : Convert.ToDateTime(m.Fecha_inicio).ToString(ConfigurationProperty.DateFormat))
                , Fecha_fin          = (m.Fecha_fin == null ? string.Empty : Convert.ToDateTime(m.Fecha_fin).ToString(ConfigurationProperty.DateFormat))
                , Cantidad_consultas = m.Cantidad_consultas
                , Principal          = m.Principal
                , EstatusDescripcion = (string)m.Estatus_Estatus_Paciente.Descripcion
            }).ToList();

            return(PartialView("_Print", data));
        }