imprimiendo excel en compras detalle y se avanzó en el reporte de metas vendedores NOTA: Aun faltan columnas
This commit is contained in:
@@ -397,8 +397,8 @@ Partial Class Compras_RepComprasDetalle
|
|||||||
ImprimirPDF(String.Format("{0}Formatos\Remesa.rdlc", UsuarioActual.Empresa.Ruta), DtDatos.FiltraParametros("CveCompra > 0"), params, "Remesa", RDSName:="DsCompras")
|
ImprimirPDF(String.Format("{0}Formatos\Remesa.rdlc", UsuarioActual.Empresa.Ruta), DtDatos.FiltraParametros("CveCompra > 0"), params, "Remesa", RDSName:="DsCompras")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||||
GvDatos.ExportToExcel("ReporteComprasDetalles" & Now.ToShortDateString)
|
'GvDatos.ExportToExcel("ReporteComprasDetalles" & Now.ToShortDateString)
|
||||||
'GenerarPDF("EXCEL")
|
GenerarPDF("EXCEL")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub LnkPdf_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkPdf_Click(sender As Object, e As EventArgs)
|
||||||
|
|||||||
@@ -183,6 +183,21 @@
|
|||||||
<asp:Label ID="lblObjAcumulado" runat="server" Target="_blank" Text='<%# Eval("ObjAcumulado").ToString() %>'> </asp:Label>
|
<asp:Label ID="lblObjAcumulado" runat="server" Target="_blank" Text='<%# Eval("ObjAcumulado").ToString() %>'> </asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="%Var vs AA" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblVarVSAAPerc" runat="server" Target="_blank" Text='<%# Eval("VarVSAAPerc").ToString() %>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Var vs AA" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblVarVSAA" runat="server" Target="_blank" Text='<%# Eval("VarVSAA").ToString() %>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Var vs ObjAcum" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblVarVSObjAcum" runat="server" Target="_blank" Text='<%# Eval("VarVSObjAcum").ToString() %>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
|||||||
@@ -75,9 +75,21 @@ Partial Class MetasVendedores
|
|||||||
|
|
||||||
Protected Sub GV_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GV.RowDataBound
|
Protected Sub GV_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GV.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
e.Row.FCLabel("lblRealMesPorcentaje").Text = String.Format("{0}{1}", e.Row.FCLabel("lblRealMesPorcentaje").Text, "%")
|
||||||
|
e.Row.FCLabel("lblVarVSAAPerc").Text = String.Format("{0}{1}", e.Row.FCLabel("lblVarVSAAPerc").Text, "%")
|
||||||
Select Case e.Row.DataKey("Etiqueta")
|
Select Case e.Row.DataKey("Etiqueta")
|
||||||
Case "Vendedor"
|
Case "Vendedor"
|
||||||
e.Row.CssClass = "Vendedor"
|
e.Row.CssClass = "Vendedor"
|
||||||
|
e.Row.FCLabel("lblRealMes").Text = ""
|
||||||
|
e.Row.FCLabel("lblVtaMesAA").Text = ""
|
||||||
|
e.Row.FCLabel("lblObjMes").Text = ""
|
||||||
|
e.Row.FCLabel("lblRealAcumulado").Text = ""
|
||||||
|
e.Row.FCLabel("lblRealMesPorcentaje").Text = ""
|
||||||
|
e.Row.FCLabel("lblAAntAcumulado").Text = ""
|
||||||
|
e.Row.FCLabel("lblObjAcumulado").Text = ""
|
||||||
|
e.Row.FCLabel("lblVarVSAAPerc").Text = ""
|
||||||
|
e.Row.FCLabel("lblVarVSAA").Text = ""
|
||||||
|
e.Row.FCLabel("lblVarVSObjAcum").Text = ""
|
||||||
Case "Categoria"
|
Case "Categoria"
|
||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
Case "Clasificacion"
|
Case "Clasificacion"
|
||||||
|
|||||||
Reference in New Issue
Block a user