861 lines
61 KiB
Plaintext
861 lines
61 KiB
Plaintext
<%@ Page Title="Reporte de Ventas - Detalle" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepVentaDetalle.aspx.vb" Inherits="RepVentaDetalle" EnableEventValidation="false" %>
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.select2 .select2-selection__rendered {
|
|
line-height: 1;
|
|
color: #111;
|
|
}
|
|
|
|
.select2 .select2-selection--multiple {
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
display: block;
|
|
min-height: 20px;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.select2-selection__rendered {
|
|
margin-top: 0px;
|
|
height: 25px;
|
|
}
|
|
|
|
.select2-selection {
|
|
margin-top: 0px;
|
|
height: 31px;
|
|
}
|
|
|
|
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
|
border: none;
|
|
outline: 0;
|
|
}
|
|
|
|
#chartdiv {
|
|
width: 100%;
|
|
height: 500px;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="ImgImprimir" runat="server" Enabled="false"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server" Visible="true"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcelVSH" runat="server" Visible="false"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcelPersonalizado" runat="server" Visible="false"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel Personalizado</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<%--<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar Columnas</asp:HyperLink>--%>
|
|
<asp:LinkButton ID="LnkPersonalizar" OnClick="LnkPersonalizar_Click" runat="server"><i class="fa fa-pencil"></i>Personalizar Columnas</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="BtnDescargarPDF" runat="server"> <i class="fa fa-download"></i> Descarga PDFs</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="BtnDescargarXML" runat="server"> <i class="fa fa-file-o"></i> Descargar XML</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkVerGrafica" OnClick="LnkVerGrafica_Click" runat="server"><i class="fa fa-signal"></i> Ver Grafica</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="ImgImprimir" />
|
|
<asp:PostBackTrigger ControlID="ImgExcel" />
|
|
<asp:PostBackTrigger ControlID="ImgExcelVSH" />
|
|
<asp:PostBackTrigger ControlID="ImgExcelPersonalizado" />
|
|
<asp:PostBackTrigger ControlID="BtnDescargarPDF" />
|
|
<asp:PostBackTrigger ControlID="BtnDescargarXML" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="HA" runat="Server">
|
|
|
|
<%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="btn-group pull-right btn-separete">
|
|
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>--%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte de Ventas - Detalle
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
<div class="titlefiltros caption">
|
|
<div class="row">
|
|
<label class="col-md-1">Tipo: </label>
|
|
<div class="col-md-2">
|
|
<asp:ListBox ID="DdlTipoComprobante" AutoPostBack="true" OnTextChanged="DdlTipoComprobante_SelectedIndexChanged" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
|
<asp:ListItem Text="Ingresos" Value="Ing"></asp:ListItem>
|
|
<asp:ListItem Text="Egresos" Value="Egs"></asp:ListItem>
|
|
<asp:ListItem Text="Remisión" Value="Rem"></asp:ListItem>
|
|
<asp:ListItem Text="Cotización" Value="Cot"></asp:ListItem>
|
|
<asp:ListItem Text="Anticipos" Value="Ant"></asp:ListItem>
|
|
<asp:ListItem Text="Pedido" Value="Ped"></asp:ListItem>
|
|
<asp:ListItem Text="Devolucion" Value="Dev"></asp:ListItem>
|
|
</asp:ListBox>
|
|
<%-- <asp:DropDownList CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" ID="DdlTipoComprobante" runat="server" OnSelectedIndexChanged="DdlTipoComprobante_SelectedIndexChanged" AutoPostBack="true">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos" Value="Ing"></asp:ListItem>
|
|
<asp:ListItem Text="Egresos" Value="Egs"></asp:ListItem>
|
|
<asp:ListItem Text="Remisión" Value="Rem"></asp:ListItem>
|
|
<asp:ListItem Text="Cotización" Value="Cot"></asp:ListItem>
|
|
<asp:ListItem Text="Anticipos" Value="Ant"></asp:ListItem>
|
|
<asp:ListItem Text="Pedido" Value="Ped"></asp:ListItem>
|
|
<asp:ListItem Text="Devolucion" Value="Dev"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">
|
|
Fecha Inicio:
|
|
|
|
</div>
|
|
<div class="col-md-1" style="min-width: 115px">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<div class="col-md-1 truncate">
|
|
Fecha Fin:
|
|
|
|
</div>
|
|
<div class="col-md-1" style="min-width: 115px">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<label class="col-md-1 ">Grupo:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlGrupo" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<%-- <asp:ListItem Text="Año" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Mes" Value="2"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Text="Año/Mes" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="Fecha" Value="4"></asp:ListItem>
|
|
<asp:ListItem Text="Cliente" Value="5"></asp:ListItem>
|
|
<asp:ListItem Text="Sucursal" Value="6"></asp:ListItem>
|
|
<asp:ListItem Text="Corte" Value="16"></asp:ListItem>
|
|
<asp:ListItem Text="Vendedor" Value="7"></asp:ListItem>
|
|
<asp:ListItem Text="Usuario" Value="8"></asp:ListItem>
|
|
<asp:ListItem Text="Estatus Fact." Value="9"></asp:ListItem>
|
|
<asp:ListItem Text="% IVA" Value="10"></asp:ListItem>
|
|
<asp:ListItem Text="Año Ejec" Value="11"></asp:ListItem>
|
|
<asp:ListItem Text="Mes Ejec" Value="12"></asp:ListItem>
|
|
<asp:ListItem Text="Año/Mes Ejec" Value="13"></asp:ListItem>
|
|
<asp:ListItem Text="Fecha Ejec" Value="14"></asp:ListItem>
|
|
<asp:ListItem Text="Sucursal Ejec" Value="15"></asp:ListItem>
|
|
<asp:ListItem Text="Año/Mes Sucursal" Value="17"></asp:ListItem>
|
|
<asp:ListItem Text="% IVA Sucursal" Value="18"></asp:ListItem>
|
|
<asp:ListItem Text="Centro de Costo" Value="19"></asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none">
|
|
<div class="row">
|
|
<asp:Label ID="LblProyecto" runat="server" class="col-md-1 truncate">Proyecto:</asp:Label>
|
|
<div runat="server" id="DivProyecto" class="col-md-2">
|
|
<asp:DropDownList ID="DdlProyecto" runat="server" AutoPostBack="true" AppendDataBoundItems="true" DataTextField="Proyecto" DataValueField="CveProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me"></asp:DropDownList>
|
|
</div>
|
|
<asp:Label ID="LblSubProyecto" runat="server" class="col-md-1 truncate">SubProyecto:</asp:Label>
|
|
<div runat="server" id="DivSubProyecto" class="col-md-2">
|
|
<asp:ListBox ID="DdlSubProyecto" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
|
<%-- <asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
<label class="col-md-1 ">Cliente:</label>
|
|
<div class="col-md-2">
|
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClientes" Width="100%" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
|
<%-- <asp:DropDownList ID="DdlClientes" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
<label class="col-md-1 truncate">Vendedor:</label>
|
|
<div class="col-md-2">
|
|
<asp:ListBox ID="DdlVendedor" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
|
<%-- <asp:DropDownList ID="DdlVendedor" runat="server" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-1 ">Estatus:</label>
|
|
<div class="col-md-2">
|
|
<asp:ListBox ID="DdlEstatus" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="EstatusFactura" DataValueField="CveEstatusFactura" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
|
<%--<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="true" DataTextField="EstatusFactura" DataValueField="CveEstatusFactura" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
<label runat="server" id="LblSubProyectoEjecucion" class="col-md-1 truncate">SubProyecto Ejecución:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSubProyectoEjecucion" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 truncate">Fecha I. Ejecución:</label>
|
|
<div class="col-md-2">
|
|
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 140px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaIEjec" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalFechaIEjec" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaIEjec" runat="server" TargetControlID="TxtFechaIEjec" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CalFechaIEjec" runat="server" TargetControlID="TxtFechaIEjec" PopupButtonID="ImgCalFechaIEjec" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaIEjec" runat="server" ControlToValidate="TxtFechaIEjec" Display="None" ErrorMessage="El campo <b>''Fecha Inicial Ejecución''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaIEjec" runat="server" ControlToValidate="TxtFechaIEjec" Display="None" ErrorMessage="El campo <b>''Fecha Inicial Ejecución''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaIEjec1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaIEjec" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaIEjec2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaIEjec" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 truncate">Fecha F. Ejecución:</label>
|
|
<div class="col-md-2">
|
|
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 140px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaFEjec" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalFechaFEjec" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaFEjec" runat="server" TargetControlID="TxtFechaFEjec" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CalFechaFEjec" runat="server" TargetControlID="TxtFechaFEjec" PopupButtonID="ImgCalFechaFEjec" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFEjec" runat="server" ControlToValidate="TxtFechaFEjec" Display="None" ErrorMessage="El campo <b>''Fecha Final Ejecución''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaFEjec" runat="server" ControlToValidate="TxtFechaFEjec" Display="None" ErrorMessage="El campo <b>''Fecha Final Ejecución''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaFEjec1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFEjec" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaFEjec2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaFEjec" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-1 truncate">Usuario:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlUsuario" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cli.:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
|
</div>
|
|
|
|
<label title="Condiciones de Pago" data-toggle="tooltip" class="col-md-1 truncate">Condiciones Pago:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlCondicionesPago" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Crédito" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Contado" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label title="Tipo Cliente" data-toggle="tooltip" class="col-md-1 truncate">Tipo Cliente:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTipoCliente" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Frecuente" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Venta Mostrador" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-1 truncate">Lectura administrativa:</label>
|
|
<div class="col-md-2">
|
|
<asp:CheckBox ID="ChkLecturaAdmin" runat="server" Checked="false" CssClass="input-sm" />
|
|
</div>
|
|
<label class="col-md-1 truncate">Relación:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTipoRelacion" CssClass=" form-control input-sm select2me" runat="server" Width="100%" DataTextField="SATTipoRelacion" DataValueField="CveTipoRelacion">
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<asp:Label runat="server" ID="LblServicioDomicilioFiltro" class="col-md-1 truncate" Visible="false">Servicio Domicilio:</asp:Label>
|
|
<div class="col-md-2" runat="server" id="DVServicioDomicilio" visible="false">
|
|
<asp:DropDownList ID="DdlServicioDomicilio" CssClass=" form-control input-sm select2me" runat="server" Width="100%">
|
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
|
<asp:ListItem Value="1">Si</asp:ListItem>
|
|
<asp:ListItem Value="0">No</asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" data-sort="true" Width="99%" DataKeyNames="CveVenta,TipoDocumento,SerieFolio" EmptyDataText="No se encontraron Ventas con los filtros especificados" ToolTip="Listado de Ventas" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None">
|
|
<Columns>
|
|
<%-- 0--%>
|
|
<asp:TemplateField HeaderText="Tipo Docto">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipo" runat="server" Text='<%# Eval("TipoDocumento") %>'></asp:Literal>
|
|
<asp:HiddenField ID="HdnTipo" runat="server" Value='<%# Eval("TipoDocumento") %>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 1--%>
|
|
<asp:TemplateField HeaderText="Folio" ItemStyle-Width="100px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("SerieFolio") %>'></asp:Literal>
|
|
<asp:HiddenField ID="HdnFolio" runat="server" Value='<%# Eval("SerieFolio") %>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 2--%>
|
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="center">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 3--%>
|
|
<asp:TemplateField HeaderText="Cliente" Visible="True">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCliente" runat="server" Text='<%# Eval("Nombre", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 4--%>
|
|
<asp:TemplateField HeaderText="SubTotal" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 5--%>
|
|
<asp:TemplateField HeaderText="Descuento" Visible="True" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescuento" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 6--%>
|
|
<asp:TemplateField HeaderText="Motivo Descuento" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlMotivoDescuento" runat="server" Text='<%# Eval("MotivoDescuento", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 7--%>
|
|
<asp:TemplateField HeaderText="Amortización" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAmortizacion" runat="server" Text='<%# Eval("Amortizacion", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 8--%>
|
|
<asp:TemplateField HeaderText="IVA" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 9--%>
|
|
<asp:TemplateField HeaderText="IEPS" Visible="false" ItemStyle-HorizontalAlign="Right" >
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlIEPS" runat="server" Text='<%# Eval("IEPS", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 10--%>
|
|
<asp:TemplateField HeaderText="Ret. IVA" Visible="false" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlRetIVA" runat="server" Text='<%# Eval("RetIVA", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 11--%>
|
|
<asp:TemplateField HeaderText="Ret. ISR" Visible="false" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlRetISR" runat="server" Text='<%# Eval("RetISR", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 12--%>
|
|
<asp:TemplateField HeaderText="Imp. Locales" Visible="false" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlImpLocales" runat="server" Text='<%# Eval("TotalImpuestos", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 13--%>
|
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 14--%>
|
|
<asp:TemplateField HeaderText="Mon">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlMon" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 15--%>
|
|
<asp:TemplateField HeaderText="Sucursal" Visible="True">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 16--%>
|
|
<asp:TemplateField HeaderText="Suc Ejecución" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucursalE" runat="server" Text='<%# Eval("SubProyectoEjecucion", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 17--%>
|
|
<asp:TemplateField HeaderText="Código Cliente" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCodCliente" runat="server" Text='<%# Eval("Codigo", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 18--%>
|
|
<asp:TemplateField HeaderText="Sucursal Cliente" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucCliente" runat="server" Text='<%# Eval("SucursalCliente", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 19--%>
|
|
<asp:TemplateField HeaderText="Suc Cobranza" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucCobranza" runat="server" Text='<%# Eval("SubProyectoCobranza", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 20--%>
|
|
<asp:TemplateField HeaderText="Sucursal Ejecución" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucServicio" runat="server" Text='<%# Eval("SubProyectoEjecucion", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 21--%>
|
|
<asp:TemplateField HeaderText="Vendedor" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlVendedor" runat="server" Text='<%# Eval("Vendedor", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 22--%>
|
|
<asp:TemplateField HeaderText="Estatus">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatusFactura" runat="server" Text='<%# Eval("EstatusFactura", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 23--%>
|
|
<asp:TemplateField HeaderText="Motivo Cancelación" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlMotivoCancelacion" runat="server" Text='<%# Eval("MotivoCancelacion", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 24--%>
|
|
<asp:TemplateField Visible="false" HeaderText="Se Timbró">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSeTimbro" runat="server" Text='<%# Eval("SeTimbro") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 25--%>
|
|
<asp:TemplateField Visible="false" HeaderText="Se envió Mail">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSeEnvioMail" runat="server" Text='<%# Eval("EnvioMail") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 26--%>
|
|
<asp:TemplateField HeaderText="Cuenta Contable" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCtaContable" runat="server" Text='<%# Eval("CuentaContable") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 27--%>
|
|
<asp:TemplateField HeaderText="Usuario" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 28--%>
|
|
<asp:TemplateField HeaderText="Observaciones" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlObservaciones" runat="server" Text='<%# Eval("Observaciones", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 29--%>
|
|
<asp:TemplateField HeaderText="Folio Fiscal (UUID)" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFolioFiscal" runat="server" Text='<%# Eval("FolioFiscal") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 30--%>
|
|
<asp:TemplateField HeaderText="Mail Cliente" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlMailCliente" runat="server" Text='<%# Eval("MailCliente") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 31--%>
|
|
<asp:TemplateField HeaderText="Estatus Facturación" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatusFacturacion" runat="server" Text='<%# Eval("EstatusCot") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 32--%>
|
|
<asp:TemplateField HeaderText="Factura de Cotización" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFacturaCotizacion" runat="server" Text='<%# Eval("FolioVenta") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 33--%>
|
|
<asp:TemplateField HeaderText="Saldo" Visible="false" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<%-- 34--%>
|
|
<asp:TemplateField HeaderText="Orden Compra" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lTLOrdenCompra" runat="server" Text='<%# Eval("OrdenCompra") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 35--%>
|
|
<asp:TemplateField HeaderText="Pedido Contrato" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lTLPedidoContrato" runat="server" Text='<%# Eval("PedidoContrato") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
|
|
|
|
<%-- 36--%>
|
|
<asp:TemplateField HeaderText="Metodo de Pago" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlMetodoPago" runat="server" Text='<%# Eval("MetodoPago") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 37--%>
|
|
<asp:TemplateField HeaderText="Forma de Pago" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFormaPago" runat="server" Text='<%# Eval("FormaPago") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%-- 38--%>
|
|
<asp:TemplateField HeaderText="Uso CFDI" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsoCFDI" runat="server" Text='<%# Eval("UsoCFDI") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel ID="UpGvVsh" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvVsh" runat="server" AutoGenerateColumns="False" Visible="false" ToolTip="Listado de Ventas" CssClass="table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="CC SERVICIO">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucursalE" runat="server" Text='<%# Eval("SubProyectoEjecucion", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="CC COBRO">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucCobranza" runat="server" Text='<%# Eval("SubProyectoCobranza", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Folio">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="NOMBRE" Visible="True">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCliente" runat="server" Text='<%# Eval("Nombre", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="SubTotal">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Impuesto">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Total">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UPPersonalizar" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivPersonalizar" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content SucursalCobranza-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="Label1" runat="server" ClientIDMode="Static" Text="Personalizar Columnas"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<table class="table table-striped nobordertop table-advance table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkTipoDocto" runat="server" Text=" *Tipo Documento" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursal" runat="server" Text=" *Sucursal" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursalCobranza" runat="server" Text=" Sucursal Cobranza" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkFolio" runat="server" Text=" *Folio" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkEstatusFactura" runat="server" Text=" *Estatus de Factura" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursalEjecucion" runat="server" Text=" Sucursal Ejecución" /></td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkFecha" runat="server" Text=" *Fecha" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkVendedor" runat="server" Text=" Vendedor" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text=" Motivo Cancelacion" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSubTotal" runat="server" Text=" *SubTotal" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkCodigo" runat="server" Text=" Código Cliente" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkUsuario" runat="server" Text=" Usuario" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkDescuento" runat="server" Text=" *Descuento" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkCliente" runat="server" Text=" *Cliente" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkEstatusFacturacion" runat="server" Text=" Estatus Facturación" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkIVA" runat="server" Text=" *IVA" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkMailCliente" runat="server" Text=" Mail Cliente" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkFolioFacturacion" runat="server" Text=" Factura Cotización" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkRetIVA" runat="server" Text=" Ret. IVA" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkCuentaContable" runat="server" Text=" Cuenta Contable" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkObservaciones" runat="server" Text=" Observaciones" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkRetISR" runat="server" Text=" Ret. ISR" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSucursalCliente" runat="server" Text=" Sucursal Cliente" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkOrdenCompra" runat="server" Text=" OrdenCompra" /></td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkTotalImpuestos" runat="server" Text=" Impuestos Locales" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSaldo" runat="server" Text=" Saldo" Checked="false" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkPedidoContrato" runat="server" Text=" Pedido Contrato" /></td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkTotal" runat="server" Text=" *Total" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkFolioFiscal" runat="server" Text=" Folio Fiscal (UUID)" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text=" Motivo Descuento" /></td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkMoneda" runat="server" Text=" *Moneda" Checked="true" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkMetodoPago" runat="server" Text=" Metodo de Pago" Checked="false" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkAmortizacion" runat="server" Text=" Amortización" /></td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkIEPS" runat="server" Text=" *IEPS" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkFormaPago" runat="server" Text=" Forma de Pago" Checked="false" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSeTimbro" runat="server" Text=" Se Timbró" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;"></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkUsoCFDI" runat="server" Text=" Uso CFDI" Checked="false" /></td>
|
|
<td style="text-align: left;"><asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text=" Se envió Mail" /></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="row">
|
|
<div class="col-md-6" style="text-align:left">
|
|
<asp:CheckBox ID="ChkGuardarPersonalizacion" runat="server" Text=" Guarda Personalización" TextAlign="Right" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<button type="button" class="btn btn-success" data-dismiss="modal" onclick="$('#BtnPersonalizar').click();">Personalizar</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnPersonalizar" Style="display: none" ClientIDMode="Static" runat="server" Text="Personalizar" class="btn btn-success" OnClick="BtnPersonalizar_Click" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="LblTituloGrafica" runat="server" ClientIDMode="Static" Text=""></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-2"></div>
|
|
<label class="col-md-1 truncate">Grafica:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlGrafica" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlGrafica_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Pastel" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 truncate"> Ver:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlVer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlVer_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Total" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="SubTotal" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="IVA" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div id="chartdiv"></div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
|
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
|
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
|
|
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
|
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
|
|
|
<script>
|
|
|
|
function CargaGraficaBarras(data) {
|
|
|
|
var chart = AmCharts.makeChart("chartdiv", {
|
|
"type": "serial",
|
|
"theme": "light",
|
|
"dataProvider": data,
|
|
"startDuration": 2,
|
|
"valueAxes": [{
|
|
"position": "left",
|
|
"title": "Ventas"
|
|
}],
|
|
"graphs": [{
|
|
"balloonText": "[[category]]: <b>[[value]]</b> [[Moneda]]",
|
|
"colorField": "Color",
|
|
"fillAlphas": 1,
|
|
"lineAlpha": 0.1,
|
|
"type": "column",
|
|
"valueField": "Valor"
|
|
}],
|
|
"depth3D": 20,
|
|
"angle": 30,
|
|
"chartCursor": {
|
|
"categoryBalloonEnabled": false,
|
|
"cursorAlpha": 0,
|
|
"zoomable": false
|
|
},
|
|
"categoryField": "Texto",
|
|
"categoryAxis": {
|
|
"gridPosition": "start",
|
|
"labelRotation": 90
|
|
},
|
|
"export": {
|
|
"enabled": true
|
|
}
|
|
});
|
|
}
|
|
|
|
function CargaGraficaPastel(data) {
|
|
|
|
var chart = AmCharts.makeChart("chartdiv", {
|
|
"type": "pie",
|
|
"theme": "light",
|
|
"dataProvider":
|
|
data,
|
|
"valueField": "Valor",
|
|
"titleField": "Texto",
|
|
"outlineAlpha": 0.4,
|
|
"depth3D": 0,
|
|
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]% [[Moneda]])</span>",
|
|
"angle": 0,
|
|
"export": {
|
|
"enabled": true
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|