This commit is contained in:
@@ -2765,7 +2765,8 @@ Public Class ClsNominas
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetNominaEmpleado(CveProyecto As Integer, CveSubProyecto As Integer, CveTurno As Integer, CvePeriodo As Integer, CveEmpresa As Integer, Agrupador As Integer,
|
Public Function GetNominaEmpleado(CveProyecto As Integer, CveSubProyecto As Integer, CveTurno As Integer, CvePeriodo As Integer, CveEmpresa As Integer, Agrupador As Integer,
|
||||||
Optional RegimenContratacion As Integer = 1, Optional CvePersonal As Integer = -1, Optional NetoxSalario As Decimal = 0, Optional Neto As Decimal = 0,
|
Optional RegimenContratacion As Integer = 1, Optional CvePersonal As Integer = -1, Optional NetoxSalario As Decimal = 0, Optional Neto As Decimal = 0,
|
||||||
Optional CveTipoTrabajador As Integer = -1) As Boolean
|
Optional CveTipoTrabajador As Integer = -1, Optional EsSimulador As Boolean = 0, Optional TipoPeriodo As Integer = -1, Optional AreaGeografica As String = "A",
|
||||||
|
Optional EjercicioSimula As Integer = -1, Optional FactorISimula As Decimal = 1.0493150684931D) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
Try
|
Try
|
||||||
DTSet = New DataSet()
|
DTSet = New DataSet()
|
||||||
@@ -2782,6 +2783,11 @@ Public Class ClsNominas
|
|||||||
.Add("@NetoxSalario", SqlDbType.Decimal).Value = NetoxSalario
|
.Add("@NetoxSalario", SqlDbType.Decimal).Value = NetoxSalario
|
||||||
.Add("@Neto", SqlDbType.Decimal).Value = Neto
|
.Add("@Neto", SqlDbType.Decimal).Value = Neto
|
||||||
.Add("@CveTipoTrabajador", SqlDbType.Decimal).Value = CveTipoTrabajador
|
.Add("@CveTipoTrabajador", SqlDbType.Decimal).Value = CveTipoTrabajador
|
||||||
|
.Add("@EsSimulador", SqlDbType.Bit).Value = EsSimulador
|
||||||
|
.Add("@TipoPeriodo", SqlDbType.Int).Value = TipoPeriodo
|
||||||
|
.Add("@AreaGeografica", SqlDbType.VarChar).Value = AreaGeografica.ToUpper()
|
||||||
|
.Add("@EjercicioSimula", SqlDbType.Int).Value = EjercicioSimula
|
||||||
|
.Add("@FactorISimula", SqlDbType.Decimal).Value = FactorISimula
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ Option Explicit On
|
|||||||
|
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports System.Data.SqlClient
|
Imports System.Data.SqlClient
|
||||||
|
Imports CrystalDecisions.[Shared].Json
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
|
Imports Microsoft.Ajax.Utilities
|
||||||
Imports Profact.TimbraCFDI40
|
Imports Profact.TimbraCFDI40
|
||||||
|
|
||||||
|
|
||||||
@@ -2053,17 +2055,25 @@ Public Class ClsRH
|
|||||||
|
|
||||||
.Add("@CveSubTipoPeriodo", SqlDbType.Int).Value = CveSubTipoPeriodo
|
.Add("@CveSubTipoPeriodo", SqlDbType.Int).Value = CveSubTipoPeriodo
|
||||||
|
|
||||||
|
.Add("@ErrorMostrarADS", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
||||||
|
|
||||||
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue
|
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.SelectCommand.ExecuteNonQuery()
|
||||||
_CvePersonal = SqlAdapter.SelectCommand.Parameters("@RETURN_VALUE").Value.ToString.ToEntero
|
|
||||||
|
'SqlAdapter.Fill(Data)
|
||||||
|
_CvePersonal = SqlAdapter.SelectCommand.Parameters("@RETURN_VALUE").Value.ToString().ToEntero()
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch Ex1 As SqlException
|
Catch Ex1 As SqlException
|
||||||
'dbo.Vw_Val_Nom_Curps
|
Dim ErrorMostrarADS As String = trygetparameter("@ErrorMostrarADS")
|
||||||
If Ex1.Message.Contains("Número: 2627;") Then
|
|
||||||
|
'dbo.Vw_Val_Nom_Curps
|
||||||
|
If Not (ErrorMostrarADS.IsNullOrWhiteSpace()) Then
|
||||||
|
Alert(ErrorMostrarADS, TipoMensaje.MsgAdvertencia)
|
||||||
|
ElseIf Ex1.Message.Contains("Número: 2627;") Then
|
||||||
Alert("El nuevo personal no se guardo debido a que actualmente se encuentra registrado", TipoMensaje.MsgAdvertencia)
|
Alert("El nuevo personal no se guardo debido a que actualmente se encuentra registrado", TipoMensaje.MsgAdvertencia)
|
||||||
ElseIf Ex1.Message.Contains("Chk_RH_PersonalSalarioIMSS") Then
|
ElseIf Ex1.Message.Contains("Chk_RH_PersonalSalarioIMSS") Then
|
||||||
Alert("El nuevo personal no se guardo debido a que se presento un problema al calcular el salario", TipoMensaje.MsgAdvertencia)
|
Alert("El nuevo personal no se guardo debido a que se presento un problema al calcular el salario", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -2077,11 +2087,26 @@ Public Class ClsRH
|
|||||||
Me.OnError("Ocurrió un error al guardar el nuevo personal.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
Me.OnError("Ocurrió un error al guardar el nuevo personal.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al guardar el nuevo personal.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
Dim ErrorMostrarADS As String = trygetparameter("@ErrorMostrarADS")
|
||||||
|
|
||||||
|
If Not (ErrorMostrarADS.IsNullOrWhiteSpace()) Then
|
||||||
|
Alert(ErrorMostrarADS, TipoMensaje.MsgAdvertencia)
|
||||||
|
Else
|
||||||
|
OnError("Ocurrió un error al guardar el nuevo personal.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End If
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
Private Function trygetparameter(parametername As String) As String
|
||||||
|
Try
|
||||||
|
Return SqlAdapter.SelectCommand.Parameters(parametername).Value.ToString()
|
||||||
|
Catch ex As Exception
|
||||||
|
Return Nothing
|
||||||
|
End Try
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function UpdatePersonal(Codigo As String, APaterno As String, AMaterno As String, Nombres As String, Correo As String, FechaIngreso As Date, CveTipoPeriodo As Integer, NumeroSS As String, SeInscribioSS As Boolean, SalarioDiarioPago As Double, SalarioDiario As Double, SDI As Double,
|
Public Function UpdatePersonal(Codigo As String, APaterno As String, AMaterno As String, Nombres As String, Correo As String, FechaIngreso As Date, CveTipoPeriodo As Integer, NumeroSS As String, SeInscribioSS As Boolean, SalarioDiarioPago As Double, SalarioDiario As Double, SDI As Double,
|
||||||
SalarioDiarioSS As Double, Bono As Double, NumDiasAguinaldo As Integer, PorPrimaVacacional As Double, CveMetodoPago As Integer, FechaInicioContrato As Date, FechaFinContrato As String,
|
SalarioDiarioSS As Double, Bono As Double, NumDiasAguinaldo As Integer, PorPrimaVacacional As Double, CveMetodoPago As Integer, FechaInicioContrato As Date, FechaFinContrato As String,
|
||||||
|
|||||||
BIN
Bin/GoCfdi.dll
BIN
Bin/GoCfdi.dll
Binary file not shown.
@@ -91,7 +91,12 @@
|
|||||||
<asp:HyperLink ID="HplNombreCompleto" runat="server" Text='<%# Eval("NombreCompleto") %>' NavigateUrl='<%# Eval("CvePersonal", "~/RH/Personal.aspx?CvePersonal={0}") %>'></asp:HyperLink>
|
<asp:HyperLink ID="HplNombreCompleto" runat="server" Text='<%# Eval("NombreCompleto") %>' NavigateUrl='<%# Eval("CvePersonal", "~/RH/Personal.aspx?CvePersonal={0}") %>'></asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Fecha Fin">
|
<asp:TemplateField HeaderText="Fecha Alta">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Fecha Baja">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
|
|||||||
Reference in New Issue
Block a user