Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -1595,6 +1595,7 @@
|
|||||||
<asp:BoundField DataField="TipoPago" HeaderText="Tipo pago" />
|
<asp:BoundField DataField="TipoPago" HeaderText="Tipo pago" />
|
||||||
<asp:BoundField DataField="DiasextraAutorizado" HeaderText="Días extra" />
|
<asp:BoundField DataField="DiasextraAutorizado" HeaderText="Días extra" />
|
||||||
<asp:BoundField DataField="diasPago" HeaderText="Días pago" />
|
<asp:BoundField DataField="diasPago" HeaderText="Días pago" />
|
||||||
|
<asp:BoundField DataField="DiasPrima" HeaderText="Días Prima" />
|
||||||
<asp:TemplateField HeaderText="Aplica prima">
|
<asp:TemplateField HeaderText="Aplica prima">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" Text='<%# ((Eval("AplicaPrima").ToString() == "1" || Eval("AplicaPrima").ToString().ToUpper() == "TRUE") ? "Sí": "No") %>'> </asp:Label>
|
<asp:Label runat="server" Text='<%# ((Eval("AplicaPrima").ToString() == "1" || Eval("AplicaPrima").ToString().ToUpper() == "TRUE") ? "Sí": "No") %>'> </asp:Label>
|
||||||
|
|||||||
@@ -3270,6 +3270,7 @@
|
|||||||
<asp:BoundField DataField="TipoPago" HeaderText="Tipo pago" />
|
<asp:BoundField DataField="TipoPago" HeaderText="Tipo pago" />
|
||||||
<asp:BoundField DataField="DiasextraAutorizado" HeaderText="Días extra" />
|
<asp:BoundField DataField="DiasextraAutorizado" HeaderText="Días extra" />
|
||||||
<asp:BoundField DataField="diasPago" HeaderText="Días pago" />
|
<asp:BoundField DataField="diasPago" HeaderText="Días pago" />
|
||||||
|
<asp:BoundField DataField="DiasPrima" HeaderText="Días Prima" />
|
||||||
<asp:TemplateField HeaderText="Aplica prima">
|
<asp:TemplateField HeaderText="Aplica prima">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" Text='<%# If(Eval("AplicaPrima").ToString() = "1" Or Eval("AplicaPrima").ToString().ToUpper() = "TRUE", "Sí", "No") %>'> </asp:Label>
|
<asp:Label runat="server" Text='<%# If(Eval("AplicaPrima").ToString() = "1" Or Eval("AplicaPrima").ToString().ToUpper() = "TRUE", "Sí", "No") %>'> </asp:Label>
|
||||||
|
|||||||
@@ -943,25 +943,22 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
divBitacora.Visible = True
|
divBitacora.Visible = True
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
|
CargaCuentasBancarias()
|
||||||
|
CarcaConceptosNomina()
|
||||||
|
CargaFonacot()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
cargatipoTrabajador()
|
cargatipoTrabajador()
|
||||||
MostrarOcultarFechasEstatus()
|
MostrarOcultarFechasEstatus()
|
||||||
LoadDefaultValues()
|
LoadDefaultValues()
|
||||||
'Configuración de Modalidad Insert
|
|
||||||
|
|
||||||
ImgAddObs.Visible = False
|
ImgAddObs.Visible = False
|
||||||
LblFechaCaptura.Text = Now.ToShortDateString()
|
LblFechaCaptura.Text = Now.ToShortDateString()
|
||||||
LblUsuarioCapturo.Text = UsuarioActual.Usuario
|
LblUsuarioCapturo.Text = UsuarioActual.Usuario
|
||||||
ViewState("CvePersonal") = -1
|
ViewState("CvePersonal") = -1
|
||||||
BtnEliminar.Visible = False
|
BtnEliminar.Visible = False
|
||||||
CarcaConceptosNomina()
|
|
||||||
CargaFonacot()
|
|
||||||
CargaCuentasBancarias()
|
|
||||||
|
|
||||||
'Inicia Permisos
|
|
||||||
'Fin Permisos
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
||||||
@@ -1939,9 +1936,10 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
Dim EnviarCorreoNomina As Boolean = False
|
Dim EnviarCorreoNomina As Boolean = False
|
||||||
'System.Threading.Thread.Sleep(3000)
|
'System.Threading.Thread.Sleep(3000)
|
||||||
Dim ObjPersonal As New ClsRH()
|
Using ObjPersonal As New ClsRH()
|
||||||
Dim ObjCuentasDeposito As New ClsGenerales(ObjPersonal.IniciaTransacSQL())
|
Using ObjCuentasDeposito As New ClsGenerales(ObjPersonal.IniciaTransacSQL())
|
||||||
Dim ObjAF As New ClsAF(ObjPersonal.IniciaTransacSQL())
|
Using ObjAF As New ClsAF(ObjPersonal.IniciaTransacSQL())
|
||||||
|
|
||||||
|
|
||||||
Dim Extension As String = Path.GetExtension(UsuarioActual.Empresa.Ruta & "Temp\RH\" & ViewState("Archivo").ToString())
|
Dim Extension As String = Path.GetExtension(UsuarioActual.Empresa.Ruta & "Temp\RH\" & ViewState("Archivo").ToString())
|
||||||
Dim URL As String = If(Extension.Trim().Length > 0, CvePersonal & Extension, "")
|
Dim URL As String = If(Extension.Trim().Length > 0, CvePersonal & Extension, "")
|
||||||
@@ -2022,7 +2020,7 @@ Partial Class RH_Personal
|
|||||||
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
||||||
ProcesaDTFamiliares(ObjPersonal)
|
ProcesaDTFamiliares(ObjPersonal)
|
||||||
End If
|
End If
|
||||||
If TempDTCuentasBancos.Rows.Count > 0 Then
|
If TempDTCuentasBancos IsNot Nothing AndAlso TempDTCuentasBancos.Rows.Count > 0 Then
|
||||||
|
|
||||||
For Each row As DataRow In TempDTCuentasBancos.Rows
|
For Each row As DataRow In TempDTCuentasBancos.Rows
|
||||||
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString(), row("Plaza").ToString(), row("Sucursal").ToString(), row("Cuenta").ToString(), row("CLABE").ToString(), row("CIE").ToString(), row("SWIFT").ToString(), row("Referencia").ToString(), "", UsuarioActual.CveUsuario, row("CveMoneda").ToString().ToEntero(), UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=row("BBVAAlias").ToString()) Then
|
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString(), row("Plaza").ToString(), row("Sucursal").ToString(), row("Cuenta").ToString(), row("CLABE").ToString(), row("CIE").ToString(), row("SWIFT").ToString(), row("Referencia").ToString(), "", UsuarioActual.CveUsuario, row("CveMoneda").ToString().ToEntero(), UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=row("BBVAAlias").ToString()) Then
|
||||||
@@ -2148,9 +2146,9 @@ Partial Class RH_Personal
|
|||||||
Session("FileUpload") = ""
|
Session("FileUpload") = ""
|
||||||
|
|
||||||
ViewState("Archivo") = ""
|
ViewState("Archivo") = ""
|
||||||
ObjPersonal.Dispose()
|
End Using
|
||||||
ObjCuentasDeposito.Dispose()
|
End Using
|
||||||
ObjAF.Dispose()
|
End Using
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
|
|
||||||
@@ -3399,7 +3397,7 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
LimpiaCuentasBancarias()
|
LimpiaCuentasBancarias()
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString())
|
CargaGridCuentasBancos("")
|
||||||
|
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
@@ -3412,7 +3410,6 @@ Partial Class RH_Personal
|
|||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaCuentasBancarias()
|
Private Sub CargaCuentasBancarias()
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
ViewState("OrdenCuentasBancos") = ""
|
|
||||||
DTCuentasBancos = New DataTable
|
DTCuentasBancos = New DataTable
|
||||||
TempDTCuentasBancos = New DataTable
|
TempDTCuentasBancos = New DataTable
|
||||||
|
|
||||||
@@ -3427,7 +3424,7 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString())
|
CargaGridCuentasBancos("")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "GRIDVIEW - CUENTAS BANCARIAS"
|
#Region "GRIDVIEW - CUENTAS BANCARIAS"
|
||||||
@@ -3485,11 +3482,11 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
GvBancosCuentas.EditIndex = e.NewEditIndex
|
GvBancosCuentas.EditIndex = e.NewEditIndex
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString())
|
CargaGridCuentasBancos("")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub GvBancosCuentas_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GvBancosCuentas.RowCancelingEdit
|
Protected Sub GvBancosCuentas_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GvBancosCuentas.RowCancelingEdit
|
||||||
GvBancosCuentas.EditIndex = -1
|
GvBancosCuentas.EditIndex = -1
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString())
|
CargaGridCuentasBancos("")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub GvBancosCuentas_RowUpdating(sender As Object, e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GvBancosCuentas.RowUpdating
|
Protected Sub GvBancosCuentas_RowUpdating(sender As Object, e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GvBancosCuentas.RowUpdating
|
||||||
Dim NombreBanco = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtNombreBanco").Text.Trim
|
Dim NombreBanco = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtNombreBanco").Text.Trim
|
||||||
@@ -3582,7 +3579,7 @@ Partial Class RH_Personal
|
|||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
|
|
||||||
GvBancosCuentas.EditIndex = -1
|
GvBancosCuentas.EditIndex = -1
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString())
|
CargaGridCuentasBancos("")
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub GvBancosCuentas_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvBancosCuentas.RowDeleting
|
Protected Sub GvBancosCuentas_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvBancosCuentas.RowDeleting
|
||||||
@@ -3600,7 +3597,7 @@ Partial Class RH_Personal
|
|||||||
TempDTCuentasBancos.Rows.RemoveAt(index)
|
TempDTCuentasBancos.Rows.RemoveAt(index)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString())
|
CargaGridCuentasBancos("")
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Reference in New Issue
Block a user