138 lines
5.6 KiB
Plaintext
138 lines
5.6 KiB
Plaintext
<%@ Page Title="SIG | Reporte de Comisiones Detalle" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepComisionesDetallePS.aspx.vb" Inherits="Ventas_RepComisionesDetallePS" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
<link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" />
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.Widthall {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.dataTables_scrollHeadInner {
|
|
width: 100% !important;
|
|
background-color: #dddddd;
|
|
padding-left: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollFoot {
|
|
display: none;
|
|
position: static;
|
|
}
|
|
|
|
.table-scrollable {
|
|
margin: 0px !important;
|
|
}
|
|
|
|
.dataTables_scroll {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.table.dataTable {
|
|
margin-top: 0px !important;
|
|
}
|
|
|
|
.dataTables_scrollBody table th {
|
|
padding: 0px !important;
|
|
padding-right: 4px !important;
|
|
padding-left: 4px !important;
|
|
}
|
|
|
|
.sinlink td a {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
color: black;
|
|
font-size: small;
|
|
}
|
|
|
|
.white a{
|
|
color: white !important;
|
|
}
|
|
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Comisiones Vendedores Detalle - Producto/Servicio
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server" Visible="false"> <i class="fa fa-ad-excel"></i> Generar</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="ImgExcel" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" ClientIDMode="Static" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Comisiones con los filtros especificados" ToolTip="Listado de Comisiones" CssClass="table table-striped table-hover Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Producto/Servicio" DataField="CodigoPS" ItemStyle-Width="35%">
|
|
<ItemStyle Width="35%" />
|
|
</asp:BoundField>
|
|
<asp:BoundField HeaderText="Venta Importe" DataField="ImporteVenta" DataFormatString="{0:N2}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" >
|
|
<ItemStyle HorizontalAlign="Right" Width="10%" />
|
|
</asp:BoundField>
|
|
<asp:BoundField HeaderText="Venta Costo" DataField="CostoVenta" DataFormatString="{0:N2}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" >
|
|
<ItemStyle HorizontalAlign="Right" Width="10%" />
|
|
</asp:BoundField>
|
|
<asp:BoundField HeaderText="Venta Utilidad" DataField="UtilidadVenta" DataFormatString="{0:N2}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" >
|
|
<ItemStyle HorizontalAlign="Right" Width="10%" />
|
|
</asp:BoundField>
|
|
<asp:TemplateField HeaderText="% Utilidad">
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label1" runat="server" Text='<%# (cdbl(Eval("UtilidadVenta")) / cdbl(Eval("ImporteVenta")) * 100).Tostring("N2") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="5%" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Comision %" DataField="Comision" DataFormatString="{0:N2}%" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" >
|
|
<ItemStyle HorizontalAlign="Right" Width="5%" />
|
|
</asp:BoundField>
|
|
<asp:BoundField HeaderText="Comision Ganancia" DataField="ComisionGanancia" DataFormatString="{0:N2}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Right" >
|
|
<ItemStyle HorizontalAlign="Right" Width="15%" />
|
|
</asp:BoundField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
|
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
|
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
function OrdenarGV() {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 270;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
$('#GvDatos').DataTable({
|
|
scrollY: Alto + 'px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false
|
|
});
|
|
$('#GvDatos').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|
|
|