770 lines
52 KiB
Plaintext
770 lines
52 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Finiquito.aspx.cs" Inherits="Nomina_Finiquito" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.tconceptos {
|
|
background-color: #E87E04;
|
|
color: #fff;
|
|
padding: 5px;
|
|
}
|
|
|
|
.gconceptos {
|
|
border: 1px solid #E87E04;
|
|
}
|
|
|
|
.dtosEmpleado .row {
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
a.TextLink {
|
|
color: #2196f3;
|
|
}
|
|
|
|
.dtosEmpleado {
|
|
font-size: 14px;
|
|
}
|
|
|
|
|
|
.dnone {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
.GvConceptos tr td a {
|
|
color: #5b9bd1;
|
|
}
|
|
|
|
.GvConceptos {
|
|
border: 1px solid #E87E04;
|
|
}
|
|
|
|
table.GvConceptos td {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.GvConceptos.table > tbody > tr > th {
|
|
border-top: 1px solid #E87E04;
|
|
color: #fff;
|
|
font-size: 15px;
|
|
background-color: #E87E04;
|
|
}
|
|
|
|
.GvConceptos.table > tbody > tr.thTituloConcepto > th:nth-child(1),
|
|
.GvConceptos.table > tbody > tr:not(.thTituloConcepto) > th:nth-child(3),
|
|
.GvConceptos.table > tbody > tr > td:nth-child(3) {
|
|
border-right: 1px solid #E87E04;
|
|
}
|
|
|
|
.GvConceptos.table > tbody > tr > td span {
|
|
display: block;
|
|
min-height: 12px;
|
|
}
|
|
|
|
.GvConceptos.table > tbody > tr.ConceptosTotales {
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.isOnlyVisible {
|
|
color: #666;
|
|
/*text-decoration: line-through;*/
|
|
}
|
|
|
|
.isOnlyBisibleP td:nth-child(1) {
|
|
/*text-decoration: line-through;*/
|
|
}
|
|
|
|
.isOnlyBisibleD td:nth-last-child(3) {
|
|
/*text-decoration: line-through;*/
|
|
}
|
|
|
|
.isEditedP td:nth-child(-n+3) {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.isEditedD td:nth-last-child(-n+3) {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.isOnlyBisibleP td:nth-child(-n+3) {
|
|
color: #999;
|
|
}
|
|
|
|
.isOnlyBisibleD td:nth-last-child(-n+3) {
|
|
color: #999;
|
|
}
|
|
|
|
.isOnlyBisibleP td:nth-child(-n+3) a {
|
|
color: #999;
|
|
}
|
|
|
|
.isOnlyBisibleD td:nth-last-child(-n+3) a {
|
|
color: #999;
|
|
}
|
|
|
|
.isOnlyBisibleO td:nth-last-child(-n+3) a {
|
|
color: #999;
|
|
}
|
|
|
|
.GvConceptos td {
|
|
font-size: 11px;
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Finiquito
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<li>
|
|
<asp:HyperLink ID="Hypgenerarotro" NavigateUrl="/Nomina/Finiquito.aspx?CvePersonal=-1" runat="server">Generar otro finiquito</asp:HyperLink></li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAutorizar" Visible="false" OnClick="LnkAutorizar_Click" runat="server"><i class='material-icons'>done_all</i>Autorizar</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkCancelarNomina" Visible="false" OnClick="LnkCancelarNomina_Click" runat="server"><i class="fa fa-ban" aria-hidden="true"></i>Desautorizar nómina</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkTimbrar" Visible="false" OnClick="LnkTimbrar_Click" runat="server"><i class="fa fa-bell"></i>Timbrar</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkFormatoRenuncia" OnClick="LnkFormatoRenuncia_Click" Visible="false" runat="server"><i class="fa fa-bell"></i>Formato Finiquito</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LnkFormatoRenuncia" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row ">
|
|
<div class="col-sm-6 ">
|
|
<%--class="col-md-6 col-md-offset-3 col-sm-10 col-sm-offset-1"--%>
|
|
<div class="portlet light xspadding bordered" id="pnldl">
|
|
<div class="portlet-title">
|
|
<div class="caption ">
|
|
<i class="fa fa-bookmark font-yellow-gold"></i>
|
|
<span class="caption-subject bold uppercase font-yellow-gold">Datos del Empleado</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body dtosEmpleado">
|
|
<div class="row ">
|
|
<div class="col-sm-3">
|
|
<span class="bold">Código:</span>
|
|
<br />
|
|
<asp:HyperLink ID="HypCodigo" CssClass="LinkEmpleado TextLink" Text="--" runat="server"></asp:HyperLink>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<span class="bold">Empleado:</span>
|
|
<br />
|
|
<asp:HyperLink ID="HypEmpleado" CssClass="LinkEmpleado TextLink" Text="--" runat="server"></asp:HyperLink>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<span class="bold">Área geográfica
|
|
<br />
|
|
<asp:Literal ID="LtlAreaGeografica" runat="server">--</asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row ">
|
|
<div class="col-sm-3 ">
|
|
<span class="bold">Fecha alta:</span>
|
|
<br />
|
|
<asp:Label ID="LblFechaAlta" runat="server" Text="--"></asp:Label>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<span class="bold">Puesto:</span>
|
|
<br />
|
|
<asp:Label ID="LblPuesto" runat="server" Text="--"></asp:Label>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<span class="bold">Salario:</span>
|
|
<br />
|
|
<asp:Label ID="LblSalario" runat="server" Text="--"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" Width="100%"
|
|
CssClass="form-control select2me" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Text="Ordinario" Value="-1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Extraordinario" Value="-2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" Text="Tipo periodo" AssociatedControlID="DdlTipoPeriodo"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-5"></div>
|
|
<div class="col-sm-3">
|
|
<span class="bold">Salario Finiquito:</span>
|
|
<br />
|
|
<asp:LinkButton ID="LnkShowFfiniquito" OnClick="LnkShowFfiniquito_Click" runat="server">--</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
<div class="row ">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6 ">
|
|
<%--class="col-md-6 col-md-offset-3 col-sm-10 col-sm-offset-1"--%>
|
|
<div class="portlet light xspadding bordered" id="pnlfiniqito">
|
|
<div class="portlet-title">
|
|
<div class="caption ">
|
|
<i class="fa fa-bookmark font-yellow-gold"></i>
|
|
<span class="caption-subject bold uppercase font-yellow-gold">Información finiquito</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton ID="LnkSimular" OnClick="LnkSimular_Click" ValidationGroup="GrpGuardar" CssClass="btn yellow-gold" runat="server">Simular</asp:LinkButton>
|
|
<asp:LinkButton ID="LnkCancelar" Visible="false" OnClick="LnkCancelar_Click" ValidationGroup="GrpGuardarcan" CssClass="btn btn-danger" runat="server">Cancelar</asp:LinkButton>
|
|
<asp:LinkButton ID="LnkGuardarDatos" OnClick="LnkGuardarDatos_Click" ValidationGroup="GrpGuardar" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body dtosEmpleado">
|
|
|
|
|
|
<asp:UpdatePanel ID="upddtosEmpleado" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlMotivoBaja" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" Width="100%"
|
|
CssClass="form-control select2me" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Sin asignar Motivo de baja" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvMotivoBaja" runat="server" ControlToValidate="DdlMotivoBaja" CssClass=" dnone" InitialValue="-1"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Seleccione el <b>''motivo''</b>."
|
|
ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Motivo de Baja: " AssociatedControlID="DdlMotivoBaja"></asp:Label>
|
|
</div>
|
|
<ajax:ValidatorCalloutExtender ID="vcoMotivoBaja" runat="server" HighlightCssClass="vco" TargetControlID="RfvMotivoBaja" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright" style="width: 120px; display: inline-block">
|
|
<asp:TextBox ID="TxtFechaBaja" runat="server" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" CssClass="dnone"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario "
|
|
ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:Label runat="server" Text="Fecha de Baja: " AssociatedControlID="TxtFechaBaja"></asp:Label>
|
|
<ajax:MaskedEditExtender ID="MKEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" PopupButtonID="ImgFechaBaja" PopupPosition="BottomRight" BehaviorID="_content_CEFechaBaja"></ajax:CalendarExtender>
|
|
<asp:CompareValidator ID="CVFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
|
</div>
|
|
<span class="input-group-btn " style="display: inline-block">
|
|
<asp:LinkButton ID="ImgFechaBaja" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:ValidatorCalloutExtender ID="vcoTxtFechaBaja" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtFechaBaja" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<div class="col-md-3">
|
|
¿Es liquidación?<br />
|
|
<asp:CheckBox ID="ChkesLiquidacion" AutoPostBack="true" OnCheckedChanged="ChkesLiquidacion_CheckedChanged" CssClass="chksino" Text=" " runat="server" />
|
|
</div>
|
|
<div class="col-md-1">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAntiguedad" runat="server" Enabled="false" Text="--" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Antigüedad: " AssociatedControlID="TxtAntiguedad"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtDiasTransAnio" runat="server" Enabled="false" Text="--" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Días trans. en el año: " AssociatedControlID="TxtDiasTransAnio"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtSalarioMinimo" runat="server" Enabled="false" Text="--" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Salario mínimo: " AssociatedControlID="TxtSalarioMinimo"></asp:Label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtDiasVacaciones" runat="server" Enabled="false" Text="--" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:Label runat="server" Text="DíasVacaciones: " AssociatedControlID="TxtDiasVacaciones"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtDiasAguinaldo" runat="server" Enabled="false" Text="--" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Días Aguinaldo: " AssociatedControlID="TxtDiasAguinaldo"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="gconceptos" runat="server" id="gconceptos">
|
|
<div class="text-center tconceptos">Conceptos a incluir</div>
|
|
<div class="row">
|
|
<div class="col-md-4 text-center">
|
|
Indemnización
|
|
<br />
|
|
<asp:CheckBox ID="chkIndemnizacion" CssClass="chksino" Text=" " runat="server" />
|
|
<div style="display: inline-block; width: 30px;">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="Txtdiasindemnizacion" Text="90" runat="server" CssClass="form-control"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<asp:Label runat="server" Text="días" AssociatedControlID="Txtdiasindemnizacion"></asp:Label>
|
|
|
|
</div>
|
|
<div class="col-md-4 text-center">
|
|
Separación única
|
|
<br />
|
|
<asp:CheckBox ID="chkSeparacionUnica" CssClass="chksino" Text=" " runat="server" />
|
|
</div>
|
|
<div class="col-md-4 text-center">
|
|
Prima de antigüedad
|
|
<br />
|
|
<asp:CheckBox ID="chkPrimaantiguedad" CssClass="chksino" Text=" " runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtObservaciones" runat="server" Text="" TextMode="MultiLine" Rows="3" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
|
<asp:Label runat="server" Text="Observaciones " AssociatedControlID="TxtObservaciones"></asp:Label>
|
|
</div>
|
|
<%--<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="form-control select2me" AutoPostBack="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" OnSelectedIndexChanged="DdlTipoPeriodo_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Text="Ordinario" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Extraordinario" Value="6"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" Text="Tipo Período: " AssociatedControlID="DdlTipoPeriodo"></asp:Label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlPeriodo" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="form-control select2me" DataTextField="NominaEstatus" DataValueField="CvePeriodo">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" Text="Período:" AssociatedControlID="DdlPeriodo"></asp:Label>
|
|
</div>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
|
|
<div class="portlet light xspadding bordered" id="pnlNomina">
|
|
<div class="portlet-title">
|
|
<div class="caption ">
|
|
<i class="fa fa-bookmark font-yellow-gold"></i>
|
|
<span class="caption-subject bold uppercase font-yellow-gold">Finiquito (Ordinario) <asp:Label ID="LtlFiniquitoOrdinario" runat="server" ></asp:Label></span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<%--<a onclick="$('#C_BtnImprimirsobrerecibo').click()" class="btn btn-default">Imprimir</a>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
|
|
<asp:GridView ID="GvFinOrdinario" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-hover Widthall GvConceptos"
|
|
Style="text-align: center;" GridLines="None" OnRowDataBound="GvConceptos_RowDataBound" ShowHeaderWhenEmpty="true"
|
|
DataKeyNames="ConceptoP,CveConceptoP,ImporteP,ValorP,EstatusP,ConceptoD,CveConceptoD,ImporteD,isOnlyBisibleP,isOnlyBisibleD,EstatusD,ValorD,isEditedD,isEditedP,isSavedP,isSavedD">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Concepto">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConcepto" runat="server" Text='<%# Eval("ConceptoP") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkConcepto" OnClick="LnkConcepto_Click" runat="server" Text='<%# Eval("ConceptoP") %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Valor">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlValorP" runat="server" Text='<%# Eval("ValorP", "{0:##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
|
<div style="display: inline-block; width: 29px;">
|
|
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
|
</div>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Concepto">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConceptoD" runat="server" Text='<%# Eval("ConceptoD") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkConceptoD" OnClick="LnkConcepto_Click" runat="server" Text='<%# Eval("ConceptoD") %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Valor">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlValorD" runat="server" Text='<%# Eval("ValorD", "{0:##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlImporteD" runat="server" Text='<%# Eval("ImporteD", "${0:N}") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkImporteD" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
|
<div style="display: inline-block; width: 29px;">
|
|
<asp:LinkButton ID="LnkImporteDxCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
|
</div>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle CssClass="SearchADHeader" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
|
|
<div class="portlet light xspadding bordered" id="pnlFiniquito">
|
|
<div class="portlet-title">
|
|
<div class="caption ">
|
|
<i class="fa fa-bookmark font-yellow-gold"></i>
|
|
<span class="caption-subject bold uppercase font-yellow-gold">Finiquito (Indemnización)</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<%--<a onclick="$('#C_BtnImprimirsobrerecibo').click()" class="btn btn-default">Imprimir</a>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
<asp:GridView ID="GVFinIndemnizacion" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-hover Widthall GvConceptos"
|
|
Style="text-align: center;" GridLines="None" OnRowDataBound="GvConceptos_RowDataBound" ShowHeaderWhenEmpty="true"
|
|
DataKeyNames="ConceptoP,CveConceptoP,ImporteP,ValorP,EstatusP,ConceptoD,CveConceptoD,ImporteD,isOnlyBisibleP,isOnlyBisibleD,EstatusD,ValorD,isEditedD,isEditedP,isSavedP,isSavedD">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Concepto">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConcepto" runat="server" Text='<%# Eval("ConceptoP") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkConcepto" OnClick="LnkConcepto_Click" runat="server" Text='<%# Eval("ConceptoP") %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Valor">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlValorP" runat="server" Text='<%# Eval("ValorP", "{0:##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
|
<div style="display: inline-block; width: 29px;">
|
|
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
|
</div>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Concepto">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConceptoD" runat="server" Text='<%# Eval("ConceptoD") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkConceptoD" OnClick="LnkConcepto_Click" runat="server" Text='<%# Eval("ConceptoD") %>'></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Valor">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlValorD" runat="server" Text='<%# Eval("ValorD", "{0:##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlImporteD" runat="server" Text='<%# Eval("ImporteD", "${0:N}") %>' Style="word-break: break-all;"></asp:Label>
|
|
<asp:LinkButton ID="LnkImporteD" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
|
<div style="display: inline-block; width: 29px;">
|
|
<asp:LinkButton ID="LnkImporteDxCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
|
</div>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle CssClass="SearchADHeader" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="ModalUpConcepto" class="modal ADS fade" role="dialog">
|
|
|
|
<asp:UpdatePanel class="modal-dialog " runat="server" ID="UPpanelModalUpConcepto" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">Modificar o agregar concepto :
|
|
<asp:Label ID="LblConceptoMod" runat="server" Text=""></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:Label runat="server" AssociatedControlID="DdlmcConceptos" Enabled="false" Text="Concepto"></asp:Label>
|
|
<asp:DropDownList ID="DdlmcConceptos" CssClass="select2me form-control" Width="100%" DataValueField="CveConcepto" DataTextField="CodigoConcepto" OnSelectedIndexChanged="DdlmcConceptos_SelectedIndexChanged" AutoPostBack=" true" runat="server">
|
|
<asp:ListItem Value="-1" Text="Seleccione"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-9"></div>
|
|
<div class="col-md-3">Calcular automatico</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox CssClass="form-control" ID="Txtmcvalor" runat="server"></asp:TextBox>
|
|
<asp:Label runat="server" AssociatedControlID="Txtmcvalor" Enabled="false" Text="Valor"></asp:Label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 text-center">
|
|
<asp:CheckBox ID="ChkCalAutomaticoV" OnCheckedChanged="ChkCalAutomaticoV_CheckedChanged" AutoPostBack="true" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox CssClass="form-control" ID="TxtmcImporte" runat="server"></asp:TextBox>
|
|
<asp:Label runat="server" AssociatedControlID="TxtmcImporte" Enabled="false" Text="Importe"></asp:Label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 text-center">
|
|
<asp:CheckBox ID="ChkCalAutomatico" OnCheckedChanged="ChkCalAutomatico_CheckedChanged" AutoPostBack="true" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox CssClass="form-control" ID="TxtmcImporteGrabado" runat="server"></asp:TextBox>
|
|
<asp:Label runat="server" AssociatedControlID="TxtmcImporteGrabado" Enabled="false" Text="Gravado"></asp:Label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 text-center">
|
|
<asp:CheckBox ID="ChkCalAutomaticoG" OnCheckedChanged="ChkCalAutomaticoG_CheckedChanged" AutoPostBack="true" runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
<asp:Button ID="BtnAceptarMC" CssClass="btn btn-primary" OnClick="BtnAceptarMC_Click" runat="server" Text="Aceptar" />
|
|
</div>
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div id="ModalEmpleados" class="modal ADS fade " role="dialog">
|
|
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalEmpleados" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">Seleccione un empleado</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlPersonal" DataTextField="CodigoNombreCompleto" DataValueField="CvePersonal" runat="server" Width="100%" AppendDataBoundItems="true" CssClass="form-control select2me">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Label runat="server" Text="Empleado: " AssociatedControlID="DdlPersonal"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="LnkCampiarEmpleado" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpSeleccionarEmpleado" OnClick="LnkCampiarEmpleado_Click"> Aceptar</asp:LinkButton>
|
|
<asp:Literal ID="LtlEmpleadoCancelar" Visible="false" runat="server"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button></asp:Literal>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="ModalSueldoFiniquito" class="modal ADS fade " role="dialog">
|
|
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpmodalFiniquito" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">Salario Finiquito</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-4" style="font-weight: bold; min-height: 30px;">
|
|
Tipo de salario
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:Literal ID="LtlSFTipoSalario" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4" style="font-weight: bold; min-height: 30px;">
|
|
Días ultimo mes
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:Literal ID="LtlSFDias" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4" style="font-weight: bold; min-height: 30px;">
|
|
Percepciones ultimo mes
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:Literal ID="LtlSFPercepciones" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4" style="font-weight: bold; min-height: 30px;">
|
|
Salario Variable
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:Literal ID="LtlSFVar" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-4" style="font-weight: bold; min-height: 30px;">
|
|
SDI
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:Literal ID="LtlSFSDI" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 text-center">
|
|
Salario Finiquito<br />
|
|
<asp:Literal ID="LtlSF" runat="server"></asp:Literal>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="portlet light xspadding bordered" id="pnlFiniquitosalario">
|
|
<div class="portlet-title">
|
|
<div class="caption ">
|
|
<i class="fa fa-bookmark font-yellow-gold"></i>
|
|
<span class="caption-subject bold uppercase font-yellow-gold">Calculo salario finiquito</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<%--<a onclick="$('#C_BtnImprimirsobrerecibo').click()" class="btn btn-default">Imprimir</a>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
<asp:GridView ID="GVSDF" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-hover Widthall GvConceptosSDF"
|
|
Style="text-align: center;" GridLines="None" ShowHeaderWhenEmpty="true">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Periodo">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConcepto" runat="server" Text='<%# Eval("PeriodoTexto") %>' Style="white-space: nowrap"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Código">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConcepto" runat="server" Text='<%# Eval("Codigo") %>' Style="white-space: nowrap"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Concepto">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlConcepto" runat="server" Text='<%# Eval("Concepto") %>' Style="white-space: nowrap"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" Width="37%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlValorD" runat="server" Text='<%# Eval("Importe", "{0:##,###.##}") %>' Style="white-space: nowrap"></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right" Width="13%" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle CssClass="SearchADHeader" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button></asp:Literal>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
<script>
|
|
|
|
function ADSBegin() {
|
|
if ($('.GvConceptos .thTituloConcepto').length == 0) {
|
|
$('.GvConceptos').prepend("<tr class=\"thTituloConcepto\"> <th scope=\"col\" colspan=\"3\">Percepciones</th><th scope=\"col\" colspan=\"3\">Deducciones</th> </tr>");
|
|
}
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|