This commit is contained in:
@@ -196,7 +196,7 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
|
||||
//string ctipo = "P";
|
||||
|
||||
int CurrentColumn = 4;
|
||||
int CurrentColumn = 5;
|
||||
BoundField bf;
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo IN ('P') AND EsPadre = 1 ").Rows)
|
||||
{
|
||||
@@ -407,13 +407,28 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Codigo";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Empleado";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Empleado";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Sucursal";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "NSS";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Registro Patronal";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
|
||||
int iniciotipe = column;
|
||||
int iniciotipe = column;
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo ='P' AND EsPadre = 1 ").Rows)
|
||||
{
|
||||
|
||||
@@ -520,11 +535,17 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
}
|
||||
column = 1;
|
||||
libro.Cell(Fila, column).Value = string.Format("'{0}",erow["Codigo"]);
|
||||
column++;
|
||||
if (newsubproyecto) { libro.Cell(Fila - 3, column).Value = string.Format("Total {0}", subproyectoold); }
|
||||
if (newsubproyectoTitulo) { libro.Cell(Fila - 1, column).Value = subproyecto; subproyectoold = subproyecto; }
|
||||
libro.Cell(Fila, column).Value = erow["Nombre"];
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo = 'P' AND EsPadre = 1 ").Rows)
|
||||
column++;
|
||||
if (newsubproyecto) { libro.Cell(Fila - 3, column).Value = string.Format("Total {0}", subproyectoold); }
|
||||
if (newsubproyectoTitulo) { libro.Cell(Fila - 1, column).Value = subproyecto; subproyectoold = subproyecto; }
|
||||
libro.Cell(Fila, column).Value = erow["Nombre"];
|
||||
column++;
|
||||
libro.Cell(Fila, column).Value = erow["SubProyecto"];
|
||||
column++;
|
||||
libro.Cell(Fila, column).Value =string.Format("'{0}", erow["NumeroSS"]);
|
||||
column++;
|
||||
libro.Cell(Fila, column).Value = erow["RegistroPatronal"];
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo = 'P' AND EsPadre = 1 ").Rows)
|
||||
{
|
||||
column++;
|
||||
string Concepto = string.Format("V_{0}", row["CveConcepto"]);
|
||||
@@ -594,11 +615,11 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
if (newsubproyecto)
|
||||
{
|
||||
libro.Range(Fila - 3, 1, Fila - 3, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(184, 204, 228));
|
||||
libro.Range(Fila - 3, 3, Fila - 3, column).Style.NumberFormat.Format = "$###,###,##0.00";
|
||||
libro.Range(Fila - 3, 3, Fila - 3, column).DataType = ClosedXML.Excel.XLDataType.Number;
|
||||
libro.Range(Fila - 3, 6, Fila - 3, column).Style.NumberFormat.Format = "$###,###,##0.00";
|
||||
libro.Range(Fila - 3,6, Fila - 3, column).DataType = ClosedXML.Excel.XLDataType.Number;
|
||||
}
|
||||
libro.Range(Fila , 3, Fila , column).Style.NumberFormat.Format = "$###,###,##0.00";
|
||||
libro.Range(Fila, 3, Fila, column).DataType = ClosedXML.Excel.XLDataType.Number;
|
||||
libro.Range(Fila , 6, Fila , column).Style.NumberFormat.Format = "$###,###,##0.00";
|
||||
libro.Range(Fila, 6, Fila, column).DataType = ClosedXML.Excel.XLDataType.Number;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user