Columnas de impuestos en reporte de solicitudes recibidas sat

This commit is contained in:
2023-06-22 20:29:13 -07:00
parent bf3acd20ea
commit b7db48ac89
2 changed files with 102 additions and 7 deletions

View File

@@ -292,13 +292,13 @@
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div class="row" runat="server" id="DVResumen1" visible="false">
<div class="col-md-7" style="text-align: right">
<div class="col-md-12" style="text-align: right">
<input type="text" id="TxtBusquedaResumen" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaResumen','{0}')", GvResumen.ClientID) %>" style="display: inline-block; width: 150px;" />
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaResumen','{0}')", GvResumen.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
</div>
</div>
<div class="row" runat="server" id="DVResumen2" visible="false">
<div class="col-md-7">
<div class="col-md-12">
<asp:GridView ID="GvResumen" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False" OnRowDataBound="GvResumen_RowDataBound"
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
DataKeyNames="Fecha">
@@ -308,19 +308,60 @@
<asp:Label ID="LblMes" runat="server" Text='<%# Eval("Mes")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SIG" ItemStyle-HorizontalAlign="Right">
<asp:TemplateField HeaderText="IVA" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="LblVTotal" runat="server" Text='<%# Eval("VTotal","{0:N2}")%>'></asp:Label>
<asp:Label runat="server" Text='<%# Eval("CIVA", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SAT" ItemStyle-HorizontalAlign="Right">
<asp:TemplateField HeaderText="IEPS" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="LblCBTTotal" runat="server" Text='<%# Eval("CBTTotal","{0:N2}")%>'></asp:Label>
<asp:Label runat="server" Text='<%# Eval("CIEPS", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ret IVA" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("CRetIVA", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ret ISR" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("CRetISR", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TOTAL SIG" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="LblVTotal" runat="server" Text='<%# Eval("CTotal", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IVA" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("FIVA", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IEPS" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("FIEPS", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ret IVA" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("FRetIVA", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ret ISR" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("FRetISR", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TOTAL SAT" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="LblCBTTotal" runat="server" Text='<%# Eval("FTotal", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Diferencia" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="LblDif" runat="server" Text='<%# Eval("Dif","{0:N2}")%>'></asp:Label>
<asp:Label ID="LblDif" runat="server" Text='<%# Eval("Dif", "{0:N2}")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>

View File

@@ -83,7 +83,46 @@ Partial Class SAT_SolicitudesRecibidasSAT
If e.Row.DataKey("Fecha") = "" Then
e.Row.Attributes.Add("class", "Totales")
End If
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(2).Visible = False
End If
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(7).Visible = False
End If
End If
If e.Row.RowType = DataControlRowType.Header Then
e.Row.Cells(1).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(2).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(3).BackColor = System.Drawing.Color.FromName("#3598dc")
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(2).Visible = False
End If
e.Row.Cells(4).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(5).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(6).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(7).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(8).BackColor = System.Drawing.Color.FromName("#C46B06")
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(7).Visible = False
End If
e.Row.Cells(9).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(10).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(1).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(2).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(3).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(4).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(5).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(6).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(7).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(8).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(9).ForeColor = System.Drawing.Color.FromName("white")
e.Row.Cells(10).ForeColor = System.Drawing.Color.FromName("white")
End If
End Sub
Protected Sub GvDatos_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
@@ -139,6 +178,14 @@ Partial Class SAT_SolicitudesRecibidasSAT
LnkCFDIData.PostBackUrl = "#"
End If
End If
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(7).Visible = False
End If
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(14).Visible = False
End If
End If
If e.Row.RowType = DataControlRowType.Header Then
@@ -148,6 +195,9 @@ Partial Class SAT_SolicitudesRecibidasSAT
e.Row.Cells(4).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(5).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(6).BackColor = System.Drawing.Color.FromName("#3598dc")
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(7).Visible = false
End If
e.Row.Cells(7).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(8).BackColor = System.Drawing.Color.FromName("#3598dc")
e.Row.Cells(9).BackColor = System.Drawing.Color.FromName("#3598dc")
@@ -155,6 +205,9 @@ Partial Class SAT_SolicitudesRecibidasSAT
e.Row.Cells(11).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(12).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(13).BackColor = System.Drawing.Color.FromName("#C46B06")
If UsuarioActual.Empresa.Funcionalidad(713) <> "1" Then
e.Row.Cells(14).Visible = False
End If
e.Row.Cells(14).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(15).BackColor = System.Drawing.Color.FromName("#C46B06")
e.Row.Cells(16).BackColor = System.Drawing.Color.FromName("#C46B06")
@@ -206,6 +259,7 @@ Partial Class SAT_SolicitudesRecibidasSAT
GvResumen.DataSource = ObjCompras.DtResultados
TipoDescarga = If(ObjCompras.DtResultados.Rows.Count > 0, 1, 0)
LnkDownloadExcel.Visible = True
ElseIf DdlReporte.SelectedValue.ToEntero() = 2 Then
GvDatos.DataSource = ObjCompras.DtResultados
TipoDescarga = If(ObjCompras.DtResultados.Rows.Count > 0, 2, 0)