-- VALIDACIÓN en gvcxp top 11

- mejora visual
This commit is contained in:
2023-07-20 12:57:12 -07:00
parent 2fbde6a5e6
commit 2f9e4b4819
2 changed files with 20 additions and 28 deletions

View File

@@ -73,8 +73,8 @@
<ajax:TabPanel ID="TabCxP" runat="server" HeaderText="<i class='fa fa-list-alt'></i> Cuentas x Cobrar" Visible="False">
<ContentTemplate>
<asp:Button ID="BtnRecargaCxP" ClientIDMode="Static" runat="server" Style="display: none;" Text="ConsultarCxP" class="btn btn-primary" />
<table border="0" class="contenido, Widthall " style="font-size: larger">
<asp:Button ID="BtnRecargaCxP" ClientIDMode="Static" runat="server" Style="display: none;" Text="ConsultarCxP" class="btn btn-primary xspadding" />
<table border="0" class="contenido, Widthall input-sm" >
<tr>
<td colspan="2">
<div class="row">
@@ -103,8 +103,7 @@
</table>
</fieldset>
</div>
<div class="col-md-3">
<div class="col-md-4">
<fieldset>
<legend><b>Resumen de Cuentas x Pagar</b>
</legend>
@@ -155,10 +154,7 @@
</fieldset>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2">
@@ -179,9 +175,8 @@
</div>
<asp:UpdatePanel ID="UPPCxP" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvCxP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Cobrar Pendientes" CssClass="ScrollAD table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
<asp:GridView ID="GvCxP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Cobrar Pendientes" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm" Style="text-align: center;" GridLines="None">
<Columns>
<asp:BoundField DataField="SerieFolio" HeaderText="Factura" />
<asp:BoundField DataField="Fecha" DataFormatString="{0:d}" HeaderText="Fecha Venta" />
<asp:BoundField DataField="FechaVencimiento" DataFormatString="{0:d}" HeaderText="Fecha Vencimiento" />
@@ -202,12 +197,10 @@
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<br />
</fieldset>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
@@ -222,7 +215,7 @@
</legend>
<asp:UpdatePanel ID="UPGvCxPHistorial" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvCxPHistorial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró Historial de Cuentas X Cobrar" CssClass="ScrollAD table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
<asp:GridView ID="GvCxPHistorial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró Historial de Cuentas X Cobrar" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm" Style="text-align: center;" GridLines="None">
<Columns>
<asp:BoundField DataField="SerieFolio" HeaderText="Factura" />
@@ -262,7 +255,7 @@
<ajax:TabPanel ID="TabBancos" runat="server" HeaderText="<i class='fa fa-bank'></i> Bancos" Visible="False">
<ContentTemplate>
<table border="0" class="contenido, Widthall" style="font-size: larger;">
<table border="0" class="contenido, Widthall input-sm" >
<tr>
<td>
@@ -276,7 +269,7 @@
</legend>
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvBancosCuentas" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="ScrollAD table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
<asp:GridView ID="GvBancosCuentas" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm" Style="text-align: center;" GridLines="None">
<Columns>
<asp:BoundField DataField="BancoNombre" HeaderText="NombreBanco" />
<asp:BoundField DataField="Sucursal" HeaderText="Num Sucursal" />
@@ -307,7 +300,7 @@
</legend>
<asp:UpdatePanel runat="server" ID="UpGvBancos" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvBancos" ViewStateMode="Enabled" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró Historial" CssClass="ScrollAD table table-striped table-advance table-hover Widthall"
<asp:GridView ID="GvBancos" ViewStateMode="Enabled" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró Historial" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm"
Style="text-align: center;" GridLines="None" DataKeyNames="Comprobante">
<Columns>
<asp:BoundField DataField="SerieFolio" HeaderText="Factura" />
@@ -347,10 +340,7 @@
<ajax:TabPanel ID="TabAnticipos" runat="server" HeaderText="<i class='fa fa-dollar'></i> Anticipos / NC" Visible="False">
<ContentTemplate>
<table border="0" class="contenido, Widthall " style="font-size: larger;">
<table border="0" class="contenido, Widthall input-sm" >
<tr>
<td>
<div>
@@ -367,7 +357,7 @@
<td>
<asp:UpdatePanel runat="server" ID="UpAnticipos" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvA" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Anticipos" CssClass="ScrollAD table table-striped table-advance table-hover Widthall " Style="text-align: center;" GridLines="None">
<asp:GridView ID="GvA" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Anticipos" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm " Style="text-align: center;" GridLines="None">
<Columns>
<asp:BoundField DataField="SerieFolio" HeaderText="NC/Anticipo" />
@@ -379,7 +369,6 @@
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
@@ -400,7 +389,7 @@
<td>
<asp:UpdatePanel ID="UPGvAH" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvAH" runat="server" AutoGenerateColumns="False" EmptyDataText="" CssClass="ScrollAD table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
<asp:GridView ID="GvAH" runat="server" AutoGenerateColumns="False" EmptyDataText="" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm" Style="text-align: center;" GridLines="None">
<Columns>
<asp:BoundField DataField="SerieFolio" HeaderText="NC/Anticipo" />
@@ -439,7 +428,7 @@
<ajax:TabPanel ID="TabHistorial" runat="server" HeaderText="<i class='fa fa-book'></i> Historial de Ventas" Visible="False">
<ContentTemplate>
<table border="0" class="contenido, Widthall " style="font-size: larger;">
<table border="0" class="contenido, Widthall input-sm" >
<tr>
<td>
<fieldset>
@@ -489,7 +478,7 @@
<td>
<asp:UpdatePanel ID="UpnHistorial" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GVHistorial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron ventas del proveedor" ToolTip="Listado de Historial de Ventas" CssClass="ScrollAD table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
<asp:GridView ID="GVHistorial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron ventas del proveedor" ToolTip="Listado de Historial de Ventas" CssClass="ScrollAD table table-striped table-advance table-hover Widthall input-sm" Style="text-align: center;" GridLines="None">
<Columns>
<asp:BoundField DataField="SerieFolio" DataFormatString="" HeaderText="Factura" />
<asp:BoundField DataField="Descripcion" DataFormatString="" ItemStyle-HorizontalAlign="left" HeaderText="Descripción" />
@@ -527,7 +516,7 @@
<ajax:TabPanel ID="TabSistema" runat="server" HeaderText="<i class='fa fa-tasks'></i> Sistema" Visible="False">
<ContentTemplate>
<table border="0" class="contenido, Widthall " style="font-size: larger;">
<table border="0" class="contenido, Widthall input-sm" >
<tr>
<td>

View File

@@ -379,9 +379,12 @@ Partial Class Portal_PortalProveedor
'= ObjMovtos.DtResultados.FiltraParametros("Tipo = 'Hist'").
DTGvCxPHistorial = ObjMovtos.DtResultados.FiltraParametros("Tipo = 'Hist'")
If DTGvCxPHistorial.Rows.Count > 11 Then
GvCxPHistorial.DataSource = DTGvCxPHistorial.AsEnumerable().Take(11).CopyToDataTable()
End If
End If
Else
DTGvCxPHistorial = Nothing
GvCxP.DataSource = Nothing