Correciones Portal clientes
This commit is contained in:
@@ -511,12 +511,8 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="UpAnticipos" runat="server">
|
<asp:UpdatePanel ID="UpAnticipos" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row col-md-12" align="right">
|
|
||||||
<input type="text" id="TxtBusquedaAnticipos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="portlet light bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
@@ -528,8 +524,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
|
<div class="row col-md-12" align="right">
|
||||||
|
<input type="text" id="TxtBusquedaAnticipos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="margin-top: -3px;"
|
||||||
|
class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-scrollable">
|
<div class="table-scrollable">
|
||||||
<asp:GridView ID="GVAnticipos" runat="server" ClientIDMode="Static" AutoGenerateColumns="False" EmptyDataText="No se encontraron Anticipos del Cliente" ToolTip="Listado de Anticipos" CssClass="GVAnticipos table table-striped table-hover Widthall" GridLines="None" DataKeyNames="ISTotal,Saldo,Total,CveIE,Folio,Tipo,CveVenta,CveConceptoContable">
|
<asp:GridView ID="GVAnticipos" runat="server" ClientIDMode="Static" AutoGenerateColumns="False" EmptyDataText="No se encontraron Anticipos del Cliente"
|
||||||
|
ToolTip="Listado de Anticipos" CssClass="GVAnticipos table table-striped table-hover " GridLines="None" Width="800px"
|
||||||
|
DataKeyNames="ISTotal,Saldo,Total,CveIE,Folio,Tipo,CveVenta,CveConceptoContable">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -552,14 +556,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<div class="row col-md-12" align="right">
|
|
||||||
<input type="text" id="TxtBusquedaAnticiposHistorial" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaAnticiposHistorial','{0}')", GVAnticiposHistorial.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaAnticiposHistorial','{0}')", GVAnticiposHistorial.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="portlet light bordered">
|
|
||||||
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
|
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
<span class="caption-subject bold uppercase">Anticipo del Cliente Historial</span>
|
<span class="caption-subject bold uppercase">Anticipo del Cliente Historial</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -569,8 +571,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
|
|
||||||
|
<div class="row col-md-12" align="right">
|
||||||
|
<input type="text" id="TxtBusquedaAnticiposHistorial" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaAnticiposHistorial','{0}')", GVAnticiposHistorial.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaAnticiposHistorial','{0}')", GVAnticiposHistorial.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-scrollable">
|
<div class="table-scrollable">
|
||||||
<asp:GridView ID="GVAnticiposHistorial" ClientIDMode="Static" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Anticipos del Cliente Historial" ToolTip="Listado de Anticipos Historial" CssClass="GVAnticipos table table-striped table-hover Widthall" Style="text-align: center;" GridLines="None" DataKeyNames="ISTotal,Saldo,CveIE,Folio,Total,Tipo,CveVenta,CveConceptoContable">
|
<asp:GridView ID="GVAnticiposHistorial" ClientIDMode="Static" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Anticipos del Cliente Historial"
|
||||||
|
ToolTip="Listado de Anticipos Historial" CssClass="GVAnticipos table table-striped table-hover" Style="text-align: center;" Width="800px"
|
||||||
|
GridLines="None" DataKeyNames="ISTotal,Saldo,CveIE,Folio,Total,Tipo,CveVenta,CveConceptoContable">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -582,8 +592,8 @@
|
|||||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="Original" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Original" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="25%" />
|
||||||
<asp:BoundField HeaderText="Saldo" DataField="SaldoSubtotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Saldo" DataField="SaldoSubtotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="25%" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
@@ -1348,7 +1358,7 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
<ajax:TabPanel ID="TabPedidos" runat="server" HeaderText="<i class='fa fa-book'></i> Pedidos">
|
<ajax:TabPanel ID="TabPedidos" runat="server" HeaderText="<i class='fa fa-book'></i> Pedidos" Visible="false">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:UpdatePanel ID="UpTabPedidos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpTabPedidos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|||||||
@@ -271,6 +271,7 @@ Partial Class Ventas_PortalCliente
|
|||||||
#Region "TAB HISTORIAL DE VENTAS"
|
#Region "TAB HISTORIAL DE VENTAS"
|
||||||
|
|
||||||
Private Sub CargaHistorial(Optional SelectTop As Integer = 21, Optional CveClienteSucursal As Integer = -1)
|
Private Sub CargaHistorial(Optional SelectTop As Integer = 21, Optional CveClienteSucursal As Integer = -1)
|
||||||
|
|
||||||
Dim ObjClientes As New ClsClientes()
|
Dim ObjClientes As New ClsClientes()
|
||||||
If ObjClientes.GetHistorialVentas(CveCliente, UsuarioActual.CveEmpresa, SelectTop, CveClienteSucursal:=CveClienteSucursal) Then
|
If ObjClientes.GetHistorialVentas(CveCliente, UsuarioActual.CveEmpresa, SelectTop, CveClienteSucursal:=CveClienteSucursal) Then
|
||||||
If ObjClientes.DtResultados.Rows.Count > 0 Then
|
If ObjClientes.DtResultados.Rows.Count > 0 Then
|
||||||
@@ -291,6 +292,9 @@ Partial Class Ventas_PortalCliente
|
|||||||
End If
|
End If
|
||||||
ObjClientes.Dispose()
|
ObjClientes.Dispose()
|
||||||
GVHistorial.DataBind()
|
GVHistorial.DataBind()
|
||||||
|
|
||||||
|
RblTipo_SelectedIndexChanged(Nothing, Nothing)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GVHistorial_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVHistorial.RowDataBound
|
Protected Sub GVHistorial_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVHistorial.RowDataBound
|
||||||
@@ -1234,28 +1238,38 @@ Partial Class Ventas_PortalCliente
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GVAnticipos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVAnticipos.RowDataBound, GVAnticiposHistorial.RowDataBound
|
Protected Sub GVAnticipos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVAnticipos.RowDataBound, GVAnticiposHistorial.RowDataBound
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
If e.Row.RowIndex = 0 Then
|
|
||||||
e.Row.Cells(0).ColumnSpan = 2
|
'If e.Row.RowIndex = 0 Then
|
||||||
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Right
|
' e.Row.Cells(0).ColumnSpan = 2
|
||||||
e.Row.FCLiteral("LtlFactura").Text = "Total" & " "
|
' e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Right
|
||||||
e.Row.BackColor = Drawing.Color.LightGray
|
' e.Row.FCLiteral("LtlFactura").Text = "Total" & " "
|
||||||
e.Row.Cells(1).Visible = False
|
' e.Row.BackColor = Drawing.Color.LightGray
|
||||||
End If
|
' e.Row.Cells(1).Visible = False
|
||||||
|
'End If
|
||||||
If e.Row.RowIndex = 1 Then
|
If e.Row.RowIndex = 1 Then
|
||||||
e.Row.Cells(0).Width = Unit.Pixel(60)
|
e.Row.Cells(0).Width = Unit.Pixel(60)
|
||||||
e.Row.Cells(1).Width = Unit.Pixel(100)
|
e.Row.Cells(1).Width = Unit.Pixel(100)
|
||||||
e.Row.Cells(2).Width = Unit.Pixel(80)
|
e.Row.Cells(2).Width = Unit.Pixel(80)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If e.Row.DBCampo("CveVenta").ToString.ToEntero = 0 Then
|
||||||
|
e.Row.Cells(0).ColumnSpan = 2
|
||||||
|
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Right
|
||||||
|
e.Row.BackColor = Drawing.Color.LightGray
|
||||||
|
e.Row.Cells(1).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
e.Row.Cells(2).HorizontalAlign = HorizontalAlign.Right
|
e.Row.Cells(2).HorizontalAlign = HorizontalAlign.Right
|
||||||
|
|
||||||
'If e.Row.DBCampo("Saldo").ToDouble < 0 Then e.Row.Cells(2).ForeColor = Drawing.Color.Red
|
'If e.Row.DBCampo("Saldo").ToDouble < 0 Then e.Row.Cells(2).ForeColor = Drawing.Color.Red
|
||||||
'If e.Row.DBCampo("Saldo").ToDouble = 0 Then DirectCast(e.Row.FindControl("LtlAnticipos"), Literal).Text = ""
|
'If e.Row.DBCampo("Saldo").ToDouble = 0 Then DirectCast(e.Row.FindControl("LtlAnticipos"), Literal).Text = ""
|
||||||
|
|
||||||
If e.Row.RowIndex > 0 Then
|
'If e.Row.RowIndex > 0 Then
|
||||||
e.Row.FCLiteral("LtlFactura").Text = e.Row.DBCampo("Folio")
|
e.Row.FCLiteral("LtlFactura").Text = e.Row.DBCampo("Folio")
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If CType(sender, GridView).ID = "GVAnticipos" Then
|
If CType(sender, GridView).ID = "GVAnticipos" Then
|
||||||
e.Row.Cells(2).Font.Bold = True
|
e.Row.Cells(2).Font.Bold = True
|
||||||
|
|||||||
Reference in New Issue
Block a user