nominas
This commit is contained in:
@@ -340,7 +340,7 @@ Public Class ClsRH
|
|||||||
|
|
||||||
Public Function AddAsistenciasInasistencias(Tipo As String, AplicaFalta As Boolean, AplicaAsistencia As Boolean, CveUsuario As Integer, CveEmpresa As Integer,
|
Public Function AddAsistenciasInasistencias(Tipo As String, AplicaFalta As Boolean, AplicaAsistencia As Boolean, CveUsuario As Integer, CveEmpresa As Integer,
|
||||||
chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo As Boolean, chkAplicaAguinaldo As Boolean,
|
chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo As Boolean, chkAplicaAguinaldo As Boolean,
|
||||||
chkAplicaUtilidades As Boolean, aplicaPago As Integer, aplicaPagoDoble As Integer, aplicaPrimaVac As Integer, Optional TipoCorto As String = "-1") As Boolean
|
chkAplicaUtilidades As Boolean, aplicaPago As Integer, aplicaPagoDoble As Integer, aplicaPrimaVac As Integer, Optional TipoCorto As String = "-1", Optional AplicaPrimaDominical As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_RH_AsistenciasInasistenciasAdd")
|
DataAdapter("PA_RH_AsistenciasInasistenciasAdd")
|
||||||
@@ -361,6 +361,7 @@ Public Class ClsRH
|
|||||||
.Add("@AplicaPago", SqlDbType.Int).Value = aplicaPago
|
.Add("@AplicaPago", SqlDbType.Int).Value = aplicaPago
|
||||||
.Add("@AplicaPagoDoble", SqlDbType.Int).Value = aplicaPagoDoble
|
.Add("@AplicaPagoDoble", SqlDbType.Int).Value = aplicaPagoDoble
|
||||||
.Add("@AplicaPrimaVac", SqlDbType.Int).Value = aplicaPrimaVac
|
.Add("@AplicaPrimaVac", SqlDbType.Int).Value = aplicaPrimaVac
|
||||||
|
.Add("@AplicaPrimaDominical", SqlDbType.Int).Value = AplicaPrimaDominical
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -382,7 +383,7 @@ Public Class ClsRH
|
|||||||
|
|
||||||
Public Function UpdateAsistenciasInasistencias(Tipo As String, AplicaFalta As Boolean, AplicaAsistencia As Boolean, Estatus As Boolean, CveAI As Integer,
|
Public Function UpdateAsistenciasInasistencias(Tipo As String, AplicaFalta As Boolean, AplicaAsistencia As Boolean, Estatus As Boolean, CveAI As Integer,
|
||||||
chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo As Boolean, chkAplicaAguinaldo As Boolean, chkAplicaUtilidades As Boolean,
|
chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo As Boolean, chkAplicaAguinaldo As Boolean, chkAplicaUtilidades As Boolean,
|
||||||
aplicaPago As Integer, aplicaPagoDoble As Integer, aplicaPrimaVac As Integer, Optional TipoCorto As String = "-1") As Boolean
|
aplicaPago As Integer, aplicaPagoDoble As Integer, aplicaPrimaVac As Integer, Optional TipoCorto As String = "-1", Optional AplicaPrimaDominical As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_RH_AsistenciasInasistenciasUpdate")
|
DataAdapter("PA_RH_AsistenciasInasistenciasUpdate")
|
||||||
@@ -403,6 +404,7 @@ Public Class ClsRH
|
|||||||
.Add("@AplicaPago", SqlDbType.Int).Value = aplicaPago
|
.Add("@AplicaPago", SqlDbType.Int).Value = aplicaPago
|
||||||
.Add("@AplicaPagoDoble", SqlDbType.Int).Value = aplicaPagoDoble
|
.Add("@AplicaPagoDoble", SqlDbType.Int).Value = aplicaPagoDoble
|
||||||
.Add("@AplicaPrimaVac", SqlDbType.Int).Value = aplicaPrimaVac
|
.Add("@AplicaPrimaVac", SqlDbType.Int).Value = aplicaPrimaVac
|
||||||
|
.Add("@AplicaPrimaDominical", SqlDbType.Int).Value = AplicaPrimaDominical
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -1132,6 +1132,7 @@
|
|||||||
<asp:ListItem Text="Infonavit(Porcentaje)" Value="5001"></asp:ListItem>
|
<asp:ListItem Text="Infonavit(Porcentaje)" Value="5001"></asp:ListItem>
|
||||||
<asp:ListItem Text="Infonavit(Factor Descuento)" Value="5002"></asp:ListItem>
|
<asp:ListItem Text="Infonavit(Factor Descuento)" Value="5002"></asp:ListItem>
|
||||||
<asp:ListItem Text="Infonavit(Cuota Fija)" Value="5003"></asp:ListItem>
|
<asp:ListItem Text="Infonavit(Cuota Fija)" Value="5003"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Infonavit(Cuota Fija por período)" Value="5004"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -749,6 +749,16 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
GvNominas.Columns[CurrentColumn].Visible = true;
|
GvNominas.Columns[CurrentColumn].Visible = true;
|
||||||
CurrentColumn++;
|
CurrentColumn++;
|
||||||
|
|
||||||
|
field = (BoundField)GvNominas.Columns[CurrentColumn];
|
||||||
|
field.HeaderText = "Especie";
|
||||||
|
field.DataField = "SumaEspecie";
|
||||||
|
field.ItemStyle.BackColor = System.Drawing.Color.LightGray;
|
||||||
|
GvNominas.Columns[CurrentColumn].ItemStyle.CssClass = " ";
|
||||||
|
GvNominas.Columns[CurrentColumn].HeaderStyle.CssClass = " ";
|
||||||
|
GvNominas.Columns[CurrentColumn].Visible = (dtempleados.SUM("SumaEspecie") != 0);
|
||||||
|
CurrentColumn++;
|
||||||
|
|
||||||
|
|
||||||
field = (BoundField)GvNominas.Columns[CurrentColumn];
|
field = (BoundField)GvNominas.Columns[CurrentColumn];
|
||||||
field.HeaderText = "Total";
|
field.HeaderText = "Total";
|
||||||
field.DataField = "Total";
|
field.DataField = "Total";
|
||||||
@@ -1118,6 +1128,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
dr["SubProyecto"] = drow["SubProyecto"];
|
dr["SubProyecto"] = drow["SubProyecto"];
|
||||||
dr["SumaPercepciones"] = dtempleados.SUM("SumaPercepciones", filtrogrupo);
|
dr["SumaPercepciones"] = dtempleados.SUM("SumaPercepciones", filtrogrupo);
|
||||||
dr["SumaDeducciones"] = dtempleados.SUM("SumaDeducciones", filtrogrupo);
|
dr["SumaDeducciones"] = dtempleados.SUM("SumaDeducciones", filtrogrupo);
|
||||||
|
dr["SumaEspecie"] = dtempleados.SUM("SumaEspecie", filtrogrupo);
|
||||||
|
|
||||||
dr["Total"] = dtempleados.SUM("Total", filtrogrupo);
|
dr["Total"] = dtempleados.SUM("Total", filtrogrupo);
|
||||||
dr["SumaObligaciones"] = dtempleados.SUM("SumaObligaciones", filtrogrupo);
|
dr["SumaObligaciones"] = dtempleados.SUM("SumaObligaciones", filtrogrupo);
|
||||||
|
|
||||||
@@ -1142,6 +1154,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
dr["Departamento"] = drow["Departamento"];
|
dr["Departamento"] = drow["Departamento"];
|
||||||
dr["SumaPercepciones"] = dtempleados.SUM("SumaPercepciones", filtrogrupo);
|
dr["SumaPercepciones"] = dtempleados.SUM("SumaPercepciones", filtrogrupo);
|
||||||
dr["SumaDeducciones"] = dtempleados.SUM("SumaDeducciones", filtrogrupo);
|
dr["SumaDeducciones"] = dtempleados.SUM("SumaDeducciones", filtrogrupo);
|
||||||
|
dr["SumaEspecie"] = dtempleados.SUM("SumaEspecie", filtrogrupo);
|
||||||
|
|
||||||
dr["Total"] = dtempleados.SUM("Total", filtrogrupo);
|
dr["Total"] = dtempleados.SUM("Total", filtrogrupo);
|
||||||
dr["SumaObligaciones"] = dtempleados.SUM("SumaObligaciones", filtrogrupo);
|
dr["SumaObligaciones"] = dtempleados.SUM("SumaObligaciones", filtrogrupo);
|
||||||
|
|
||||||
@@ -1166,6 +1180,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
dr["Turno"] = drow["Turno"];
|
dr["Turno"] = drow["Turno"];
|
||||||
dr["SumaPercepciones"] = dtempleados.SUM("SumaPercepciones", filtrogrupo);
|
dr["SumaPercepciones"] = dtempleados.SUM("SumaPercepciones", filtrogrupo);
|
||||||
dr["SumaDeducciones"] = dtempleados.SUM("SumaDeducciones", filtrogrupo);
|
dr["SumaDeducciones"] = dtempleados.SUM("SumaDeducciones", filtrogrupo);
|
||||||
|
dr["SumaEspecie"] = dtempleados.SUM("SumaEspecie", filtrogrupo);
|
||||||
|
|
||||||
dr["Total"] = dtempleados.SUM("Total", filtrogrupo);
|
dr["Total"] = dtempleados.SUM("Total", filtrogrupo);
|
||||||
dr["SumaObligaciones"] = dtempleados.SUM("SumaObligaciones", filtrogrupo);
|
dr["SumaObligaciones"] = dtempleados.SUM("SumaObligaciones", filtrogrupo);
|
||||||
|
|
||||||
@@ -4338,6 +4354,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
SubTotales.EstatusD = -2;
|
SubTotales.EstatusD = -2;
|
||||||
SubTotales.ImporteD = dtPerEmpleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
SubTotales.ImporteD = dtPerEmpleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
|
|
||||||
|
NConcepto especie = new NConcepto();
|
||||||
|
especie.CveConceptoD = 0;
|
||||||
|
especie.ConceptoD = "Especie";
|
||||||
|
especie.EstatusD = -3;
|
||||||
|
especie.ImporteD = dtPerEmpleados.SUM("SumaEspecie", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
NConcepto Totales = new NConcepto();
|
NConcepto Totales = new NConcepto();
|
||||||
Totales.CveConceptoD = 0;
|
Totales.CveConceptoD = 0;
|
||||||
Totales.ConceptoD = "Total";
|
Totales.ConceptoD = "Total";
|
||||||
@@ -4345,6 +4367,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
Totales.ImporteD = dtPerEmpleados.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
|
Totales.ImporteD = dtPerEmpleados.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
lconc.Add(SubTotales);
|
lconc.Add(SubTotales);
|
||||||
|
if (especie.ImporteD > 0)
|
||||||
|
{
|
||||||
|
lconc.Add(especie);
|
||||||
|
}
|
||||||
lconc.Add(Totales);
|
lconc.Add(Totales);
|
||||||
GvConceptos.DataSource = lconc;
|
GvConceptos.DataSource = lconc;
|
||||||
GvConceptos.DataBind();
|
GvConceptos.DataBind();
|
||||||
@@ -4455,6 +4481,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
SubTotales.EstatusD = -2;
|
SubTotales.EstatusD = -2;
|
||||||
SubTotales.ImporteD = dtPerEmpleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
SubTotales.ImporteD = dtPerEmpleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
|
NConcepto especie = new NConcepto();
|
||||||
|
especie.CveConceptoD = 0;
|
||||||
|
especie.ConceptoD = "Especie";
|
||||||
|
especie.EstatusD = -3;
|
||||||
|
especie.ImporteD = dtPerEmpleados.SUM("SumaEspecie", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
NConcepto Totales = new NConcepto();
|
NConcepto Totales = new NConcepto();
|
||||||
Totales.CveConceptoD = 0;
|
Totales.CveConceptoD = 0;
|
||||||
Totales.ConceptoD = "Total";
|
Totales.ConceptoD = "Total";
|
||||||
@@ -4462,6 +4494,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
Totales.ImporteD = dtPerEmpleados.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
|
Totales.ImporteD = dtPerEmpleados.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
lconc.Add(SubTotales);
|
lconc.Add(SubTotales);
|
||||||
|
if (especie.ImporteD > 0)
|
||||||
|
{
|
||||||
|
lconc.Add(especie);
|
||||||
|
}
|
||||||
lconc.Add(Totales);
|
lconc.Add(Totales);
|
||||||
|
|
||||||
DataTable dtCon = new DataTable();
|
DataTable dtCon = new DataTable();
|
||||||
@@ -4969,6 +5005,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
libro.Range(filainicio + 1, iniciotipe + 1, filainicio + 1, column).Merge().Value = "Deducciones";
|
libro.Range(filainicio + 1, iniciotipe + 1, filainicio + 1, column).Merge().Value = "Deducciones";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
column++;
|
||||||
|
libro.Cell(filainicio + 1, column).Value = " ";
|
||||||
|
libro.Range(filainicio + 2, column, filainicio + 3, column).Merge().Value = "Despensa";
|
||||||
|
libro.Column(column).Width = 15;
|
||||||
column++;
|
column++;
|
||||||
libro.Cell(filainicio + 1, column).Value = " ";
|
libro.Cell(filainicio + 1, column).Value = " ";
|
||||||
libro.Range(filainicio + 2, column, filainicio + 3, column).Merge().Value = "Total";
|
libro.Range(filainicio + 2, column, filainicio + 3, column).Merge().Value = "Total";
|
||||||
@@ -5084,7 +5124,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
libro.Cell(Fila - 3, column).Value = dtempleados.SUM("SumaDeducciones", string.Format("CveSubProyecto ={0} AND CvePersonal > 0 ", oldcveSupProyecto));
|
libro.Cell(Fila - 3, column).Value = dtempleados.SUM("SumaDeducciones", string.Format("CveSubProyecto ={0} AND CvePersonal > 0 ", oldcveSupProyecto));
|
||||||
}
|
}
|
||||||
|
column++;
|
||||||
|
libro.Cell(Fila, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(166, 166, 166));
|
||||||
|
libro.Cell(Fila, column).Value = erow["SumaEspecie"];
|
||||||
|
if (newsubproyecto)
|
||||||
|
{
|
||||||
|
libro.Cell(Fila - 3, column).Value = dtempleados.SUM("SumaEspecie", string.Format("CveSubProyecto ={0} AND CvePersonal > 0 ", oldcveSupProyecto));
|
||||||
|
}
|
||||||
column++;
|
column++;
|
||||||
libro.Cell(Fila, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(166, 166, 166));
|
libro.Cell(Fila, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(166, 166, 166));
|
||||||
libro.Cell(Fila, column).Value = erow["Total"];
|
libro.Cell(Fila, column).Value = erow["Total"];
|
||||||
@@ -5352,6 +5398,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
libro.Cell(Fila - 3, column).Value = dtempleados.SUM("SumaDeducciones", string.Format("CveSubProyecto ={0} AND CvePersonal > 0 ", oldcveSupProyecto));
|
libro.Cell(Fila - 3, column).Value = dtempleados.SUM("SumaDeducciones", string.Format("CveSubProyecto ={0} AND CvePersonal > 0 ", oldcveSupProyecto));
|
||||||
}
|
}
|
||||||
|
column++;
|
||||||
|
libro.Cell(Fila, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(166, 166, 166));
|
||||||
|
libro.Cell(Fila, column).Value = erow["SumaEspecie"];
|
||||||
|
if (newsubproyecto)
|
||||||
|
{
|
||||||
|
libro.Cell(Fila - 3, column).Value = dtempleados.SUM("SumaEspecie", string.Format("CveSubProyecto ={0} AND CvePersonal > 0 ", oldcveSupProyecto));
|
||||||
|
}
|
||||||
|
|
||||||
column++;
|
column++;
|
||||||
libro.Cell(Fila, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(166, 166, 166));
|
libro.Cell(Fila, column).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(166, 166, 166));
|
||||||
@@ -5901,6 +5954,49 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(drow2["SumaEspecie"].ToString().ToDecimal()>0)
|
||||||
|
{
|
||||||
|
rowx = new GemBox.Document.Tables.TableRow(document);
|
||||||
|
tconeptos.Rows.Add(rowx);
|
||||||
|
{
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(3, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh);
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(30, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(6, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(11, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(3, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh);
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(30, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, "Especie"); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(6, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilostrong;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(11, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, string.Format("${0:N2}", drow2["SumaEspecie"])); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilostrong;
|
||||||
|
}
|
||||||
|
}
|
||||||
{
|
{
|
||||||
rowx = new GemBox.Document.Tables.TableRow(document);
|
rowx = new GemBox.Document.Tables.TableRow(document);
|
||||||
tconeptos.Rows.Add(rowx);
|
tconeptos.Rows.Add(rowx);
|
||||||
@@ -6228,7 +6324,57 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(dtempleados.SUM("SumaEspecie", string.Format("CvePersonal > 0 AND CveSubProyecto={0}", CveSubProyecto))>0)
|
||||||
|
{
|
||||||
|
|
||||||
|
rowx = new GemBox.Document.Tables.TableRow(document);
|
||||||
|
tconeptos.Rows.Add(rowx);
|
||||||
|
{
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(3, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh);
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(30, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(6, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(11, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(3, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh);
|
||||||
|
paragraphh.ParagraphFormat.Style = styilostrong;
|
||||||
|
|
||||||
|
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(30, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, "Especie"); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilo;
|
||||||
|
|
||||||
|
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(6, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, ""); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilostrong;
|
||||||
|
|
||||||
|
|
||||||
|
cellx = new GemBox.Document.Tables.TableCell(document); rowx.Cells.Add(cellx);
|
||||||
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(11, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
|
paragraphh = new GemBox.Document.Paragraph(document, string.Format("${0:N2}", dtempleados.SUM("SumaEspecie", string.Format("CvePersonal > 0 AND CveSubProyecto={0}", CveSubProyecto)) )); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
|
paragraphh.ParagraphFormat.Style = styilostrong;
|
||||||
|
//SumaEspecie
|
||||||
|
}
|
||||||
|
}
|
||||||
//no empleados
|
//no empleados
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -6579,7 +6725,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(11, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
cellx.CellFormat.PreferredWidth = new GemBox.Document.Tables.TableWidth(11, GemBox.Document.Tables.TableWidthUnit.Percentage);
|
||||||
paragraphh = new GemBox.Document.Paragraph(document, string.Format("${0:N2}", dtempleados.SUM("SumaDeducciones", "CvePersonal > 0 "))); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
paragraphh = new GemBox.Document.Paragraph(document, string.Format("${0:N2}", dtempleados.SUM("SumaDeducciones", "CvePersonal > 0 "))); cellx.Blocks.Add(paragraphh); paragraphh.ParagraphFormat.Alignment = GemBox.Document.HorizontalAlignment.Right;
|
||||||
paragraphh.ParagraphFormat.Style = styilostrong;
|
paragraphh.ParagraphFormat.Style = styilostrong;
|
||||||
|
//SumaEspecie
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -7919,6 +8065,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
SubTotales.EstatusD = -2;
|
SubTotales.EstatusD = -2;
|
||||||
SubTotales.ImporteD = dtempleadosSimula.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
SubTotales.ImporteD = dtempleadosSimula.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
|
NConcepto especie = new NConcepto();
|
||||||
|
especie.CveConceptoD = 0;
|
||||||
|
especie.ConceptoD = "Especie";
|
||||||
|
especie.EstatusD = -3;
|
||||||
|
especie.ImporteD = dtempleadosSimula.SUM("SumaEspecie", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
NConcepto Totales = new NConcepto();
|
NConcepto Totales = new NConcepto();
|
||||||
Totales.CveConceptoD = 0;
|
Totales.CveConceptoD = 0;
|
||||||
Totales.ConceptoD = "Total";
|
Totales.ConceptoD = "Total";
|
||||||
@@ -7926,6 +8077,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
Totales.ImporteD = dtempleadosSimula.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
|
Totales.ImporteD = dtempleadosSimula.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
|
|
||||||
lconc.Add(SubTotales);
|
lconc.Add(SubTotales);
|
||||||
|
if (especie.ImporteD > 0)
|
||||||
|
{
|
||||||
|
lconc.Add(especie);
|
||||||
|
}
|
||||||
lconc.Add(Totales);
|
lconc.Add(Totales);
|
||||||
|
|
||||||
DataTable dtCon = new DataTable();
|
DataTable dtCon = new DataTable();
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveAsistenciasInasistencias,Tipo,TipoCorto,AplicaAsistencia,AplicaFalta,AplicaVacacion,AplicaIncapacidad,AplicaRetardo,AplicaAguinaldo,AplicaUtilidades,AplicaPago,AplicaPagoDoble,AplicaPrimaVac,Estatus" EmptyDataText="No se encontraron AsistenciasInasistenciass Registrados" ToolTip="Listado de AsistenciasInasistenciass" CssClass="table table-striped table-hover Widthall mysmallbtn" GridLines="None">
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveAsistenciasInasistencias,Tipo,TipoCorto,AplicaAsistencia,AplicaFalta,AplicaVacacion,AplicaIncapacidad,AplicaRetardo,AplicaAguinaldo,AplicaUtilidades,AplicaPago,AplicaPagoDoble,AplicaPrimaVac,Estatus,AplicaPrimaDominical" EmptyDataText="No se encontraron AsistenciasInasistenciass Registrados" ToolTip="Listado de AsistenciasInasistenciass" CssClass="table table-striped table-hover Widthall mysmallbtn" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Tipo" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField HeaderText="Tipo" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -95,6 +95,11 @@
|
|||||||
<asp:Literal ID="LtlAplicapagoDoble" runat="server" Text='<%# Eval("AplicaPagoDoble") %>'></asp:Literal>
|
<asp:Literal ID="LtlAplicapagoDoble" runat="server" Text='<%# Eval("AplicaPagoDoble") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Aplica Prima Dominical" ItemStyle-Width="10%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlAplicaPrimaDominical" runat="server" Text='<%# Eval("AplicaPrimaDominical") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Estatus" ItemStyle-Width="10%">
|
<asp:TemplateField HeaderText="Estatus" ItemStyle-Width="10%">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'>a</asp:Literal>
|
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'>a</asp:Literal>
|
||||||
@@ -200,7 +205,7 @@
|
|||||||
<label for="AplicaUtilidades">Aplica Utilidades:</label><br />
|
<label for="AplicaUtilidades">Aplica Utilidades:</label><br />
|
||||||
<asp:CheckBox ID="AplicaUtilidades" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaUtilidades" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
<div id="CheckActiveSection" runat="server" class="form-group form-md-line-input input-iconright">
|
<div id="CheckActiveSection" runat="server" class="col-md-4">
|
||||||
<label for="ChkEstatus">Activo:</label><br />
|
<label for="ChkEstatus">Activo:</label><br />
|
||||||
<asp:CheckBox ID="ChkEstatus" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="ChkEstatus" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
@@ -211,8 +216,12 @@
|
|||||||
<asp:CheckBox ID="ChkAplicaPago" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="ChkAplicaPago" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label for="ChkAplicaPagoDoble">Aplica Pago doble:</label><br />
|
<label for="ChkAplicaPagoDoble">Aplica Pago Doble:</label><br />
|
||||||
<asp:CheckBox ID="ChkAplicaPagoDoble" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="ChkAplicaPagoDoble" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="false" />
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label for="ChkAplicaPrimaDominical">Aplica Prima Dominical:</label><br />
|
||||||
|
<asp:CheckBox ID="ChkAplicaPrimaDominical" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="false" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
AplicaRetardo.Checked = False
|
AplicaRetardo.Checked = False
|
||||||
AplicaAguinaldo.Checked = False
|
AplicaAguinaldo.Checked = False
|
||||||
AplicaUtilidades.Checked = False
|
AplicaUtilidades.Checked = False
|
||||||
|
ChkAplicaPagoDoble.Checked = False
|
||||||
|
ChkAplicaPrimaDominical.Checked = False
|
||||||
|
|
||||||
TipoTxt.Text = ""
|
TipoTxt.Text = ""
|
||||||
TxtTipoCorto.Text = ""
|
TxtTipoCorto.Text = ""
|
||||||
UpModalTiposD.Update()
|
UpModalTiposD.Update()
|
||||||
@@ -88,10 +91,11 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
Dim aplicaPago As Integer = If(ChkAplicaPago.Checked, 1, 0)
|
Dim aplicaPago As Integer = If(ChkAplicaPago.Checked, 1, 0)
|
||||||
Dim aplicaPagoDoble As Integer = If(ChkAplicaPagoDoble.Checked, 1, 0)
|
Dim aplicaPagoDoble As Integer = If(ChkAplicaPagoDoble.Checked, 1, 0)
|
||||||
Dim aplicaPrimaVac As Integer = If(ChkAplicaPrimaVac.Checked, 1, 0)
|
Dim aplicaPrimaVac As Integer = If(ChkAplicaPrimaVac.Checked, 1, 0)
|
||||||
|
Dim AplicaPrimaDominical As Integer = If(ChkAplicaPrimaDominical.Checked, 1, 0)
|
||||||
|
|
||||||
|
|
||||||
If ObjAsistenciasInasistencias.AddAsistenciasInasistencias(TipoTxt.Text.Trim, chkAplicaFalta, chkAplicaNoAplica, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
If ObjAsistenciasInasistencias.AddAsistenciasInasistencias(TipoTxt.Text.Trim, chkAplicaFalta, chkAplicaNoAplica, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||||
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades, aplicaPago, aplicaPagoDoble, aplicaPrimaVac, TxtTipoCorto.Text) Then
|
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades, aplicaPago, aplicaPagoDoble, aplicaPrimaVac, TxtTipoCorto.Text, AplicaPrimaDominical) Then
|
||||||
TipoTxt.Text = ""
|
TipoTxt.Text = ""
|
||||||
Alert("El nuevo Tipo Asistencias/Inasistencias se guardó correctamente.", TipoMensaje.MsgInformacion)
|
Alert("El nuevo Tipo Asistencias/Inasistencias se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||||
UpTitulos.Update()
|
UpTitulos.Update()
|
||||||
@@ -136,7 +140,7 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
ChkAplicaPago.Checked = If(GvRow.DataKey("AplicaPago") = "Aplica", True, False)
|
ChkAplicaPago.Checked = If(GvRow.DataKey("AplicaPago") = "Aplica", True, False)
|
||||||
ChkAplicaPagoDoble.Checked = If(GvRow.DataKey("AplicaPagoDoble") = "Aplica", True, False)
|
ChkAplicaPagoDoble.Checked = If(GvRow.DataKey("AplicaPagoDoble") = "Aplica", True, False)
|
||||||
ChkAplicaPrimaVac.Checked = If(GvRow.DataKey("AplicaPrimaVac") = "Aplica", True, False)
|
ChkAplicaPrimaVac.Checked = If(GvRow.DataKey("AplicaPrimaVac") = "Aplica", True, False)
|
||||||
|
ChkAplicaPrimaDominical.Checked = If(GvRow.DataKey("AplicaPrimaDominical") = "Aplica", True, False)
|
||||||
|
|
||||||
ChkEstatus.Checked = If(GvRow.DataKey("Estatus") = "Activo", True, False)
|
ChkEstatus.Checked = If(GvRow.DataKey("Estatus") = "Activo", True, False)
|
||||||
CveTipoAsisAEditar = Convert.ToInt32(GvRow.DataKey("CveAsistenciasInasistencias")) 'Guardamos en una propiedad el id del registro del cual haremos cambios, se guarda y se utiliza en el metodo "GvDatos_RowUpdating"
|
CveTipoAsisAEditar = Convert.ToInt32(GvRow.DataKey("CveAsistenciasInasistencias")) 'Guardamos en una propiedad el id del registro del cual haremos cambios, se guarda y se utiliza en el metodo "GvDatos_RowUpdating"
|
||||||
@@ -170,12 +174,13 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
Dim aplicaPagoDoble As Integer = If(ChkAplicaPagoDoble.Checked, 1, 0)
|
Dim aplicaPagoDoble As Integer = If(ChkAplicaPagoDoble.Checked, 1, 0)
|
||||||
Dim aplicaPrimaVac As Integer = If(ChkAplicaPrimaVac.Checked, 1, 0)
|
Dim aplicaPrimaVac As Integer = If(ChkAplicaPrimaVac.Checked, 1, 0)
|
||||||
|
|
||||||
|
Dim AplicaPrimaDominical As Integer = If(ChkAplicaPrimaDominical.Checked, 1, 0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ObjAsistenciasInasistencias.UpdateAsistenciasInasistencias(Tipo, ckAplicaFalta, AplicaAsistencia, Estatus, CveAsistenciasInasistencias,
|
If ObjAsistenciasInasistencias.UpdateAsistenciasInasistencias(Tipo, ckAplicaFalta, AplicaAsistencia, Estatus, CveAsistenciasInasistencias,
|
||||||
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades, aplicaPago, aplicaPagoDoble,
|
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades, aplicaPago, aplicaPagoDoble,
|
||||||
aplicaPrimaVac, TxtTipoCorto.Text) Then
|
aplicaPrimaVac, TxtTipoCorto.Text, AplicaPrimaDominical) Then
|
||||||
GvDatos.EditIndex = -1
|
GvDatos.EditIndex = -1
|
||||||
ViewState("DTAsistenciasInasistencias") = ObjAsistenciasInasistencias.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
ViewState("DTAsistenciasInasistencias") = ObjAsistenciasInasistencias.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||||
GlobalDTAsistenciasInasistencias(UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTAsistenciasInasistencias(UsuarioActual.CveEmpresa) = Nothing
|
||||||
|
|||||||
@@ -2177,6 +2177,7 @@
|
|||||||
<asp:ListItem Text="Infonavit (Porcentaje)" Value="5001"></asp:ListItem>
|
<asp:ListItem Text="Infonavit (Porcentaje)" Value="5001"></asp:ListItem>
|
||||||
<asp:ListItem Text="Infonavit (Factor Descuento)" Value="5002"></asp:ListItem>
|
<asp:ListItem Text="Infonavit (Factor Descuento)" Value="5002"></asp:ListItem>
|
||||||
<asp:ListItem Text="Infonavit (Cuota Fija)" Value="5003"></asp:ListItem>
|
<asp:ListItem Text="Infonavit (Cuota Fija)" Value="5003"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Infonavit(Cuota Fija por período)" Value="5004"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user