E140. Importe inicial de caja en reporte de cortes
This commit is contained in:
@@ -231,7 +231,7 @@
|
|||||||
<asp:Literal ID="LtlTotalIngreso" runat="server" Text='<%# Eval("TotalIngresos", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlTotalIngreso" runat="server" Text='<%# Eval("TotalIngresos", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label Text="Devoluciones" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:Label Text="Devoluciones" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
@@ -240,7 +240,16 @@
|
|||||||
<asp:Literal ID="LtlDevoluciones" runat="server" Text='<%# Eval("Devoluciones", "{0:#,###.##}") %>'></asp:Literal>
|
<asp:Literal ID="LtlDevoluciones" runat="server" Text='<%# Eval("Devoluciones", "{0:#,###.##}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<asp:Label Text="Importe Inicial" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
|
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlImporteInicial" runat="server" Text='<%# Eval("ImporteInicial", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label Text="Total Caja" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:Label Text="Total Caja" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
<asp:Literal runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
|
|||||||
@@ -8,10 +8,17 @@ Imports System.Collections.Generic
|
|||||||
|
|
||||||
Partial Class Bancos_RepCortes
|
Partial Class Bancos_RepCortes
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
Private Shared missing As Object = System.Reflection.Missing.Value
|
Private Shared missing As Object = System.Reflection.Missing.Value
|
||||||
|
|
||||||
#Region "PROPIEDADES"
|
#Region "PROPIEDADES"
|
||||||
|
Private Property DtCortes As DataTable
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("DtCortes"), DataTable)
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DtCortes") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Private Property DtCortesVentasResumen As DataTable
|
Private Property DtCortesVentasResumen As DataTable
|
||||||
Get
|
Get
|
||||||
Return CType(ViewState("DtCortesVentasResumen"), DataTable)
|
Return CType(ViewState("DtCortesVentasResumen"), DataTable)
|
||||||
@@ -67,16 +74,20 @@ Partial Class Bancos_RepCortes
|
|||||||
|
|
||||||
|
|
||||||
#Region " C A R G A - D A T O S "
|
#Region " C A R G A - D A T O S "
|
||||||
Public Sub CargaDatos()
|
Public Sub CargaDatos()
|
||||||
Dim ObjPuntoVenta As New ClsPuntoVenta
|
|
||||||
Dim FechaI As Date = If(txtFechaVI.Text <> "", txtFechaVI.Text.ToDate, MinFecha)
|
Dim FechaI As Date = If(txtFechaVI.Text <> "", txtFechaVI.Text.ToDate, MinFecha)
|
||||||
Dim FechaF As Date = If(txtFechaVF.Text <> "", txtFechaVF.Text.ToDate, MaxFecha)
|
Dim FechaF As Date = If(txtFechaVF.Text <> "", txtFechaVF.Text.ToDate, MaxFecha)
|
||||||
|
|
||||||
|
Dim ObjPuntoVenta As New ClsPuntoVenta
|
||||||
If ObjPuntoVenta.GetVta_ReporteCortes(UsuarioActual.CveEmpresa, FechaI, FechaF, DdlSubProyectos.SelectedValue.ToEntero) Then
|
If ObjPuntoVenta.GetVta_ReporteCortes(UsuarioActual.CveEmpresa, FechaI, FechaF, DdlSubProyectos.SelectedValue.ToEntero) Then
|
||||||
GvDatos.DataSource = ObjPuntoVenta.DtResultados
|
DtCortes = ObjPuntoVenta.DtResultados.Copy()
|
||||||
GvDatos.DataBind()
|
|
||||||
UPDatos.Update()
|
|
||||||
End If
|
End If
|
||||||
ObjPuntoVenta.Dispose()
|
ObjPuntoVenta.Dispose()
|
||||||
|
|
||||||
|
GvDatos.DataSource = DtCortes
|
||||||
|
GvDatos.DataBind()
|
||||||
|
UPDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -85,6 +96,9 @@ Partial Class Bancos_RepCortes
|
|||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
If e.Row.DBCampo("CveCorte").ToString = "" Then
|
If e.Row.DBCampo("CveCorte").ToString = "" Then
|
||||||
e.Row.CssClass = "SubTotales2"
|
e.Row.CssClass = "SubTotales2"
|
||||||
|
If DtCortes IsNot Nothing Then
|
||||||
|
e.Row.FCLiteral("LtlImporteInicial").Text = DtCortes.SUMD("ImporteInicial").FormatoNumero(2)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Reference in New Issue
Block a user