Almacen en empaque destino
This commit is contained in:
@@ -248,12 +248,13 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
||||
// Encabezados
|
||||
ws.Cell(1, 1).Value = "Código";
|
||||
ws.Cell(1, 2).Value = "Nombre Completo";
|
||||
ws.Cell(1, 3).Value = "Descuento Acordado";
|
||||
ws.Cell(1, 4).Value = "Descuento Aplicado";
|
||||
ws.Cell(1, 5).Value = "Acumulado";
|
||||
ws.Cell(1, 3).Value = "Fecha";
|
||||
ws.Cell(1, 4).Value = "Descuento Acordado";
|
||||
ws.Cell(1, 5).Value = "Descuento Aplicado";
|
||||
ws.Cell(1, 6).Value = "Acumulado";
|
||||
|
||||
// Estilo del encabezado
|
||||
var headerRange = ws.Range("A1:E1");
|
||||
var headerRange = ws.Range("A1:F1");
|
||||
headerRange.Style.Fill.BackgroundColor = XLColor.LightGray;
|
||||
headerRange.Style.Font.Bold = true;
|
||||
headerRange.Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -271,19 +272,20 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
||||
|
||||
ws.Cell(row, 1).Value = codigo;
|
||||
ws.Cell(row, 2).Value = nombre;
|
||||
ws.Cell(row, 3).Value = valor;
|
||||
ws.Cell(row, 4).Value = aplicado;
|
||||
ws.Cell(row, 5).Value = acumulado;
|
||||
ws.Cell(row, 3).Value = dr["FechaInicioAplicacion"].ToString();
|
||||
ws.Cell(row, 4).Value = valor;
|
||||
ws.Cell(row, 5).Value = aplicado;
|
||||
ws.Cell(row, 6).Value = acumulado;
|
||||
|
||||
// Formato numérico a columnas de dinero
|
||||
ws.Cell(row, 3).Style.NumberFormat.Format = "#,##0.00";
|
||||
ws.Cell(row, 4).Style.NumberFormat.Format = "#,##0.00";
|
||||
ws.Cell(row, 5).Style.NumberFormat.Format = "#,##0.00";
|
||||
ws.Cell(row, 6).Style.NumberFormat.Format = "#,##0.00";
|
||||
|
||||
// Color especial si CveTipo = 0
|
||||
if (cveTipo == 0)
|
||||
{
|
||||
var range = ws.Range(row, 1, row, 5);
|
||||
var range = ws.Range(row, 1, row, 6);
|
||||
range.Style.Fill.BackgroundColor = XLColor.FromArgb(221, 221, 221);
|
||||
range.Style.Font.Bold = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user