This commit is contained in:
@@ -3936,9 +3936,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
if (continuar)
|
||||
{
|
||||
cargaDatos(CvePersonal: SRCvePersonal);
|
||||
cargaBitacora();
|
||||
if (PnlConceptoPersonal.Visible)
|
||||
{
|
||||
cargaBitacora();
|
||||
cargasobrericiboconceptos(SRMostrarFormulas);
|
||||
|
||||
cargasobrericiboconceptos(SRMostrarFormulas);
|
||||
}
|
||||
UpGvConceptos.Update();
|
||||
|
||||
RegistraScript("$('#ModalUpConcepto').modal('hide');");
|
||||
@@ -7114,7 +7117,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero();
|
||||
int cveConcepto = gvRow.DataKey("CveConcepto").ToEntero();
|
||||
int cvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
||||
int CveCuenta = gvRow.DataKey("CveCuenta").ToEntero();
|
||||
int CveCuenta = gvRow.DataKey("CveCuenta").ToEntero();
|
||||
string descripcion = gvRow.DataKey("Descripcion");
|
||||
int tipoDescuento = gvRow.DataKey("TipoDescuento").ToEntero();
|
||||
double valor = gvRow.DataKey("Valor").ToDouble();
|
||||
@@ -7141,7 +7144,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
TxtVecesAplicar.Text = vecesAplicar.ToString();
|
||||
TxtMontoLimite.Text = montoLimite.ToString();
|
||||
TxtFechaAplicacion.Text = $"{fechaInicioAplicacion:dd/MM/yyyy}";
|
||||
DdlCtaContable.SelectedValueExist("-1");
|
||||
DdlCtaContable.SelectedValueExist("-1");
|
||||
ChkEstatus.Checked = estatus;
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal()");
|
||||
|
||||
@@ -10168,7 +10171,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (essua)
|
||||
{
|
||||
System.IO.Stream fs=(new CedulaSuaPDF()).writexls(dirPDF);
|
||||
System.IO.Stream fs = (new CedulaSuaPDF()).writexls(dirPDF);
|
||||
fs.Position = 0;
|
||||
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
|
||||
using (System.IO.Stream input = fs)
|
||||
@@ -10187,8 +10190,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
System.IO.Stream fs =(new CedulaEBAPDF()).writexls(dirPDF);
|
||||
|
||||
System.IO.Stream fs = (new CedulaEBAPDF()).writexls(dirPDF);
|
||||
|
||||
fs.Position = 0;
|
||||
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
|
||||
using (System.IO.Stream input = fs)
|
||||
@@ -10655,8 +10658,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
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, 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();
|
||||
@@ -10681,7 +10684,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;
|
||||
@@ -10789,11 +10792,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
strb.AppendLine("/*NEWPAGE*/");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
objSUA.txtTodo = strb.ToString();
|
||||
return objSUA;
|
||||
}
|
||||
public cedulaSUAEmpleados procesapaso4(string line, cedulaSUAEmpleados empleado,bool ContieneLic)
|
||||
public cedulaSUAEmpleados procesapaso4(string line, cedulaSUAEmpleados empleado, bool ContieneLic)
|
||||
{
|
||||
if (line.ToUpper().Contains("Página".ToUpper()))
|
||||
{
|
||||
@@ -10855,7 +10858,7 @@ 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 (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++; }
|
||||
|
||||
@@ -337,6 +337,20 @@
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="150px" HorizontalAlign="Left" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>Días IMSS</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDiasAsistio" Text='<%# Eval("DiasAsistio")%>' runat="server"></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>Salario IMSS</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSBC" Text='<%# Eval("SBC","{0:N2}")%>' runat="server"></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField Visible="false" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80px" />
|
||||
<asp:BoundField Visible="false" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80px" />
|
||||
<asp:BoundField Visible="false" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80px" />
|
||||
|
||||
@@ -196,7 +196,7 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
|
||||
//string ctipo = "P";
|
||||
|
||||
int CurrentColumn = 5;
|
||||
int CurrentColumn = 7;
|
||||
BoundField bf;
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo IN ('P') AND EsPadre = 1 ").Rows)
|
||||
{
|
||||
@@ -428,6 +428,18 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Días IMSS";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
|
||||
column++;
|
||||
libro.Cell(1, column).Value = " ";
|
||||
libro.Cell(2, column).Value = "Salario IMSS";
|
||||
libro.Cell(3, column).Value = " ";
|
||||
libro.Column(column).Width = 35;
|
||||
|
||||
int iniciotipe = column;
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo ='P' AND EsPadre = 1 ").Rows)
|
||||
{
|
||||
@@ -545,6 +557,10 @@ public partial class Nomina_ReportedeAcumulados : ClsPaginas
|
||||
libro.Cell(Fila, column).Value = string.Format("'{0}", erow["NumeroSS"]);
|
||||
column++;
|
||||
libro.Cell(Fila, column).Value = erow["RegistroPatronal"];
|
||||
column++;
|
||||
libro.Cell(Fila, column).Value = erow["DiasAsistio"];
|
||||
column++;
|
||||
libro.Cell(Fila, column).Value = erow["SBC"];
|
||||
foreach (DataRow row in dtConceptos.FiltraParametros("Tipo = 'P' AND EsPadre = 1 ").Rows)
|
||||
{
|
||||
column++;
|
||||
|
||||
Reference in New Issue
Block a user