This commit is contained in:
@@ -235,9 +235,17 @@ public partial class Nomina_Finiquito : ClsPaginas
|
||||
if (TxtFechaBaja.Text.Length > 9)
|
||||
{
|
||||
DateTime fechafin = TxtFechaBaja.Text.ToDateTime();
|
||||
DateTime fechaalta = LblFechaAlta.Text.ToDateTime();
|
||||
int diasanio = fechafin.DayOfYear;
|
||||
if (fechafin.Year == fechaalta.Year)
|
||||
{
|
||||
diasanio = diasanio - fechaalta.DayOfYear;
|
||||
|
||||
}
|
||||
|
||||
decimal antiguedad = getyearsresult(fechafin, FechaInicio);
|
||||
TxtAntiguedad.Text = string.Format("{0:##0.00###}", antiguedad);
|
||||
TxtDiasTransAnio.Text = string.Format("{0}", fechafin.DayOfYear);
|
||||
TxtDiasTransAnio.Text = string.Format("{0}", diasanio);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -838,9 +838,9 @@
|
||||
<div class="portlet-body " style="padding: 0px;">
|
||||
<div class="row">
|
||||
<div class="col-sm-1 bold">Salario</div>
|
||||
<div class="col-sm-2 text-right" >
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblSRSalarioDiario" runat="server"></asp:Label>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 bold">Afi IMSS </div>
|
||||
<div class="col-sm-2">
|
||||
@@ -855,7 +855,7 @@
|
||||
<div class="col-sm-1 bold">SDI</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblSRSalarioDiarioIntegrado" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2 bold">CURP</div>
|
||||
<div class="col-sm-2">
|
||||
<asp:Label ID="LblCURP" runat="server"></asp:Label>
|
||||
@@ -873,7 +873,7 @@
|
||||
<div class="col-sm-2 bold">R.F.C.</div>
|
||||
<div class="col-sm-2 ">
|
||||
<asp:Label ID="LblRFC" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2 bold">Días Incapacidad</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblDiasIncapacidad" runat="server"></asp:Label>
|
||||
@@ -893,10 +893,10 @@
|
||||
<div class="col-sm-2 bold">Faltas</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblDiasFaltados" runat="server"></asp:Label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" style="display:none">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" style="display: none">
|
||||
<div class="col-sm-3 bold">Fecha de Pago</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblFechaPagosrb" runat="server"></asp:Label>
|
||||
@@ -906,7 +906,7 @@
|
||||
<asp:Label ID="LblTipoPeriodo" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -920,7 +920,8 @@
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="icon-pin font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Nomina del <asp:Label ID="LblFecha" runat="server"></asp:Label></span>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Nomina del
|
||||
<asp:Label ID="LblFecha" runat="server"></asp:Label></span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
@@ -1016,7 +1017,7 @@
|
||||
<asp:TemplateField HeaderText="Importe">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' data-toggle="tooltip" title='<%# Eval("ImporteGravadoP", "${0:N}") %>' Style="word-break: break-all; display: inline-block;"></asp:Label>
|
||||
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server" data-toggle="tooltip" title='<%# Eval("ImporteGravadoP", "${0:N}") %>'></asp:LinkButton>
|
||||
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server" data-toggle="tooltip" title='<%# Eval("ImporteGravadoP", "${0:N}") %>'></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>
|
||||
@@ -3308,7 +3309,7 @@
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="DmodalArchivoEBASUAPDFToExceL" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel ID="UpdatePanel4" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -3333,20 +3334,20 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
<asp:TextBox ID="TextBox5" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtArchivoPDFSUAEBA" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:LinkButton ID="LnkProcesaPDFSUAEBA" OnClick="LnkProcesaPDFSUAEBA_Click" CssClass="btn btn-primary" runat="server">Procesar</asp:LinkButton>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:LinkButton ID="LnkProcesaPDFSUAEBA" OnClick="LnkProcesaPDFSUAEBA_Click" CssClass="btn btn-primary" runat="server">Procesar</asp:LinkButton>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="LnkProcesaPDFSUAEBA" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
@@ -3406,77 +3407,75 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 1: Descargar plantilla Conceptos</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 1: Descargar plantilla Conceptos</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
|
||||
<div style="text-align: right;">
|
||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVConceptosPlantilla.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVConceptosPlantilla.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm font-bold yellow-gold"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
|
||||
<asp:GridView ID="GVConceptosPlantilla" runat="server" GridLines="None" DataKeyNames="CveConcepto,Codigo,Concepto,Tipo" data-heigth="100"
|
||||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-sort="true" BorderWidth="0" CellSpacing="0" Width="100%" AutoGenerateColumns="False"
|
||||
EmptyDataText="No se encontraron registros">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Codigo" HeaderText="Código" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField DataField="Tipo" HeaderText="Tipo" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="center">
|
||||
<ItemTemplate>
|
||||
<div style="width: 50px;">
|
||||
<asp:CheckBox runat="server" ID="chkCon" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
<div class="portlet-footer text-center">
|
||||
<asp:LinkButton ID="LnkFormato" OnClick="LnkFormato_Click" CssClass="btn btn-success" runat="server"><i class="fa fa-download"></i> Descargar Plantilla</asp:LinkButton>
|
||||
<div style="text-align: right;">
|
||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVConceptosPlantilla.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVConceptosPlantilla.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm font-bold yellow-gold"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
|
||||
<asp:GridView ID="GVConceptosPlantilla" runat="server" GridLines="None" DataKeyNames="CveConcepto,Codigo,Concepto,Tipo" data-heigth="100"
|
||||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-sort="true" BorderWidth="0" CellSpacing="0" Width="100%" AutoGenerateColumns="False"
|
||||
EmptyDataText="No se encontraron registros">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Codigo" HeaderText="Código" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField DataField="Tipo" HeaderText="Tipo" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="center">
|
||||
<ItemTemplate>
|
||||
<div style="width: 50px;">
|
||||
<asp:CheckBox runat="server" ID="chkCon" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
<div class="portlet-footer text-center">
|
||||
<asp:LinkButton ID="LnkFormato" OnClick="LnkFormato_Click" CssClass="btn btn-success" runat="server"><i class="fa fa-download"></i> Descargar Plantilla</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-upload font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 2: cargar plantilla </span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-upload font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 2: cargar plantilla </span>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
<asp:TextBox ID="TxtArchivoNomina" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" text-right">
|
||||
<asp:CheckBox ID="ChkRecalcularNomina" Text="¿Volver a calcular la nómina?" runat="server" />
|
||||
<div class="portlet-body rowpadding ">
|
||||
<asp:TextBox ID="TxtArchivoNomina" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" text-right">
|
||||
<asp:CheckBox ID="ChkRecalcularNomina" Text="¿Volver a calcular la nómina?" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<%-- -recuerda Solo editar de las tercer fila en adelante.<br />
|
||||
-No se debe editar el nombre de la hoja 'Nómina'.<br />
|
||||
-la columna para referenciar al emplado es la primer columna 'Codigo', la columna empleado es solo es informativa.<br />
|
||||
-si desea agregar un empleado que no se encuentre en la lista solo debe de ingresar fila y el codigo del empleado.<br />
|
||||
-si no desea insertar un concepto puede borrar la columna.<br />
|
||||
-no se debe borrar la columna código.<br />--%>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -10161,7 +10161,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
protected void LnkProcesaPDFSUAEBA_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<Archivo> Filesgral = TxtAsistenciaTabular.getfiles().Archivos;
|
||||
List<Archivo> Filesgral = TxtArchivoPDFSUAEBA.getfiles().Archivos;
|
||||
if (Filesgral.Count > 0)
|
||||
{
|
||||
|
||||
@@ -10289,18 +10289,18 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.ORIGEN);
|
||||
libro.Cell(row, column++).Value = string.Format("'{0}", data.CLAVE);
|
||||
libro.Cell(row, column++).Value = string.Format("'{0}", data.FECHA);
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.DIAS.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SALARIO.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.RETIRO.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CESANTIAPAT.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CESANTIAOBR.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SUMARCV.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.APORTACION.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CUOTAFIJAOFDSTR.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CUOTAFIJAOFD.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.AMORTIZA.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SUMAINFONAVIT.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SUMA.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.DIAS);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SALARIO);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.RETIRO);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CESANTIAPAT);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CESANTIAOBR);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SUMARCV);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.APORTACION);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CUOTAFIJAOFDSTR);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.CUOTAFIJAOFD);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.AMORTIZA);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SUMAINFONAVIT);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SUMA);//.Trim().Replace(",", "").Replace("$", "").ToDecimal());
|
||||
}
|
||||
row++;
|
||||
}
|
||||
@@ -10583,6 +10583,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
libro.Cell(row, column++).Value = "DIAS";
|
||||
libro.Cell(row, column++).Value = "SALARIO";
|
||||
|
||||
if (dataEBAPDF.ContieneLic)
|
||||
{
|
||||
libro.Cell(row, column++).Value = "LIC";
|
||||
}
|
||||
libro.Cell(row, column++).Value = "INCAPACIDAD";
|
||||
libro.Cell(row, column++).Value = "AUSENTISMO";
|
||||
libro.Cell(row, column++).Value = "RETIRO";
|
||||
@@ -10626,6 +10630,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
libro.Cell(row, column++).Value = string.Format("'{0}", data.Fecha);
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.Dias);
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.SDI);
|
||||
if (dataEBAPDF.ContieneLic)
|
||||
{
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.Lic);
|
||||
}
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.Inc);
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.Aus);
|
||||
libro.Cell(row, column++).Value = string.Format("{0}", data.Retiro);
|
||||
@@ -10656,8 +10664,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
libro.Range(2, 7, row, 15).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Right;
|
||||
libro.Range(2, 17, row, 20).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Right;
|
||||
libro.Range(2, 7, row, dataEBAPDF.ContieneLic ?15:16).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Right;
|
||||
libro.Range(2, dataEBAPDF.ContieneLic ? 17:18, row, dataEBAPDF.ContieneLic ? 20:21).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Right;
|
||||
//libro.Range(2, 7, row, 15).Style.NumberFormat.Format = "$ #,##0.00";
|
||||
//libro.Range(2, 17, row, 20).Style.NumberFormat.Format = "$ #,##0.00";
|
||||
libro.Columns().AdjustToContents();
|
||||
@@ -10682,8 +10690,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
if (!isTitulo)
|
||||
{
|
||||
text = text.Replace(strtitulo.ToString(), "");
|
||||
}
|
||||
|
||||
}
|
||||
cedulaSUAEmpleados cempleado = null;
|
||||
string[] lines = text.Split('\n');
|
||||
int pasoCaptura = 0;
|
||||
@@ -10694,14 +10701,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
if (!espaso1 && pasoCaptura == 4)
|
||||
{
|
||||
procesapaso4(line, cempleado);
|
||||
procesapaso4(line, cempleado, objSUA.ContieneLic);
|
||||
|
||||
}
|
||||
if (!espaso1 && pasoCaptura == 3)
|
||||
{
|
||||
if (Regex.IsMatch(line, ValidateFechaptt) || Regex.IsMatch(line, Validatedigitptt))
|
||||
{
|
||||
procesapaso4(line, cempleado);
|
||||
procesapaso4(line, cempleado, objSUA.ContieneLic);
|
||||
pasoCaptura = 4;
|
||||
}
|
||||
else
|
||||
@@ -10716,7 +10723,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
if (Regex.IsMatch(line, ValidateFechaptt) || Regex.IsMatch(line, Validatedigitptt))
|
||||
{
|
||||
procesapaso4(line, cempleado);
|
||||
procesapaso4(line, cempleado, objSUA.ContieneLic);
|
||||
pasoCaptura = 4;
|
||||
}
|
||||
else
|
||||
@@ -10774,7 +10781,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (isTitulo)
|
||||
{
|
||||
strtitulo.AppendLine();
|
||||
if (line.Contains("Clave Fecha Días SDI ") && line.Contains(" Lic. "))
|
||||
{
|
||||
objSUA.ContieneLic = true;
|
||||
}
|
||||
strtitulo.AppendLine(line);
|
||||
}
|
||||
//Console.WriteLine(line);
|
||||
}
|
||||
@@ -10787,10 +10798,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
strb.AppendLine("/*NEWPAGE*/");
|
||||
}
|
||||
}
|
||||
|
||||
objSUA.txtTodo = strb.ToString();
|
||||
return objSUA;
|
||||
}
|
||||
public cedulaSUAEmpleados procesapaso4(string line, cedulaSUAEmpleados empleado)
|
||||
public cedulaSUAEmpleados procesapaso4(string line, cedulaSUAEmpleados empleado,bool ContieneLic)
|
||||
{
|
||||
if (line.ToUpper().Contains("Página".ToUpper()))
|
||||
{
|
||||
@@ -10852,6 +10864,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (col < l && !ismsfsd) { dtos.SDI = splitedline[col++]; }
|
||||
if (col < l && splitedline[col] == "") { col++; }
|
||||
if(ContieneLic && col < l && !ismsfsd) { dtos.Lic = splitedline[col++]; }
|
||||
if (col < l && splitedline[col] == "") { col++; }
|
||||
if (col < l && !ismsfsd) { dtos.Inc = splitedline[col++]; }
|
||||
if (col < l && splitedline[col] == "") { col++; }
|
||||
if (col < l && !ismsfsd) { dtos.Aus = splitedline[col++]; }
|
||||
@@ -10893,6 +10907,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
public string txtTitulo { get; set; }
|
||||
public string txtTodo { get; set; }
|
||||
public bool ContieneLic { get; set; }
|
||||
public List<cedulaSUAEmpleados> empleados { get; set; }
|
||||
}
|
||||
public class cedulaSUAEmpleados
|
||||
@@ -10915,6 +10930,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
public string Fecha { get; set; }
|
||||
public string Dias { get; set; }
|
||||
public string SDI { get; set; }
|
||||
public string Lic { get; set; }
|
||||
public string Inc { get; set; }
|
||||
public string Aus { get; set; }
|
||||
public string Retiro { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user