2. permitir cancelación de partida del producto de la backorder. 3. Filtro aseguradora en reportes de cxc y listado de clientes. 4. Rep CxC, personalizar columna de límite de crédito
1026 lines
70 KiB
Plaintext
1026 lines
70 KiB
Plaintext
<%@ Page Title="Reporte de CxC" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepCxC.aspx.vb" Inherits="RepCxC" %>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.ColumnaenBlanco {
|
|
background-color: #DDD;
|
|
border-color: #DDD;
|
|
}
|
|
|
|
.TextoGris {
|
|
color: gray;
|
|
}
|
|
|
|
.select2 .select2-selection__rendered {
|
|
line-height: 1;
|
|
color: #111;
|
|
height: 50px;
|
|
}
|
|
|
|
.select2 .select2-selection--multiple {
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
display: block;
|
|
height: 60px;
|
|
min-height: 20px;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
/*margin-top: 10px;*/
|
|
}
|
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
|
margin-top: 7px;
|
|
}
|
|
|
|
.select2-selection__rendered {
|
|
height: 50px;
|
|
}
|
|
|
|
#chartdiv {
|
|
width: 100%;
|
|
height: 800px;
|
|
}
|
|
|
|
#chartdiv2 {
|
|
width: 100%;
|
|
height: 800px;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="ImgImprimir" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server"> <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"></i> Excel Personalizado</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar Columnas</asp:HyperLink>
|
|
</li>
|
|
<li>
|
|
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
|
</li>
|
|
<li>
|
|
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivPersonalizarRango" ID="HplPersonalizarRango" runat="server"> <i class="fa fa-pencil"></i> Personalizar Rango de Columnas</asp:HyperLink>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBEnviarSMS" runat="server" OnClick="LBEnviarSMS_Click" data-toggle="confirmation" data-original-title="¿Está seguro que desea enviar el estado de cuenta a los clientes por SMS?" data-btn-ok-label="si"> <i class="fa fa-comments"></i> Estado de cuenta por SMS</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBEnviarCorreo" runat="server" OnClick="LBEnviarCorreo_Click" data-toggle="confirmation" data-original-title="¿Está seguro que desea enviar el estado de cuenta a los clientes por correo?" data-btn-ok-label="si"> <i class="fa fa-envelope"></i> Estado de cuenta por Correo</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkDescargarSegmentos" runat="server" Visible="false" OnClick="LnkDescargarSegmentos_Click"><i class="fa fa-credit-card"></i> Generar Buro de Crédito</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="ImgExcel" />
|
|
<asp:PostBackTrigger ControlID="ImgImprimir" />
|
|
<asp:PostBackTrigger ControlID="LnkDescargarSegmentos" />
|
|
<asp:PostBackTrigger ControlID="ImgExcelPersonalizado" />
|
|
</Triggers>
|
|
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkVerGrafica" OnClick="LnkVerGrafica_Click" runat="server"><i class="fa fa-signal"></i> Ver Gráfica</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte de CxC
|
|
</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" style="" id="filtroprlcXc">
|
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
|
<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">
|
|
<div class="col-md-1 truncate">
|
|
Cliente:
|
|
|
|
</div>
|
|
<div class="col-md-2 ">
|
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClientesWS" 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" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
|
|
<asp:Label runat="server" ID="LblSubProyecto" CssClass="col-md-1">SubProyecto:</asp:Label>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate">
|
|
Grupo:
|
|
|
|
</div>
|
|
<div class="col-md-2 truncate">
|
|
<asp:DropDownList ID="DdlGrupo" runat="server" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Text="Año" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Mes" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Año/Mes" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="Fecha" Value="4"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Text="Cliente" Value="5"></asp:ListItem>
|
|
<asp:ListItem Text="Sucursal" Value="6"></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="Límite de Crédito" Value="11"></asp:ListItem>
|
|
<asp:ListItem Text="Tipo Cliente" Value="12"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none;">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate">
|
|
Vendedor:
|
|
|
|
</div>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlVendedor" runat="server" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate" title="Fecha Inicio Documento" data-toggle="tooltip" data-placement="top">
|
|
Fecha Inicio Docto:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<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" title="Fecha Fin Documento" data-toggle="tooltip" data-placement="top">
|
|
Fecha Fin Docto:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<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>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-1 truncate">
|
|
Registró:
|
|
|
|
</div>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlUsuario" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate">
|
|
Responsable:
|
|
|
|
</div>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlResponsable" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">
|
|
Tipo Docto:
|
|
|
|
</div>
|
|
<div class="col-md-2 " style="padding-bottom: 10px;">
|
|
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
|
<asp:ListItem Selected="True" Value="Ing" Text="Ingresos"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="Rem" Text="Remisión"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="Ant" Text="Anticipos"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="Egs" Text="Egresos"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="IxC" Text="Ingresos X Comp"></asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="Dev" Text="Devolución"></asp:ListItem>
|
|
</asp:ListBox>
|
|
<%-- <asp:DropDownList ID="DdlTipoDocto" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Value="Ing" Text="Ingresos"></asp:ListItem>
|
|
<asp:ListItem Value="Rem" Text="Remisión"></asp:ListItem>
|
|
<asp:ListItem Value="Ant" Text="Anticipos"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">
|
|
Estatus Cobranza:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlCobranzaEstatus" DataValueField="CveCobranzaEstatus" DataTextField="CobranzaEstatus" runat="server" CssClass="form-control select2me">
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" data-toggle="tooltip" title="Fecha Vencimiento Inicial">
|
|
Fecha Venc. Inicial:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<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="txtFechaVI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendarioVI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtFechaVI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="txtFechaVI" PopupButtonID="imgCalendarioVI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFechaVI" 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="CompareValidator1" runat="server" ControlToValidate="txtFechaVI" 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="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="CompareValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1 truncate" data-toggle="tooltip" title="Fecha Vencimiento Final">
|
|
Fecha Venc. Final:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<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="txtFechaVF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendarioVF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtFechaVF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="txtFechaVF" PopupButtonID="imgCalendarioVF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFechaVF" 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="CompareValidator2" runat="server" ControlToValidate="txtFechaVF" 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="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="CompareValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">
|
|
Corte A:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<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="txtCorteA" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendarioCA" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtCorteA" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="txtCorteA" PopupButtonID="imgCalendarioCA" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCorteA" Display="None" ErrorMessage="El campo <b>''Corte A''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="txtCorteA" 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="ValidatorCalloutExtender5" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator3" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" HighlightCssClass="vco" TargetControlID="CompareValidator3" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">
|
|
Estatus Cliente:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlEstatusCliente" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Inactivos" Value="0"></asp:ListItem>
|
|
<asp:ListItem Text="Activos" Value="1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-1 truncate" title="Clasificación Cliente" data-toggle="tooltip" data-placement="top">
|
|
Clasificación Cliente:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
|
</div>
|
|
|
|
<div id="DivEmpresasFiltro" runat="server" visible="false">
|
|
<div class="col-md-1 truncate">
|
|
Empresas:
|
|
|
|
</div>
|
|
<div class="col-md-2 " style="padding-bottom: 10px;">
|
|
<asp:ListBox ID="DdlEmpresas" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server" DataTextField="Empresa" DataValueField="CveEmpresa"></asp:ListBox>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
|
Tipo Cliente:
|
|
|
|
</div>
|
|
|
|
<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 class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
|
Moneda:
|
|
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlMoneda" runat="server" AppendDataBoundItems="true" 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:ListItem Text="Pesos" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Dolares" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top" id="divLineaAdicional1" runat="server" visible="false">
|
|
Linea Adicional:
|
|
|
|
</div>
|
|
<div class="col-md-2" id="divLineaAdicional2" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlTieneLineaAdicional" runat="server" AppendDataBoundItems="true" 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:ListItem Text="Solo lineas adicionales" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Sin lineas adicionales" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate" title="Contrato:" data-toggle="tooltip" data-placement="top" id="divContrato1" visible="false" runat="server">
|
|
Contrato:
|
|
|
|
</div>
|
|
<div class="col-md-2" runat="server" id="divContrato" visible="false">
|
|
<asp:DropDownList ID="DdlContrato" runat="server" AppendDataBoundItems="true" DataTextField="TituloInfo" DataValueField="CveContrato" 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>
|
|
<div class="col-md-1 truncate" title="Aseguradora:" data-toggle="tooltip" data-placement="top">
|
|
Aseguradora:
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlAseguradora" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Todo" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Aseguradora" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="No Aseguradora" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False"
|
|
EmptyDataText="No se encontraron Ventas con los filtros especificados" ToolTip="Listado de Ventas"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-rows="2" GridLines="None" AllowPaging="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
Grupo
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
</asp:TemplateField>
|
|
|
|
<%--Nuevo R: 2/09/2017--%>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
Código Cliente
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCodigoCl" runat="server" Text='<%# Eval("CodigoCliente") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
</asp:TemplateField>
|
|
|
|
<%--Nuevo R: 25/09/2017--%>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
Nombre Corto
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombreCorto" runat="server" Text='<%# Eval("NombreCorto") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
Saldo
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" BackColor="LightGray" />
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna1" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna2" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna3" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna4" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna5" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna6" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna7" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna8" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplColumna9" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Total">
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="HplPorVencer" runat="server" Text='<%# Eval("por_vencer", "{0:N2}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" BackColor="LightGray" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
Ventas
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="LtlVentas" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
Saldo
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="LtlSaldo1" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
Resta
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="LtlVentasRecuperado" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
% Recup.
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="LtlPorRecuperado" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
% X Recup.
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink CssClass="Texto" ID="LtlPorPorRecuperar" runat="server"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
SubTotal Pend
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label CssClass="TextoGris" ID="LtlSubtotalP" runat="server" Text='<%# Eval("SubtotalPendiente", "{0:N2}") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
IVA Pend
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label CssClass="TextoGris" ID="LtlIVAP" runat="server" Text='<%# Eval("IVAPendiente", "{0:N2}") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
IEPS Pend
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label CssClass="TextoGris" ID="LtlIEPSP" runat="server" Text='<%# Eval("IEPSPendiente", "{0:N2}") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>
|
|
Límite de Crédito
|
|
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label CssClass="TextoGris" ID="LtlLimiteCredito" runat="server" Text='<%# Eval("LimiteCredito", "{0:N2}") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</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-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="LblTitulo1" runat="server" ClientIDMode="Static" Text="Personalizar Columnas"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:CheckBox ID="ChkVentasVsSaldo" runat="server" Text="" Checked="False" />
|
|
<label for="ChkVentasSaldo">Ventas VS Saldo </label>
|
|
<br />
|
|
<asp:CheckBox ID="ChkCodigoCl" runat="server" Text="" Checked="False" />
|
|
<label for="ChkcodigoCl">Código Cliente </label>
|
|
<br />
|
|
<asp:CheckBox ID="ChkNombreCorto" runat="server" Text="" Checked="False" />
|
|
<label for="ChkNombreCorto">Nombre Corto </label>
|
|
<br />
|
|
<asp:CheckBox ID="ChkSubTotalP" runat="server" Text="" Checked="False" />
|
|
<label for="ChkNombreCorto">SubTotal Pendiente </label>
|
|
<br />
|
|
<asp:CheckBox ID="ChkIVAP" runat="server" Text="" Checked="False" />
|
|
<label for="ChkNombreCorto">IVA Pendiente </label>
|
|
<br />
|
|
<asp:CheckBox ID="ChkIEPSP" runat="server" Text="" Checked="False" />
|
|
<label for="ChkNombreCorto">IEPS Pendiente </label>
|
|
<br />
|
|
<asp:CheckBox ID="ChkLimiteCredito" runat="server" Text="" Checked="False" />
|
|
<label for="ChkLimiteCredito">Límite de Crédito </label>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnPersonalizar" runat="server" Text="Personalizar" class="btn btn-primary" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpPersonalizarRango" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivPersonalizarRango" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Personalizar Rango de Columnas"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpBodyPersonalizar" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="btn-group pull-right">
|
|
<asp:Button ID="BtnAgregarRango" CssClass="btn green-haze btn-outline btn-circle btn-sm" OnClick="BtnAgregarRango_Click" runat="server" Text="Agregar" />
|
|
</div>
|
|
<br />
|
|
<br />
|
|
<asp:GridView ID="GvPersonalizarRango" runat="server" AutoGenerateColumns="False"
|
|
EmptyDataText="No se encontraron columnas" ToolTip="Listado de Columnas"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn"
|
|
OnRowDataBound="GvPersonalizarRango_RowDataBound" GridLines="None" AllowPaging="False" DataKeyNames="Tipo,RangoInicial,RangoFinal,Objetivo">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Tipo" DataField="TipoEscrito" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField HeaderText="Rango Incial" DataField="RangoInicial" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Rango Final" DataField="RangoFinal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Objetivo" DataField="Objetivo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="LnkEditar_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
|
<asp:LinkButton ID="imgD" runat="server" OnClick="LnkEliminar_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el rango?" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnPersonalizarRango" OnClick="BtnPersonalizarRango_Click" runat="server" Text="Personalizar" class="btn btn-primary" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpPersonalizarRangoEditar" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivPersonalizarRangoEditar" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="Label3" runat="server" ClientIDMode="Static" Text="Personalizar Rango de Columnas"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpBodyEdit" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipo" CssClass="form-control select2me " runat="server" AppendDataBoundItems="true" Style="width: 100%">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Vencido" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Por Vencer" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipo" runat="server" ControlToValidate="DdlTipo" Display="None" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor seleccionelo." ValidationGroup="GrpRangoEditar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECTipo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipo"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlTipo.ClientID.ToString()%>">Tipo:</label>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtRI" CssClass="form-control" runat="server"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVRI" runat="server" ControlToValidate="TxtRI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Rango Inicial''</b> es necesario, por favor ingréselo." ValidationGroup="GrpRangoEditar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCORI" runat="server" HighlightCssClass="vco" TargetControlID="RFVRI"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros1" runat="server" TargetControlID="TxtRI" FilterType="Custom, Numbers" ValidChars="." />
|
|
<label for="<%= TxtRI.ClientID.ToString()%>">Rango Inicial:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtRF" CssClass="form-control" runat="server"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVRF" runat="server" ControlToValidate="TxtRF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Rango Final''</b> es necesario, por favor ingréselo." ValidationGroup="GrpRangoEditar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETxtRF" runat="server" HighlightCssClass="vco" TargetControlID="RFVRF"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtRF" FilterType="Custom, Numbers" ValidChars="." />
|
|
<label for="<%= TxtRF.ClientID.ToString()%>">Rango Final:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label for="<%= ChkMayor.ClientID.ToString()%>">Mayor que el Rango Inicial:</label>
|
|
<asp:CheckBox ID="ChkMayor" AutoPostBack="true" OnCheckedChanged="ChkMayor_CheckedChanged" runat="server" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtRObjetivo" CssClass="form-control" runat="server"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtRObjetivo" runat="server" ControlToValidate="TxtRObjetivo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Objetivo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpRangoEditar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" HighlightCssClass="vco" TargetControlID="RFVRI"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtRObjetivo" FilterType="Custom, Numbers" ValidChars="." />
|
|
<label for="<%= TxtRObjetivo.ClientID.ToString()%>">Objetivo:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnGuardarPersonalizarRangoEditar" OnClick="BtnGuardarPersonalizarRangoEditar_Click" runat="server" Text="Aceptar" class="btn btn-primary" ValidationGroup="GrpRangoEditar" />
|
|
<asp:Button ID="BtnCancelarPersonalizarRangoEditar" Text="Cancelar" runat="server" OnClick="BtnCancelarPersonalizarRangoEditar_Click" class="btn btn-default" />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpTipoCambio" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivTipoCambio" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<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="Cambiar Tipo Cambio de Dólares"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpBodyTipoCambio" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:RadioButtonList runat="server" ID="RblTipoCambio" AutoPostBack="true">
|
|
<asp:ListItem Selected="true" Text="Moneda Original" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Dólares en Tipo Cambio de la Fecha Venta" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Tipo Cambio Especifico" Value="3"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
|
|
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
|
Especifico:
|
|
|
|
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnTipoCambio" runat="server" Text="Aceptar" class="btn btn-primary" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</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">
|
|
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%">
|
|
<ajax:TabPanel ID="TabVencidoPorVencer" runat="server" HeaderText="Vencido/Por Vencer">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel runat="server" ID="UpGraficaVencidoPorVencer" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-2"></div>
|
|
<label class="col-md-1 truncate">Top:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlMostrarGraficaVencidoPorVencer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlMostrarGraficaVencidoPorVencer_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Top 10" Value="10"></asp:ListItem>
|
|
<asp:ListItem Text="Top 20" Value="20"></asp:ListItem>
|
|
<asp:ListItem Text="Top 50" Value="50"></asp:ListItem>
|
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 truncate"> Ver:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlVerGraficaVencidoPorVencer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlVerGraficaVencidoPorVencer_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Vencido" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Por Vencer" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div id="chartdiv2"></div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel ID="TabTotales" runat="server" HeaderText="Totales">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel runat="server" ID="UpGraficaTotales" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-1"></div>
|
|
<label class="col-md-1 truncate">Top:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlMostrarGraficaTotales" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlMostrarGraficaTotales_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Top 10" Value="10"></asp:ListItem>
|
|
<asp:ListItem Text="Top 20" Value="20"></asp:ListItem>
|
|
<asp:ListItem Text="Top 50" Value="50"></asp:ListItem>
|
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</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="Saldo" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Total Vencido" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Total Por Vencer" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div id="chartdiv"></div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
</ajax:TabContainer>
|
|
</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 CargaGraficaVencidoPorVencer(data, graph) {
|
|
var chart = AmCharts.makeChart("chartdiv2", {
|
|
"type": "serial",
|
|
"theme": "light",
|
|
"legend": {
|
|
"useGraphSettings": true,
|
|
"valueWidth": 150
|
|
},
|
|
"dataProvider": data,
|
|
"startDuration": 0.5,
|
|
"graphs": graph,
|
|
"chartCursor": {
|
|
"cursorAlpha": 0,
|
|
"zoomable": false
|
|
},
|
|
"categoryField": "categoria",
|
|
"categoryAxis": {
|
|
"gridPosition": "start",
|
|
"axisAlpha": 0,
|
|
"fillAlpha": 0.05,
|
|
"fillColor": "#000000",
|
|
"gridAlpha": 0,
|
|
"position": "top"
|
|
},
|
|
"export": {
|
|
"enabled": true,
|
|
"position": "bottom-right"
|
|
}
|
|
});
|
|
}
|
|
|
|
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>
|