diff --git a/Nomina/ReporteVacaciones.aspx b/Nomina/ReporteVacaciones.aspx index f23a2f071..57da38d84 100644 --- a/Nomina/ReporteVacaciones.aspx +++ b/Nomina/ReporteVacaciones.aspx @@ -19,13 +19,14 @@ .showMesDia { display: none; } + table tr th.diac { font-size: 4px; padding-left: 1px !important; padding-right: 1px !important; } - - table tr th.mesc{ + + table tr th.mesc { font-size: 12px; } @@ -91,30 +92,77 @@ /* Diciembre - Gris claro */ .TContainer { - width:100%; + width: 100%; height: calc(100vh - 200px); - overflow:scroll; + overflow: scroll; } - .VacClass{ - background-color:darkslateblue; - } - .borderyear{ - border-left: 1px solid #FFF !important; + .VacClass { + background-color: darkslateblue; } - .yearclass{ - background-color:#444; - color:#FFF;text-align: center; + + .borderyear { + border-left: 1px solid #FFF !important; + } + + .yearclass { + background-color: #444; + color: #FFF; + text-align: center; font-size: 6px; } - .yearclassB{ - background-color:#999; - color:#FFF;text-align: center; + + .yearclassB { + background-color: #999; + color: #FFF; + text-align: center; font-size: 6px; } - tr.aniorow td{ - height:8px; + + tr.aniorow td { + height: 8px; } + + tr.rowsticky { + position: sticky; + top: 0; /* Se mantiene pegado en la parte superior */ + background-color: white; /* Para que no se superponga con otros elementos */ + z-index: 1000; /* Asegura que esté sobre otros elementos */ + } + tr.rowsticky:nth-child(2) { + top: 26.14px; + } + tr.rowsticky:nth-child(3) { + top: 52.14px; + } +.table-sticky tr td:nth-child(1),.table-sticky tr th:nth-child(1), +.table-sticky tr td:nth-child(2),.table-sticky tr th:nth-child(2), +.table-sticky tr td:nth-child(3),.table-sticky tr th:nth-child(3) { + position: sticky; + left: 0; + z-index: 3; +} +.table-sticky tr td:nth-child(1),.table-sticky tr td:nth-child(2),.table-sticky tr td:nth-child(3) { + background-color: #fff; +} +.table-sticky tr td:nth-child(1) div, .table-sticky tr th:nth-child(1) div{ + width:72px; +} +.table-sticky tr td:nth-child(1),.table-sticky tr th:nth-child(1){ + width:80px; +} +.table-sticky tr td:nth-child(2),.table-sticky tr th:nth-child(2){ + width:250px; + left: 80px; + +} +.table-sticky tr td:nth-child(2) div, .table-sticky tr th:nth-child(2) div{ + width:242px; +} +.table-sticky tr td:nth-child(3),.table-sticky tr th:nth-child(3){ + left: 330px; + +} @@ -191,24 +239,22 @@
- +
- + <%-- - <%-- Encabezados dinámicos para los ejercicios --%> - <%----%> - + --%> - + @@ -216,16 +262,19 @@ - + + + + - + <%-- Encabezados dinámicos para los ejercicios --%> -<%-- data-toggle="tooltip" + <%-- data-toggle="tooltip" title='<%# new System.Globalization.CultureInfo("es-ES").DateTimeFormat.GetMonthName(Eval("Mes").ToString().ToEntero()).ToUpper() %>'--%> @@ -235,7 +284,7 @@ - + @@ -254,13 +303,15 @@ <%----%> - - - + + + <%-- Subrepeater para los ejercicios --%> - - + <%-- + --%> <%-- diff --git a/Nomina/ReporteVacaciones.aspx.cs b/Nomina/ReporteVacaciones.aspx.cs index b0db7947f..ed0bf1cc6 100644 --- a/Nomina/ReporteVacaciones.aspx.cs +++ b/Nomina/ReporteVacaciones.aspx.cs @@ -130,7 +130,7 @@ public partial class Nomina_ReporteVacaciones : ClsPaginas FechaAntiguedad = row1.Field("FechaAntiguedad"), Antiguedad = row1.Field("Antiguedad"), - ColumnasinicioFin = strColumnasinicioFin(tabladias, tabla2.FiltraParametros(string.Format("CvePersonal = {0}", row1["CvePersonal"])), row1["anio"].ToString().ToEntero(), row1["Mes"].ToString(), row1["Dia"].ToString()), + //ColumnasinicioFin = strColumnasinicioFin(tabladias, tabla2.FiltraParametros(string.Format("CvePersonal = {0}", row1["CvePersonal"])), row1["anio"].ToString().ToEntero(), row1["Mes"].ToString(), row1["Dia"].ToString()), ColumnasVacaciones = strColumnasVacaciones(tabladias, TDiaspersonal), // Campo extra: Enumerable para cada Ejercicio de Tabla 3 Ejercicios = tabla3.AsEnumerable().Select(row3 => @@ -188,8 +188,8 @@ public partial class Nomina_ReporteVacaciones : ClsPaginas rptMeses.DataBind(); RepetDias.DataSource = tabladias; RepetDias.DataBind(); - rptx.DataSource = tabladias; - rptx.DataBind(); + //rptx.DataSource = tabladias; + //rptx.DataBind(); } @@ -263,9 +263,9 @@ public partial class Nomina_ReporteVacaciones : ClsPaginas DataRow hdr = TDiaspersonal.FiltroPrimero(string.Format("FechaNum={0}", dr["FechaNum"])); if (hdr != null) { - if (hdr["InicioM"].ToString() == "1") + if (hdr["InicioVac"].ToString() == "1") { - stringBuilder.AppendFormat("", hdr["DiasMesAnio"], (dr["MinMes"].ToString() == "1" ? " borderleft " : "")); + stringBuilder.AppendFormat("", hdr["diasvac"], (dr["MinMes"].ToString() == "1" ? " borderleft " : "")); } } else
<%# Eval("Anio") %><%# Eval("Anio") %><%# Eval("Anio") %><%# Eval("Anio") %><%# Eval("Anio") %>
Código Nombre Completo Fecha Inicio
<%# Eval("CvePersonal") %><%# Eval("FechaInicio", "{0:yyyy-MM-dd}") %>
+
+
<%# Eval("FechaInicio", "{0:yyyy-MM-dd}") %>
{0}