810 lines
48 KiB
Plaintext
810 lines
48 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ProveedoresCreditos.aspx.vb" Inherits="Bancos_ProveedoresCreditos" %>
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||
<asp:Literal ID="LtlTitulo" runat="server" Text="Pago de Créditos"></asp:Literal> <asp:Literal ID="LtlIE" runat="server"></asp:Literal>
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||
|
||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="col-md-9">
|
||
<div class="chequesie">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<div class="col-md-2 pull-right">
|
||
<a class="collapseclick pull-right" data-hiddenitem="checkesie2"></a>
|
||
<asp:HyperLink ID="HplComprobante" CssClass="btn btn-success" style="font-size:10px;" runat="server" Visible="False" Target="_blank">
|
||
<i class="fa fa-download"></i>
|
||
<%--<i class="fa fa-file " aria-hidden="true" > </i>--%> Comprobante
|
||
</asp:HyperLink>
|
||
|
||
<%--<asp:Button ID="BtnContabilizar" Text="Contabilizar" runat="server" OnClick="BtnContabilizar_Click" Visible="false" class="btn btn-success" />--%>
|
||
<%--<asp:Button ID="BtnDescontabilizar" Text="Descontabilizar" runat="server" OnClick="BtnDescontabilizar_Click" Visible="false" class="btn btn-primary" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea descontabilizar?" data-btn-ok-label="si" />--%>
|
||
<%-- <asp:Button ID="BtnEliminarPoliza" Style="display: none;" OnClick="BtnEliminarPoliza_Click" runat="server" ClientIDMode="Static" class="btn btn-primary" />--%>
|
||
<asp:HyperLink ID="HplIrPoliza" runat="server" Visible="False">
|
||
<asp:Image ID="ImgIrPoliza" ToolTip="Ir a Póliza Contable" ImageUrl="/Imagenes/Poliza.png" Height="19px" runat="server" />
|
||
</asp:HyperLink>
|
||
|
||
|
||
</div>
|
||
<label class="col-md-2 control-label">Movimiento:</label>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlTipoTransaccion" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="TipoTransaccion" DataValueField="CveTipoTransaccion" ValidationGroup="GrpGuardar">
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVTipoTransaccion" runat="server" ControlToValidate="DdlTipoTransaccion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Transaccion''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOTipoTransaccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoTransaccion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:HiddenField ID="HdnTipoTransaccion" runat="server" Value="" />
|
||
</div>
|
||
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2 control-label">Cuenta:</label>
|
||
<div class="col-md-5">
|
||
<asp:Label ID="LblCuenta" runat="server" Text=""></asp:Label>
|
||
<asp:DropDownList ID="DdlCuenta" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" ValidationGroup="GrpGuardar">
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVCuenta" runat="server" ControlToValidate="DdlCuenta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<asp:Label ID="LblEstatusIE" runat="server" Text="Activo" Visible="false"></asp:Label>
|
||
<asp:DropDownList runat="server" Visible="false" CssClass="form-control input-sm select2me" ID="DdlEstatusIE" DataValueField="CveEstatusIE" DataTextField="EstatusIE" AutoPostBack="false"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="chequesie2" id="checkesie2">
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
<asp:Label ID="LblEstatus" runat="server" Font-Size="Large" Text=""></asp:Label>
|
||
</div>
|
||
<label class="col-md-1 control-label text-right">Fecha:</label>
|
||
<div class="col-md-3">
|
||
<div class="input-group input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||
<asp:TextBox ID="TxtFechaDocumento" runat="server" CssClass="form-control"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton runat="server" ID="ImgCalendario" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||
</span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFechaDocumento" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="Calendario" runat="server" TargetControlID="TxtFechaDocumento" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaDocumento" runat="server" ControlToValidate="TxtFechaDocumento" Display="None" ErrorMessage="El campo <b>''FechaDocumento''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFechaDocumento" runat="server" ControlToValidate="TxtFechaDocumento" Display="None" ErrorMessage="El campo <b>''FechaDocumento''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaDocumento1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaDocumento" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaDocumento2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaDocumento" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2 control-label">
|
||
<asp:Label ID="LblFolio" runat="server" Text="Número:"></asp:Label></label>
|
||
<div class="col-md-2">
|
||
<asp:TextBox ID="TxtFolio" runat="server" MaxLength="14" class="form-control input-sm"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtFolio" Display="None" ErrorMessage="El campo <b>''Folio''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="col-md-4" style="text-align:right">
|
||
|
||
</div>
|
||
<label class="col-md-1 control-label text-right">Importe:</label>
|
||
<div class="col-md-2 input-icon">
|
||
<i style="margin: 0px;">$</i>
|
||
<asp:TextBox ID="TxtImporte" runat="server" MaxLength="15" CssClass="form-control input-sm" ClientIDMode="Static" Style="text-align: right;" onkeyup="FormatoMoneda(this)" AutoComplete="off"></asp:TextBox>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
<asp:Panel ID="PnlFyE" runat="server" Visible="True">
|
||
<asp:UpdatePanel ID="UPPP" class="row" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<label class="col-md-2 control-label">
|
||
<asp:Label ID="LblPagueseA" runat="server" Text="Páguese a:"></asp:Label>
|
||
</label>
|
||
<div class="col-md-4" style="padding: 0px;">
|
||
<asp:RadioButtonList ID="RBL" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" Visible="false">
|
||
<asp:ListItem Selected="True" Value="P">Proveedor</asp:ListItem>
|
||
<%-- <asp:ListItem Value="FE">Funcionario/Empleado</asp:ListItem>
|
||
<asp:ListItem Value="DD">Deudores Diversos</asp:ListItem>
|
||
<asp:ListItem Value="AC">Acreedores Diversos</asp:ListItem>
|
||
<asp:ListItem Value="DP">Doctos x pagar</asp:ListItem>
|
||
<asp:ListItem Value="C">Clientes</asp:ListItem>--%>
|
||
</asp:RadioButtonList>
|
||
<asp:HiddenField ID="HdnCveProveedor" runat="server" ClientIDMode="Static" Value="-1" />
|
||
<asp:HiddenField ID="HdnCvePersonal" runat="server" ClientIDMode="Static" Value="-1" />
|
||
<asp:HiddenField ID="HdnProvPorIVA" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:HiddenField ID="HdnProvPorRetIVA" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:HiddenField ID="HdnProvPorRetISR" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:HiddenField ID="HdnCveCliente" runat="server" ClientIDMode="Static" Value="-1" />
|
||
|
||
<asp:Button ID="BtnBuscarProveedor" runat="server" ClientIDMode="Static" Text="Buscar Proveedor" Style="display: none;" class="btn btn-primary" />
|
||
<asp:Button ID="BtnBuscarPersonal" runat="server" ClientIDMode="Static" Text="Buscar Personal" Style="display: none;" class="btn btn-primary" />
|
||
<asp:Button ID="BtnBuscarCliente" runat="server" ClientIDMode="Static" Text="Buscar Cliente" Style="display: none;" class="btn btn-primary" />
|
||
<asp:TextBox ID="TxtPagueseA" CssClass="form-control" Style="display: inline-block; margin-left: 15px;" ClientIDMode="Static" runat="server" MaxLength="70" Width="350"></asp:TextBox>
|
||
<asp:HyperLink Visible="false" ID="HplBuscar" CssClass="Texto thickbox btn btn-success" Height="28px" runat="server" NavigateUrl="/Compras/PopUpBuscarProveedor.aspx?EsThickbox=S&Opt=Fact&TB_iframe=true&height=500&width=800"><i class="fa fa-search"></i> Buscar</asp:HyperLink>
|
||
|
||
</div>
|
||
<div class="col-md-2">
|
||
<asp:CheckBox ID="ChkAbonoCuenta" Visible="false" CssClass="md-checksd" ClientIDMode="Static" runat="server" Text="Abono en Cuenta"></asp:CheckBox>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:Panel ID="PnlCredito" runat="server" Visible="true">
|
||
|
||
<asp:UpdatePanel ID="UPPCredito" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:HiddenField ID="HdnImporteCredito" runat="server" Value="0" />
|
||
<asp:HiddenField ID="HdnCveTipoCredito" runat="server" Value="0" />
|
||
|
||
<div class="col-md-4" runat="server" visible="false">
|
||
<asp:DropDownList ID="DdlFinanciera" Visible="false" Width="350px" DataTextField="Proveedor" CssClass="select2me" DataValueField="CveProveedor" runat="server" AutoPostBack="True"></asp:DropDownList>
|
||
</div>
|
||
|
||
<asp:Label ID="LblBeneficiario" class="col-md-1" runat="server" Text="" Visible="false"></asp:Label>
|
||
|
||
<div class="col-md-12" id="DVChkAplicaSaldoCreditoaldia" style="display: none;">
|
||
<i class='fa fa-minus-square' id="IChkAplicaSaldoCreditoaldia" runat="server" visible="True"></i>
|
||
<asp:CheckBox ID="ChkAplicaSaldoCreditoaldia" Enabled="false" runat="server" ClientIDMode="Static" Style="text-align: right;" Visible="True" Text="Saldo"></asp:CheckBox>
|
||
<br />
|
||
</div>
|
||
|
||
|
||
<div class="col-md-4" runat="server" visible="false">
|
||
<asp:DropDownList ID="DdlCredito" Visible="false" Width="350px" DataTextField="ReferenciaCredito" CssClass="select2me" DataValueField="CveCredito" runat="server" AutoPostBack="True"></asp:DropDownList>
|
||
</div>
|
||
|
||
<div class="col-md-12" id="DVChkFondoDeGarantia" style="display: none;">
|
||
<i class='fa fa-minus-square' id="IChkFondoDeGarantia" runat="server" visible="true"></i>
|
||
<asp:CheckBox ID="ChkFondoDeGarantia" Enabled="false" runat="server" ClientIDMode="Static" Style="text-align: right;" Visible="true" Text="Fondo de Garantia"></asp:CheckBox>
|
||
<br />
|
||
</div>
|
||
|
||
|
||
|
||
<div class="col-md-12" id="DVChkImporteOpcionDeCompra" style="display: none;">
|
||
<i class='fa fa-plus' id="IChkImporteOpcionDeCompra" runat="server" visible="true"></i>
|
||
<asp:CheckBox ID="ChkImporteOpcionDeCompra" Enabled="false" runat="server" ClientIDMode="Static" Style="text-align: right;" Visible="true" Text="Ópción Compra"></asp:CheckBox>
|
||
<br />
|
||
</div>
|
||
|
||
|
||
|
||
<div class="col-md-12" id="DVChkComplemento" style="display: none;">
|
||
<i class='fa fa-plus' id="IChkComplemento" runat="server" visible="true"></i>
|
||
<asp:CheckBox ID="ChkComplemento" Enabled="false" runat="server" ClientIDMode="Static" Style="text-align: right;" Visible="true" Text="Complemento"></asp:CheckBox>
|
||
<br />
|
||
</div>
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</asp:Panel>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Panel>
|
||
|
||
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpIEDevolucion">
|
||
<ContentTemplate>
|
||
<div class="row" visible="false" runat="server" id="trIEDevolucion">
|
||
<label class="col-md-2 control-label">Movimiento de Devolución:</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList runat="server" ID="DdlIEDevolucion" DataValueField="CveIE" DataTextField="IEDevolucion" Width="350px" CssClass="select2me" AutoPostBack="false" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Text="Seleccione" Value="-1" Selected="True" />
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVIEDevolucion" runat="server" ControlToValidate="DdlIEDevolucion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Movimiento Devolución''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEIEDevolucion" runat="server" HighlightCssClass="vco" TargetControlID="RFVIEDevolucion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div class="row">
|
||
<label class="col-md-2 control-label">Importe Letra: </label>
|
||
<div class="col-md-6">
|
||
<asp:TextBox ID="TxtImporteLetra" CssClass="form-control input-sm" Style="text-align: left;" runat="server" Width="500" ClientIDMode="Static" ReadOnly="True"></asp:TextBox>
|
||
</div>
|
||
<%--<asp:UpdatePanel runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||
<ContentTemplate>
|
||
<div runat="server" id="DivPegarImagen" class="col-md-4">
|
||
<textarea rows="1" id="pasteArea" placeholder="Pegar Imagen Aquí" style="width: 205px;"></textarea>
|
||
<img alt="" id="pastedImage" style="max-height: 100px; max-width: 200px" />
|
||
<asp:HiddenField ID="HdnImagen" ClientIDMode="Static" runat="server" />
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>--%>
|
||
</div>
|
||
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpInfoTarjeta">
|
||
<ContentTemplate>
|
||
<div class="row" visible="false" runat="server" id="DivTarjetaCredito">
|
||
<label class="col-md-2 control-label">Tarjeta: </label>
|
||
<div class="col-md-10">
|
||
<asp:Label ID="LblInfoTarjeta" runat="server" Text=""></asp:Label>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div class="row">
|
||
<label class="col-md-2 control-label">Observaciones: </label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtObservaciones" runat="server" MaxLength="500" Width="100%" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" id="trNotificar" runat="server" visible="False">
|
||
<label class="col-md-2 control-label">Notificar: </label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtNotificarA" runat="server" MaxLength="100" Width="100%" Rows="2" TextMode="MultiLine" ClientIDMode="Static"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="UpCuentaDeposito" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div class="row" id="trCuentaDeposito" runat="server" visible="False">
|
||
<label class="col-md-2 control-label">Cuenta Depósito: </label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlCuentaDeposito" AutoPostBack="true" OnSelectedIndexChanged="DdlCuentaDeposito_SelectedIndexChanged" runat="server" DataTextField="CuentaDeposito" DataValueField="CveCuentaDeposito" CssClass="form-control input-sm select2me" Width="400px" AppendDataBoundItems="True"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVCuentaDeposito" runat="server" ControlToValidate="DdlCuentaDeposito" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta de Depósito''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECuentaDeposito" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuentaDeposito" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:ImageButton ID="ImgUpdateCuentaDeposito" ImageUrl="/Imagenes/accept.png" OnClick="ImgUpdateCuentaDeposito_Click" ValidationGroup="GrpGuardar" runat="server" />
|
||
</div>
|
||
</div>
|
||
<div class="row" id="TrReferenciaCIE" runat="server" visible="False">
|
||
<label class="col-md-2 control-label">Referencia:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtReferenciaCIE" Text="" runat="server" CssClass="form-control input-sm" Width="400px" />
|
||
<asp:RequiredFieldValidator ID="RFVReferenciaCIE" runat="server" ControlToValidate="TxtReferenciaCIE" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Referencia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEReferenciaCIE" runat="server" HighlightCssClass="vco" TargetControlID="RFVReferenciaCIE" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div class="row" id="TrCuentaDepositado" runat="server" visible="False">
|
||
<label class="col-md-2 control-label">
|
||
<asp:Literal ID="LitTextoDepositado" runat="server" Text="Depositado"></asp:Literal></label>
|
||
<div class="col-md-5">
|
||
<span>
|
||
<asp:Literal ID="LitDepositado" runat="server"></asp:Literal></span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" runat="server" id="trNotificacion" visible="false">
|
||
<label class="col-md-2 control-label">Estatus Entrega: </label>
|
||
<div class="col-md-10">
|
||
<asp:Literal Text="" runat="server" ID="LtNotificacion" />
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3">
|
||
|
||
<div>
|
||
<asp:TextBox ID="anexo" Visible ="false" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<hr />
|
||
|
||
<div id="ModalUpload" class="modal ADS 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">Subir Archivo</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UpCargarArchivo" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:TextBox ID="TxtCargarArchivo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardarArchivo" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td align="center">
|
||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" class="btn btn-primary " />
|
||
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
||
<asp:Button ID="BtnCancelar" runat="server" Visible="false" Text="Volver" OnClientClick="javascript:window.location.href='/Bancos/CatBancosIE.aspx';return false;" class="btn btn-danger " />
|
||
<asp:Button ID="BtnImprimir" runat="server" Text="Imprimir" Visible="False" class="btn btn-primary " />
|
||
<asp:Button ID="BtnActualizar" runat="server" Text="Actualizar" ValidationGroup="GrpGuardar" Visible="False" class="btn btn-info " />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<br />
|
||
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:UpdatePanel ID="UPPCreditos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="GvV" runat="server" AutoGenerateColumns="False"
|
||
DataKeyNames="CveCredito,CveCreditoDetalle,FondoGarantia,Periodo,Periodos,Marcador,ProximoPeriodo,TipoPago,Fecha,CveMoneda,Total,Estatus,Referencia,CveCompra,CveCompraInteres,Programado"
|
||
EmptyDataText="No se encontraron Créditos registrados"
|
||
CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField ControlStyle-Width="10px">
|
||
<ItemTemplate>
|
||
<asp:CheckBox runat="server" ID="ChkPagar" Checked='<%#If(Programado, "True", "False") %>' />
|
||
</ItemTemplate>
|
||
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="TipoCreditoAbreviatura" HeaderText="Tipo Crédito" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
||
<asp:BoundField DataField="NombreComercial" HeaderText="Acreedoras" HeaderStyle-CssClass="rompe" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20%" />
|
||
|
||
<asp:HyperLinkField HeaderText="Referencia" DataTextField="Referencia" DataNavigateUrlFields="CveCredito" ItemStyle-CssClass="texto" Target="_blank"
|
||
DataNavigateUrlFormatString="./Creditos.aspx?CveCredito={0} " />
|
||
<asp:BoundField DataField="Total" DataFormatString="{0:N2}" HeaderText="Importe" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
|
||
<asp:TemplateField Visible="false">
|
||
<HeaderTemplate>Aplicar</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtAplicar" Width="80px" runat="server" Style="text-align: right;" onkeyup="FormatoMoneda(this)"></asp:TextBox>
|
||
<asp:RangeValidator ID="RVAbonar" runat="server" Enabled="false" Type="Currency" MinimumValue="0" MaximumValue='<%# Eval("Total", "{0:N2}") %>'
|
||
ErrorMessage="*" ControlToValidate="TxtAplicar" Display="Dynamic"></asp:RangeValidator>
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="Moneda" HeaderText="Mon" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
||
<asp:TemplateField HeaderText="Vencimiento" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%">
|
||
<ItemTemplate>
|
||
<asp:Literal runat="server" ID="LtVencimiento" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="ProximoPeriodo" HeaderText="Pago" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="180px" />
|
||
|
||
<%-- <asp:BoundField DataField="ImporteOpcionCompra" HeaderText="Op. Compra" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" DataFormatString="{0:#,###.##}" />--%>
|
||
<asp:BoundField DataField="FondoGarantia" HeaderText="Garantía" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" DataFormatString="{0:#,###.##}" />
|
||
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</ContentTemplate>
|
||
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div id="DivAbonoAjuste" class="modal ADS 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:Literal ID="Literal1" runat="server">Ajuste</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<label id="LtlMensajeAjuste"></label>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<button id="BtnConfirmarAbono" runat="server" type="button" class="btn btn-primary" onclick="AjusteAccion(true)">Mantener Cambio de importe</button>
|
||
<button id="BtnCancelarAbono" runat="server" type="button" class="btn btn-danger" onclick="AjusteAccion(false)">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<%-- HiddenFiels Creditos Inicio --%>
|
||
<asp:HiddenField ID="HFSaldo" ClientIDMode="Static" runat="server" Value="0" />
|
||
<asp:HiddenField ID="HFFondoDeGarantia" ClientIDMode="Static" runat="server" Value="0" />
|
||
<asp:HiddenField ID="HFOpcionDeCompra" ClientIDMode="Static" runat="server" Value="0" />
|
||
<asp:HiddenField ID="HFImporteMensualidad" ClientIDMode="Static" runat="server" Value="0" />
|
||
<%-- HiddenFiels Creditos FIN --%>
|
||
</asp:Content>
|
||
|
||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||
|
||
<script type="text/javascript" language="javascript">
|
||
|
||
function pageLoad() {
|
||
var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
|
||
if (isAsyncPostback) {
|
||
tb_init('a.thickbox');
|
||
}
|
||
}
|
||
|
||
function fnc() {
|
||
alert($get('rbPagueseAProveedor').checked);
|
||
}
|
||
|
||
|
||
function upIE(t,CveMoneda) {
|
||
//var CveMoneda = $("#DdlMoneda").val();
|
||
var importe;
|
||
|
||
if (t.value == undefined) {
|
||
importe = t.val();
|
||
} else {
|
||
importe = t.value;
|
||
}
|
||
|
||
PageMethods.wsImporteLetra(importe, CveMoneda, OnSucceeded);
|
||
}
|
||
|
||
function OnSucceeded(result, userContext, methodName) {
|
||
if (methodName == 'wsImporteLetra') {
|
||
$get('TxtImporteLetra').value = result;
|
||
}
|
||
}
|
||
|
||
function upPagueseA(rb) {
|
||
TxtPagueseA.value = "";
|
||
switch (rb) {
|
||
case 1:
|
||
imgBuscarProveedor.style.display = "inline";
|
||
imgBuscarFuncionarioEmpleado.style.display = "none";
|
||
HdnCvePersonal.value = "-1";
|
||
break;
|
||
case 2:
|
||
imgBuscarProveedor.style.display = "none";
|
||
imgBuscarFuncionarioEmpleado.style.display = "inline";
|
||
HdnCveProveedor.value = "-1";
|
||
break;
|
||
}
|
||
}
|
||
|
||
function CargaProveedor(CveProveedor) {
|
||
$get("HdnCveProveedor").value = CveProveedor;
|
||
$('#BtnBuscarProveedor').click();
|
||
return true;
|
||
}
|
||
|
||
function CargaPersonal(CvePersonal) {
|
||
$get("HdnCvePersonal").value = CvePersonal;
|
||
$('#BtnBuscarPersonal').click();
|
||
return true;
|
||
}
|
||
|
||
function CargaCliente(CveCliente) {
|
||
$get("HdnCveCliente").value = CveCliente;
|
||
$('#BtnBuscarCliente').click();
|
||
|
||
return true;
|
||
}
|
||
|
||
|
||
//valida que el importe sea mayor a 2000
|
||
function FncImporteCuenta(txt) {
|
||
if ($get('ChkAbonoCuenta') != null) {
|
||
$get('ChkAbonoCuenta').checked = (ToDouble(txt.value) > 2000);
|
||
FormatoMoneda(txt);
|
||
}
|
||
}
|
||
|
||
function ConfirmEliminarPoliza() {
|
||
if (confirm("La poliza que desea eliminar esta asociada con mas movimientos, ¿desea eliminarla?")) {
|
||
$get("BtnEliminarPoliza").click();
|
||
}
|
||
}
|
||
|
||
function CargaComprobante() {
|
||
if (!$get("C_BtnGuardar").value == "Guardar") {
|
||
$get("TrConfirmaComprobante").style.display = "";
|
||
}
|
||
}
|
||
|
||
|
||
//Cancelar IE
|
||
|
||
function HideDivCancelarIE() {
|
||
$('#DivCancelarIE').modal('hide');
|
||
}
|
||
function ValidaFechaCancelacion(txt, txtdoc) {
|
||
|
||
var fechaminima = new Date(txtdoc.value.substring(6, 10), txtdoc.value.substring(3, 5), txtdoc.value.substring(0, 2));
|
||
var fechatxt = new Date(txt.value.substring(6, 10), txt.value.substring(3, 5), txt.value.substring(0, 2));
|
||
|
||
if (fechatxt > fechaminima) {
|
||
txt.value = txtdoc.value;
|
||
}
|
||
}
|
||
$("#ModaBitacora").dialog().parent().appendTo($("form:first"));
|
||
|
||
|
||
function ValidaCantidad(txt, value) {
|
||
|
||
var cantEval = (value * 1.07);//Se permite + %7 de la cantidad total
|
||
|
||
var txtDoubleCant = parseFloat(txt.value.replace(/,/g, ''));
|
||
|
||
|
||
if (txtDoubleCant > value) {
|
||
|
||
if (txtDoubleCant > cantEval) {
|
||
txt.value = cantEval;
|
||
} else {
|
||
|
||
}
|
||
}
|
||
FormatoMoneda(txt);
|
||
}
|
||
|
||
function CreditosAplicaSaldoFondoOpcionCompra() {
|
||
|
||
|
||
var ImporteMensualidad = ToDouble($('#HFImporteMensualidad').val());
|
||
|
||
var FondoGarantia = ToDouble($('#HFFondoDeGarantia').val());
|
||
var OpcionDeCompra = ToDouble($('#HFOpcionDeCompra').val());
|
||
var Saldo = ToDouble($('#HFSaldo').val());
|
||
|
||
|
||
if($('#<%= ChkAplicaSaldoCreditoaldia.ClientID %>').is(':checked')){
|
||
ImporteMensualidad -= Saldo;
|
||
}
|
||
|
||
if ($('#<%= ChkFondoDeGarantia.ClientID %>').is(':checked')) {
|
||
ImporteMensualidad -= FondoGarantia;
|
||
}
|
||
|
||
if ($('#<%= ChkImporteOpcionDeCompra.ClientID %>').is(':checked')) {
|
||
ImporteMensualidad += OpcionDeCompra;
|
||
}
|
||
|
||
if (ImporteMensualidad.toFixed(2) <= 0) {
|
||
ImporteMensualidad = 0;
|
||
}
|
||
|
||
$('#<%= TxtImporte.ClientID %>').val(ImporteMensualidad.toFixed(2));
|
||
|
||
FormatoMoneda2($('#<%= TxtImporte.ClientID %>'));
|
||
|
||
//upIE($('#<%= TxtImporte.ClientID %>'));
|
||
|
||
}
|
||
|
||
|
||
function bloqueGuardar(obj, importe) {
|
||
|
||
var valorTxt = parseFloat( $(`#${obj.id}`).val().replace(/,/g,'')) ;
|
||
|
||
if (valorTxt == importe) {
|
||
$('#<%= BtnGuardar.ClientID %>').prop('disabled', false);
|
||
} else {
|
||
$('#<%= BtnGuardar.ClientID %>').prop('disabled', true);
|
||
}
|
||
}
|
||
|
||
var IdTxtAbono;
|
||
var CveMonedaModal;
|
||
var ImporteOriginal;
|
||
function EvaluaAbono(CveMoneda, objTxt, importe){
|
||
|
||
let ValorAbono = parseFloat(objTxt.value.replace(/,/g, ''));
|
||
let ValorImporte = parseFloat(importe);
|
||
ImporteOriginal = ValorImporte;
|
||
|
||
CveMonedaModal = CveMoneda;
|
||
|
||
if (ValorAbono > 0){
|
||
|
||
if (ValorAbono < ValorImporte) {
|
||
|
||
let Porcetaje = (ValorAbono * 100 / ValorImporte).toFixed(2);
|
||
let MensajeModal = `El importe del pago es ${FormatoMonedaString(ValorAbono.toString())}, se pagara ${ Porcetaje }% en base al importe original, desea mantener el cambio?`;
|
||
|
||
IdTxtAbono = `#${objTxt.id}`;
|
||
$('#LtlMensajeAjuste').text(MensajeModal);
|
||
$('#DivAbonoAjuste').modal({ backdrop: 'static', keyboard: false });
|
||
|
||
} else {
|
||
objTxt.value = FormatoMonedaString(ValorImporte);
|
||
}
|
||
|
||
} else {
|
||
CalculaTotales(CveMoneda);
|
||
}
|
||
$('#<%= BtnGuardar.ClientID %>').prop('disabled', false);
|
||
}
|
||
|
||
function AjusteAccion(ajustar) {
|
||
$('#DivAbonoAjuste').modal('hide');
|
||
|
||
if (!ajustar) {
|
||
$(IdTxtAbono).val(ImporteOriginal);
|
||
}
|
||
CalculaTotales(CveMonedaModal);
|
||
|
||
$('#<%= BtnGuardar.ClientID %>').prop('disabled', false);
|
||
}
|
||
|
||
function CalculaTotales(CveMoneda) {
|
||
|
||
let Pesos = 0.0;
|
||
let Dollars = 0.0;
|
||
let Euros = 0.0;
|
||
let TotalCreditos = 0;
|
||
let Referencias = '';
|
||
|
||
let saldo = 0;
|
||
let OpcionCompra = 0;
|
||
let Complemento = 0;
|
||
let fondogarantia = 0;
|
||
|
||
$('.chkcreditos').each(function () {
|
||
let selectortxtaplicar = `#${$(this).attr('data-txtaplicar')}`;
|
||
|
||
if ($(this).is(':checked')) {
|
||
|
||
let selectortxtaplicar = `#${$(this).attr('data-txtaplicar')}`;
|
||
|
||
//let ValorAbonar = parseFloat($(selectortxtaplicar).val().replace(/,/g, ''));
|
||
|
||
|
||
|
||
let TmpPesos = parseFloat($(this).attr('data-valor'));
|
||
let TmpSaldo = parseFloat($(this).attr('data-saldo'));
|
||
let TmpOpcionCompra = parseFloat($(this).attr('data-opcion'));
|
||
let TmpComplemento = parseFloat($(this).attr('data-complemento'));
|
||
let TmpFondoGarantia = parseFloat($(this).attr('data-fondo'));
|
||
|
||
//if (ValorAbonar > 0) {
|
||
|
||
// if (TmpPesos > 0) {
|
||
// TmpPesos = ValorAbonar;
|
||
// }
|
||
|
||
// if(TmpSaldo > 0){
|
||
// TmpSaldo = ValorAbonar;
|
||
// }
|
||
|
||
// if( TmpOpcionCompra > 0){
|
||
// TmpOpcionCompra = ValorAbonar;
|
||
// }
|
||
|
||
// if(TmpComplemento > 0){
|
||
// TmpComplemento = ValorAbonar;
|
||
// }
|
||
// if(TmpFondoGarantia > 0){
|
||
// TmpFondoGarantia = ValorAbonar;
|
||
// }
|
||
|
||
//} else {
|
||
// $(selectortxtaplicar).val(FormatoMonedaString(TmpPesos));
|
||
//}
|
||
|
||
Pesos += TmpPesos; //parseFloat($(this).attr('data-valor'));
|
||
saldo += TmpSaldo;// parseFloat($(this).attr('data-saldo'));
|
||
OpcionCompra += TmpOpcionCompra;// parseFloat($(this).attr('data-opcion'));
|
||
Complemento += TmpComplemento; // parseFloat($(this).attr('data-complemento'));
|
||
fondogarantia += TmpFondoGarantia;//parseFloat($(this).attr('data-fondo'));
|
||
|
||
Referencias += $(this).attr('data-referencia') + ', ';
|
||
} else {
|
||
$(selectortxtaplicar).val('');
|
||
}
|
||
});
|
||
|
||
var checkFix = '';
|
||
checkFix.innerHTML = '<span></span><span class="check"></span><span class="box">'
|
||
|
||
$("#<%= ChkAplicaSaldoCreditoaldia.ClientID %>").next("label:first").text(checkFix +`Saldo a favor $${saldo}`);
|
||
$("#<%= ChkImporteOpcionDeCompra.ClientID %>").next("label:first").text(`Opción a Compra $${OpcionCompra}`);
|
||
$("#<%= ChkFondoDeGarantia.ClientID %>").next("label:first").text(`Fondo de Garantia $${fondogarantia}`);
|
||
$("#<%= ChkComplemento.ClientID %>").next("label:first").text(`Complemento $${Complemento}`);
|
||
|
||
TotalCreditos = Pesos;
|
||
TotalCreditos = TotalCreditos.toFixed(2);
|
||
|
||
if (isNaN(TotalCreditos)) {
|
||
TotalCreditos = 0;
|
||
}
|
||
|
||
if (saldo > 0){
|
||
$('#DVChkAplicaSaldoCreditoaldia').show();
|
||
$('#<%= ChkAplicaSaldoCreditoaldia.ClientId %>').prop('checked', true);
|
||
} else {
|
||
$('#DVChkAplicaSaldoCreditoaldia').hide();
|
||
$('#<%= ChkAplicaSaldoCreditoaldia.ClientId %>').prop('checked', false);
|
||
}
|
||
|
||
if (OpcionCompra > 0){
|
||
$('#DVChkImporteOpcionDeCompra').show();
|
||
$('#<%= ChkImporteOpcionDeCompra.ClientId %>').prop('checked', true);
|
||
} else {
|
||
$('#DVChkImporteOpcionDeCompra').hide();
|
||
$('#<%= ChkImporteOpcionDeCompra.ClientId %>').prop('checked', false);
|
||
}
|
||
|
||
if (fondogarantia > 0){
|
||
$('#DVChkFondoDeGarantia').show();
|
||
$('#<%= ChkFondoDeGarantia.ClientId %>').prop('checked', true);
|
||
} else {
|
||
$('#DVChkFondoDeGarantia').hide();
|
||
$('#<%= ChkFondoDeGarantia.ClientId %>').prop('checked', false);
|
||
}
|
||
|
||
if ( Complemento > 0){
|
||
$('#DVChkComplemento').show();
|
||
$('#<%= ChkComplemento.ClientId %>').prop('checked', true);
|
||
} else {
|
||
$('#DVChkComplemento').hide();
|
||
$('#<%= ChkComplemento.ClientId %>').prop('checked', false);
|
||
}
|
||
|
||
$('#<%= TxtImporte.ClientID %>').val(TotalCreditos);
|
||
|
||
|
||
if (Referencias.length > 0){
|
||
Referencias = Referencias.substring(0, (Referencias.length - 2));
|
||
}
|
||
|
||
$('#<%= TxtObservaciones.ClientID %>').val(Referencias);
|
||
FormatoMoneda2($('#<%= TxtImporte.ClientID %>'));
|
||
PageMethods.wsImporteLetra(TotalCreditos, CveMoneda, OnSucceeded);
|
||
}
|
||
|
||
|
||
</script>
|
||
</asp:Content>
|