carga de trabajo sobre la retroalimentación
This commit is contained in:
@@ -393,7 +393,7 @@ public partial class CRM_RepAcercamientosProcesos : ClsPaginas
|
||||
doc.Add(header);
|
||||
Paragraph Filtros = this.filtrosDelReporte();
|
||||
doc.Add(Filtros);
|
||||
PdfPTable table = this.convertirReporteATabla();
|
||||
PdfPTable table = this.convertirReporteATabla(doc);
|
||||
doc.Add(table);
|
||||
doc.Close();
|
||||
|
||||
@@ -533,12 +533,15 @@ public partial class CRM_RepAcercamientosProcesos : ClsPaginas
|
||||
return Filtros;
|
||||
}
|
||||
|
||||
private PdfPTable convertirReporteATabla()
|
||||
private PdfPTable convertirReporteATabla(Document doc)
|
||||
{
|
||||
int numeroDeColumnas = GVRepAcercamientosEtapas.Columns.Count;
|
||||
PdfPTable table = new PdfPTable(numeroDeColumnas);
|
||||
table.WidthPercentage = 100f;
|
||||
|
||||
float[] anchoColumnas = this.ColumnasWidth();
|
||||
table.SetWidths(anchoColumnas);
|
||||
|
||||
BaseColor headerBackGroundColor = new BaseColor(240,240,240);
|
||||
Font fuente = FontFactory.GetFont("Arial", 9f);
|
||||
|
||||
@@ -568,6 +571,29 @@ public partial class CRM_RepAcercamientosProcesos : ClsPaginas
|
||||
return table;
|
||||
}
|
||||
|
||||
private float[] ColumnasWidth()
|
||||
{
|
||||
int CantidadColumnas = GVRepAcercamientosEtapas.Columns.Count;
|
||||
float[] ColumnsWidth = new float[CantidadColumnas];
|
||||
|
||||
int cursor = 0;
|
||||
DataControlFieldCollection ColumnsCollection = GVRepAcercamientosEtapas.Columns;
|
||||
foreach (DataControlField columns in ColumnsCollection)
|
||||
{
|
||||
if (columns.HeaderText == "Total")
|
||||
{
|
||||
ColumnsWidth[cursor] = 20f;
|
||||
}else
|
||||
{
|
||||
ColumnsWidth[cursor] = 80f;
|
||||
}
|
||||
|
||||
cursor++;
|
||||
}
|
||||
|
||||
return ColumnsWidth;
|
||||
}
|
||||
|
||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
GVRepAcercamientosEtapas.ExportToExcelGembox("Reporte de Rechazos de Acercamiento", UsuarioActual, "", "", "Reporte de Rechazos de Acercamiento", "", -1);
|
||||
|
||||
Reference in New Issue
Block a user