diff --git a/App_Code/ClsNominas.vb b/App_Code/ClsNominas.vb
index dd8c332f5..a98a423b0 100644
--- a/App_Code/ClsNominas.vb
+++ b/App_Code/ClsNominas.vb
@@ -812,7 +812,7 @@ Public Class ClsNominas
Public Function AddConcepto(Codigo As String, Concepto As String, Tipo As String, Formula As String, Sistema As Boolean, Estado As Boolean, CveConceptoPadre As Integer, CveUsuario As Integer, CveEmpresa As Integer,
EsRetencion As Boolean, CveClasificacion As Integer, IdCtaContable As Integer, CveTipoGasto As Integer, TipoCalculo As Boolean, CveConceptoContable As Integer,
- AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer) As Integer
+ AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer) As Integer
Dim Retorno As Integer = -1
DataAdapter("PA_Nom_ConceptosAdd")
@@ -838,6 +838,7 @@ Public Class ClsNominas
.Add("AutomaticoGlobal", SqlDbType.Bit).Value = AutomaticoGlobal
.Add("Especie", SqlDbType.Bit).Value = Especie
.Add("Imprimir", SqlDbType.Bit).Value = Imprimir
+ .Add("CveSATConcepto", SqlDbType.Int).Value = CveSATConcepto
End With
Try
@@ -858,7 +859,7 @@ Public Class ClsNominas
Public Function UpdateConcepto(Codigo As String, Concepto As String, Tipo As String, Formula As String, Sistema As Boolean, Estado As Boolean, CveConceptoPadre As Integer, CveConcepto As Integer,
EsRetencion As Boolean, CveClasificacion As Integer, IdCtaContable As Integer, CveTipoGasto As Integer, TipoCalculo As Boolean, CveConceptoContable As Integer,
- AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer) As Boolean
+ AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Nom_ConceptosUpdate")
@@ -882,6 +883,7 @@ Public Class ClsNominas
.Add("AutomaticoGlobal", SqlDbType.Bit).Value = AutomaticoGlobal
.Add("Especie", SqlDbType.Bit).Value = Especie
.Add("Imprimir", SqlDbType.Bit).Value = Imprimir
+ .Add("CveSATConcepto", SqlDbType.Int).Value = CveSATConcepto
End With
Try
@@ -1859,14 +1861,35 @@ Public Class ClsNominas
retorno = True
Catch sqEx As SqlException
retorno = False
- OnError("Ocurrió un error al Realizar el calculo de utilidades.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ OnError("Ocurrió un error al Realizar el calculo de nomina.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
Catch ex As Exception
retorno = False
- OnError("Ocurrió un error al Realizar el calculo de utilidades.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ OnError("Ocurrió un error al Realizar el calculo de nomina.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End Try
Return retorno
End Function
+ Public Function GetTablasNomina(CveEmpresa As Integer) As Boolean
+ Dim retorno As Boolean = False
+ Try
+ DTSet = New DataSet()
+ DataAdapter("PA_Nom_Tablas", CommandType.StoredProcedure)
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ End With
+
+
+ SqlAdapter.Fill(DTSet)
+ retorno = True
+ Catch sqEx As SqlException
+ retorno = False
+ OnError("Ocurrió un error al obtener las tablas.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ Catch ex As Exception
+ retorno = False
+ OnError("Ocurrió un error al obtener las tablas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
#Region "IDisposable Support"
' IDisposable
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
diff --git a/App_Code/DSNominas.xsd b/App_Code/DSNominas.xsd
new file mode 100644
index 000000000..9417b50fa
--- /dev/null
+++ b/App_Code/DSNominas.xsd
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App_Code/DSNominas.xss b/App_Code/DSNominas.xss
new file mode 100644
index 000000000..e27cacce0
--- /dev/null
+++ b/App_Code/DSNominas.xss
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App_Code/modExtensiones.vb b/App_Code/modExtensiones.vb
index 4a751b525..2c12cc557 100644
--- a/App_Code/modExtensiones.vb
+++ b/App_Code/modExtensiones.vb
@@ -72,9 +72,18 @@ Namespace Extensiones
Public Sub GuardaLog(Str As String)
Dim ArchivoW As StreamWriter
Dim strLineaTMP As String
+ Dim Urlstring As String = ""
+ Try
+ If Not IsNothing(System.Web.HttpContext.Current) Then
+ If Not IsNothing(System.Web.HttpContext.Current.Request) Then
+ Urlstring = $"{HttpContext.Current.Request.Url.LocalPath.ToString()}{HttpContext.Current.Request.Url.Query}{Environment.NewLine}"
+ End If
+ End If
+ Catch
+ End Try
' strLineaTMP = Chr(13) & Chr(10) & Day(Now) & "/" & Month(Now) & "/" & Year(Now) & " " & Hour(Now) & ":" & Minuto & ". " & Str & Chr(13) & Chr(10)
- strLineaTMP = String.Format("{0}{1}Log: {2}{3}:{4}", Chr(13), Chr(10), Str, DateTime.Now.ToShortDateString, DateTime.Now.ToShortTimeString)
+ strLineaTMP = String.Format("{0}{1}Log: {5}{2}{3}:{4}", Chr(13), Chr(10), Str, DateTime.Now.ToShortDateString, DateTime.Now.ToShortTimeString, Urlstring)
Try
ArchivoW = New StreamWriter(String.Format("{0}\Log.txt", AppDomain.CurrentDomain.BaseDirectory), True, System.Text.Encoding.UTF8)
Catch ex As UnauthorizedAccessException
diff --git a/Nomina/ConceptoNomina.aspx b/Nomina/ConceptoNomina.aspx
index 21bb20f59..fa44998ab 100644
--- a/Nomina/ConceptoNomina.aspx
+++ b/Nomina/ConceptoNomina.aspx
@@ -190,7 +190,7 @@
diff --git a/Nomina/ConceptoNomina.aspx.cs b/Nomina/ConceptoNomina.aspx.cs
index 723408486..3bbeb7283 100644
--- a/Nomina/ConceptoNomina.aspx.cs
+++ b/Nomina/ConceptoNomina.aspx.cs
@@ -199,7 +199,7 @@ public partial class Nomina_CatConcepto : ClsPaginas
CargaClasificacion();
CargaTipoGasto();
CargaCtaContable();
-
+ CargaConceptoSAT();
CargaDatos();
}
@@ -241,6 +241,18 @@ public partial class Nomina_CatConcepto : ClsPaginas
DdlTipoGasto.Items.Insert(0, new ListItem("Seleccione", "-1"));
DdlTipoGasto.SelectedValueExist("-1");
}
+ protected void CargaConceptoSAT()
+ {
+ using (ClsNominas objnom = new ClsNominas())
+ {
+ objnom.GetConceptos();
+ DdlConceptoSAT.DataSource = objnom.DtResultados;
+
+ }
+ DdlConceptoSAT.DataBind();
+ DdlConceptoSAT.Items.Insert(0, new ListItem("Seleccione", "-1"));
+ DdlConceptoSAT.SelectedValueExist("-1");
+ }
protected void CargaCtaContable()
{
@@ -298,6 +310,7 @@ public partial class Nomina_CatConcepto : ClsPaginas
int AutomaticoGlobal = ChkAutomaticoGlobal.Checked ? 1 : 0;
int Especie = ChkEspecie.Checked ? 1 : 0;
int Imprimir = ChkImprimir.Checked ? 1 : 0;
+ int CveSATConcepto = DdlConceptoSAT.SelectedValue.ToEntero();
ClsNominas ObjNomina = new ClsNominas();
ObjNomina.IniciaTransacSQL();
@@ -305,7 +318,7 @@ public partial class Nomina_CatConcepto : ClsPaginas
if (EsEditar)
{
- TieneError = !ObjNomina.UpdateConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, CveConcepto, retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir);
+ TieneError = !ObjNomina.UpdateConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, CveConcepto, retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir, CveSATConcepto);
if (TieneError)
{
@@ -319,7 +332,7 @@ public partial class Nomina_CatConcepto : ClsPaginas
}
else
{
- CveConcepto = ObjNomina.AddConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir);
+ CveConcepto = ObjNomina.AddConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir, CveSATConcepto);
if (CveConcepto == -1)
{
@@ -403,6 +416,7 @@ public partial class Nomina_CatConcepto : ClsPaginas
DdlClasificacion.SelectedValueExist(drow["CveClasificacion"]);
DdlTipoGasto.SelectedValueExist(drow["CveTipoGasto"]);
DdlCtaContable.SelectedValueExist(drow["IdCtaContable"]);
+ DdlConceptoSAT.SelectedValueExist(drow["CveSATConcepto"]);
}
ObjNomina.Dispose();
@@ -416,8 +430,8 @@ public partial class Nomina_CatConcepto : ClsPaginas
ChkRetencion.Checked = false;
DdlConceptoPadre.SelectedValueExist("-1");
DdlConceptoContable.SelectedValueExist("-1");
-
- ChkEstado.Checked = false;
+ ChkImprimir.Checked = true;
+ ChkEstado.Checked = true;
ChkSistema.Checked = false;
DdlClasificacion.SelectedValueExist("-1");
diff --git a/Nomina/Nomina2.aspx b/Nomina/Nomina2.aspx
index 213e4ac1b..2e7e910a4 100644
--- a/Nomina/Nomina2.aspx
+++ b/Nomina/Nomina2.aspx
@@ -8,6 +8,12 @@
border: 1px solid #E87E04;
}
+ .ddlInfolabel {
+ font-size: 13px;
+ color: #888888;
+ opacity: 1;
+ }
+
table.GvConceptos td {
white-space: nowrap;
}
@@ -60,7 +66,11 @@
- Cargar Nomina
+ Cargar Nomina
+
+
+ Tablas
+
@@ -93,7 +103,9 @@
-
+
+ <%--
--%>
+ <%--
--%>
@@ -162,7 +174,7 @@
-
+
Nomina
@@ -533,6 +545,7 @@
+
-
-
-
-
- Sobre Recibo
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/Nomina/Nomina2.aspx.cs b/Nomina/Nomina2.aspx.cs
index 44d0bf5ca..2be97a4b0 100644
--- a/Nomina/Nomina2.aspx.cs
+++ b/Nomina/Nomina2.aspx.cs
@@ -328,7 +328,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
GvNominas.Columns[i].Visible = false;
}
- if (false)
+ bool tr = false;
+ if (tr)
{
bool sumaPercepciones = false;
bool sumaDeducciones = false;
@@ -734,7 +735,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
}
using (ClsRH objpersonal = new ClsRH())
{
- using (ClsNominas objNomina = new ClsNominas())
+ using (ClsNominas objNomina = new ClsNominas(objpersonal.IniciaTransacSQL()))
{
foreach (DataRow row in DTEXcel.Rows)
{
@@ -799,6 +800,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
}
}
}
+ if (rollback)
+ {
+ objpersonal.RollBack();
+ }
+ else
+ {
+ objpersonal.Commit();
+ }
}
}
@@ -821,15 +830,172 @@ public partial class Nomina_Nomina2 : ClsPaginas
#region SobreRecibo
+ protected int SRCvePersonal
+ {
+ get
+ {
+ if (ViewState["SRCvePersonal"] == null) { return 0; }
+ else { return ViewState["SRCvePersonal"].ToString().ToEntero(); }
+ }
+
+ set { ViewState["SRCvePersonal"] = value; }
+ }
+
+ protected int SRCvePeriodo
+ {
+ get
+ {
+ if (ViewState["SRCvePeriodo"] == null) { return 0; }
+ else { return ViewState["SRCvePeriodo"].ToString().ToEntero(); }
+ }
+
+ set { ViewState["SRCvePeriodo"] = value; }
+ }
protected void LnkSobreRecibo_Click(object sender, EventArgs e)
{
GridViewRow gvrow = (GridViewRow)(((LinkButton)sender).NamingContainer);
string Nombre = gvrow.DataKey("Nombre").ToString();
- int cvePersonal = gvrow.DataKey("CvePersonal").ToEntero();
- int CvePeriodo = gvrow.DataKey("CvePeriodo").ToEntero();
+ SRCvePersonal = gvrow.DataKey("CvePersonal").ToEntero();
+ SRCvePeriodo = gvrow.DataKey("CvePeriodo").ToEntero();
int CveNomina = gvrow.DataKey("CveNomina").ToEntero();
LblEmpleado.Text = Nombre;
+ TabPersonal.ActiveTabIndex = 0;
+ mostrarConceptos();
+ RegistraScript("$('#ModalConceptos').modal();");
+ }
+ private void mostrarConceptos()
+ {
+ #region "Sobre Recibo"
+ {
+ DataTable dtper = dtConceptos.FiltraParametros("Tipo IN ('P') AND EsPadre = 1 ");
+ DataTable dtded = dtConceptos.FiltraParametros("Tipo IN ('D') AND EsPadre = 1 ");
+ dtper.Columns.Add("BorradoLogico", typeof(int));
+ dtded.Columns.Add("BorradoLogico", typeof(int));
+
+ foreach (DataRow row in dtper.Rows)
+ {
+ int BorradoLogico = 0;
+ int CveConcepto = row["CveConcepto"].ToString().ToEntero();
+ if (!(dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0))
+ {
+ BorradoLogico = 1;
+ }
+ row["BorradoLogico"] = BorradoLogico;
+ }
+ dtper.AcceptChanges();
+ foreach (DataRow row in dtded.Rows)
+ {
+ int BorradoLogico = 0;
+ int CveConcepto = row["CveConcepto"].ToString().ToEntero();
+ if (!(dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0))
+ {
+ BorradoLogico = 1;
+ }
+ row["BorradoLogico"] = BorradoLogico;
+ }
+ dtded.AcceptChanges();
+ dtper = dtper.FiltraParametros("BorradoLogico=0");
+ dtded = dtded.FiltraParametros("BorradoLogico=0");
+ int maxper = dtper.Rows.Count;
+ int maxded = dtded.Rows.Count;
+ int i = 0;
+ List lconc = new List();
+ for (i = 0; i < maxper || i < maxded; i++)
+ {
+ NConcepto nConcepto = new NConcepto();
+ DataRow row;
+ if (maxper > i)
+ {
+ row = dtper.Rows[i];
+ int CveConcepto = row["CveConcepto"].ToString().ToEntero();
+ string Concepto = row["Concepto"].ToString();
+ string Codigo = row["Codigo"].ToString();
+ //bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
+ double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
+ nConcepto.CveConceptoP = CveConcepto;
+ nConcepto.ConceptoP = Concepto;
+ nConcepto.NoConceptoP = Codigo;
+ nConcepto.ImporteP = Importe;
+ nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
+ }
+ if (maxded > i)
+ {
+ row = dtded.Rows[i];
+ int CveConcepto = row["CveConcepto"].ToString().ToEntero();
+ string Concepto = row["Concepto"].ToString();
+ string Codigo = row["Codigo"].ToString();
+ //bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
+ double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
+ nConcepto.CveConceptoD = CveConcepto;
+ nConcepto.ConceptoD = Concepto;
+ nConcepto.NoConceptoD = Codigo;
+ nConcepto.ImporteD = Importe;
+ nConcepto.ValorD = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
+ }
+ lconc.Add(nConcepto);
+ }
+
+ lconc.Add(new NConcepto());
+
+ NConcepto SubTotales = new NConcepto();
+ SubTotales.CveConceptoP = 0;
+ SubTotales.ConceptoP = "Total Percepciones";
+ SubTotales.EstatusP = -2;
+ SubTotales.ImporteP = dtempleados.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", SRCvePersonal));
+ ///Alert(SubTotales.ImporteP.ToString());
+
+ SubTotales.CveConceptoD = 0;
+ SubTotales.ConceptoD = "Total Deducciones";
+ SubTotales.EstatusD = -2;
+ SubTotales.ImporteD = dtempleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
+
+ NConcepto Totales = new NConcepto();
+ Totales.CveConceptoD = 0;
+ Totales.ConceptoD = "Total";
+ Totales.EstatusD = -3;
+ Totales.ImporteD = dtempleados.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
+
+ lconc.Add(SubTotales);
+ lconc.Add(Totales);
+ GvConceptos.DataSource = lconc;
+ GvConceptos.DataBind();
+ }
+ #endregion
+ #region "Infonavit"
+ {
+ using (ClsRH objper = new ClsRH())
+ {
+ objper.GetPersonalConceptos(SRCvePersonal, UsuarioActual.CveEmpresa);
+ DataRow frow = objper.DtResultados.FiltroPrimero("CveSistema =3");
+ TxtInfoValor.Text = "";
+ DdlInfoTipoAplicacion.SelectedValueExist("-1");
+ TxtInfoDescripcion.Text = "";
+ TxtInfoNumCredito.Text = "";
+ TxtInfoFechaInicio.Text = "";
+ ChkInfo.Checked = false;
+ if (frow != null)
+ {
+
+ TxtInfoValor.Text = String.Format("{0:###,###.##}", frow["Importe"]);
+ DdlInfoTipoAplicacion.SelectedValueExist(frow["TipoAplicacion"].ToString());
+
+ TxtInfoDescripcion.Text = String.Format("{0}", frow["Descripcion02"]);
+ TxtInfoNumCredito.Text = String.Format("{0}", frow["Descripcion01"]);
+ TxtInfoFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow["FInicioAplicacion"]);
+ ChkInfo.Checked = frow["estatus"].ToString().ToUpper().Contiene("1", "TRUE");
+ }
+
+ }
+ }
+ #endregion
+
+ UpModalConceptos.Update();
+ }
+
+ protected void BtnImprimirsobrerecibo_Click(object sender, EventArgs e)
+ {
+
DataTable dtper = dtConceptos.FiltraParametros("Tipo IN ('P') AND EsPadre = 1 ");
DataTable dtded = dtConceptos.FiltraParametros("Tipo IN ('D') AND EsPadre = 1 ");
dtper.Columns.Add("BorradoLogico", typeof(int));
@@ -872,24 +1038,28 @@ public partial class Nomina_Nomina2 : ClsPaginas
row = dtper.Rows[i];
int CveConcepto = row["CveConcepto"].ToString().ToEntero();
string Concepto = row["Concepto"].ToString();
+ string Codigo = row["Codigo"].ToString();
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
- double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
+ double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
nConcepto.CveConceptoP = CveConcepto;
nConcepto.ConceptoP = Concepto;
+ nConcepto.NoConceptoP = Codigo;
nConcepto.ImporteP = Importe;
- nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
+ nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
}
if (maxded > i)
{
row = dtded.Rows[i];
int CveConcepto = row["CveConcepto"].ToString().ToEntero();
string Concepto = row["Concepto"].ToString();
+ string Codigo = row["Codigo"].ToString();
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
- double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
+ double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
nConcepto.CveConceptoD = CveConcepto;
nConcepto.ConceptoD = Concepto;
+ nConcepto.NoConceptoD = Codigo;
nConcepto.ImporteD = Importe;
- nConcepto.ValorD = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
+ nConcepto.ValorD = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
}
lconc.Add(nConcepto);
}
@@ -900,55 +1070,116 @@ public partial class Nomina_Nomina2 : ClsPaginas
SubTotales.CveConceptoP = 0;
SubTotales.ConceptoP = "Total Percepciones";
SubTotales.EstatusP = -2;
- SubTotales.ImporteP = dtempleados.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", cvePersonal));
+ SubTotales.ImporteP = dtempleados.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", SRCvePersonal));
///Alert(SubTotales.ImporteP.ToString());
SubTotales.CveConceptoD = 0;
SubTotales.ConceptoD = "Total Deducciones";
SubTotales.EstatusD = -2;
- SubTotales.ImporteD = dtempleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", cvePersonal));
+ SubTotales.ImporteD = dtempleados.SUM("SumaDeducciones", string.Format("CvePersonal = {0}", SRCvePersonal));
NConcepto Totales = new NConcepto();
Totales.CveConceptoD = 0;
Totales.ConceptoD = "Total";
Totales.EstatusD = -3;
- Totales.ImporteD = dtempleados.SUM("Total", string.Format("CvePersonal = {0}", cvePersonal));
+ Totales.ImporteD = dtempleados.SUM("Total", string.Format("CvePersonal = {0}", SRCvePersonal));
lconc.Add(SubTotales);
lconc.Add(Totales);
- GvConceptos.DataSource = lconc;
- GvConceptos.DataBind();
- UpModalConceptos.Update();
- RegistraScript("$('#ModalConceptos').modal();");
- //if (true)
- //{
- // BoundField field = (BoundField)GvNominas.Columns[CurrentColumn];
+ List lrds = new List();
+ Microsoft.Reporting.WebForms.ReportDataSource rds = new Microsoft.Reporting.WebForms.ReportDataSource();
+ rds.Name = "DataSet1";
+ rds.Value = lconc;
+ lrds.Add(rds);
+ List parametros = new List();
- // field.HeaderText = "Percepciones";
- // field.DataField = "SumaPercepciones";
- // field.ItemStyle.BackColor = System.Drawing.Color.LightGray;
- // GvNominas.Columns[CurrentColumn].Visible = true;
- // CurrentColumn++;
- //}
+ string CodigoEmpleado = "";
+ string NombreCompleto = "";
+ string RFC = "";
+ string CURP = "";
+ string TipoPeriodo = "";
+ string NSS = "";
+ string DiasLaborados = "";
+ string DiasFaltados = "";
+ string DiasVacaciones = "";
+ string FechaInicio = "";
+ string FechaFin = "";
+ string DiasRetardos = "";
- //if (true)
- //{
- // BoundField field = (BoundField)GvNominas.Columns[CurrentColumn];
- // field.HeaderText = "Deducciones";
- // field.DataField = "SumaDeducciones";
- // field.ItemStyle.BackColor = System.Drawing.Color.LightGray;
- // GvNominas.Columns[CurrentColumn].Visible = true;
- // CurrentColumn++;
+ {
+ 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());
+ }
+ }
+ //string Codigo = "";
+ using (ClsRH objrh = new ClsRH())
+ {
+ if (objrh.GetPersonal(SRCvePersonal, UsuarioActual.CveEmpresa) && objrh.DtResultados.Rows.Count > 0)
+ {
+ DataRow drow = objrh.DtResultados.Rows[0];
+ CodigoEmpleado = drow["Codigo"].ToString();
+ NombreCompleto = drow["NombreCompleto"].ToString();
+ RFC = drow["RFC"].ToString();
+ CURP = drow["CURP"].ToString();
+ TipoPeriodo = drow["TipoPeriodo"].ToString();
+ NSS = drow["NSS"].ToString();
+ }
+ }
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("Codigo", CodigoEmpleado));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("NombreCompleto", NombreCompleto));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("RFC", RFC));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("CURP", ""));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("TipoPeriodo", TipoPeriodo));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("NSS", NSS));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("DiasLaborados", DiasLaborados));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("DiasFaltados", DiasFaltados));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("DiasVacaciones", DiasVacaciones));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("FechaInicio", FechaInicio));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("FechaFin", FechaFin));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("DiasRetardos", DiasRetardos));
+ parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("FechaPago", ""));
+ //parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("", ""));
+ //parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("", ""));
+ //parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("", ""));
+ //parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("", ""));
+ //parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("", ""));
- // field = (BoundField)GvNominas.Columns[CurrentColumn];
- // field.HeaderText = "Total";
- // field.DataField = "Total";
- // field.ItemStyle.BackColor = System.Drawing.Color.LightGray;
- // GvNominas.Columns[CurrentColumn].Visible = true;
- // CurrentColumn++;
- //}
+ ImprimirPDF("D:/ADSistemas/Proyectos/SIG/WEB/Empresas/Grales/Formatos/SobreRecibo.rdlc", lrds, parametros, "SobreRecibo.pdf", "PDF", null);
+ }
+ protected void BtnGuardarInfornavit_Click(object sender, EventArgs e)
+ {
+ double importe = TxtInfoValor.Text.ToDouble();
+ int TipoAplicacion = DdlInfoTipoAplicacion.SelectedValue.ToEntero();
+ int NoPagos = 0;
+ double SaldoIni = 0;
+ string descripcion02 = TxtInfoDescripcion.Text;
+ string descripcion01 = TxtInfoNumCredito.Text;
+ string fecha = TxtInfoFechaInicio.Text.Replace("_", "");
+ int estatus = ChkInfo.Checked ? 1 : 0;
+ if (fecha.Length > 8)
+ fecha = fecha.ToDateTime().ToString("yyyy/MM/dd");
+ else
+ fecha = "";
+ bool continuar = true;
+ using (ClsRH ObjPersonal = new ClsRH())
+ {
+ if (!ObjPersonal.AddConcepto(SRCvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 3, descripcion01, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa))
+ continuar = false;
+ }
+ if (continuar)
+ {
+ LnkConsultar_Click(null, null);
+ mostrarConceptos();
+ Alert("Se actualizo el calculo de infonavit");
+ }
}
-
protected void LnkFormato_Click(object sender, EventArgs e)
{
try
@@ -1033,14 +1264,18 @@ public partial class Nomina_Nomina2 : ClsPaginas
}
private class NConcepto
{
+ public string NoConceptoP { get; set; }
public string ConceptoP { get; set; }
+ public string LabelValorP { get; set; }
public int CveConceptoP { get; set; }
public double ImporteP { get; set; }
public double ValorP { get; set; }
public int EstatusP { get; set; }
+ public string NoConceptoD { get; set; }
public string ConceptoD { get; set; }
+ public string LabelValorD { get; set; }
public int CveConceptoD { get; set; }
public double ImporteD { get; set; }
public double ValorD { get; set; }
@@ -1107,4 +1342,34 @@ public partial class Nomina_Nomina2 : ClsPaginas
{
}
+
+
+ protected void LnkVerTablas_Click(object sender, EventArgs e)
+ {
+
+ using (ClsNominas objnom = new ClsNominas())
+ {
+ if (objnom.GetTablasNomina (UsuarioActual.CveEmpresa) && objnom.DTSetResultados.Tables.Count > 1)
+ {
+ GVFactorDesctInfonavit.DataSource = objnom.DTSetResultados.Tables[0];
+ GVSalariosMinimos.DataSource = objnom.DTSetResultados.Tables[1];
+ GVIMMSRiesgot.DataSource = objnom.DTSetResultados.Tables[2];
+ GVInfonavitSegViv.DataSource = objnom.DTSetResultados.Tables[3];
+ GVVigISRMensual.DataSource = objnom.DTSetResultados.Tables[4];
+ GVVigSubEmpMensual.DataSource = objnom.DTSetResultados.Tables[5];
+ GVUma.DataSource = objnom.DTSetResultados.Tables[6];
+ }
+
+ }
+ GVFactorDesctInfonavit.DataBind();
+ GVSalariosMinimos.DataBind();
+ GVIMMSRiesgot.DataBind();
+ GVInfonavitSegViv.DataBind();
+ GVVigISRMensual.DataBind();
+ GVVigSubEmpMensual.DataBind();
+ GVVigSubEmpMensual.DataBind();
+ GVUma.DataBind();
+ UpModalTablas.Update();
+ RegistraScript("$('#ModalTablas').modal();");
+ }
}
\ No newline at end of file
diff --git a/RH/Personal.aspx b/RH/Personal.aspx
index 3cf3d5b97..76e79d612 100644
--- a/RH/Personal.aspx
+++ b/RH/Personal.aspx
@@ -1,75 +1,75 @@
-<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Personal.aspx.vb" Inherits="RH_Personal" %>
-
-
-
-
-
-
-
-
+<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Personal.aspx.vb" Inherits="RH_Personal" %>
+
+
+
+
+
+
+
+
<%--
PDF
- --%>
-
- PDF
-
-
-
-
-
- Agregar Buzón de Calidad
-
-
-
-
-
-
-
- Carga Saldo Inicial
-
-
-
-
-
-
-
- PDF Consumo
-
-
-
-
-
-
-
-
-
-
- Registrar Licencias
-
-
-
-
+ --%>
+
+ PDF
+
+
+
+
+
+ Agregar Buzón de Calidad
+
+
+
+
+
+
+
+ Carga Saldo Inicial
+
+
+
+
+
+
+
+ PDF Consumo
+
+
+
+
+
+
+
+
+
+
+ Registrar Licencias
+
+
+
+
@@ -78,199 +78,199 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Datos del Personal
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Datos del Personal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -298,18 +298,18 @@
-
+
-
+
-
-
-
+
+
+
-
+
@@ -332,3448 +332,3495 @@
-
-
-
-
-
-
-
- <%--
--%>
-
-
-
Cargar Imagen
-
-
-
-
-
-
- Directorio Telefónico
-
-
-
-
+
+
+
+
+
+
+ <%--
--%>
+
+
+
Cargar Imagen
+
+
+
+
+
+
+ Directorio Telefónico
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Recursos Humanos
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Centro de Costos:
-
-
-
-
--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Recursos Humanos
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Centro de Costos:
+
+
+
+
+
+
+
<%--
--%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Uniforme:
-
-
-
-
-
- Surtir Uniforme
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
-
-
-
-
-
-
-
-
-
-
-
- >
-
-
-
-
-
-
-
-
-
-
-
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Uniforme:
+
+
+
+
+
+ Surtir Uniforme
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
<%--
>
- --%>
-
-
-
-
-
-
-
-
-
-
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
<%--
>
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
Banco
-
-
-
-
+
+
+
+
+
# Suc
-
-
-
-
+
+
+
+
+
Num Cuenta
-
-
-
-
+
+
+
+
+
CLABE
-
-
-
-
+
+
+
+
+
SWIFT
-
-
-
-
+
+
+
+
+
Plaza
-
-
-
-
+
+
+
+
+
CIE
-
-
-
-
+
+
+
+
+
Referencia
-
-
-
-
+
+
+
+
+
Credi Prov
-
-
-
-
+
+
+
+
+
Moneda
-
-
-
-
-
-
-
- Comandos
-
-
-
-
+
+
+
+
+
+
+
+
+ Comandos
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%-- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%-- --%>
-
+
-
-
-
-
-
-
-
-
- <%----%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%-- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- '>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ <%----%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ '>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- Factura
-
-
-
-
-
- Fecha Compra
-
-
-
-
-
- Fecha Vencimiento
-
-
-
-
-
- Cheque
-
+
+
+
+
+
+
+
+ Factura
+
+
+
+
+
+ Fecha Compra
+
+
+
+
+
+ Fecha Vencimiento
+
+
+
+
+
+ Cheque
+
-
-
-
- Monto Compra (Saldo Orig)
-
+
+
+
+
+ Monto Compra (Saldo Orig)
+
-
-
-
- Abonado
-
+
+
+
+
+ Abonado
+
-
-
-
- % Pagado
-
+
+
+
+
+ % Pagado
+
-
-
-
- Auxiliar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Aplica
-
-
-
-
-
-
- Código
-
-
-
-
-
-
- Concepto
-
-
-
-
-
- Tipo
-
-
-
-
-
-
- Importe
-
-
-
-
-
-
-
- Tipo de Aplicación
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Auxiliar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Salario Diario IMSS:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Aplica
+
+
+
+
+
+
+ Código
+
+
+
+
+
+
+ Concepto
+
+
+
+
+
+ Tipo
+
+
+
+
+
+
+ Importe
+
+
+
+
+
+
+
+ Tipo de Aplicación
+
+
+
+
+
+ <%-- se movio a codigo
+
+
+
+
+
+
+
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- <%--EmptyDataText="No hay registros." ShowHeaderWhenEmpty="True"--%>
-
-
-
-
-
-
-
-
-
- Se Timbró
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Consultar Asistencias
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ <%--EmptyDataText="No hay registros." ShowHeaderWhenEmpty="True"--%>
+
+
+
+
+
+
+
+
+
+ Se Timbró
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Consultar Asistencias
+
+
+
+
+
+
+
+
-
-
-
- Fecha
-
-
-
-
-
- Cliente
-
-
-
-
-
- Proyecto
-
-
-
-
-
- Sub Proyecto
-
-
-
-
-
- Asistencia
-
-
-
-
-
- % Pago
-
-
-
-
-
- Hrs Dob.
-
-
-
-
-
- Hrs Trip.
-
-
-
-
-
- Motivo H. Extras
-
-
-
-
-
- Obs.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Buzón de Calidad
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Cliente
-
-
-
-
-
-
- Sucursal Cliente
-
-
-
-
-
-
- Tipo
-
-
-
-
-
-
- F. Ocurrió
-
-
-
-
-
- Descripción
-
-
-
-
-
-
- Reportó
-
-
-
-
-
-
- Mail
-
-
-
-
-
-
- Se Atendió
-
-
-
-
-
-
-
-
- Observaciones
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Código
-
-
-
-
-
- Activo Fijo
-
-
-
-
-
- Tipo de A.F.
-
-
-
-
-
- Inició
-
-
-
-
-
- Finalizó
-
-
-
-
-
- Resguardo
-
-
-
-
-
- Observaciones
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Solicitud y resumen de periodo
-
-
-
+ Comandos
+
+ <%-- --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Fecha
+
+
+
+
+
+ Cliente
+
+
+
+
+
+ Proyecto
+
+
+
+
+
+ Sub Proyecto
+
+
+
+
+
+ Asistencia
+
+
+
+
+
+ % Pago
+
+
+
+
+
+ Hrs Dob.
+
+
+
+
+
+ Hrs Trip.
+
+
+
+
+
+ Motivo H. Extras
+
+
+
+
+
+ Obs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Buzón de Calidad
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cliente
+
+
+
+
+
+
+ Sucursal Cliente
+
+
+
+
+
+
+ Tipo
+
+
+
+
+
+
+ F. Ocurrió
+
+
+
+
+
+ Descripción
+
+
+
+
+
+
+ Reportó
+
+
+
+
+
+
+ Mail
+
+
+
+
+
+
+ Se Atendió
+
+
+
+
+
+
+
+
+ Observaciones
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Código
+
+
+
+
+
+ Activo Fijo
+
+
+
+
+
+ Tipo de A.F.
+
+
+
+
+
+ Inició
+
+
+
+
+
+ Finalizó
+
+
+
+
+
+ Resguardo
+
+
+
+
+
+ Observaciones
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Solicitud y resumen de periodo
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%--Motivo
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Historial de vacaciones
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%--
Nuevo Permiso --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Historial de vacaciones
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
Nuevo Permiso --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%--
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
- Historial de cursos y capacitaciones
-
-
-
-
-
-
-
-
- Nombre del curso y capacitación
- Duración
- Instructor
-
-
- Microsoft Excel avanzado
- 5 horas
- Ing. Juan Perez
-
-
- Microsft Excel básico
- 10 horas
- Ing. Juan Perez
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Consignaciones de Material
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Gastos X comprobar
-
-
-
-
-
-
Pago múltiples facturas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Historial de cursos y capacitaciones
+
+
+
+
+
+
+
+
+ Nombre del curso y capacitación
+ Duración
+ Instructor
+
+
+ Microsoft Excel avanzado
+ 5 horas
+ Ing. Juan Perez
+
+
+ Microsft Excel básico
+ 10 horas
+ Ing. Juan Perez
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Consignaciones de Material
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Gastos X comprobar
+
+
+
+
+
+
Pago múltiples facturas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Saldo: $
-
-
-
-
-
-
- Fecha
-
-
-
-
-
- Concepto
-
-
-
-
-
- Referencia
-
-
-
-
-
- Cargo
-
+
+
+
+
+
+
+
+ Fecha
+
+
+
+
+
+ Concepto
+
+
+
+
+
+ Referencia
+
+
+
+
+
+ Cargo
+
-
-
-
-
- Abono
-
+
+
+
+
+
+ Abono
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Factura
-
-
-
-
-
- Fecha Compra
-
-
-
-
-
- Fecha Vencimiento
-
-
-
-
-
- Cheque
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Factura
+
+
+
+
+
+ Fecha Compra
+
+
+
+
+
+ Fecha Vencimiento
+
+
+
+
+
+ Cheque
+
-
-
-
- Monto Compra (Saldo Orig)
-
+
+
+
+
+ Monto Compra (Saldo Orig)
+
-
-
-
- Abonado
-
+
+
+
+
+ Abonado
+
-
-
-
- % Pagado
-
+
+
+
+
+ % Pagado
+
-
-
-
- Auxiliar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Préstamos A Personal
-
-
-
-
-
-
-
- Funcionario/Empleado
-
-
-
-
-
-
-
- Cargo
-
+
+
+
+
+ Auxiliar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Préstamos A Personal
+
+
+
+
+
+
+
+ Funcionario/Empleado
+
+
+
+
+
+
+
+ Cargo
+
-
-
-
- Abono
-
+
+
+
+
+ Abono
+
-
-
-
-
-
-
-
-
-
-
-
- Pago de Facturas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Historial de Gastos X Comprobar
-
-
-
-
-
-
Pago múltiples facturas
-
-
-
-
-
-
-
-
- Cheque
-
-
-
-
-
- Fecha
-
-
-
-
-
- Importe(Saldo Orig)
-
+
+
+
+
+
+
+
+
+
+
+
+
+ Pago de Facturas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Historial de Gastos X Comprobar
+
+
+
+
+
+
Pago múltiples facturas
+
+
+
+
+
+
+
+
+ Cheque
+
+
+
+
+
+ Fecha
+
+
+
+
+
+ Importe(Saldo Orig)
+
-
-
-
- Comprobado
-
+
+
+
+
+ Comprobado
+
-
-
-
- % Comprobado
-
+
+
+
+
+ % Comprobado
+
-
-
-
- Saldo
-
+
+
+
+
+ Saldo
+
-
-
-
- % A Pagar
-
+
+
+
+
+ % A Pagar
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Factura
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
Producto
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
Unidad de medida
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
Cantidad
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
PU
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
Total
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%-- --%>
-
-
-
-
-
-
-
-
-
-
-
- Documentos Firma de contratos
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- --%>
+
+
+
+
+
+
+
+
+
+
+
+ Documentos Firma de contratos
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%--
- --%>
-
-
-
-
-
-
-
- Gafete
-
-
-
-
-
-
-
-
-
-
- Contrato
-
-
-
-
-
-
-
-
-
-
-
-
- Carta de Trabajo
-
-
-
-
-
-
-
-
-
-
- Solicitud de Vacaciones
-
-
-
-
-
-
-
-
-
-
- Acta Administrativa
-
-
-
-
-
-
-
-
-
-
- Finiquito
-
-
-
-
-
-
-
-
-
- Carta de Recomendación
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DEPENDENCIA:
-
-
-
-
-
- ADSCRIPCION:
-
-
-
-
-
- CLAVE PPTAL:
-
-
-
-
-
- UBICACION:
-
-
-
-
-
-
-
-
-
-
-
-
- PUESTO:
-
-
-
-
-
- ESTATUS:
-
-
-
-
-
-
-
-
-
-
-
-
- SINDICATO:
-
-
-
-
-
-
-
-
- TIPO PLAZA:
-
-
-
-
-
-
-
-
-
-
-
- INDOLE:
-
-
-
- ANTIGUEDAD:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Fecha de Captura:
-
-
-
-
- Usuario Capturó:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- --%>
+
+
+
+
+
+
+
+ Gafete
+
+
+
+
+
+
+
+
+
+
+ Contrato
+
+
+
+
+
+
+
+
+
+
+
+
+ Carta de Trabajo
+
+
+
+
+
+
+
+
+
+
+ Solicitud de Vacaciones
+
+
+
+
+
+
+
+
+
+
+ Acta Administrativa
+
+
+
+
+
+
+
+
+
+
+ Finiquito
+
+
+
+
+
+
+
+
+
+ Carta de Recomendación
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DEPENDENCIA:
+
+
+
+
+
+ ADSCRIPCION:
+
+
+
+
+
+ CLAVE PPTAL:
+
+
+
+
+
+ UBICACION:
+
+
+
+
+
+
+
+
+
+
+
+
+ PUESTO:
+
+
+
+
+
+ ESTATUS:
+
+
+
+
+
+
+
+
+
+
+
+
+ SINDICATO:
+
+
+
+
+
+
+
+
+ TIPO PLAZA:
+
+
+
+
+
+
+
+
+
+
+
+ INDOLE:
+
+
+
+ ANTIGUEDAD:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Fecha de Captura:
+
+
+
+
+ Usuario Capturó:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- <%-- --%>
-
- Folio
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%-- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ NombreSupervisor, Destino, Asunto, FechaSalida, FechaRegreso, FechaIng, CveUsuarioIng, UsuarioIng, CiudadPersonal, TelefonoPersonal, Importe"
+ CssClass=" table table-striped table-advance table-hover Widthall" ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
+ AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
+
+
+ <%-- --%>
+
+ Folio
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%--
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Para:
-
-
-
-
-
-
-
- Con copia para:
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- <%--BITACORA--%>
-
-
-
-
-
-
- <%-- --%>
- Bitacora
-
-
+
+
+
+
+ Texto Adicional:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--BITACORA--%>
+
+
+
+
+
+
+ <%-- --%>
+ Bitacora
+
+
+
<%--
Agregar
-
--%>
-
-
-
-
-
-
-
-
-
-
-
-
- Fecha
-
-
-
-
-
- Fecha Agenda
-
-
-
-
-
- Usuario
-
-
-
-
-
- Descripción
-
-
-
-
-
- Archivo
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Historial de Modificación
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%-- MODAL BITACORA --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
Bitácora/Observaciones
-
-
-
- <%--
--%>
-
-
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+ Fecha
+
+
+
+
+
+ Fecha Agenda
+
+
+
+
+
+ Usuario
+
+
+
+
+
+ Descripción
+
+
+
+
+
+ Archivo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Historial de Modificación
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- MODAL BITACORA --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
Bitácora/Observaciones
+
+
+
+ <%--
--%>
+
+
+
<%-- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
- <%-- MODAL SUBIR ARCHIVO --%>
-
+
+
+
+ <%-- MODAL SUBIR ARCHIVO --%>
+
- <%-- FIN MODAL SUBIR FACTURAS --%>
-
+ --%>
+
+
+
+
+
+
+
+ <%-- FIN MODAL SUBIR FACTURAS --%>
+
<%--
@@ -3814,475 +3861,475 @@
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Seguimiento
-
-
-
-
-
-
-
-
-
-
- Fecha
-
-
-
-
-
-
- Seguimiento
-
-
-
-
-
-
- Notifico
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%-- MODAL Licencia --%>
-
-
-
-
-
-
-
-
-
-
- Fecha Expedición:
-
-
- Fecha Vencimiento:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Seguimiento
+
+
+
+
+
+
+
+
+
+
+ Fecha
+
+
+
+
+
+
+ Seguimiento
+
+
+
+
+
+
+ Notifico
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- MODAL Licencia --%>
+
+
+
+
+
+
+
+
+
+
+ Fecha Expedición:
+
+
+ Fecha Vencimiento:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4345,8 +4392,8 @@
Observaciones:
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
diff --git a/RH/Personal.aspx.vb b/RH/Personal.aspx.vb
index d1fe3b2f4..9cfdf863e 100644
--- a/RH/Personal.aspx.vb
+++ b/RH/Personal.aspx.vb
@@ -620,139 +620,143 @@ Partial Class RH_Personal
Const wdCharacter As Integer = 1
'Configuración
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
- If Not IsPostBack Then
- ViewState("Orden") = ""
- ViewState("Orden1") = ""
- Session("FileUpload") = ""
- ViewState("Archivo") = ""
- DTConsumos = Nothing
-
- If UsuarioActual.CveRol = 1 Or UsuarioActual.CveEmpresa = 74 Then
- TabGES.Visible = True
- End If
-
- SetValues()
- 'SetPermisos()
-
- CargaEscolaridad()
- CargaEstadoCivil()
- CargaDepartamento()
- CargaPuestos()
- CargaEstatusPersonal()
- CargaGenero()
- CargaMotivoBaja()
- CargaRuta()
- CargaTiposContrato()
- CargaTipoPeriodo()
- CargaTurno()
- CargaJornadas()
- CargaProyecto()
- CargaTiposAsistencia()
- 'CargaMotivoHoraExtra()
- CargaMotivosHorasExtras()
- CargaSupervisores()
- CargaMetodosPago()
- CargaTipoRegimen()
- CargaRiesgoPuesto()
- CargaBancos()
- CargaSubProyectosZona()
- CargaEstados(1)
- CargaMonedas()
- CargaSuperioresOrganigrama()
- CargaUsuariosNomina()
- CargaComboUniformes()
- CargaPermisos()
- CargaCombosBuzon()
- CargaPermisosReemplazos()
-
-
- If Request("CvePersonal") IsNot Nothing AndAlso IsNumeric(Request("CvePersonal")) AndAlso Request("CvePersonal").ToEntero > 0 Then
- ViewState("CvePersonal") = Request("CvePersonal")
- 'CvePersonal = ViewState("CvePersonal").ToString.ToEntero
- CargaDatos()
- CargaDocumentacionFirmaDecontratos()
- 'LnkAddLicencias.Visible = True
- 'TabLicencias.Visible = True
- 'Configuración de Modalidad Update
- BtnGuardar.Text = "Guardar Cambios"
- LtlTitulo.Text = "Consulta de Personal:"
- If UsuarioActual.CveRol = 1 Then
- 'ImgImprimir.Visible = True
- ImgImprimirExpediente.Visible = True
- End If
-
- 'ImgAddObs.Attributes.Add("onclick", "javascript: PosicionaObjeto(this.id,'DivEventoBitacora',null,-250,-250); $('#DivEventoBitacora').show(1000); ")
- If Request("Opt") IsNot Nothing AndAlso IsNumeric(Request("Opt")) Then Tab.ActiveTabIndex = Request("Opt").ToEntero - 1
-
- 'Inicia Permisos
- If UsuarioActual.TienePermisoProceso(228) Then
- GVAsistencia.Columns(10).Visible = True
- End If
- 'Fin Permisos
- HlEvento.Visible = True
- HlEvento.NavigateUrl = "/OI/PopUpAgenda.aspx?CveTipoEvento=2&CvePersonal=" & CvePersonal & "&TB_iframe=true&height=370&width=600;"
-
- CargaViaticosPersonal()
-
- divBitacora.Visible = True
- CargaGvBitacora()
- Else
-
- 'Configuración de Modalidad Insert
-
- ImgAddObs.Visible = False
- LblFechaCaptura.Text = Now.ToShortDateString()
- LblUsuarioCapturo.Text = UsuarioActual.Usuario
- ViewState("CvePersonal") = -1
- BtnEliminar.Visible = False
- CarcaConceptosNomina()
- For Each Gvr As GridViewRow In GVConceptos.Rows
- If CBool(Gvr.DataKey("Obligatorio")) Then
- Gvr.FCCheckBox("ChkAplica").Checked = True
- Else
- Gvr.Visible = False
- End If
- Next
- 'Inicia Permisos
- 'Fin Permisos
- End If
- CargaCuentasBancarias()
-
- If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
-
- CrearEstructuraFamiliares()
- CargaFamiliares()
-
- LIFamiliaresAcciones.Visible = True
- DivFamiliares.Visible = True
- DivPadres.Visible = False
-
-
+ If Not IsPostBack Then
+ If UsuarioActual.CveEmpresa = 72 OrElse UsuarioActual.CveEmpresa = 80 Then
+ pnlSalarioIMSS.Visible = False
End If
+ ViewState("Orden") = ""
+ ViewState("Orden1") = ""
+ Session("FileUpload") = ""
+ ViewState("Archivo") = ""
+ DTConsumos = Nothing
+
+ If UsuarioActual.CveRol = 1 Or UsuarioActual.CveEmpresa = 74 Then
+ TabGES.Visible = True
+ End If
+
+ SetValues()
+ 'SetPermisos()
+
+ CargaEscolaridad()
+ CargaEstadoCivil()
+ CargaDepartamento()
+ CargaPuestos()
+ CargaEstatusPersonal()
+ CargaGenero()
+ CargaMotivoBaja()
+ CargaRuta()
+ CargaTiposContrato()
+ CargaTipoPeriodo()
+ CargaTurno()
+ CargaJornadas()
+ CargaProyecto()
+ CargaTiposAsistencia()
+ 'CargaMotivoHoraExtra()
+ CargaMotivosHorasExtras()
+ CargaSupervisores()
+ CargaMetodosPago()
+ CargaTipoRegimen()
+ CargaRiesgoPuesto()
+ CargaBancos()
+ CargaSubProyectosZona()
+ CargaEstados(1)
+ CargaMonedas()
+ CargaSuperioresOrganigrama()
+ CargaUsuariosNomina()
+ CargaComboUniformes()
+ CargaPermisos()
+ CargaCombosBuzon()
+ CargaPermisosReemplazos()
+
+
+ If Request("CvePersonal") IsNot Nothing AndAlso IsNumeric(Request("CvePersonal")) AndAlso Request("CvePersonal").ToEntero > 0 Then
+ ViewState("CvePersonal") = Request("CvePersonal")
+ 'CvePersonal = ViewState("CvePersonal").ToString.ToEntero
+ CargaDatos()
+ CargaDocumentacionFirmaDecontratos()
+ 'LnkAddLicencias.Visible = True
+ 'TabLicencias.Visible = True
+ 'Configuración de Modalidad Update
+ BtnGuardar.Text = "Guardar Cambios"
+ LtlTitulo.Text = "Consulta de Personal:"
+ If UsuarioActual.CveRol = 1 Then
+ 'ImgImprimir.Visible = True
+ ImgImprimirExpediente.Visible = True
+ End If
+
+ 'ImgAddObs.Attributes.Add("onclick", "javascript: PosicionaObjeto(this.id,'DivEventoBitacora',null,-250,-250); $('#DivEventoBitacora').show(1000); ")
+ If Request("Opt") IsNot Nothing AndAlso IsNumeric(Request("Opt")) Then Tab.ActiveTabIndex = Request("Opt").ToEntero - 1
+
+ 'Inicia Permisos
+ If UsuarioActual.TienePermisoProceso(228) Then
+ GVAsistencia.Columns(10).Visible = True
+ End If
+ 'Fin Permisos
+ HlEvento.Visible = True
+ HlEvento.NavigateUrl = "/OI/PopUpAgenda.aspx?CveTipoEvento=2&CvePersonal=" & CvePersonal & "&TB_iframe=true&height=370&width=600;"
+
+ CargaViaticosPersonal()
+
+ divBitacora.Visible = True
+ CargaGvBitacora()
+ Else
+
+ 'Configuración de Modalidad Insert
+
+ ImgAddObs.Visible = False
+ LblFechaCaptura.Text = Now.ToShortDateString()
+ LblUsuarioCapturo.Text = UsuarioActual.Usuario
+ ViewState("CvePersonal") = -1
+ BtnEliminar.Visible = False
+ CarcaConceptosNomina()
+ For Each Gvr As GridViewRow In GVConceptos.Rows
+ If CBool(Gvr.DataKey("Obligatorio")) Then
+ Gvr.FCCheckBox("ChkAplica").Checked = True
+ Else
+ Gvr.Visible = False
+ End If
+ Next
+ 'Inicia Permisos
+ 'Fin Permisos
+ End If
+ CargaCuentasBancarias()
+
+ If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
+
+ CrearEstructuraFamiliares()
+ CargaFamiliares()
+
+ LIFamiliaresAcciones.Visible = True
+ DivFamiliares.Visible = True
+ DivPadres.Visible = False
+
+
+ End If
- 'If UsuarioActual.TienePermisoProceso(84) Then 'abonar pago
- ' HplAbonarMasivo.Visible = True
- ' GvGxC.Columns(7).Visible = True
- 'End If
+
+ 'If UsuarioActual.TienePermisoProceso(84) Then 'abonar pago
+ ' HplAbonarMasivo.Visible = True
+ ' GvGxC.Columns(7).Visible = True
+ 'End If
- If Not CvePersonal > 0 Then
- DivSuperiorInmediato.Visible = False
- End If
-
- '09/05/2018 - Si el Personal tiene consumos, muestra boton para generar reporte
- If DTConsumos IsNot Nothing Then
- If DTConsumos.Rows.Count > 0 Then
- UpDescargaConsumos.Visible = True
- End If
- End If
- CargaLicencias()
-
- End If
- AgregarEventosAsincronosGvVacaciones()
+ If Not CvePersonal > 0 Then
+ DivSuperiorInmediato.Visible = False
+ End If
+
+ '09/05/2018 - Si el Personal tiene consumos, muestra boton para generar reporte
+ If DTConsumos IsNot Nothing Then
+ If DTConsumos.Rows.Count > 0 Then
+ UpDescargaConsumos.Visible = True
+ End If
+ End If
+ CargaLicencias()
+
+ End If
+ AgregarEventosAsincronosGvVacaciones()
End Sub
Private Sub CargaCuentasContables()
@@ -1089,22 +1093,9 @@ Partial Class RH_Personal
End Sub
Protected Sub GVAsistencia_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVAsistencia.RowDataBound
- If e.Row.RowType = DataControlRowType.DataRow Then
-
- If e.Row.RowIndex = 0 Then
- e.Row.Cells(0).Width = Unit.Pixel(120)
- e.Row.Cells(1).Width = Unit.Pixel(180)
- e.Row.Cells(2).Width = Unit.Pixel(110)
- e.Row.Cells(3).Width = Unit.Pixel(110)
- e.Row.Cells(4).Width = Unit.Pixel(70)
- e.Row.Cells(5).Width = Unit.Pixel(50)
- e.Row.Cells(6).Width = Unit.Pixel(56)
- e.Row.Cells(7).Width = Unit.Pixel(56)
- e.Row.Cells(8).Width = Unit.Pixel(110)
- e.Row.Cells(9).Width = Unit.Pixel(90)
- e.Row.Cells(10).Width = Unit.Pixel(60)
- End If
-
+ If e.Row.RowType = DataControlRowType.DataRow Then
+
+
e.Row.Cells(1).HorizontalAlign = HorizontalAlign.Left
e.Row.Cells(2).HorizontalAlign = HorizontalAlign.Left
e.Row.Cells(3).HorizontalAlign = HorizontalAlign.Left
@@ -1441,6 +1432,9 @@ Partial Class RH_Personal
End If
End If
+ If UsuarioActual.CveEmpresa = 72 OrElse UsuarioActual.CveEmpresa = 80 Then
+ TxtSalarioCotizado.Text = TxtSDI.Text
+ End If
If CvePersonal = -1 Then
URL = ""
@@ -2183,32 +2177,46 @@ Partial Class RH_Personal
e.Row.FCDropDownList("DdlTipoAplicacion").Visible = False : e.Row.Cells(3).Text = "Calculado"
e.Row.FCDropDownList("DdlTipoAplicacion").Visible = False : e.Row.Cells(4).Text = "Permanente"
Else
- If e.Row.DBCampo("TipoAplicacion").ToEntero > 5 Then
- e.Row.FCDropDownList("DdlTipoAplicacion").SelectedValue = "2600"
- Else
- e.Row.FCDropDownList("DdlTipoAplicacion").SelectedValue = e.Row.DBCampo("TipoAplicacion")
- End If
+ Dim TipoAplicacion As String = e.Row.DBCampo("TipoAplicacion").ToString()
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Clear()
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Seleccione", "-1"))
+ If (e.Row.DBCampo("CveSistema").ToString() = "3") Then
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Movto Permanente)", "5000"))
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Porcentaje)", "5001"))
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Factor Descuento)", "5002"))
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Cuota Fija)", "5003"))
+ Else
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Saldo", "1"))
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("No. Pagos", "2"))
+ e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Permanente", "2600"))
+ End If
+
+
+ If e.Row.DBCampo("TipoAplicacion").ToEntero > 5 Then
+ TipoAplicacion = "2600"
+ End If
+ e.Row.FCDropDownList("DdlTipoAplicacion").SelectedValueExist(TipoAplicacion)
+ End If
+
+ 'If e.Row.DBCampo("TipoCalculo") = "False" Then
+ ' e.Row.FCTextBox("TxtImporte").Visible = False
+ ' e.Row.FCDropDownList("DdlTipoAplicacion").Visible = False
+ 'Else
+ ' Select Case e.Row.DBCampo("TipoAplicacion").ToEntero
+ ' Case 1
+ ' 'Saldo
+ ' e.Row.FCLiteral("LtlSaldo").Visible = True
+ ' e.Row.FCTextBox("TxtSaldoIni").Visible = True
+ ' Case 2
+ ' 'Numero de Pagos
+ ' e.Row.FCLiteral("LtlNoPago").Visible = True
+ ' e.Row.FCTextBox("TxtNoPagos").Visible = True
+ ' Case 2600
+ ' 'Permanente
+ ' End Select
+ 'End If
+
End If
-
- 'If e.Row.DBCampo("TipoCalculo") = "False" Then
- ' e.Row.FCTextBox("TxtImporte").Visible = False
- ' e.Row.FCDropDownList("DdlTipoAplicacion").Visible = False
- 'Else
- ' Select Case e.Row.DBCampo("TipoAplicacion").ToEntero
- ' Case 1
- ' 'Saldo
- ' e.Row.FCLiteral("LtlSaldo").Visible = True
- ' e.Row.FCTextBox("TxtSaldoIni").Visible = True
- ' Case 2
- ' 'Numero de Pagos
- ' e.Row.FCLiteral("LtlNoPago").Visible = True
- ' e.Row.FCTextBox("TxtNoPagos").Visible = True
- ' Case 2600
- ' 'Permanente
- ' End Select
- 'End If
-
- End If
End Sub
Protected Sub BtnGuardarInfornavit_Click(sender As Object, e As EventArgs)
@@ -5874,4 +5882,11 @@ Partial Class RH_Personal
#End Region
+ Protected Sub DdlTipoAsistencias_SelectedIndexChanged(sender As Object, e As EventArgs)
+ Dim ddl As DropDownList = DirectCast(sender, DropDownList)
+ Dim gvrow As GridViewRow = DirectCast(ddl.NamingContainer, GridViewRow)
+ If ddl.SelectedItem.Text = "Retardo" Then
+ gvrow.FCTextBox("TxtPorPago").Text = "87.5"
+ End If
+ End Sub
End Class
diff --git a/Scripts/custom.js b/Scripts/custom.js
index 5ef8508ee..e009ab938 100644
--- a/Scripts/custom.js
+++ b/Scripts/custom.js
@@ -1697,6 +1697,32 @@ function loadsortadscroll() {
});
}
+var listaADScroller = [];
+
+function saveposicionADScroller() {
+ $('.ADScroller-body>table').each(function () {
+ let _this = $(this);
+ let id = _this.attr("id");
+ let scrollleft = $(_this.parent()).scrollLeft();
+ let scrolltop = $(_this.parent()).scrollTop();
+ listaADScroller.push({ id: id, scrollleft: scrollleft, scrolltop: scrolltop })
+ });
+}
+function setposicionADScroller() {
+
+ setTimeout(
+ function () {
+ listaADScroller.forEach(function (_this) {
+ let id = _this.id;
+ let scrollleft = _this.scrollleft;
+ let scrolltop = _this.scrolltop;
+ $($('#' + id).parent()).scrollLeft(scrollleft);
+ $($('#' + id).parent().parent()).find('> .ADScroller-header').scrollLeft(scrollleft);
+ $($('#' + id).parent()).scrollTop(scrolltop);
+ });
+ }, 99);
+}
+
function loaderinit() {
setTimeout(
@@ -1727,7 +1753,6 @@ jQuery(document).ready(function () {
setTimeout(loadadscroll, 10)
});
-
loadsortadscroll();
QuickSidebar.init();
@@ -1804,6 +1829,8 @@ jQuery(document).ready(function () {
prm.add_initializeRequest(function (s, e) {
objscollapse = $('.portlet-title .collapse').closest('.portlet[id]');
objsexpand = $('.portlet-title .expand').closest('.portlet[id]');
+
+ saveposicionADScroller();
loaderinit();
});
prm.add_endRequest(function (s, e) {
@@ -1816,6 +1843,7 @@ jQuery(document).ready(function () {
Metronic.initAjax();
loadjquerys();
loaderEnd();
+ setposicionADScroller();
error = false;
});
ADSSignalR();
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index 24c458fb8..dcfc698a1 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -14944,6 +14944,7 @@ Partial Class Ventas
Else
OcurrioError = True
+ Alert("Error traspaso almacen(sin Movtos. Detalle). Por favor comuniquese con atención SIG.", TipoMensaje.ToastError)
End If
MovDetalle.Dispose()
@@ -15085,6 +15086,7 @@ Partial Class Ventas
Dim CveVentaDetalle = If(ConceptoEntrada = 3, TmpDT.FiltroPrimeroValor("CveVentaDetalle", $"Consec={Consec}").ToEntero, MovDet("CveVentaDetalle").ToString.ToEntero)
'CUANDO LA VENTADETALLE NO TENGA VALOR DEBE MARCAR ERROR, NUEVA RESTRICCION DE ALMACEN
If CveVentaDetalle < 0 Then
+ Alert("no se encontro la venta detalle. Por favor comuniquese con atención SIG.", TipoMensaje.ToastError)
OcurrioError = True
Exit For
End If
@@ -15143,6 +15145,7 @@ Partial Class Ventas
'End If
Catch ex As Exception
OcurrioError = True
+ Alert("Error inesperado (15147). Por favor comuniquese con atención SIG.", TipoMensaje.ToastError)
End Try
Cont += 1
Next