diff --git a/App_Code/ClsRH.vb b/App_Code/ClsRH.vb
index a13e094b3..000220165 100644
--- a/App_Code/ClsRH.vb
+++ b/App_Code/ClsRH.vb
@@ -1973,7 +1973,7 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
End Try
Return Retorno
End Function
- Public Function UpdateSalarios(CvePersonal As Integer, Fecha As String, CveEmpresa As Integer, SalarioDiario As Double, SDI As Double, SalarioDiarioSS As Double, SalarioDiarioPago As Double) As Boolean
+ Public Function UpdateSalarios(CvePersonal As Integer, Fecha As String, CveEmpresa As Integer, SalarioDiario As Double, SDI As Double, SalarioDiarioSS As Double, SalarioDiarioPago As Double, Optional CalcularSDI As Boolean = False) As Boolean
Dim Retorno As Boolean = False
SqlDataAdapter("PA_RH_PersonalUpdateSalarios")
With SqlAdapter.SelectCommand.Parameters
@@ -1983,7 +1983,8 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
.Add("@SalarioDiarioPago", SqlDbType.Money).Value = SalarioDiarioPago
.Add("@SalarioDiario", SqlDbType.Money).Value = SalarioDiario
.Add("@SDI", SqlDbType.Money).Value = SDI
- .Add("@SalarioDiarioSS", SqlDbType.Money).Value = SalarioDiarioSS
+ .Add("@SalarioDiarioSS", SqlDbType.Money).Value = SalarioDiarioSS
+ .Add("@CalcularSDI", SqlDbType.Bit).Value = CalcularSDI
End With
Try
SqlAdapter.Fill(Data)
diff --git a/Ashx/SIGWeb.ashx b/Ashx/SIGWeb.ashx
index dd6cb5620..e53a90a5f 100644
--- a/Ashx/SIGWeb.ashx
+++ b/Ashx/SIGWeb.ashx
@@ -61,7 +61,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
Dim correo As String = ""
Dim sitio As String = ""
Dim cuerpo As String = ""
- Dim obj = context.Request("Nombre")
+ Dim obj = context.Request("Nombre") 'Nombre=' + $('#Nombre').val() +'Correo=' + $('#Correo').val() +'Sitio=' + $('#Sitio').val() +'Cuerpo=' + $('#Cuerpo').val() +
If Not IsNothing(obj) Then
nombre = obj.ToString()
End If
@@ -75,11 +75,11 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
End If
obj = context.Request("Cuerpo")
If Not IsNothing(obj) Then
- cuerpo = obj.ToString()
+ cuerpo = obj.ToString().Replace("< ", "<")
End If
- Dim Body As String = String.Format("Nombre : {0} Nombre : {0} Correo : {1} Sitio : {2}
{3}", nombre, correo, sitio, cuerpo)
- Dim para As String = "rene.molina@adssistemas.mx,sig.buzon@gmail.com,julian@adssistemas.mx;paola@adssistemas.mx;"
- para = "caudillo.90d@gmail.com"
+ Dim Body As String = String.Format("Prospecto : {0} Correo : {1} Sitio : {2}
{3}", nombre, correo, sitio, cuerpo)
+ Dim para As String = "rene.molina@adssistemas.mx,sig.buzon@gmail.com,julian@adssistemas.mx;paola@adssistemas.mx;caudillo.90d@gmail.com;"
+ 'para = ""
Dim Mail As New ClsSisMail()
If Mail.SendMail(ClsPaginas.EmpresaNotificaciones, para, "NotificaciónProspecto", Body) Then
retorno = "true"
diff --git a/CRM/RepAcercamientosProcesos.aspx b/CRM/RepAcercamientosProcesos.aspx
index c88c06c77..e38a869ea 100644
--- a/CRM/RepAcercamientosProcesos.aspx
+++ b/CRM/RepAcercamientosProcesos.aspx
@@ -5,8 +5,7 @@
-
+
Reporte Detalle de los Acercamientos Procesos
-
+
-
+
-
<%----%>
diff --git a/RH/Organigrama.aspx.vb b/RH/Organigrama.aspx.vb
index 84175ea43..190813a3a 100644
--- a/RH/Organigrama.aspx.vb
+++ b/RH/Organigrama.aspx.vb
@@ -86,14 +86,8 @@ Partial Class RH_Organigrama
CveEmpresaFiltro = UsuarioActual.CveEmpresa
NivelOrg = If(rgx.IsMatch(txtNivel.Text), txtNivel.Text.ToEntero, NivelOrg)
txtNivel.Text = ""
- DdlSupervisorOrganigrama.SelectedIndex = 0
- ScriptManager.RegisterClientScriptBlock(Me, [GetType], "mykey", "drawChart()", True) 'ejecutamos la funcion de js para que haga la consulta de los registros
- End Sub
+ 'DdlSupervisorOrganigrama.SelectedIndex = 0
-#End Region
-
-
- Public Shared Function FetchData() As List(Of Object)
Dim ObjRH As New ClsRH
Dim DtTemporal As New DataTable
Dim chartData As New List(Of Object)()
@@ -110,8 +104,33 @@ Partial Class RH_Organigrama
chartData.Add(New Object() {headerEmpleado, If(nombreEmpleado = nombreSuperior, "", nombreSuperior), puesto})
Next
End If
+ Dim str As String = (New Script.Serialization.JavaScriptSerializer()).Serialize(chartData)
+ LblJson.Text = str
+ 'ScriptManager.RegisterClientScriptBlock(Me, [GetType], "mykey", "drawChart()", True) 'ejecutamos la funcion de js para que haga la consulta de los registros
+ End Sub
- Return chartData
+#End Region
+
+
+ Public Shared Function FetchData() As String
+ Dim ObjRH As New ClsRH
+ Dim DtTemporal As New DataTable
+ Dim chartData As New List(Of Object)()
+
+ If ObjRH.GetOrganigrama(CveEmpresaFiltro, CveCabecera, NivelOrg) Then
+ DtTemporal = ObjRH.DtResultados.Copy
+
+ For Each renglon As DataRow In DtTemporal.Rows
+ Dim nombreEmpleado As String = renglon("nombreEmpleado").ToString
+ Dim nombreSuperior As String = renglon("nombreSuperior").ToString
+ Dim puesto As String = renglon("puesto").ToString
+ Dim headerEmpleado As String = String.Format("{{{2}v{2}:{2}{0}{2},{2}f{2}:{2}{0}
{1}
{2}}}", nombreEmpleado, puesto, ControlChars.Quote) 'este es el JSON que da formato a los subtitulos se hace en String y la funcion lo hace JSON
+
+ chartData.Add(New Object() {headerEmpleado, If(nombreEmpleado = nombreSuperior, "", nombreSuperior), puesto})
+ Next
+ End If
+ Dim str As String = (New Script.Serialization.JavaScriptSerializer()).Serialize(chartData)
+ Return str
End Function
End Class
diff --git a/RH/Personal.aspx b/RH/Personal.aspx
index 9dce78f67..9dabad475 100644
--- a/RH/Personal.aspx
+++ b/RH/Personal.aspx
@@ -715,7 +715,7 @@
-
+