1074 lines
81 KiB
Plaintext
1074 lines
81 KiB
Plaintext
<%@ Page Title="Contabilidad - Pólizas" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RegPoliza.aspx.vb" Inherits="RegPoliza" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
table.GvDatos > tbody > tr > td:nth-child(1), table.GvDatos > tbody > tr > th:nth-child(1) {
|
|
width: 5%;
|
|
text-align: right;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(2), table.GvDatos > tbody > tr > th:nth-child(2) {
|
|
width: 7%;
|
|
text-align: center;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(3), table.GvDatos > tbody > tr > th:nth-child(3) {
|
|
width: 27%;
|
|
text-align: center;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(4), table.GvDatos > tbody > tr > th:nth-child(4) {
|
|
width: 7%;
|
|
text-align: center;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(5), table.GvDatos > tbody > tr > th:nth-child(5) {
|
|
width: 23%;
|
|
text-align: left;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(6), table.GvDatos > tbody > tr > th:nth-child(6) {
|
|
width: 8%;
|
|
text-align: right;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(7), table.GvDatos > tbody > tr > th:nth-child(7) {
|
|
width: 8%;
|
|
text-align: right;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(8), table.GvDatos > tbody > tr > th:nth-child(8) {
|
|
width: 10%;
|
|
text-align: right;
|
|
}
|
|
|
|
table.GvDatos > tbody > tr > td:nth-child(9), table.GvDatos > tbody > tr > th:nth-child(9) {
|
|
width: 5%;
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Pólizas
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
|
|
<li>
|
|
<asp:UpdatePanel ID="UPPImprimir" runat="server">
|
|
<ContentTemplate>
|
|
<asp:HyperLink ID="HLImprimir" runat="server" NavigateUrl="#"><i class="fa fa-print"></i> Imprimir</asp:HyperLink>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBDevIVA" OnClick="LBDevIVA_Click" runat="server"><i class="fa fa-plus-circle"></i> Agregar movtos de IVA</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBCauIVA" OnClick="LBCauIVA_Click" runat="server"><i class="fa fa-plus-circle"></i> Causaciones IVA</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:Button ID="Button1" runat="server" Text="Button" Visible="False" />
|
|
</li>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UpConsultar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Panel ID="PnlConsulta" runat="server" DefaultButton="BtnConsultar">
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" CssClass="btn btn-default" runat="server" Text="Consultar" CausesValidation="true" ValidationGroup="GrpConsultar" TabIndex="4" />
|
|
<asp:Button ID="BtnPoliza" CssClass="btn btn-success" runat="server" Text="Pólizas" Style="display: none;" PostBackUrl="/Contabilidad/RegPolizas.aspx" /> </td>
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<div class="row">
|
|
<div class="col-md-3" style="" id="tdD" runat="server">
|
|
<div class="row">
|
|
<label class="col-md-4 truncate">Tipo:</label>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList ID="DdlTipo" runat="server" DataValueField="CveTipoPoliza" DataTextField="TipoPoliza" CssClass="form-control input-sm" TabIndex="1">
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1">Fecha:</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: 130px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFecha" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFecha" PopupButtonID="ImgCalendarioI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:CompareValidator ID="cvFechaI" runat="server" SetFocusOnError="True" ControlToValidate="TxtFecha" 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="GrpConsultar"></asp:CompareValidator>
|
|
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" SetFocusOnError="True" ControlToValidate="TxtFecha" Display="None" ErrorMessage="El campo <b>''Fecha de póliza''</b> es requerido por la aplicación, por favor ingresélo." ValidationGroup="GrpConsultar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFecha" runat="server" HighlightCssClass="vco" TargetControlID="RFVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="col-md-5">Número de póliza:</label>
|
|
<div class="col-md-7">
|
|
<asp:TextBox ID="TxtNumero" runat="server" CssClass="form-control input-sm" MaxLength="8" ValidationGroup="GrpConsultar" TabIndex="3"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVNumero" runat="server" SetFocusOnError="True" ControlToValidate="TxtNumero" Display="None" ErrorMessage="El campo <b>''Número de póliza''</b> es requerido por la aplicación, por favor ingresélo." ValidationGroup="GrpConsultar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVNemuero" runat="server" ControlToValidate="TxtNumero" Display="None" ErrorMessage="El campo <b>''Número de póliza''</b> no tiene el formato correcto, por favor corrija. (Solo digítos númericos)." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpConsultar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCENumero" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumero" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div id="colFiltros" runat="server" width="20px"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:Panel ID="PnlDatos" runat="server" DefaultButton="BtnGuardar">
|
|
|
|
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="row" style="margin-bottom: 10px;">
|
|
<div class="col-md-2" style="width: 100px !important;">Fecha:</div>
|
|
|
|
<div class="col-md-2" style="width: 140px !important;">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 130px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaPoliza" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpGuardar" ClientIDMode="Static" TabIndex="5"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaPoliza" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaPoliza" runat="server" TargetControlID="TxtFechaPoliza" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaPoliza" TargetControlID="TxtFechaPoliza" PopupButtonID="ImgFechaPoliza" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaPoliza" runat="server" ControlToValidate="TxtFechaPoliza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Poliza''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaPoliza" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaPoliza" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:HiddenField ID="HdnFechaPoliza" runat="server" ClientIDMode="Static" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-2" style="width: 100px !important;">Tipo Póliza:</div>
|
|
<div class="col-md-2" style="width: 130px !important; padding: 0px;">
|
|
<asp:DropDownList ID="DdlTipoPoliza" AppendDataBoundItems="true" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoPoliza_SelectedIndexChanged" runat="server" CssClass="form-control input-sm" DataValueField="CveTipoPoliza" DataTextField="TipoPoliza" TabIndex="6">
|
|
</asp:DropDownList>
|
|
<asp:HiddenField ID="HdnTipoPoliza" runat="server" ClientIDMode="Static" />
|
|
</div>
|
|
|
|
<div class="col-md-2" style="width: 100px !important;">
|
|
<asp:Label ID="LblNumPoliza" runat="server" Text="Núm Póliza"></asp:Label>:
|
|
</div>
|
|
|
|
<div class="col-md-2" style="width: 200px !important;">
|
|
<asp:TextBox ID="TxtNumeroPoliza" CssClass="form-control input-sm" runat="server" MaxLength="10" ClientIDMode="Static" TabIndex="7" Font-Bold="true" Font-Size="Large"></asp:TextBox>
|
|
<asp:HiddenField ID="HdnFolioPoliza" runat="server" ClientIDMode="Static" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" runat="server" id="tdPolizaComplementaria" visible="false" style="margin-bottom: 10px;">
|
|
<div class="col-md-2">Poliza Complementaria:</div>
|
|
<div class="col-md-2">
|
|
<asp:CheckBox ID="ChkPolizaComplementaria" CssClass="md-checksd" AutoPostBack="false" runat="server" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" style="margin-bottom: 10px;">
|
|
<div class="col-md-2 " style="width: 100px !important;">Concepto:</div>
|
|
<div class="col-md-4">
|
|
<asp:TextBox ID="TxtConcepto" CssClass="form-control input-sm" runat="server" Width="500px" Style="text-align: left;" TabIndex="8"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVConcepto" runat="server" ControlToValidate="TxtConcepto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RFVConcepto"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" style="margin-bottom: 10px;">
|
|
<asp:Label ID="LblEmpresa" runat="server" Font-Size="Large"></asp:Label>
|
|
</div>
|
|
|
|
<asp:Panel ID="PnlAgregar" runat="server" DefaultButton="LbAgregar">
|
|
<table class="table table-hover table-advance Widthall">
|
|
|
|
<tr class="Titulos">
|
|
<th style="width: 5%;">
|
|
<asp:LinkButton ID="LbNumMovto" runat="server" Text="N°">
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 7%;">
|
|
<asp:LinkButton ID="LbRef" runat="server" Text="" CommandArgument="Referencia0;0" OnClick="LbOrden_Click">
|
|
Referencia
|
|
<asp:Literal ID="ImgReferencia0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 27%;">
|
|
<asp:LinkButton ID="LbCuenta" runat="server" Text="Cuenta" CommandArgument="Cuenta0;0" OnClick="LbOrden_Click">
|
|
<asp:Literal ID="ImgCuenta" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 7%;">Centro Costo</th>
|
|
<th style="width: 23%;">
|
|
<asp:LinkButton ID="LbNombre" runat="server" Text="Nombre" CommandArgument="Concepto0;0" OnClick="LbOrden_Click">
|
|
</asp:LinkButton> / <asp:LinkButton ID="lnkConcepto" runat="server" Text="" CommandArgument="ImgConcepto0;0" OnClick="LbOrden_Click">
|
|
Concepto
|
|
<asp:Literal ID="ImgConcepto0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 8%;" runat="server" id="td1CargoME" visible="false">
|
|
<asp:LinkButton ID="LbCargoME" runat="server" Text="" CommandArgument="CargoME0;0" OnClick="LbOrden_Click">
|
|
Cargo ME
|
|
<asp:Literal ID="ImgCargoME0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th style="width: 8%;" runat="server" id="td1AbonoME" visible="false">
|
|
<asp:LinkButton ID="LbAbonoME" runat="server" Text="" CommandArgument="AbonoME0;0" OnClick="LbOrden_Click">
|
|
Abono ME
|
|
<asp:Literal ID="ImgAbonoME0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 8%;">
|
|
<asp:LinkButton ID="LbCargo" runat="server" Text="" CommandArgument="Cargo0;0" OnClick="LbOrden_Click">
|
|
Cargo
|
|
<asp:Literal ID="ImgCargo0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th style="width: 8%;">
|
|
<asp:LinkButton ID="LbAbono" runat="server" Text="" CommandArgument="Abono0;0" OnClick="LbOrden_Click">
|
|
Abono
|
|
<asp:Literal ID="ImgAbono0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 15%;">Comandos</th>
|
|
<th></th>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 5%;"></td>
|
|
|
|
<td style="width: 7%;">
|
|
<asp:TextBox ID="TxtReferencia" CssClass="form-control input-sm" MaxLength="20" runat="server" CausesValidation="true" ValidationGroup="GrpAgregar" TabIndex="9"></asp:TextBox>
|
|
</td>
|
|
<td style="width: 27%;">
|
|
<asp:HiddenField ID="HdnCveCuenta" runat="server" ClientIDMode="Static" />
|
|
<asp:TextBox ID="TxtCuenta" CssClass="form-control input-sm" TabIndex="10" runat="server" ClientIDMode="Static"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCuenta" runat="server" SetFocusOnError="True" ControlToValidate="TxtCuenta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 7%;">
|
|
<asp:DropDownList ID="DdlSegNeg" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" TabIndex="11" CssClass="form-control input-sm"></asp:DropDownList>
|
|
</td>
|
|
<td style="width: 23%;">
|
|
<asp:TextBox ID="TxtNombreConcepto" CssClass="form-control input-sm" MaxLength="200" runat="server" CausesValidation="true" ValidationGroup="GrpAgregar" TabIndex="12"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVNombreConcepto" SetFocusOnError="True" runat="server" ControlToValidate="TxtNombreConcepto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre/Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCENombreConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreConcepto" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 8%;" runat="server" id="td2CargoME" visible="false">
|
|
<asp:TextBox ID="TxtCargoME" CssClass="form-control input-sm" ClientIDMode="Static" CausesValidation="true" MaxLength="15" runat="server" ValidationGroup="GrpAgregar" TabIndex="13" onblur="FncImp(1);"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTECargoME" runat="server" TargetControlID="TxtCargo" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</td>
|
|
<td style="width: 8%;" runat="server" id="td2AbonoME" visible="false">
|
|
<asp:TextBox ID="TxtAbonoME" CssClass="form-control input-sm" ClientIDMode="Static" CausesValidation="true" MaxLength="15" runat="server" ValidationGroup="GrpAgregar" TabIndex="14" onblur="FncImp(2);"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEAbonoME" runat="server" TargetControlID="TxtAbono" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</td>
|
|
<td style="width: 8%;">
|
|
<asp:TextBox ID="TxtCargo" CssClass="form-control input-sm" ClientIDMode="Static" CausesValidation="true" MaxLength="15" runat="server" ValidationGroup="GrpAgregar" TabIndex="13" onblur="FncImp(1);"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTECargo" runat="server" TargetControlID="TxtCargo" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</td>
|
|
<td style="width: 8%;">
|
|
<asp:TextBox ID="TxtAbono" CssClass="form-control input-sm" ClientIDMode="Static" CausesValidation="true" MaxLength="15" runat="server" ValidationGroup="GrpAgregar" TabIndex="14" onblur="FncImp(2);"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEAbono" runat="server" TargetControlID="TxtAbono" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</td>
|
|
<td style="width: 15%;">
|
|
<asp:LinkButton ID="LbAgregar" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpAgregar" TabIndex="15"></asp:LinkButton>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="false" DataKeyNames="IdConsec" EmptyDataText="No se encontraron datos en la Póliza solicitada." ShowHeader="true"
|
|
data-heighterror="475" data-freezecols="0" data-freezerows="1" CssClass="table GvDatos ScrollAD table-striped table-hover Widthall mysmallbtn" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNo" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:Literal ID="LtlNo" runat="server"></asp:Literal>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="Ref" runat="server" Text='<%# Eval("Referencia") %>' CssClass="Texto"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtReferencia" runat="server" CausesValidation="true" MaxLength="30" Text='<%# Eval("Referencia")%>' CssClass="form-control input-sm" ValidationGroup="GrpGV"></asp:TextBox>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCuenta" runat="server" Text='<%# Eval("CtaCodigo", "{0}")%>'></asp:Literal><br />
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlCuenta" runat="server" DataTextField="CtaCodigo" DataValueField="CveCuenta" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSegNeg" runat="server" Text='<%# Eval("SubProyecto", "{0}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlSegNeg" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm"></asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblNombreConcepto" runat="server" Text='<%# Eval("Concepto", "{0}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtNombreConcepto" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Concepto")%>' CssClass="form-control input-sm" ValidationGroup="GrpGV"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVNombreConcepto" runat="server" ControlToValidate="TxtNombreConcepto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCNombreConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreConcepto"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<span style='color: green;'>
|
|
<asp:Literal ID="LtlCargoME" runat="server" Text='<%# Eval("CargoME", "{0:N2}")%>'></asp:Literal></span>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtCargoME" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("CargoME")%>' ValidationGroup="GrpGV" CssClass="form-control input-sm"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEECargoME" runat="server" TargetControlID="TxtCargo" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<ItemTemplate>
|
|
<span style='color: green;'>
|
|
<asp:Literal ID="LtlAbonoME" runat="server" Text='<%# Eval("AbonoME", "{0:N2}")%>'></asp:Literal></span>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtAbonoME" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("AbonoME")%>' ValidationGroup="GrpGV" CssClass="form-control input-sm"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEFAbonoME" runat="server" TargetControlID="TxtAbono" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCargo" runat="server" Text='<%# Eval("Cargo", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtCargo" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Cargo")%>' ValidationGroup="GrpGV" CssClass="form-control input-sm"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEECargo" runat="server" TargetControlID="TxtCargo" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAbono" runat="server" Text='<%# Eval("Abono", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtAbono" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Abono")%>' ValidationGroup="GrpGV" CssClass="form-control input-sm"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEFAbono" runat="server" TargetControlID="TxtAbono" FilterType="Custom, Numbers" ValidChars=".,-" />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar">
|
|
<EditItemTemplate>
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
|
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" OnClientClick="javascript:return C();" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<table border="0" style="border-spacing: 0px;" class="Widthall">
|
|
<tr>
|
|
<td>
|
|
<table border="0" class="Widthall">
|
|
<tr>
|
|
<td style="text-align: right; width: 67%;">Sumas Iguales: </td>
|
|
<td style="height: 15px; text-align: right; width: 80px;">
|
|
<asp:Label ID="LblCargo" runat="server" Font-Bold="True"></asp:Label>
|
|
<asp:HiddenField ID="HdnlCargo" runat="server" />
|
|
</td>
|
|
<td style="text-align: right; width: 80px; height: 15px;">
|
|
<asp:Label ID="LblAbono" runat="server" Font-Bold="True"></asp:Label>
|
|
<asp:HiddenField ID="HdnlAbono" runat="server" />
|
|
</td>
|
|
<td style="width: 100px; height: 15px;"></td>
|
|
</tr>
|
|
</table>
|
|
<table border="0" class="Widthall">
|
|
<tr>
|
|
<td style="height: 20px; text-align: right; width: 78%;">Diferencia: </td>
|
|
<td style="height: 20px; text-align: right; width: 80px;">
|
|
<asp:Label ID="LblDiferencia" runat="server">0.00</asp:Label></td>
|
|
<td style="width: 100px;"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<table style="width: 100%">
|
|
<tr>
|
|
<td style="width: 100%; text-align: center;">
|
|
<asp:HiddenField runat="server" ID="HdnGuardar" ClientIDMode="Static" />
|
|
<asp:LinkButton ID="BtnGuardar" runat="server" Text="<i class='fa fa-check'></i> Guardar" CausesValidation="true" ValidationGroup="GrpGuardar" UseSubmitBehavior="False" class="btn btn-primary"></asp:LinkButton>
|
|
<asp:LinkButton ID="BtnNuevo" runat="server" Text="<i class='fa fa-plus'></i> Nuevo" class="btn btn-primary"></asp:LinkButton>
|
|
<asp:Button Text="Eliminar" Visible="false" ID="BtnEliminar" OnClick="BtnEliminar_Click" runat="server" CssClass="btn btn-danger" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar la Póliza?" data-btn-ok-label="si" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div id="divDevIVA" style="background-color: white; display: none; z-index: 999; border: solid 1px black; color: Black; display: none; position: fixed; top: 15%; left: 20%;">
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr class="Titulos">
|
|
<td align="center">Devoluciones de IVA</td>
|
|
<td style="padding-right: 4px; text-align: right;" valign="top">
|
|
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('divDevIVA').style.display='none';" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<asp:UpdatePanel ID="UpDevoluciones" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<br />
|
|
<asp:Panel ID="PnlDevIVA" runat="server">
|
|
Cuenta:
|
|
<asp:DropDownList ID="DdlCuenta" runat="server" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" Style="width: 350px !important;" DataTextField="CtaCodigo" DataValueField="CveCuenta"></asp:DropDownList>
|
|
<table border="0">
|
|
<tr class="Titulos">
|
|
<td style="width: 40px;">
|
|
<asp:LinkButton ID="LbSerie" runat="server" CausesValidation="False" Text="" CommandArgument="Serie1;1" OnClick="LbOrden_Click">
|
|
Serie
|
|
<asp:Literal ID="ImgSerie1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 40px;">
|
|
<asp:LinkButton ID="LbFolio" runat="server" CausesValidation="False" Text="" CommandArgument="Folio1;1" OnClick="LbOrden_Click">
|
|
Folio
|
|
<asp:Literal ID="ImgFolio1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 70px;">
|
|
<asp:LinkButton ID="LbReferencia" runat="server" CausesValidation="False" Text="" CommandArgument="Referencia1;1" OnClick="LbOrden_Click">
|
|
Referencia
|
|
<asp:Literal ID="ImgReferencia1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 220px;">
|
|
<asp:LinkButton ID="LbProveedor" runat="server" CausesValidation="False" Text="" CommandArgument="Proveedor1;1" OnClick="LbOrden_Click">
|
|
Proveedor
|
|
<asp:Literal ID="ImgProveedor1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 50px;">
|
|
<asp:LinkButton ID="LbTasa" runat="server" CausesValidation="False" Text="" CommandArgument="Tasa1;1" OnClick="LbOrden_Click">
|
|
Tasa
|
|
<asp:Literal ID="ImgTasa1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 80px;">
|
|
<asp:LinkButton ID="LbImporteBase" runat="server" CausesValidation="False" Text="" CommandArgument="ImporteBase1;1" OnClick="LbOrden_Click">
|
|
Importe Base
|
|
<asp:Literal ID="ImgImporteBase1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 80px;">
|
|
<asp:LinkButton ID="LbImporteIVA" runat="server" CausesValidation="False" Text="" CommandArgument="ImporteIVA1;1" OnClick="LbOrden_Click">
|
|
Importe IVA
|
|
<asp:Literal ID="ImgImporteIVA1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 80px;">
|
|
<asp:LinkButton ID="LbImporteAntesRet" runat="server" CausesValidation="False" Text="" CommandArgument="ImporteAntesRet1;1" OnClick="LbOrden_Click">
|
|
Imp. Antes de Ret.
|
|
<asp:Literal ID="ImgImporteAntesRet1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 65px;">
|
|
<asp:LinkButton ID="LbRetIVA" runat="server" CausesValidation="False" Text="" CommandArgument="RetIVA1;1" OnClick="LbOrden_Click">
|
|
IVA Retenido
|
|
<asp:Literal ID="ImgRetIVA1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 65px;">
|
|
<asp:LinkButton ID="LbRetISR" runat="server" CausesValidation="False" Text="" CommandArgument="RetISR1;1" OnClick="LbOrden_Click">
|
|
ISR Retenido
|
|
<asp:Literal ID="ImgRetISR1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 80px;">
|
|
<asp:LinkButton ID="LbGranTotal" runat="server" CausesValidation="False" Text="" CommandArgument="GranTotal1;1" OnClick="LbOrden_Click">
|
|
Total Erogación
|
|
<asp:Literal ID="ImgGranTotal1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</td>
|
|
<td style="width: 84px;">Comandos
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 40px;">
|
|
<asp:TextBox ID="TxtSerie" runat="server" MaxLength="50" Width="100%" TabIndex="16"></asp:TextBox>
|
|
</td>
|
|
<td style="width: 40px">
|
|
<asp:TextBox ID="TxtFolio" runat="server" MaxLength="50" Width="100%" TabIndex="17"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFolio" runat="server" ControlToValidate="TxtFolio" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFolio" runat="server" HighlightCssClass="vco" TargetControlID="RFVFolio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 70px;">
|
|
<asp:TextBox ID="TxtReferenciaDevolucion" runat="server" MaxLength="50" Width="100%" TabIndex="18"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVReferenciaDevolucion" runat="server" ControlToValidate="TxtReferenciaDevolucion" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ReferenciaDevolucion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEReferenciaDevolucion" runat="server" HighlightCssClass="vco" TargetControlID="RFVReferenciaDevolucion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 220px;">
|
|
|
|
<asp:DropDownList ID="DdlProveedor" runat="server" AutoPostBack="false" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" Style="width: 220px !important;" DataTextField="Nombre" DataValueField="CveProveedor" TabIndex="19"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVProveedor" runat="server" ControlToValidate="DdlProveedor" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proveedor''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOProveedor" runat="server" HighlightCssClass="vco" TargetControlID="RFVProveedor" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 50px;">
|
|
<asp:DropDownList ID="DdlTasa" runat="server" AutoPostBack="false" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100% !important;" ClientIDMode="Static" TabIndex="20">
|
|
<asp:ListItem Text="Exenta" Value="0" />
|
|
<asp:ListItem Text="16 %" Value="16" Selected="True" />
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td style="width: 80px;">
|
|
<asp:TextBox ID="TxtImporteBase" runat="server" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21" onkeyup="FormatoMoneda(this);CalculaImporteIVA1();CalculaImporteSinRet1();CalculaTotalErogacion1();"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteBase" runat="server" ControlToValidate="TxtImporteBase" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ImporteBase''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEImporteBase" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteBase" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 80px;">
|
|
<asp:TextBox ID="TxtImporteIVA" runat="server" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="22" onkeyup="FormatoMoneda(this);CalculaImporteSinRet1();CalculaTotalErogacion1();"></asp:TextBox>
|
|
</td>
|
|
<td style="width: 80px; text-align: right">
|
|
<asp:Label runat="server" ID="LbImporteSinRet" Text="0.00" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td style="width: 65px;">
|
|
<asp:TextBox ID="TxtRetIVA" runat="server" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="23" onkeyup="FormatoMoneda(this);CalculaTotalErogacion1();"></asp:TextBox>
|
|
</td>
|
|
<td style="width: 65px;">
|
|
<asp:TextBox ID="TxtRetISR" runat="server" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="24" onkeyup="FormatoMoneda(this);CalculaTotalErogacion1();"></asp:TextBox>
|
|
</td>
|
|
<td style="width: 80px; text-align: right">
|
|
<asp:Label runat="server" ID="LbGranTotalAdd" Text="0.00" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td style="text-align: right">
|
|
<asp:LinkButton runat="server" ID="LbAgregarDevolucion" ValidationGroup="GrpDevoluciones" Text="Agregar" TabIndex="25" OnClick="LbAgregarDevolucion_Click" CssClass="Texto"></asp:LinkButton>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<asp:GridView ID="GvDevoluciones" runat="server" AutoGenerateColumns="False" DataKeyNames="Id,IdProveedor" OnRowDataBound="GvDevoluciones_RowDataBound" EmptyDataText="No hay Devoluciones" ShowHeader="true" ShowHeaderWhenEmpty="false" CssClass="table table-striped mysmallbtn table-advance table-hover ScrollAD" data-height="400px" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSerie" runat="server" Text='<%# Eval("Serie")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="40" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtSerie" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("Serie")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVSerie" runat="server" ControlToValidate="TxtSerie" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevolucionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCESerie" runat="server" HighlightCssClass="vco" TargetControlID="RFVSerie" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="40" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtFolio" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("Folio")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFolio" runat="server" ControlToValidate="TxtFolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevolucionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFolio" runat="server" HighlightCssClass="vco" TargetControlID="RFVFolio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblRef" runat="server" Text='<%# Eval("Referencia")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="70" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtReferenciaDevolucion" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("Referencia")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVReferenciaDevolucion" runat="server" ControlToValidate="TxtReferenciaDevolucion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ReferenciaDevolucion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevolucionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEReferenciaDevolucion" runat="server" HighlightCssClass="vco" TargetControlID="RFVReferenciaDevolucion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblProv" runat="server" Text='<%# Eval("Proveedor")%>' CssClass="truncate" Width="220px"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="220" HorizontalAlign="Left" />
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlProveedor" CssClass="form-control input-small select2me" runat="server" AutoPostBack="false" Width="100%" DataTextField="Nombre" DataValueField="CveProveedor"></asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblTasa" runat="server" Text='<%# Eval("Tasa")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="50" />
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlTasa" runat="server" AutoPostBack="false" Width="100%">
|
|
<asp:ListItem Text="16 %" Value="16" Selected="True" />
|
|
</asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblIB" runat="server" Text='<%# Eval("ImporteBase", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="80" HorizontalAlign="Right" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtImporteBase" runat="server" MaxLength="50" Width="100%" onkeyup="" Text='<%# Eval("ImporteBase")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteBase" runat="server" ControlToValidate="TxtImporteBase" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ImporteBase''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevolucionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEImporteBase" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteBase" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblIVA" runat="server" Text='<%# Eval("ImporteIVA", "{0:N2}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="80" HorizontalAlign="Right" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtImporteIVA" runat="server" MaxLength="50" Width="100%" onkeyup="" Text='<%# Eval("ImporteIVA", "{0:N2}")%>'></asp:TextBox>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LabelImporteAntesRet" runat="server" Text='<%# Eval("ImporteAntesRet", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="80" HorizontalAlign="Right" />
|
|
<EditItemTemplate>
|
|
<asp:Label runat="server" ID="LbImporteSinRet" Width="100%" Text='<%# Eval("ImporteAntesRet", "{0:N2}")%>'></asp:Label>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LabelRetIVA" runat="server" Text='<%# Eval("RetIVA", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="65" HorizontalAlign="Right" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtRetIVA" runat="server" MaxLength="50" Width="100%" onkeyup="" Text='<%# Eval("RetIVA", "{0:N2}")%>'></asp:TextBox>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LabelRetISR" runat="server" Text='<%# Eval("RetISR", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="65" HorizontalAlign="Right" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtRetISR" runat="server" MaxLength="50" Width="100%" onkeyup="" Text='<%# Eval("RetISR", "{0:N2}")%>'></asp:TextBox>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LabelGranTotal" runat="server" Text='<%# Eval("GranTotal", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="80" HorizontalAlign="Right" />
|
|
<EditItemTemplate>
|
|
<asp:Label runat="server" ID="LbGranTotalAdd" Width="100%" Text='<%# Eval("GranTotal", "{0:N2}")%>'></asp:Label>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar" ItemStyle-HorizontalAlign="Center">
|
|
<EditItemTemplate>
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" OnClientClick="return confirm('Esta seguro de eliminar la Devolución?');" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
<br />
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="divCauIVA" style="background-color: white; display: none; z-index: 999; border: solid 1px black; color: Black; display: none; position: fixed; top: 15%; left: 20%;">
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr class="Titulos">
|
|
<td align="center">Causaciones IVA</td>
|
|
<td style="padding-right: 4px; text-align: right;" valign="top">
|
|
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('divCauIVA').style.display='none';" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<asp:UpdatePanel ID="UpCausaciones" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<br />
|
|
<asp:Panel ID="PnlCauIVA" runat="server">
|
|
<table border="0">
|
|
<tr class="Titulos">
|
|
<td style="width: 100px;">Base Gravable
|
|
</td>
|
|
<td style="width: 85px;">Importe Total
|
|
</td>
|
|
<td style="width: 85px;">Importe Base
|
|
</td>
|
|
<td style="width: 85px;">IVA
|
|
</td>
|
|
<td style="width: 85px;">IVA Pagado No Acreditable
|
|
</td>
|
|
<td style="width: 100px;">Comandos
|
|
</td>
|
|
<tr>
|
|
<td style="width: 100px;">
|
|
<asp:Label runat="server" ID="LblBaseGravable1" Text="Tasa 16%: (+)" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td style="width: 85px;">
|
|
<asp:TextBox ID="TxtImporteTotalC" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21" onkeyup="CalculaLabelImporteTotalCausaciones();"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteTotalC" runat="server" ControlToValidate="TxtImporteTotalC" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe Total''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoImporteTotalC" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteTotalC" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 85px;">
|
|
<asp:TextBox ID="TxtImporteBaseC" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21" onkeyup="CalculaTextImporteTotalCausaciones();CalculaIETUCausaciones();"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteBaseC" runat="server" ControlToValidate="TxtImporteBaseC" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe Base''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoImporteBaseC" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteBaseC" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 85px;">
|
|
<asp:TextBox ID="TxtIVAC" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21" onkeyup="CalculaTextImporteTotalCausaciones();"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVIvaC" runat="server" ControlToValidate="TxtIVAC" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Iva''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOIvaC" runat="server" HighlightCssClass="vco" TargetControlID="RFVIvaC" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="width: 85px;">
|
|
<asp:TextBox ID="TxtIvaNoAcreditableC" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVIvaNoAcreditableC" runat="server" ControlToValidate="TxtIvaNoAcreditableC" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''IvaNoAcreditable''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOIvaNoAcreditableC" runat="server" HighlightCssClass="vco" TargetControlID="RFVIvaNoAcreditableC" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label runat="server" ID="LblBaseGravable2" Text="IVA Retenido: (-)" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtIVARetenidoC" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21" onkeyup="CalculaLabelImporteTotalCausaciones();"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVRetIvaC" runat="server" ControlToValidate="TxtIVARetenidoC" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''IVARetenido''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCORetIVAC" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetIvaC" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label runat="server" ID="LblBaseGravable3" Text="ISR Retenido: (-)" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtISRRetenidoC" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21" onkeyup="CalculaLabelImporteTotalCausaciones();"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVRetISRC" runat="server" ControlToValidate="TxtISRRetenidoC" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ISR Retenido''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCORetISRC" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetISRC" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<b>
|
|
<asp:Label runat="server" ID="LblTotales" Text="TOTALES: " ClientIDMode="Static" Width="100%"></asp:Label></b>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<b>
|
|
<asp:Label runat="server" ID="LblTotalImporte" Text="" ClientIDMode="Static" Width="100%"></asp:Label></b>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<b>
|
|
<asp:Label runat="server" ID="LblTotalBase" Text="" ClientIDMode="Static" Width="100%"></asp:Label></b>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<b>
|
|
<asp:Label runat="server" ID="LblTotalIVA" Text="" ClientIDMode="Static" Width="100%"></asp:Label></b>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<b>
|
|
<asp:Label runat="server" ID="LblTotalIvaNoAcreditable" Text="" ClientIDMode="Static" Width="100%"></asp:Label></b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label runat="server" ID="lblIETU" Text="Acumulable IETU: " ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td></td>
|
|
<td style="text-align: right;">
|
|
<asp:TextBox ID="TxtIETU" runat="server" Style="text-align: right" MaxLength="50" Width="100%" ClientIDMode="Static" TabIndex="21"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVIETU" runat="server" ControlToValidate="TxtIETU" SetFocusOnError="True" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Acumulable para IETU''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausaciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOIETU" runat="server" HighlightCssClass="vco" TargetControlID="RFVIETU" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label runat="server" ID="LblEjercicio" Style="text-align: center" Text="Ejercicio: " ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<asp:Label runat="server" ID="lblEjercicioTexto" Style="text-align: left" Text="" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td></td>
|
|
<td>
|
|
<asp:Label runat="server" ID="LblPeriodo" Style="text-align: center" Text="Periodo: " ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<asp:Label runat="server" ID="LblPeriodoTexto" Style="text-align: left" Text="" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td colspan="2">
|
|
<asp:CheckBox runat="server" ID="ChkNoCausar" Text="  No Relacionar IVA" ClientIDMode="Static" Width="100%"></asp:CheckBox>
|
|
</td>
|
|
<td></td>
|
|
<td style="text-align: center">
|
|
<asp:LinkButton runat="server" ID="LbAgregarCausacion" ValidationGroup="GrpCausaciones" Text="Agregar" TabIndex="25" OnClick="LbAgregarCausacion_Click" CssClass="btn btn-success"></asp:LinkButton>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br />
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</asp:Panel>
|
|
|
|
<div id="IEhackInnerHeight" style="position: absolute; top: 100%; left: 1px; z-index: 1; visibility: hidden"></div>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script type="text/javascript">
|
|
function fnPrint() {
|
|
var data = $('#TbGral').html();
|
|
var mywindow = window.open();
|
|
mywindow.document.write('<html><head><title>Impresión Póliza</title>');
|
|
mywindow.document.write('<link type="text/css" rel="stylesheet" href="/Styles/Estilos.css"/>');
|
|
mywindow.document.write('</head><body>');
|
|
|
|
mywindow.document.write(data);
|
|
|
|
mywindow.document.write('</body></html>');
|
|
|
|
mywindow.print();
|
|
|
|
return true;
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
var EstatusGVS = 1;
|
|
var t;
|
|
|
|
function FncImp(t) {
|
|
|
|
var c = parseFloat($get('TxtCargo').value == '' ? '0' : $get('TxtCargo').value);
|
|
var a = parseFloat($get('TxtAbono').value == '' ? '0' : $get('TxtAbono').value);
|
|
|
|
if (t == 1 && c > 0) $get('TxtAbono').value = '';
|
|
if (t == 2 && a > 0) $get('TxtCargo').value = '';
|
|
}
|
|
|
|
function PrendeGVS() {
|
|
EstatusGVS = 1;
|
|
}
|
|
function ApagaGVS() {
|
|
EstatusGVS = 0;
|
|
}
|
|
function pageLoad(sender, args) {
|
|
|
|
$(function () {
|
|
//Genero las cuentas en el arreglo
|
|
var ArrCuentas = [<%= WSCuentas()%>];
|
|
|
|
|
|
$("#TxtCuenta").autocomplete({
|
|
minLength: 0,
|
|
source: ArrCuentas,
|
|
focus: function (event, ui) {
|
|
$("#TxtCuenta").val(ui.item.label);
|
|
$("#HdnCveCuenta").val(ui.item.value);
|
|
return false;
|
|
},
|
|
select: function (event, ui) {
|
|
|
|
$("#TxtCuenta").val(ui.item.label);
|
|
$("#HdnCveCuenta").val(ui.item.value);
|
|
|
|
return false;
|
|
}
|
|
});
|
|
});
|
|
|
|
// Al presionar cualquier tecla en cualquier campo de texto, ejectuamos la siguiente funcion
|
|
$('input[type=text]').on('keydown', function (e) {
|
|
// Si la tecla ENTER es presionada...
|
|
if (e.keyCode === 13) {
|
|
|
|
var currentTabIndex = $(this).attr('tabindex'); // Obtenemos el numero del tabindex del campo actual
|
|
var nextTabIndex = parseInt(currentTabIndex) + 1; // Le sumamos 1
|
|
var nextField = $('[tabindex=' + nextTabIndex + ']'); // Obtenemos (si existe) el siguiente elemento que usando nextTabIndex
|
|
if (nextField.length > 0) { // Si se encontro un elemento:
|
|
nextField.focus(); // Hacerle focus / seleccionarlo
|
|
nextField.select();
|
|
e.preventDefault(); // Ignorar el funcionamiento predeterminado (enviar el formulario)
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// Al presionar cualquier tecla en cualquier campo de texto, ejectuamos la siguiente funcion
|
|
$('select').on('keydown', function (e) {
|
|
// Si la tecla ENTER es presionada...
|
|
if (e.keyCode === 13) {
|
|
|
|
var currentTabIndex = $(this).attr('tabindex'); // Obtenemos el número del tabindex del campo actual
|
|
var nextTabIndex = parseInt(currentTabIndex) + 1; // Le sumamos 1
|
|
var nextField = $('[tabindex=' + nextTabIndex + ']'); // Obtenemos (si existe) el siguiente elemento que usando nextTabIndex
|
|
if (nextField.length > 0) { // Si se encontró un elemento:
|
|
nextField.focus(); // Hacerle focus / seleccionarlo
|
|
nextField.select();
|
|
e.preventDefault(); // Ignorar el funcionamiento predeterminado (enviar el formulario)
|
|
}
|
|
}
|
|
});
|
|
|
|
$(document).ready(function () {
|
|
|
|
var w = $('#<%=GvDatos.ClientID%>').width();
|
|
var h = $('#<%=GvDatos.ClientID%>').height();
|
|
var c = EstatusGVS
|
|
|
|
console.log(EstatusGVS)
|
|
});
|
|
}
|
|
|
|
function FncVerifica() {
|
|
|
|
var Txt = '';
|
|
if ($get('TxtNumeroPoliza').value != $get('HdnFolioPoliza').value) {
|
|
Txt = Txt + 'Número de póliza\n';
|
|
}
|
|
if ($get('TxtFechaPoliza').value != $get('HdnFechaPoliza').value) {
|
|
Txt = Txt + 'Fecha de póliza\n';
|
|
}
|
|
if ($get('<%=DdlTipoPoliza.ClientID%>').value != $get('HdnTipoPoliza').value) {
|
|
Txt = Txt + 'Tipo de póliza\n';
|
|
}
|
|
|
|
if (Txt != '') {
|
|
if (confirm('Se Modificarán los siguientes datos:\n\n' + Txt + '\nEstá Seguro de realizar los cambios?')) {
|
|
$get('HdnGuardar').value = "True";
|
|
} else {
|
|
$get('HdnGuardar').value = "False";
|
|
}
|
|
}
|
|
else {
|
|
$get('HdnGuardar').value = "";
|
|
}
|
|
}
|
|
|
|
//Calcula Causaciones
|
|
function CalculaTextImporteTotalCausaciones() {
|
|
var ImporteBase = ToDouble($get('TxtImporteBaseC').value);
|
|
var IVA = ToDouble($get('TxtIVAC').value);
|
|
var IvaRetenido = ToDouble($get('TxtIVARetenidoC').value);
|
|
var IsrRetenido = ToDouble($get('TxtISRRetenidoC').value);
|
|
|
|
$get("TxtImporteTotalC").value = (ImporteBase + IVA).toLocaleString('en-IN');
|
|
$get("LblTotalImporte").innerText = (ImporteBase + IVA - IvaRetenido - IsrRetenido).toLocaleString('en-IN');
|
|
$get("LblTotalBase").innerText = (ImporteBase).toLocaleString('en-IN');
|
|
$get("LblTotalIVA").innerText = (IVA).toLocaleString('en-IN');
|
|
}
|
|
|
|
function CalculaLabelImporteTotalCausaciones() {
|
|
var ImporteTotal = ToDouble($get('TxtImporteTotalC').value);
|
|
var IvaRetenido = ToDouble($get('TxtIVARetenidoC').value);
|
|
var IsrRetenido = ToDouble($get('TxtISRRetenidoC').value);
|
|
|
|
$get("LblTotalImporte").innerText = (ImporteTotal - IvaRetenido - IsrRetenido).toLocaleString('en-IN');
|
|
}
|
|
|
|
function CalculaIETUCausaciones() {
|
|
var ImporteBase = ToDouble($get('TxtImporteBaseC').value);
|
|
|
|
$get("TxtIETU").value = (ImporteBase).toLocaleString('en-IN');
|
|
}
|
|
|
|
//Calcula DEVOLUCIONES
|
|
function CalculaImporteIVA1() {
|
|
var ImporteBase = ToDouble($get('TxtImporteBase').value);
|
|
var TasaIVA = ToDouble($get('DdlTasa').value) / 100;
|
|
|
|
$get("TxtImporteIVA").value = (ImporteBase * TasaIVA).toLocaleString('en-IN');
|
|
}
|
|
|
|
function CalculaImporteSinRet1() {
|
|
var ImporteBase = ToDouble($get('TxtImporteBase').value);
|
|
var ImporteIVA = ToDouble($get('TxtImporteIVA').value);
|
|
|
|
$get("LbImporteSinRet").innerText = (ImporteBase + ImporteIVA).toLocaleString('en-IN');
|
|
}
|
|
|
|
function CalculaTotalErogacion1() {
|
|
var ImporteSinRet = ToDouble($get("LbImporteSinRet").innerText);
|
|
var RetIVA = ToDouble($get('TxtRetIVA').value);
|
|
var RetISR = ToDouble($get('TxtRetISR').value);
|
|
|
|
$get("LbGranTotalAdd").innerText = (ImporteSinRet - (RetIVA + RetISR)).toLocaleString('en-IN');
|
|
}
|
|
|
|
|
|
//Calcula DEVOLUCIONES GRID
|
|
function CalculaImporteIVA(Importe, Tasa, ImporteIVA) {
|
|
debugger;
|
|
var ImporteBase = ToDouble(Importe.value);
|
|
var TasaIVA = ToDouble(Tasa.value) / 100;
|
|
|
|
ImporteIVA.value = (ImporteBase * TasaIVA).toLocaleString('en-IN');
|
|
}
|
|
|
|
function CalculaImporteSinRet(Base, IVA, Importe) {
|
|
var ImporteBase = ToDouble(Base.value);
|
|
var ImporteIVA = ToDouble(IVA.value);
|
|
|
|
Importe.innerText = (ImporteBase + ImporteIVA).toLocaleString('en-IN');
|
|
}
|
|
|
|
function CalculaTotalErogacion(Importe, IVA, ISR, Total) {
|
|
var ImporteSinRet = ToDouble(Importe.innerText);
|
|
var RetIVA = ToDouble(IVA.value);
|
|
var RetISR = ToDouble(ISR.value);
|
|
|
|
Total.innerText = (ImporteSinRet - (RetIVA + RetISR)).toLocaleString('en-IN');
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|