From 265f59cbbd994854687775866d2e218136762a92 Mon Sep 17 00:00:00 2001 From: caudillochon Date: Thu, 13 Feb 2025 02:39:45 -0700 Subject: [PATCH] ScrollKardexHorizontal --- Inventarios/KardexAlmacenHorizontal.aspx | 183 +++++++++++++++-------- 1 file changed, 122 insertions(+), 61 deletions(-) diff --git a/Inventarios/KardexAlmacenHorizontal.aspx b/Inventarios/KardexAlmacenHorizontal.aspx index 64acb2d20..54a239d2b 100644 --- a/Inventarios/KardexAlmacenHorizontal.aspx +++ b/Inventarios/KardexAlmacenHorizontal.aspx @@ -79,11 +79,75 @@ } } - /* .trh{ + /* .trh{ max-height:31px!important; }*/ + .Totales, .table-striped > tbody > tr.Totales { + background: rgb(158 169 190) !important; + } - + .divContainerads { + width: 100%; + max-height: calc(100vh - 260px); + overflow-y: auto; + } + + table.adssigscroll { + min-width: 100%; + background-color:#fff; + } + + table.adssigscroll tbody,table.adssigscroll thead{ + background-color:#fff; + } + table.adssigscroll tr{ + background-color:inherit; + } + + table.adssigscroll tr, + table.adssigscroll tr td { + /*visibility: hidden;*/ + } + + table.adssigscroll tr:nth-child(1), + table.adssigscroll tr:nth-child(2) { + position: sticky; + top: 0; /* Se mantiene pegado en la parte superior */ + background-color: inherit; /* Para que no se superponga con otros elementos */ + z-index: 4; /* Asegura que esté sobre otros elementos */ + } + table.adssigscroll tr:nth-child(1) th:nth-child(1),table.adssigscroll tr:nth-child(1) th:nth-child(2), + table.adssigscroll tr:nth-child(2) td:nth-child(1),table.adssigscroll tr:nth-child(2) td:nth-child(2) { + z-index: 5; + } + + table.adssigscroll tr:nth-child(2) { + top: 26.14px; + } + + table.adssigscroll tr td:nth-child(1),table.adssigscroll tr th:nth-child(1), + table.adssigscroll tr td:nth-child(2),table.adssigscroll tr th:nth-child(2) { + position: sticky; + left: 0; + z-index: 3; + } + + table.adssigscroll tr td:nth-child(1), table.adssigscroll tr td:nth-child(2) { + background-color: inherit; + } + + table.adssigscroll tr td:nth-child(1),table.adssigscroll tr th:nth-child(1) { + width: 120px; + max-width: 120px; + } + + table.adssigscroll tr td:nth-child(2),table.adssigscroll tr th:nth-child(2) { + left: 120px; + } +/* + tr:nth-child(n + 100) { + visibility:hidden; + }*/ @@ -100,8 +164,8 @@ -
  • - Cargar Proyecciones +
  • + Cargar Proyecciones
  • @@ -179,8 +243,8 @@
    - + <%----%>
    @@ -195,7 +259,7 @@ - + <%----%> @@ -229,19 +293,19 @@
    - + - - - + + +
    - + - + @@ -250,51 +314,48 @@ " style="display: inline-block; margin-right: -20px; width: 150px;" /> " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> - - - -
    -
    - - - - - Código - - -
    - -
    -
    - -
    + + - - - Producto - - -
    - -
    -
    - -
    +
    + + + + + Código + + +
    + +
    +
    + +
    -
    - -
    + + + Producto + + +
    + +
    +
    + +
    -
    +
    + <%----%> +
    -
    - +
    -
    -
    + + +