1489 lines
116 KiB
Plaintext
1489 lines
116 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">
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpAcciones" UpdateMode="Conditional" >
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:HyperLink ID="HLImprimir" runat="server" Visible="false" Style="color: #686868;"><i class="fa fa-print" style="color: #686868;"></i> Imprimir</asp:HyperLink>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBDevIVA" OnClick="LBDevIVA_Click" runat="server" Style="color: #686868;"><i class="fa fa-plus-circle" style="color: #686868;"></i> Agregar movtos de IVA</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBCauIVA" OnClick="LBCauIVA_Click" runat="server" Style="color: #686868;"><i class="fa fa-plus-circle" style="color: #686868;"></i> Causaciones IVA</asp:LinkButton>
|
|
</li>
|
|
|
|
<li>
|
|
<asp:HyperLink ID="HlAgregarExcel" NavigateUrl="#" Visible="true" data-toggle="modal" data-target="#DivCargaExcel" runat="server"><i class='fa fa-server'></i> Cargar Movimientos</asp:HyperLink>
|
|
</li>
|
|
</ContentTemplate>
|
|
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
|
|
|
|
</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="Id" DataTextField="Nombre" 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>
|
|
<%--<asp:Panel ID="PnlConsulta" runat="server" DefaultButton="BtnConsultar">
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT" style="">
|
|
<div class="titlefiltros caption ">
|
|
<ul class="list-inline">
|
|
<li id="colFiltros" runat="server" width="20px"></li>
|
|
<li id="tdD" runat="server" align="left" width="150px">Tipo:
|
|
<asp:DropDownList ID="DdlTipo" runat="server" DataValueField="Id" DataTextField="Nombre" CssClass="Texto" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;" TabIndex="1">
|
|
</asp:DropDownList>
|
|
</li>
|
|
<li>Fecha:
|
|
<asp:TextBox ID="TxtFecha" runat="server" CssClass="Texto" MaxLength="10" CausesValidation="true" ValidationGroup="GrpConsultar" Width="70px" TabIndex="2"></asp:TextBox>
|
|
<asp:ImageButton runat="server" ID="ImgCalendarioI" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
|
<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>
|
|
</li>
|
|
<li>Número de póliza:
|
|
<asp:TextBox ID="TxtNumero" runat="server" CssClass="Texto" MaxLength="8" ValidationGroup="GrpConsultar" Width="80px" 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>
|
|
</li>
|
|
</ul>
|
|
<ul>
|
|
<li>
|
|
<asp:Button ID="BtnPoliza" runat="server" Text="Pólizas" Style="display: none;" PostBackUrl="/Contabilidad/RegPolizas.aspx" class="btn btn-primary" /> </td>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" CausesValidation="true" ValidationGroup="GrpConsultar" TabIndex="4" class="btn btn-primary" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>--%>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<%--<table id="TbGral" width="100%" border="0" cellpadding='0' cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<table id="tbl" runat="server" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>--%>
|
|
|
|
<asp:Panel ID="PnlDatos" runat="server" DefaultButton="BtnGuardar">
|
|
|
|
<asp:UpdatePanel ID="upTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<%-- <table border="0" class="Texto Widthall tablenopadding">
|
|
<tr style="height: 18px;">
|
|
<td align="center" colspan="2" style="width: 269px">
|
|
<asp:Label ID="LblEmpresa" runat="server" Font-Size="Large"></asp:Label>
|
|
</td>
|
|
</tr>--%>
|
|
<div class="row" style="margin-bottom: 10px;">
|
|
<div class="col-md-2" style="width: 100px !important;">Fecha:</div>
|
|
<%--FECHAAAAA--%>
|
|
<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" DataTextField="Nombre" DataValueField="Id" 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="HdnIdPoliza" runat="server" ClientIDMode="Static"/>--%>
|
|
<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">Póliza 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>
|
|
<%--<tr style="height: 10px;">
|
|
<td></td>
|
|
</tr>
|
|
</table>--%>
|
|
|
|
<%--<table border="1" rules="all" style="border-collapse: collapse;" width="100%">--%>
|
|
<asp:Panel ID="PnlAgregar" runat="server" DefaultButton="LbAgregar">
|
|
<table class="table table-hover table-advance Widthall">
|
|
|
|
<tr class="Titulos">
|
|
<th style="width: 5%;"><%--align="center" width="43px"--%>
|
|
<asp:LinkButton ID="LbNumMovto" runat="server" Text="N°">
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th style="width: 7%;"><%--align="center" width="90px"--%>
|
|
<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%;"><%--align="center" width="230px"--%>
|
|
<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%;">SegNeg</th>
|
|
<%--align="center" width="90px"--%>
|
|
<th style="width: 23%;"><%--align="center" width="250px"--%>
|
|
<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"><%--align="center" width="80px"--%>
|
|
<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"><%--align="center" width="80px"--%>
|
|
<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%;"><%--align="center" width="80px"--%>
|
|
<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%;"><%--align="center" width="80px"--%>
|
|
<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>
|
|
<%--width="150px"--%>
|
|
<th></th>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 5%;"></td>
|
|
<%--height: 32px;--%>
|
|
<td style="width: 7%;"><%--height: 32px; --%>
|
|
<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%;"><%--height: 32px;--%>
|
|
<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%;"><%--height: 32px;--%>
|
|
<asp:DropDownList ID="DdlSegNeg" runat="server" DataTextField="Nombre" DataValueField="Id" TabIndex="11" CssClass="form-control input-sm"></asp:DropDownList>
|
|
</td>
|
|
<td style="width: 23%;"><%--height: 32px;--%>
|
|
<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"><%--height: 32px;--%>
|
|
<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"><%--height: 32px;--%>
|
|
<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%;"><%--height: 32px;--%>
|
|
<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%;"><%--height: 32px;--%>
|
|
<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%;"><%--text-align: center; height: 32px; --%>
|
|
<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>
|
|
<%--Width="70px"--%>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCuenta" runat="server" Text='<%# Eval("CuentaFormato", "{0}")%>'></asp:Literal><br />
|
|
<b>
|
|
<asp:Literal ID="LitNombreCuenta" runat="server" Text='<%# Eval("Cuenta", "{0}")%>'></asp:Literal></b>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlCuenta" runat="server" DataTextField="CtaCodigo" DataValueField="Id" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<%--Width="220"--%>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSegNeg" runat="server" Text='<%# Eval("SegNeg", "{0}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlSegNeg" runat="server" DataTextField="Nombre" DataValueField="Id" CssClass="form-control input-sm"></asp:DropDownList>
|
|
<%--Width="90"--%>
|
|
</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>
|
|
<%--Width="240px"--%>
|
|
<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>
|
|
<%--Width="250px"--%>
|
|
</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>
|
|
<%--Width="70px"--%>
|
|
<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>
|
|
<%--Width="70px"--%>
|
|
<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>
|
|
<%--Width="70px"--%>
|
|
<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>
|
|
<%--Width="70px"--%>
|
|
<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>" />
|
|
|
|
<%-- <asp:ImageButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" ImageUrl="/Imagenes/Btn_Update.png" ValidationGroup="GrpGV" />
|
|
<asp:ImageButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" ImageUrl="/Imagenes/Btn_Cancel.png" /> --%>
|
|
</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>" />
|
|
|
|
<%--<asp:ImageButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" ImageUrl="/Imagenes/Btn_Edit.png"/>--%>
|
|
</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();" />
|
|
<%--data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si"--%>
|
|
|
|
<%--<asp:ImageButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" ImageUrl="/Imagenes/Btn_Delete.png" 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>
|
|
<%-- <table class="Texto" >
|
|
<tr>
|
|
<td style="border-bottom:none; text-align:right; width:1300px";">Suma Iguales: </td>
|
|
<td style="border-top: solid 1px #000000;" width="160px">
|
|
<table cellpadding="0" cellspacing="0" rules="all" style="border-top:solid 1px #000000;" class="Texto">
|
|
<tr>
|
|
<td style="text-align:right; width:90px;">0.00</td>
|
|
<td style="text-align:right; width:90px;">0.00</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td style="border-bottom:none"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-bottom:none; border-top:none; text-align:right;"></td>
|
|
<td style="width:160px;">
|
|
<table border="0" cellpadding="0" cellspacing="0" rules="all" class="Texto">
|
|
<tr>
|
|
<td align="right" style="border-right:none; width: 80px;">Diferencia:</td>
|
|
<td align="right" style="border-left:none; width: 80px;">0.00</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td style="border-bottom:none;border-top:none"></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-bottom:none;border-top:none;border-left:none;border-right:none" colspan="2"> </td>
|
|
<td style="border-bottom:none;border-top:none;border-left:none">
|
|
 
|
|
<%--<asp:Button ID="BtnGuardar" runat="server" CausesValidation="true" Text="Guardar" ValidationGroup="GrpGuardar" />--%>
|
|
<%-- </td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-right:none;border-top:none">  </td>
|
|
<td style="border-left:none;border-right:none;border-top:none"> </td>
|
|
<td align="center" width="200px" style="border-left:none;border-top:none">
|
|
</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:HyperLink ID="HplCvePrep" runat="server" Visible="false" Target="_blank">Prep </asp:HyperLink>
|
|
<%--<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" CausesValidation="true" ValidationGroup="GrpGuardar" Width="80px" UseSubmitBehavior="False" class="btn btn-primary"/>--%>
|
|
<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:Button ID="BtnNuevo" runat="server" Text="Nuevo" Width="80px" class="btn btn-primary" />--%>
|
|
<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="Id"></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 width="80">
|
|
<asp:LinkButton ID="LbImporte" runat="server" CausesValidation="False" Text="Importe" CommandArgument="Importe;0" OnClick="LbOrden_Click"></asp:LinkButton> <asp:ImageButton ID="ImgImporte" runat="server" CommandArgument="Importe;0" OnClick="LbOrden_Click" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</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="Id" 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 width="80">
|
|
<asp:TextBox ID="TxtImporte" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporte" runat="server" ControlToValidate="TxtImporte" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEImporte" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporte" Width="300px"></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>
|
|
<%--<asp:RequiredFieldValidator ID="RFVImporteIVA" runat="server" ControlToValidate="TxtImporteIVA" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ImporteIVA''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEImporteIVA" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteIVA" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</td>
|
|
<td style="width: 80px; text-align: right">
|
|
<asp:Label runat="server" ID="LbImporteSinRet" Text="0.00" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
<%-- <asp:TextBox ID="TxtImporteAntesRet" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteAntesRet" runat="server" ControlToValidate="TxtImporteAntesRet" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ImporteAntesRet''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEImporteAntesRet" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteAntesRet" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</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>
|
|
<%--<asp:RequiredFieldValidator ID="RFVRetIVA" runat="server" ControlToValidate="TxtRetIVA" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RetIVA''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCERetIVA" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetIVA" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</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>
|
|
<%-- <asp:RequiredFieldValidator ID="RFVRetISR" runat="server" ControlToValidate="TxtRetISR" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RetISR''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCERetISR" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetISR" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</td>
|
|
<td style="width: 80px; text-align: right">
|
|
<asp:Label runat="server" ID="LbGranTotalAdd" Text="0.00" ClientIDMode="Static" Width="100%"></asp:Label>
|
|
<%--<asp:TextBox ID="TxtGranTotal" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVGranTotal" runat="server" ControlToValidate="TxtGranTotal" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''GranTotal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDevoluciones"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEGranTotal" runat="server" HighlightCssClass="vco" TargetControlID="RFVGranTotal" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</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="Id"></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>
|
|
|
|
|
|
<%--<asp:GridView ID="GvCausaciones" runat="server" AutoGenerateColumns="False" DataKeyNames="IdPoliza" OnRowDataBound="GvCausaciones_RowDataBound" EmptyDataText="No hay Causaciones" 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:Label ID="LblBaseGravable" width="100px" runat="server" Text='<%# Eval("BaseGravable")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblImporteTotal" width="90px" runat="server" Text='<%# Eval("ImporteTotal")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="90" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtImporteTotal" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("ImporteTotal")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteTotal" runat="server" ControlToValidate="TxtSerie" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''ImporteTotal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCausacionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOImporteTotal" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteTotal" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblImporteBase" width="90px" runat="server" Text='<%# Eval("ImporteBase")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="90" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtImporteBase" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("ImporteBase")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporteBase" runat="server" ControlToValidate="TxtReferenciaDevolucion" 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="GrpCausacionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOImporteBase" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporteBase" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblIva" width="90px" runat="server" Text='<%# Eval("IVA")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="90" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtIva" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("IVA")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVIva" runat="server" ControlToValidate="TxtSerie" 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="GrpCausacionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOIva" runat="server" HighlightCssClass="vco" TargetControlID="RFVIva" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblIvaNoAcreditable" width="90px" runat="server" Text='<%# Eval("IVANoAcreditable")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="90" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtIvaNoAcreditable" runat="server" MaxLength="50" Width="100%" Text='<%# Eval("IVANoAcreditable")%>'></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVIvaNoAcreditable" runat="server" ControlToValidate="TxtSerie" 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="GrpCausacionesEdit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOIvaNoAcreditable" runat="server" HighlightCssClass="vco" TargetControlID="RFVIvaNoAcreditable" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar" ItemStyle-HorizontalAlign="Center">
|
|
<EditItemTemplate>
|
|
<asp:LinkButton ID="LinkButton13" 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="LinkButton14" 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="LinkButton15" 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="LinkButton16" 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>
|
|
|
|
|
|
</asp:Panel>
|
|
<%--</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>--%>
|
|
<div id="IEhackInnerHeight" style="position: absolute; top: 100%; left: 1px; z-index: 1; visibility: hidden"></div>
|
|
|
|
<!-- HISTORIAL DE BITACORA-->
|
|
<asp:UpdatePanel ID="UpBitacora" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet light bordered xspadding">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Historial de Modificación</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:GridView ID="GvBitacora" runat="server" GridLines="None" Width="100%" CssClass="table table-striped table-advance table-hover Widthall ADSCroll mysmallbtn" CellSpacing="0" AutoGenerateColumns="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Descripcion" HeaderText="Campo" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Anterior" HeaderText="Anterior" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Actual" HeaderText="Actual" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
|
|
<div id="DivCargaExcel" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<asp:UpdatePanel ID="UpConcepto" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Cargar Movimientos</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet light xspadding bordered whitoutcol" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Descargar Plantilla </span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body formnombottom">
|
|
<h4>Paso 1 : Descargar Plantilla</h4>
|
|
<br />
|
|
<div align="center">
|
|
<asp:LinkButton ID="LbDescargarExcelConceptos" runat="server" CssClass="btn btn-warning" Text="Descargar Plantilla" OnClick="LbDescargarExcelConceptos_Click" />
|
|
</div>
|
|
<br />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet light xspadding bordered whitoutcol" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Cargar Plantilla </span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body formnombottom">
|
|
<h4>Paso 2: Cargar Plantilla</h4>
|
|
<br />
|
|
<%-- <div class="row">
|
|
<div class="col-md-12" align="center">
|
|
<h4>Arraste o haga click para subir el archivo Excel</h4>
|
|
</div>
|
|
</div>--%>
|
|
<div class="row">
|
|
<div class="col-md-11" style="margin-left: 30px; margin-right: 30px; margin-bottom: 20px;">
|
|
<asp:TextBox ID="TxtExcel" CssClass="ADSdropzone hidden" Text="" data-maxFile="1" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="row">
|
|
<%-- <div class="col-md-2" style="text-align: left">
|
|
</div>--%>
|
|
<div class="col-md-12" style="text-align: center">
|
|
<asp:Button ID="BtnCargaExcel" runat="server" CssClass="btn btn-success" Text="Procesar"></asp:Button>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LbDescargarExcelConceptos" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="divDescripcion" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpDescripcion" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h4 class="modal-title" id="myModalLabel" runat="server">Motivo</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyDescripcion" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div>
|
|
<label>Descripcion:</label>
|
|
<br />
|
|
<asp:TextBox ID="TxtDescripcion" runat="server" Height="100" Width="600" TextMode="MultiLine" CausesValidation="true" MaxLength="500"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripcion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEDescripcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcion"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooter" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnRemove" runat="server" CssClass="btn btn-primary" OnClick="BtnRemove_Click" ValidationGroup="GrpObligatorio">Eliminar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</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; // 1 --> Activa GridViewScroller
|
|
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; // 1 --> Activa GridViewScroller
|
|
}
|
|
function ApagaGVS() {
|
|
EstatusGVS = 0; // 0 --> Desactiva GridViewScroller
|
|
}
|
|
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);
|
|
|
|
//$("#project-description").html(ui.item.desc);
|
|
//$("#project-icon").attr("src", "images/" + ui.item.icon);
|
|
|
|
return false;
|
|
}
|
|
});
|
|
//.autocomplete("instance")._renderItem = function (ul, item) {
|
|
// return $("<li>")
|
|
// .append("<a>" + item.label + "</a>")
|
|
// .appendTo(ul);
|
|
//};
|
|
});
|
|
|
|
// 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 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)
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// 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
|
|
|
|
//var p = ('<%=(Not Page.IsPostBack).ToString().ToLower()%>');
|
|
//console.log('CargaGVS: ');
|
|
//console.log(args['_isPartialLoad'])
|
|
console.log(EstatusGVS)
|
|
|
|
<%--if (h > 275 && EstatusGVS === 1) { //&& !args._isPartialLoad
|
|
$('#<%=GvDatos.ClientID%>').gridviewScroll({
|
|
width: 1100, //994,
|
|
height: 275
|
|
});
|
|
} --%>
|
|
});
|
|
}
|
|
|
|
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>
|