Files
SIG/Nomina/PreNomina.aspx
JORGE LUIS CAUDILLO ESPARZA d6d3bebcb5
2021-01-26 03:07:15 -07:00

382 lines
22 KiB
Plaintext

<%@ Page Title="Nómina - Pre nómina" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PreNomina.aspx.vb" Inherits="Nomina_PreNomina" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
<asp:UpdatePanel ID="UpnTools" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<li>
<asp:LinkButton ID="ImgExcel" Target="_blank" runat="server"> <i class="fa fa-ad-excel"></i> Imprimir</asp:LinkButton>
</li>
<li>
<asp:HyperLink ID="HLImgImprimir" Target="_blank" runat="server" NavigateUrl="#"> <i class="fa fa-ad-pdf"></i> Imprimir</asp:HyperLink>
</li>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
Pre nómina
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div class="portlet solid grey-cascade portlet-filter" style="">
<div class="portlet-title portlet-filterT" style="">
<div class="titlefiltros caption ">
<ul class="list-inline">
<li>Tipo Período:
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 110px !important;">
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
</asp:DropDownList>
</li>
<li>Período:
<asp:DropDownList ID="DdlPeriodo" runat="server" AppendDataBoundItems="true" DataTextField="NumPeriodo" DataValueField="CvePeriodo" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 170px !important;">
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
</asp:DropDownList>
</li>
<li>Proyecto:
<asp:DropDownList ID="DdlProyecto" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 135px !important;" ValidationGroup="GrpGuardar">
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
</asp:DropDownList>
</li>
</ul>
</div>
<div class="tools">
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
<asp:Button ID="BtnGuardarBono" runat="server" Text="Guardar Bonos" class="btn btn-primary" />
<asp:Button ID="BtnImpresion" runat="server" Text="Cerrar Nómina" class="btn btn-primary" />
<a href="javascript:;" class="expand"></a>
<a onclick="document.getElementById('C_BtnConsultar').click();" class="reload"></a>
</div>
</div>
<div class="portlet-body" style="display: none;">
<ul class="list-inline">
<li>SubProyecto:
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 200px !important;" ValidationGroup="GrpGuardar">
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
</asp:DropDownList>
</li>
<li>Turno:
<asp:DropDownList ID="DdlTurno" runat="server" AppendDataBoundItems="true" DataTextField="Turno" DataValueField="CveTurno" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;" ValidationGroup="GrpGuardar">
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
</asp:DropDownList>
</li>
</ul>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<br />
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table id="TblHeader" runat="server" class="table table-striped table-advance table-hover Widthall TblHeader" >
<thead>
<tr class="Titulos">
<th rowspan="2" width="250px">Nombre</th>
<th colspan="3">Lunes&nbsp;<asp:Literal ID="LtlLunes" runat="server"></asp:Literal></th>
<th colspan="3">Martes&nbsp;<asp:Literal ID="LtlMartes" runat="server"></asp:Literal></th>
<th colspan="3">Miércoles&nbsp;<asp:Literal ID="LtlMiercoles" runat="server"></asp:Literal></th>
<th colspan="3">Jueves&nbsp;<asp:Literal ID="LtlJueves" runat="server"></asp:Literal></th>
<th colspan="3">Viernes&nbsp;<asp:Literal ID="LtlViernes" runat="server"></asp:Literal></th>
<th colspan="3">Sábado&nbsp;<asp:Literal ID="LtlSabado" runat="server"></asp:Literal></th>
<th colspan="3">Domingo&nbsp;<asp:Literal ID="LtlDomingo" runat="server"></asp:Literal></th>
<th rowspan="2" width="70px">&nbsp;Asis</th>
<th rowspan="2" width="40px">Faltas</th>
<%--<td rowspan="2" width="60px">&nbsp;% Sem&nbsp;</td>--%>
<th rowspan="2" width="60px">&nbsp;Hrs Ext</th>
<%--<td rowspan="2" width="65px">&nbsp;Hrs Trip&nbsp;</td>--%>
<%--<th id="TDAplica" runat="server" rowspan="2" style="width: 70px;">¿Aplica?</th>
<th id="TDBono" runat="server" rowspan="2" style="width: 60px;">Bono</th>
<th id="TDPagoAdicional" runat="server" rowspan="2" style="width: 60px;">Pago Adi</th>
<th id="TDDescuento" runat="server" rowspan="2" style="width: 60px;">Desc Adi</th>--%>
</tr>
<tr class="Titulos">
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
<th width="35px">Tipo</th>
<th width="30px">%</th>
<th width="40px">Hrs E</th>
<%--<td width="60px">Hrs Trip</td>--%>
</tr>
</thead>
</table>
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePersonal" EmptyDataText="No se encontraron Ventas con los filtros especificados" data-tableheader=".TblHeader"
ToolTip="Pre Nómina" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style=" text-align: center;" GridLines="None" data-scrollwidthrow=".scrollwidthrow">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="250px" />
</asp:TemplateField>
<%--Lunes--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlLu" runat="server" Text='<%# Eval("Lu") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlLu_Porcentaje" runat="server" Text='<%# Eval("Lu_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlLu_HrsDobles" runat="server" Text='<%# Eval("Lu_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlLu_HrsTriples" runat="server" Text='<%# Eval("Lu_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<%--Martes--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMa" runat="server" Text='<%# Eval("Ma") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMa_Porcentaje" runat="server" Text='<%# Eval("Ma_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMa_HrsDobles" runat="server" Text='<%# Eval("Ma_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMa_HrsTriples" runat="server" Text='<%# Eval("Ma_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<%--Miércoles--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMi" runat="server" Text='<%# Eval("Mi") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMi_Porcentaje" runat="server" Text='<%# Eval("Mi_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMi_HrsDobles" runat="server" Text='<%# Eval("Mi_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlMi_HrsTriples" runat="server" Text='<%# Eval("Mi_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<%--Jueves--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlJu" runat="server" Text='<%# Eval("Ju") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlJu_Porcentaje" runat="server" Text='<%# Eval("Ju_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlJu_HrsDobles" runat="server" Text='<%# Eval("Ju_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlJu_HrsTriples" runat="server" Text='<%# Eval("Ju_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<%--Viernes--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlVi" runat="server" Text='<%# Eval("Vi") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlVi_Porcentaje" runat="server" Text='<%# Eval("Vi_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlVi_HrsDobles" runat="server" Text='<%# Eval("Vi_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlVi_HrsTriples" runat="server" Text='<%# Eval("Vi_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<%--Sábado--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlSa" runat="server" Text='<%# Eval("Sa") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlSa_Porcentaje" runat="server" Text='<%# Eval("Sa_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlSa_HrsDobles" runat="server" Text='<%# Eval("Sa_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlSa_HrsTriples" runat="server" Text='<%# Eval("Sa_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<%--Domingo--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlDo" runat="server" Text='<%# Eval("Do") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="35px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlDo_Porcentaje" runat="server" Text='<%# Eval("Do_Porcentaje") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlDo_HrsDobles" runat="server" Text='<%# Eval("Do_HrsDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlDo_HrsTriples" runat="server" Text='<%# Eval("Do_HrsTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlAsistencias" runat="server" Text='<%# Eval("Asistencias") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="70px" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlFaltas" runat="server" Text='<%# Eval("Faltas") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlPorSemanal" runat="server" Text='<%# Eval("Porcentaje", "{0:N2}") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>--%>
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlHorasExtras" runat="server" Text='<%# Eval("HorasDobles") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>
<asp:TemplateField Visible="false">
<ItemTemplate>
<asp:CheckBox ID="ChkAplica" runat="server" Visible="false" Checked='<%# Eval("AplicaBono") %>' />
</ItemTemplate>
<ItemStyle Width="70px" />
</asp:TemplateField>
<asp:TemplateField Visible="false">
<ItemTemplate>
<asp:TextBox ID="TxtBono" runat="server" Visible="false" Text='<%# Eval("Importe", "{0:N0}") %>' Width="44px"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>
<asp:TemplateField Visible="false">
<ItemTemplate>
<asp:TextBox ID="TxtPagoAdicional" Visible="false" runat="server" Text='<%# Eval("PagoAdicional", "{0:N0}") %>' Width="44px"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>
<asp:TemplateField Visible="false">
<ItemTemplate>
<asp:TextBox ID="TxtDescuentoAdicional" Visible="false" runat="server" Text='<%# Eval("DescuentoAdicional", "{0:N0}") %>' Width="44px"></asp:TextBox>
</ItemTemplate>
<ItemStyle Width="60px" />
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="LtlHorasTriples" runat="server" Text='<%# Eval("HorasTriples") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="65px" />
</asp:TemplateField>--%>
<asp:TemplateField Visible="false">
<ItemTemplate>
&nbsp;
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle CssClass="Texto" />
<HeaderStyle CssClass="Titulos" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
</asp:Content>