From 9219bbef16f470c2e8bdf964f8a81cf0cf7c5e21 Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Fri, 13 Dec 2019 14:18:34 -0700 Subject: [PATCH 1/3] nuevo reporte en el modulo en cuestion --- RH/RepIndiceRotacionPersonal.aspx | 10 +++++++ RH/RepIndiceRotacionPersonal.aspx.vb | 41 +++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/RH/RepIndiceRotacionPersonal.aspx b/RH/RepIndiceRotacionPersonal.aspx index 7427349f3..cf45a956a 100644 --- a/RH/RepIndiceRotacionPersonal.aspx +++ b/RH/RepIndiceRotacionPersonal.aspx @@ -31,6 +31,16 @@ Reporte Indice Rotación de Personal + + +
  • + +
  • +
    + + + +
    diff --git a/RH/RepIndiceRotacionPersonal.aspx.vb b/RH/RepIndiceRotacionPersonal.aspx.vb index 080918e61..10605fe33 100644 --- a/RH/RepIndiceRotacionPersonal.aspx.vb +++ b/RH/RepIndiceRotacionPersonal.aspx.vb @@ -3,10 +3,24 @@ Option Explicit On Imports Extensiones Imports System.Data +Imports Microsoft.Reporting.WebForms Partial Class Ventas_RepIndiceRotacionPersonal Inherits ClsPaginas + Private Property DTGvDatos As DataTable + Get + If ViewState("DTGvDatos") Is Nothing Then + Return New DataTable + Else + Return DirectCast(ViewState("DTGvDatos"), DataTable) + End If + End Get + Set(value As DataTable) + ViewState("DTGvDatos") = value + End Set + End Property + Private Sub Ventas_RepIndiceRotacionPersonal_Load(sender As Object, e As EventArgs) Handles Me.Load If Not IsPostBack Then txtInicio.Text = Date.Now.AddDays(-30).ToString("dd/MM/yyyy") @@ -84,7 +98,7 @@ Partial Class Ventas_RepIndiceRotacionPersonal If rh.GetReporteRotacionPersonal(FechaInicio, FechaFin, CveTurno, CveProyecto, CveSubproyecto, UsuarioActual.Empresa.CveEmpresa) Then dTable = rh.DtResultados End If - + DTGvDatos = dTable GVRegDatos.DataSource = dTable GVRegDatos.DataBind() @@ -138,4 +152,29 @@ Partial Class Ventas_RepIndiceRotacionPersonal End Sub + + Protected Sub BtnImprimir_Click(sender As Object, e As EventArgs) + '"Empresas/Grales/Formatos/ClienteHistorial.rdlc" + If GVRegDatos.Rows.Count > 0 Then + + Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta)) + Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa) + + Dim params As New List(Of ReportParameter) + params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa)) + params.Add(New ReportParameter("FechaInicial", txtInicio.Text)) + params.Add(New ReportParameter("FechaFinal", txtFin.Text)) + params.Add(New ReportParameter("FechaRealizado", Date.Now().ToString())) + params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre)) + + If Imagen.Exists Then + params.Add(New ReportParameter("LogoPath", logouri)) + Else + params.Add(New ReportParameter("LogoPath", "")) + End If + + ImprimirPDF("Empresas/Grales/Formatos/RepIndiceRotacionPersonal.rdlc", DTGvDatos, params, "Reporte de Historial", "PDF") + + End If + End Sub End Class From 6eebd4abd1336cfc3950c87540e1361e8cb5a33e Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Fri, 13 Dec 2019 16:17:56 -0700 Subject: [PATCH 2/3] El reporte era el soporte a realizar con la columna de subproyecto y habia que actualizar en git el aspx --- .../RepMovimientosAuxiliaresCatalogo.aspx | 4 + .../RepMovimientosAuxiliaresCatalogo.rdlc | 128 +++++++++++++++++- 2 files changed, 125 insertions(+), 7 deletions(-) diff --git a/Contabilidad2/RepMovimientosAuxiliaresCatalogo.aspx b/Contabilidad2/RepMovimientosAuxiliaresCatalogo.aspx index 3719f257d..5d76ce0f0 100644 --- a/Contabilidad2/RepMovimientosAuxiliaresCatalogo.aspx +++ b/Contabilidad2/RepMovimientosAuxiliaresCatalogo.aspx @@ -151,6 +151,7 @@ Número Concepto Referencia + SubProyecto Cargos Abonos Saldo @@ -194,6 +195,9 @@ + + + diff --git a/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc b/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc index 4629da5f0..330f53bdd 100644 --- a/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc +++ b/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc @@ -15,11 +15,14 @@ 1.49458cm - 7.13431cm + 4.81952cm 1.99729cm + + 2.3148cm + 2.10313cm @@ -149,11 +152,12 @@ 2pt - 3 + 4 + @@ -387,6 +391,44 @@ + + + + true + true + + + + + Subproyecto + + + + + + + Black + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + @@ -605,10 +647,11 @@ 2pt - 2 + 3 + @@ -844,6 +887,38 @@ + + + + true + true + + + + + =Fields!SubProyecto.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + @@ -1053,6 +1128,40 @@ + + + + true + true + + + + + + + + + + + + Textbox12 + + + 2pt + 2pt + 2pt + 2pt + + + + @@ -1172,6 +1281,7 @@ + @@ -1208,9 +1318,9 @@ true DataSet1 - 0.06348cm + 0.06346cm 3cm - 20.37043cm + 20.37044cm @@ -1221,7 +1331,7 @@ 1.2061in