314 lines
22 KiB
Plaintext
314 lines
22 KiB
Plaintext
<%@ Page Title="Nómina - Nómina" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Nomina.aspx.vb" Inherits="Nomina_Nomina" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
|
|
<li>
|
|
<asp:LinkButton ID="ImgExcel" runat="server" Visible="True" Target="_blank"><img src="/Imagenes/IconoExcel.gif"/>Descargar Excel</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="ImgDownZip" runat="server" Visible="True" Target="_blank"><i class="fa fa-folder-o"></i> Descargar Zip</asp:LinkButton>
|
|
</li>
|
|
<asp:UpdatePanel ID="UpnTools" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkPagoNomina" Visible="false" runat="server"><i class="fa fa-money"></i>Pagar Nómina</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkProvisionNomina" Visible="false" runat="server"><i class="fa fa-money"></i>Provisionar Nómina</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkCorreos" runat="server" Visible="true" Target="_blank" OnClick="LnkCorreos_Click"><i class="fa fa-envelope-o"></i>Enviar Recibos</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
<%-- Nómina <asp:Button ID="BtnTest" runat="server" Text="Genera PDF" Visible="True" />--%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="titlefiltros caption">
|
|
<div class="row">
|
|
<label class="col-md-1" style="width: 60px !important;">Ejercicio: </label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlEjercicios" runat="server" Style="width: 70px !important;" CssClass="select2me"></asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 ">Tipo Período:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="true" CssClass="select2me" AutoPostBack="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" Style="width: 110px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 " style="width: 60px !important;">Período:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlPeriodo" runat="server" AppendDataBoundItems="true" CssClass="select2me" DataTextField="NominaEstatus" DataValueField="CvePeriodo" Style="width: 170px !important;" AutoPostBack="True">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 " style="width: 70px !important;">Agrupador:</label>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlAgrupador" runat="server" Style="width: 100px !important;" CssClass="select2me">
|
|
<asp:ListItem Text="Empresa" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Turno" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<label class="col-md-1" style="width: 60px !important;">Proyecto: </label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlProyecto" runat="server" AppendDataBoundItems="true" CssClass="select2me" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 ">SubProyecto:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" CssClass="select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<label class="col-md-1 " style="width: 60px !important;">Turno:</label>
|
|
<div class="col-md-2" style="width: 110px !important;">
|
|
<asp:DropDownList ID="DdlTurno" runat="server" AppendDataBoundItems="true" CssClass="select2me" DataTextField="Turno" DataValueField="CveTurno" Style="width: 100px !important;" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList></td>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Buscar" Visible="False" class="btn btn-primary" />
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:Button ID="BtnAutorizar" runat="server" Text="Autorizar" Visible="False" class="btn btn-primary" />
|
|
<asp:Button ID="BtnGeneraPDF" runat="server" Text="PDF" Visible="False" class="btn btn-primary" />
|
|
<asp:Button ID="BtnEmitir" runat="server" Text="Timbrar" Visible="False" class="btn btn-primary" />
|
|
<asp:Button ID="BtnActualizaNomina" runat="server" Text="Act Nomina" Visible="False" class="btn btn-primary" />
|
|
<a style="display: none;" href="/Coolings.docx">Recibos</a>
|
|
</div>
|
|
<asp:Label ID="LblFechaPago" runat="server" Visible="false" CssClass="col-md-1 ">Fecha Pago:</asp:Label>
|
|
<div class="col-md-1" id="DivFechaPago" runat="server" visible="false">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px; margin-bottom: -10px;">
|
|
<asp:TextBox ID="TxtFechaPago" runat="server" CssClass="form-control" CausesValidation="true" Width="100%" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaPago" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaPago" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="TxtFechaPago" Display="None" ErrorMessage="El campo <b>''Fecha Pago''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="TxtFechaPago" Display="None" ErrorMessage="El campo <b>''Fecha Pago''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GVDatos" runat="server" DataKeyNames="CvePeriodo, CvePersonal, CveNomina, SeTimbro, SumaPercepciones, SumaDeducciones, Total, SerieFolio,Nombre,Correo" AutoGenerateColumns="False"
|
|
CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:HyperLinkField
|
|
DataNavigateUrlFields="CvePersonal,CvePeriodo"
|
|
DataNavigateUrlFormatString="/Nomina/SobreRecibo.aspx?CvePersonal={0}&CvePeriodo={1}"
|
|
Text='<i class="fa fa-list-alt"></i>'
|
|
Target="_blank"
|
|
HeaderText="Recibo" />
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Nombre</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="350px" HorizontalAlign="Left" />
|
|
</asp:TemplateField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
|
|
<asp:BoundField DataFormatString="{0:N2}" HeaderText="Percepciones" DataField="SumaPercepciones">
|
|
<ItemStyle Width="120px" HorizontalAlign="Right" BackColor="LightGray" />
|
|
</asp:BoundField>
|
|
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataFormatString="{0:N2}" HeaderText="Deducciones" DataField="SumaDeducciones">
|
|
<ItemStyle Width="120px" HorizontalAlign="Right" BackColor="LightGray" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataFormatString="{0:N2}" HeaderText="Total" DataField="Total">
|
|
<ItemStyle Width="120px" HorizontalAlign="Right" BackColor="LightGray" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField Visible="false" DataFormatString="{0:N2}">
|
|
<ItemStyle Width="80px" HorizontalAlign="Right" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataFormatString="{0:N2}" HeaderText="Obligaciones" DataField="SumaObligaciones">
|
|
<ItemStyle Width="120px" HorizontalAlign="Right" BackColor="LightGray" />
|
|
</asp:BoundField>
|
|
<asp:TemplateField ItemStyle-Width="20px">
|
|
<ItemTemplate>
|
|
<asp:Image runat="server" ID="ImgBandera" Visible="false" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField >
|
|
<ItemTemplate>
|
|
<div style="width: 70px; text-align:right;">
|
|
<asp:LinkButton runat="server" ID="LnkTimbrar" CssClass="btn btn-circle btn-sm blue mysmallbtn" Text="<i class='fa fa-bell'></i>" OnClick="LnkTimbrar_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Timbrar?" data-btn-ok-label="si" />
|
|
<asp:LinkButton runat="server" ID="ImgDelete" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='icon-trash'></i>" OnClick="ImgDelete_Click" CommandArgument='<%# Eval("CveNomina") %>' Visible='<%# If(Eval("CveNomina").ToString <> "" AND Eval("SeTimbro").tostring = "False", True, False)%>' OnClientClick="javascript:return confirm('¿Está seguro que desea eliminar la nómina?');" />
|
|
<asp:LinkButton runat="server" ID="LnkCancelar" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='fas fa-ban'></i>" OnClick="ImgCancelar_Click" CommandArgument='<%# Eval("CveNomina") %>' Visible='<%# If(Eval("CveNomina").ToString <> "" AndAlso PermisoCancelarEmitido AndAlso Eval("SeTimbro").ToString = "True", True, False)%>' OnClientClick="javascript:return confirm('¿Está seguro que desea cancelar la nómina?');" />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
<HeaderStyle CssClass="Titulos"></HeaderStyle>
|
|
<AlternatingRowStyle CssClass="TextoAlterno"></AlternatingRowStyle>
|
|
<RowStyle CssClass="Texto"></RowStyle>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|