public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Resultados_ConsultasApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Resultados_ConsultasPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Resultados_ConsultasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Resultados_Consultass == null) { result.Detalle_Resultados_Consultass = new List <Detalle_Resultados_Consultas>(); } var data = result.Detalle_Resultados_Consultass.Select(m => new Detalle_Resultados_ConsultasGridModel { Folio = m.Folio , Folio_PacientesNombre_Completo = (string)m.Folio_Pacientes_Pacientes.Nombre_Completo , Fecha_de_Consulta = (m.Fecha_de_Consulta == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Consulta).ToString(ConfigurationProperty.DateFormat)) , IndicadorNombre = (string)m.Indicador_Indicadores_Consultas.Nombre , Resultado = m.Resultado , Interpretacion = m.Interpretacion , IMC = m.IMC , IMC_Pediatria = m.IMC_Pediatria }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Resultados_ConsultasList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Resultados_ConsultasList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Planes_de_Suscripcion_EspecialistasApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Planes_de_Suscripcion_EspecialistasPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Planes_de_Suscripcion_EspecialistasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Planes_de_Suscripcion_Especialistass == null) { result.Detalle_Planes_de_Suscripcion_Especialistass = new List <Detalle_Planes_de_Suscripcion_Especialistas>(); } var data = result.Detalle_Planes_de_Suscripcion_Especialistass.Select(m => new Detalle_Planes_de_Suscripcion_EspecialistasGridModel { Folio = m.Folio , Plan_de_SuscripcionNombre = (string)m.Plan_de_Suscripcion_Planes_de_Suscripcion_Especialistas.Nombre , 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)) , Frecuencia_de_PagoNombre = (string)m.Frecuencia_de_Pago_Frecuencia_de_pago_Especialistas.Nombre , Costo = m.Costo , Firmo_Contrato = m.Firmo_Contrato , EstatusDescripcion = (string)m.Estatus_Estatus_de_Suscripcion.Descripcion }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Planes_de_Suscripcion_EspecialistasList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Planes_de_Suscripcion_EspecialistasList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_de_Descripcion_de_Evidencia_CCApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Descripcion_de_Evidencia_CCPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_de_Descripcion_de_Evidencia_CCApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_de_Descripcion_de_Evidencia_CCs == null) { result.Detalle_de_Descripcion_de_Evidencia_CCs = new List <Detalle_de_Descripcion_de_Evidencia_CC>(); } var data = result.Detalle_de_Descripcion_de_Evidencia_CCs.Select(m => new Detalle_de_Descripcion_de_Evidencia_CCGridModel { Clave = m.Clave , Numero_de_Evidencia = m.Numero_de_Evidencia , Descripcion_de_la_Evidencia = m.Descripcion_de_la_Evidencia , Origen = m.Origen , Descripcion = m.Descripcion , Examen_Solicitado = m.Examen_Solicitado , Codigo_de_Barras = m.Codigo_de_Barras , Archivo_de_Foto = m.Archivo_de_Foto }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_Descripcion_de_Evidencia_CCList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_Descripcion_de_Evidencia_CCList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _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(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_Historial_de_Emergencia_CCList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_Historial_de_Emergencia_CCList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _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(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Ejercicios_RutinasList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Ejercicios_RutinasList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _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(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_IndiciosList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_IndiciosList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IMR_TarjetasApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new MR_TarjetasPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IMR_TarjetasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.MR_Tarjetass == null) { result.MR_Tarjetass = new List <MR_Tarjetas>(); } var data = result.MR_Tarjetass.Select(m => new MR_TarjetasGridModel { Folio = m.Folio , Tipo_de_TarjetaDescripcion = (string)m.Tipo_de_Tarjeta_Tipo_de_Tarjeta.Descripcion , Numero_de_Tarjeta = m.Numero_de_Tarjeta , Nombre_del_Titular = m.Nombre_del_Titular , Ano_de_vigencia = m.Ano_de_vigencia , Mes_de_vigencia = m.Mes_de_vigencia , Alias_de_la_Tarjeta = m.Alias_de_la_Tarjeta , EstatusDescripcion = (string)m.Estatus_Estatus.Descripcion }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "MR_TarjetasList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "MR_TarjetasList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _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_Titular = m.Numero_de_Empleado_Titular , Numero_de_Empleado = m.Numero_de_Empleado , UsuarioName = (string)m.Usuario_Spartan_User.Name , Activo = m.Activo , SuscripcionNombre_del_Plan = (string)m.Suscripcion_Planes_de_Suscripcion.Nombre_del_Plan , EstatusDescripcion = (string)m.Estatus_Estatus.Descripcion }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Registro_Beneficiarios_EmpresaList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Registro_Beneficiarios_EmpresaList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_de_Coincidencias_MPIApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Coincidencias_MPIPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_de_Coincidencias_MPIApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_de_Coincidencias_MPIs == null) { result.Detalle_de_Coincidencias_MPIs = new List <Detalle_de_Coincidencias_MPI>(); } var data = result.Detalle_de_Coincidencias_MPIs.Select(m => new Detalle_de_Coincidencias_MPIGridModel { Clave = m.Clave , Nombre_Completo = m.Nombre_Completo , Alias = m.Alias , Numero_de_Expediente = m.Numero_de_Expediente , NUAT = m.NUAT , NUC = m.NUC , Rol = m.Rol }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_Coincidencias_MPIList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_Coincidencias_MPIList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ISpartan_WorkFlow_Matrix_of_StatesApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Spartan_WorkFlow_Matrix_of_StatesPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ISpartan_WorkFlow_Matrix_of_StatesApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Spartan_WorkFlow_Matrix_of_Statess == null) { result.Spartan_WorkFlow_Matrix_of_Statess = new List <Spartan_WorkFlow_Matrix_of_States>(); } var data = result.Spartan_WorkFlow_Matrix_of_Statess.Select(m => new Spartan_WorkFlow_Matrix_of_StatesGridModel { Matrix_of_StatesId = m.Matrix_of_StatesId , Visible = m.Visible , Required = m.Required , Read_Only = m.Read_Only , Label = m.Label , Default_Value = m.Default_Value , Help_Text = m.Help_Text }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Spartan_WorkFlow_Matrix_of_StatesList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Spartan_WorkFlow_Matrix_of_StatesList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_de_Sentencias_Imputado_MPIApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_Sentencias_Imputado_MPIPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_de_Sentencias_Imputado_MPIApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_de_Sentencias_Imputado_MPIs == null) { result.Detalle_de_Sentencias_Imputado_MPIs = new List <Detalle_de_Sentencias_Imputado_MPI>(); } var data = result.Detalle_de_Sentencias_Imputado_MPIs.Select(m => new Detalle_de_Sentencias_Imputado_MPIGridModel { Clave = m.Clave , DelitoDescripcion = (string)m.Delito_Delito.Descripcion , SentenciaDescripcion = (string)m.Sentencia_Sentencia.Descripcion , Fecha_de_Devolucion = (m.Fecha_de_Devolucion == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Devolucion).ToString(ConfigurationProperty.DateFormat)) , Hora_de_Devolucion = m.Hora_de_Devolucion , Repacion_del_Dano = m.Repacion_del_Dano , Resolucion = m.Resolucion }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_Sentencias_Imputado_MPIList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_Sentencias_Imputado_MPIList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_de_ResultadosApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_ResultadosPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_de_ResultadosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_de_Resultadoss == null) { result.Detalle_de_Resultadoss = new List <Detalle_de_Resultados>(); } var data = result.Detalle_de_Resultadoss.Select(m => new Detalle_de_ResultadosGridModel { Clave = m.Clave , Nombre = m.Nombre , Apellido_Paterno = m.Apellido_Paterno , Apellido_Materno = m.Apellido_Materno , Fecha_Nacimiento = (m.Fecha_Nacimiento == null ? string.Empty : Convert.ToDateTime(m.Fecha_Nacimiento).ToString(ConfigurationProperty.DateFormat)) , SexoDescripcion = (string)m.Sexo_Genero.Descripcion , NacionalidadNacionalidadC = (string)m.Nacionalidad_Nacionalidad.NacionalidadC }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_ResultadosList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_ResultadosList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IMR_Detalle_PlatilloApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new MR_Detalle_PlatilloPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IMR_Detalle_PlatilloApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.MR_Detalle_Platillos == null) { result.MR_Detalle_Platillos = new List <MR_Detalle_Platillo>(); } var data = result.MR_Detalle_Platillos.Select(m => new MR_Detalle_PlatilloGridModel { Folio = m.Folio , IngredienteNombre_Ingrediente = (string)m.Ingrediente_Ingredientes.Nombre_Ingrediente , Cantidad = m.Cantidad , Cantidad_en_Fraccion = m.Cantidad_en_Fraccion , UnidadUnidad = (string)m.Unidad_Unidades_de_Medida.Unidad , Cantidad_a_mostrar = m.Cantidad_a_mostrar , Ingrediente_a_mostrar = m.Ingrediente_a_mostrar }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "MR_Detalle_PlatilloList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "MR_Detalle_PlatilloList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Aseguramiento_PirateriaApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Aseguramiento_PirateriaPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Aseguramiento_PirateriaApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Aseguramiento_Piraterias == null) { result.Detalle_Aseguramiento_Piraterias = new List <Detalle_Aseguramiento_Pirateria>(); } var data = result.Detalle_Aseguramiento_Piraterias.Select(m => new Detalle_Aseguramiento_PirateriaGridModel { Clave = m.Clave , Motivo_de_RegistroDescripcion = (string)m.Motivo_de_Registro_Motivo_de_Registro.Descripcion , TipoDescripcion = (string)m.Tipo_Tipo_de_Pirateria.Descripcion , Descripcion = m.Descripcion , Cantidad = m.Cantidad , Unidad_de_MedicionDescripcion = (string)m.Unidad_de_Medicion_Unidad_de_Medida_de_pirateria.Descripcion , Observaciones = m.Observaciones }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Aseguramiento_PirateriaList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Aseguramiento_PirateriaList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ISpartan_Format_FieldApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Spartan_Format_FieldPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ISpartan_Format_FieldApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Spartan_Format_Fields == null) { result.Spartan_Format_Fields = new List <Spartan_Format_Field>(); } var data = result.Spartan_Format_Fields.Select(m => new Spartan_Format_FieldGridModel { FormatFieldId = m.FormatFieldId , Field_Path = m.Field_Path , Physical_Field_Name = m.Physical_Field_Name , Logical_Field_Name = m.Logical_Field_Name , Creation_Hour = m.Creation_Hour , Creation_User = m.Creation_User , Properties = m.Properties }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Spartan_Format_FieldList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Spartan_Format_FieldList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Examenes_LaboratorioApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Examenes_LaboratorioPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Examenes_LaboratorioApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Examenes_Laboratorios == null) { result.Detalle_Examenes_Laboratorios = new List <Detalle_Examenes_Laboratorio>(); } var data = result.Detalle_Examenes_Laboratorios.Select(m => new Detalle_Examenes_LaboratorioGridModel { Folio = m.Folio , 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(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Examenes_LaboratorioList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Examenes_LaboratorioList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ISolicitud_de_Servicios_de_ApoyoApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Solicitud_de_Servicios_de_ApoyoPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ISolicitud_de_Servicios_de_ApoyoApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Solicitud_de_Servicios_de_Apoyos == null) { result.Solicitud_de_Servicios_de_Apoyos = new List <Solicitud_de_Servicios_de_Apoyo>(); } var data = result.Solicitud_de_Servicios_de_Apoyos.Select(m => new Solicitud_de_Servicios_de_ApoyoGridModel { Clave = m.Clave , Tipo_de_ServicioServicio = (string)m.Tipo_de_Servicio_Tipo_de_Servicio_de_Apoyo.Servicio , Dictamen = m.Dictamen , Responsable = m.Responsable , Clave_MR = m.Clave_MR , ComparecienteNombre_Completo = (string)m.Compareciente_Compareciente.Nombre_Completo }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Solicitud_de_Servicios_de_ApoyoList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Solicitud_de_Servicios_de_ApoyoList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ILugar_de_DetencionApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Lugar_de_DetencionPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ILugar_de_DetencionApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Lugar_de_Detencions == null) { result.Lugar_de_Detencions = new List <Lugar_de_Detencion>(); } var data = result.Lugar_de_Detencions.Select(m => new Lugar_de_DetencionGridModel { Clave = m.Clave , Fecha_de_Detencion = (m.Fecha_de_Detencion == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Detencion).ToString(ConfigurationProperty.DateFormat)) , Municipio_de_DetencionNombre = (string)m.Municipio_de_Detencion_Municipio.Nombre , CorporacionDescripcion = (string)m.Corporacion_Corporacion.Descripcion , Suspension_Condicional = m.Suspension_Condicional , Fecha_de_Suspension_Condicional = (m.Fecha_de_Suspension_Condicional == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Suspension_Condicional).ToString(ConfigurationProperty.DateFormat)) }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Lugar_de_DetencionList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Lugar_de_DetencionList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_de_PadecimientosApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_de_PadecimientosPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_de_PadecimientosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_de_Padecimientoss == null) { result.Detalle_de_Padecimientoss = new List <Detalle_de_Padecimientos>(); } var data = result.Detalle_de_Padecimientoss.Select(m => new Detalle_de_PadecimientosGridModel { Folio = m.Folio , PadecimientoDescripcion = (string)m.Padecimiento_Padecimientos.Descripcion , Tiempo_con_el_diagnosticoDescripcion = (string)m.Tiempo_con_el_diagnostico_Tiempo_Padecimiento.Descripcion , Intervencion_quirurgicaDescripcion = (string)m.Intervencion_quirurgica_Respuesta_Logica.Descripcion , Tratamiento = m.Tratamiento , Estado_actualDescripcion = (string)m.Estado_actual_Estatus_Padecimiento.Descripcion }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_de_PadecimientosList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_de_PadecimientosList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ISpartan_BR_HistoryApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Spartan_BR_HistoryPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ISpartan_BR_HistoryApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Spartan_BR_Historys == null) { result.Spartan_BR_Historys = new List <Spartan_BR_History>(); } var data = result.Spartan_BR_Historys.Select(m => new Spartan_BR_HistoryGridModel { Key_History = m.Key_History , Hour_Date = m.Hour_Date , Time_elapsed = m.Time_elapsed , Conditions = m.Conditions , Actions_True = m.Actions_True , Actions_False = m.Actions_False }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Spartan_BR_HistoryList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Spartan_BR_HistoryList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Solicitud_Historial_de_AsignacionesApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Solicitud_Historial_de_AsignacionesPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Solicitud_Historial_de_AsignacionesApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Solicitud_Historial_de_Asignacioness == null) { result.Detalle_Solicitud_Historial_de_Asignacioness = new List <Detalle_Solicitud_Historial_de_Asignaciones>(); } var data = result.Detalle_Solicitud_Historial_de_Asignacioness.Select(m => new Detalle_Solicitud_Historial_de_AsignacionesGridModel { Folio = m.Folio , Fecha_cambio = (m.Fecha_cambio == null ? string.Empty : Convert.ToDateTime(m.Fecha_cambio).ToString(ConfigurationProperty.DateFormat)) , Hora_cambio = m.Hora_cambio , UsuarioName = (string)m.Usuario_Spartan_User.Name , Facilitador_AsignadoName = (string)m.Facilitador_Asignado_Spartan_User.Name , Motivo_de_cambio = m.Motivo_de_cambio }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Solicitud_Historial_de_AsignacionesList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Solicitud_Historial_de_AsignacionesList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ISpartan_RDM_Operations_DetailApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Spartan_RDM_Operations_DetailPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ISpartan_RDM_Operations_DetailApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Spartan_RDM_Operations_Details == null) { result.Spartan_RDM_Operations_Details = new List <Spartan_RDM_Operations_Detail>(); } var data = result.Spartan_RDM_Operations_Details.Select(m => new Spartan_RDM_Operations_DetailGridModel { DetailId = m.DetailId , Object_NameDescription = (string)m.Object_Name_Spartan_Object_ByPass.Description , Object_Label = m.Object_Label , Order_Shown = m.Order_Shown , Count_Query = m.Count_Query , Query_Data = m.Query_Data }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Spartan_RDM_Operations_DetailList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Spartan_RDM_Operations_DetailList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Planes_AlimenticiosApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Planes_AlimenticiosPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Planes_AlimenticiosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Planes_Alimenticioss == null) { result.Detalle_Planes_Alimenticioss = new List <Detalle_Planes_Alimenticios>(); } var data = result.Detalle_Planes_Alimenticioss.Select(m => new Detalle_Planes_AlimenticiosGridModel { Folio = m.Folio , Tiempo_de_ComidaComida = (string)m.Tiempo_de_Comida_Tiempos_de_Comida.Comida , 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)) , PlatilloNombre_de_Platillo = (string)m.Platillo_Platillos.Nombre_de_Platillo , Modificado = m.Modificado }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Planes_AlimenticiosList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Planes_AlimenticiosList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDatos_Bancarios_EspecialistasApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Datos_Bancarios_EspecialistasPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDatos_Bancarios_EspecialistasApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Datos_Bancarios_Especialistass == null) { result.Datos_Bancarios_Especialistass = new List <Datos_Bancarios_Especialistas>(); } var data = result.Datos_Bancarios_Especialistass.Select(m => new Datos_Bancarios_EspecialistasGridModel { Folio = m.Folio , BancoNombre = (string)m.Banco_Bancos.Nombre , CLABE_Interbancaria = m.CLABE_Interbancaria , Num_Cuenta = m.Num_Cuenta , Nombre_del_Titular = m.Nombre_del_Titular , Principal = m.Principal }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Datos_Bancarios_EspecialistasList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Datos_Bancarios_EspecialistasList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Titulos_MedicosApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Titulos_MedicosPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Titulos_MedicosApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Titulos_Medicoss == null) { result.Detalle_Titulos_Medicoss = new List <Detalle_Titulos_Medicos>(); } var data = result.Detalle_Titulos_Medicoss.Select(m => new Detalle_Titulos_MedicosGridModel { Folio = m.Folio , Nombre_del_Titulo = m.Nombre_del_Titulo , Institucion_Facultad = m.Institucion_Facultad , Fecha_de_Titulacion = (m.Fecha_de_Titulacion == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Titulacion).ToString(ConfigurationProperty.DateFormat)) , Numero_de_Cedula = m.Numero_de_Cedula , Fecha_de_Expedicion = (m.Fecha_de_Expedicion == null ? string.Empty : Convert.ToDateTime(m.Fecha_de_Expedicion).ToString(ConfigurationProperty.DateFormat)) }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Titulos_MedicosList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Titulos_MedicosList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _ISpartan_BR_Operator_TypeApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Spartan_BR_Operator_TypePropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _ISpartan_BR_Operator_TypeApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Spartan_BR_Operator_Types == null) { result.Spartan_BR_Operator_Types = new List <Spartan_BR_Operator_Type>(); } var data = result.Spartan_BR_Operator_Types.Select(m => new Spartan_BR_Operator_TypeGridModel { OperatorTypeId = m.OperatorTypeId , Description = m.Description , Query_for_Fill_Condition = m.Query_for_Fill_Condition , Code_for_Fill_Condition = m.Code_for_Fill_Condition , Implementation_Code = m.Implementation_Code }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Spartan_BR_Operator_TypeList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Spartan_BR_Operator_TypeList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDetalle_Datos_Adicionales_MovimientoApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Detalle_Datos_Adicionales_MovimientoPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDetalle_Datos_Adicionales_MovimientoApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Detalle_Datos_Adicionales_Movimientos == null) { result.Detalle_Datos_Adicionales_Movimientos = new List <Detalle_Datos_Adicionales_Movimiento>(); } var data = result.Detalle_Datos_Adicionales_Movimientos.Select(m => new Detalle_Datos_Adicionales_MovimientoGridModel { Clave = m.Clave , Dato = m.Dato , Tipo_de_DatoDescripcion = (string)m.Tipo_de_Dato_Tipo_de_Dato.Descripcion , Query_para_llenado = m.Query_para_llenado , Obligatorio = m.Obligatorio }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Detalle_Datos_Adicionales_MovimientoList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Detalle_Datos_Adicionales_MovimientoList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _Idetalle_de_observaciones_mpiApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new detalle_de_observaciones_mpiPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _Idetalle_de_observaciones_mpiApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.detalle_de_observaciones_mpis == null) { result.detalle_de_observaciones_mpis = new List <detalle_de_observaciones_mpi>(); } var data = result.detalle_de_observaciones_mpis.Select(m => new detalle_de_observaciones_mpiGridModel { clave = m.clave , observaciones = m.observaciones , fecha = (m.fecha == null ? string.Empty : Convert.ToDateTime(m.fecha).ToString(ConfigurationProperty.DateFormat)) , hora = m.hora , usuario_que_realiza_observacionName = (string)m.usuario_que_realiza_observacion_Spartan_User.Name }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "detalle_de_observaciones_mpiList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "detalle_de_observaciones_mpiList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDashboard_Config_DetailApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Dashboard_Config_DetailPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDashboard_Config_DetailApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Dashboard_Config_Details == null) { result.Dashboard_Config_Details = new List <Dashboard_Config_Detail>(); } var data = result.Dashboard_Config_Details.Select(m => new Dashboard_Config_DetailGridModel { Detail_Id = m.Detail_Id , Report_Id = m.Report_Id , Report_Name = m.Report_Name , ConfigRow = m.ConfigRow , ConfigColumn = m.ConfigColumn }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Dashboard_Config_DetailList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Dashboard_Config_DetailList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }
public void Export(string format, int pageIndex, int pageSize) { var exportFormatType = (ExportFormatType)Enum.Parse( typeof(ExportFormatType), format, true); if (!_tokenManager.GenerateToken()) { return; } _IDatos_Personales_Adicionales_Requerido_MASCApiConsumer.SetAuthHeader(_tokenManager.Token); NameValueCollection filter = Request.QueryString; var configuration = new GridConfiguration() { OrderByClause = "", WhereClause = "" }; if (filter != null) { configuration = GridQueryHelper.GetConfiguration(filter, new Datos_Personales_Adicionales_Requerido_MASCPropertyMapper()); } pageSize = pageSize == 0 ? int.MaxValue : pageSize; var result = _IDatos_Personales_Adicionales_Requerido_MASCApiConsumer.ListaSelAll((pageIndex * pageSize) - pageSize + 1, pageSize, configuration.WhereClause, configuration.OrderByClause ?? "").Resource; if (result.Datos_Personales_Adicionales_Requerido_MASCs == null) { result.Datos_Personales_Adicionales_Requerido_MASCs = new List <Datos_Personales_Adicionales_Requerido_MASC>(); } var data = result.Datos_Personales_Adicionales_Requerido_MASCs.Select(m => new Datos_Personales_Adicionales_Requerido_MASCGridModel { Clave = m.Clave , Correo_Electronico = m.Correo_Electronico , Numero_Telefonico = m.Numero_Telefonico , Redes_SocialesDescripcion = (string)m.Redes_Sociales_Redes_Sociales.Descripcion , Observaciones = m.Observaciones }).ToList(); switch (exportFormatType) { case ExportFormatType.PDF: PdfConverter.ExportToPdf(data.ToDataTable(), "Datos_Personales_Adicionales_Requerido_MASCList_" + DateTime.Now.ToString()); break; case ExportFormatType.EXCEL: ExcelConverter.ExportToExcel(data.ToDataTable(), "Datos_Personales_Adicionales_Requerido_MASCList_" + DateTime.Now.ToString()); break; case ExportFormatType.CSV: CsvConverter.ExportToCSV(data.ToDataTable(), "EmployeeList_" + DateTime.Now.ToString()); break; } }