This commit is contained in:
@@ -840,7 +840,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
if (!dontsaveconcepto)//el usuario definira si desea actualizar o no el concepto en el periodo
|
||||
{
|
||||
if (!objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConcepto, Importe, ImporteGravado, ImporteExento, UsuarioActual.CveUsuario,true))
|
||||
if (!objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConcepto, Importe, ImporteGravado, ImporteExento, UsuarioActual.CveUsuario, true))
|
||||
{
|
||||
rollback = true;
|
||||
}
|
||||
@@ -924,6 +924,58 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
private void mostrarConceptos()
|
||||
{
|
||||
#region "Llenado de datos empleado"
|
||||
string CodigoEmpleado = "";
|
||||
string NombreCompleto = "";
|
||||
string RFC = "";
|
||||
string CURP = "";
|
||||
string TipoPeriodo = "";
|
||||
string NSS = "";
|
||||
string DiasLaborados = "";
|
||||
string DiasFaltados = "";
|
||||
string DiasVacaciones = "";
|
||||
string FechaInicio = "";
|
||||
string FechaFin = "";
|
||||
string DiasRetardos = "";
|
||||
string DiasIncapacidad = "";
|
||||
DataRow drow = dtempleados.FiltroPrimero(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
if (drow != null)
|
||||
{
|
||||
DiasLaborados = string.Format("{0}", drow["DiasLaborados"].ToString().ToEntero());
|
||||
DiasFaltados = string.Format("{0}", drow["DiasFaltados"].ToString().ToEntero());
|
||||
DiasVacaciones = string.Format("{0}", drow["DiasVacaciones"].ToString().ToEntero());
|
||||
FechaInicio = string.Format("{0:dd/MM/yyyy}", drow["FechaInicio"]);
|
||||
FechaFin = string.Format("{0:dd/MM/yyyy}", drow["FechaFin"]);
|
||||
DiasRetardos = string.Format("{0}", drow["DiasRetardos"].ToString().ToEntero());
|
||||
DiasIncapacidad = string.Format("{0}", drow["DiasIncapacidad"].ToString().ToEntero());
|
||||
}
|
||||
|
||||
using (ClsRH objrh = new ClsRH())
|
||||
{
|
||||
if (objrh.GetPersonal(SRCvePersonal, UsuarioActual.CveEmpresa) && objrh.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
DataRow erow = objrh.DtResultados.Rows[0];
|
||||
CodigoEmpleado = erow["Codigo"].ToString();
|
||||
NombreCompleto = erow["NombreCompleto"].ToString();
|
||||
RFC = erow["RFC"].ToString();
|
||||
CURP = erow["CURP"].ToString();
|
||||
TipoPeriodo = erow["TipoPeriodo"].ToString();
|
||||
NSS = erow["NSS"].ToString();
|
||||
}
|
||||
}
|
||||
LblCodigoEmpleado.Text = CodigoEmpleado;
|
||||
//LblNombreCompleto.Text = NombreCompleto;
|
||||
LblRFC.Text = RFC;
|
||||
LblCURP.Text = CURP;
|
||||
LblTipoPeriodo.Text = TipoPeriodo;
|
||||
LblNSS.Text = NSS;
|
||||
LblDiasLaborados.Text = DiasLaborados;
|
||||
LblDiasFaltados.Text = DiasFaltados;
|
||||
LblDiasVacaciones.Text = DiasVacaciones;
|
||||
LblFecha.Text = string.Format("{0} al {1}",FechaInicio, FechaFin);
|
||||
LblDiasRetardos.Text = DiasRetardos;
|
||||
LblDiasIncapacidad.Text = DiasIncapacidad;
|
||||
#endregion
|
||||
#region "Sobre Recibo"
|
||||
{
|
||||
DataTable dtper = dtConceptos.FiltraParametros("Tipo IN ('P') AND EsPadre = 1 ");
|
||||
@@ -1375,6 +1427,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
public double ImporteP { get; set; }
|
||||
public double ValorP { get; set; }
|
||||
public int EstatusP { get; set; }
|
||||
public bool isEditedP { get; set; }
|
||||
|
||||
|
||||
public string NoConceptoD { get; set; }
|
||||
@@ -1384,6 +1437,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
public double ImporteD { get; set; }
|
||||
public double ValorD { get; set; }
|
||||
public int EstatusD { get; set; }
|
||||
public bool isEditedD { get; set; }
|
||||
}
|
||||
|
||||
protected void GvConceptos_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
@@ -1409,6 +1463,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
LinkButton LnkImporte = e.Row.FCLinkButton("LnkImporte");
|
||||
Label LtlImporteD = e.Row.FCLabel("LtlImporteD");
|
||||
LinkButton LnkImporteD = e.Row.FCLinkButton("LnkImporteD");
|
||||
//isEditedD
|
||||
|
||||
if (Estatus < -1 | EstatusD < -1)
|
||||
e.Row.CssClass = "ConceptosTotales";
|
||||
@@ -3094,8 +3149,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
int CveMoneda = 1;
|
||||
#endregion
|
||||
#region PropNominaDetalle
|
||||
int CveConcepto=0;
|
||||
decimal ImporteConcepto=0, ImporteGravadoConcepto=0, ImporteExentoConcepto = 0;
|
||||
int CveConcepto = 0;
|
||||
decimal ImporteConcepto = 0, ImporteGravadoConcepto = 0, ImporteExentoConcepto = 0;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -3149,10 +3204,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
foreach (DataRow rcon in dtconp.Rows)
|
||||
{
|
||||
|
||||
CveConcepto =rcon["CveConcepto"].ToString().ToEntero();
|
||||
ImporteConcepto =rcon["ImporteConcepto"].ToString().ToDecimal();
|
||||
ImporteGravadoConcepto =rcon["ImporteGravadoConcepto"].ToString().ToDecimal();
|
||||
ImporteExentoConcepto = ImporteConcepto -ImporteGravadoConcepto ;
|
||||
CveConcepto = rcon["CveConcepto"].ToString().ToEntero();
|
||||
ImporteConcepto = rcon["ImporteConcepto"].ToString().ToDecimal();
|
||||
ImporteGravadoConcepto = rcon["ImporteGravadoConcepto"].ToString().ToDecimal();
|
||||
ImporteExentoConcepto = ImporteConcepto - ImporteGravadoConcepto;
|
||||
if (continuar)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user