Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -2733,7 +2733,7 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function PersonalIncapacidadAdd(CveUsuarioCapturo As Integer, cvePersonal As Int32, folio As String, fechaInicio As DateTime, diasAutorizados As Int32, cveTipodeIncidencia As Int32, cveRamoSeguro As Int32, cveTipoRiesgo As Int32, porcentajedeIncapacidad As Int32, cveSecuelaConsecuencia As Int32, cveControlIncapacidad As Int32, descripcion As String) As Boolean
|
Public Function PersonalIncapacidadAdd(CveUsuarioCapturo As Integer, cvePersonal As Int32, folio As String, fechaInicio As DateTime, diasAutorizados As Int32, cveTipodeIncidencia As Int32, cveRamoSeguro As Int32, cveTipoRiesgo As Int32, porcentajedeIncapacidad As Int32, cveSecuelaConsecuencia As Int32, cveControlIncapacidad As Int32, descripcion As String, Optional DiasPagoEmpresa As Integer = 0) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_Nom_PersonalIncapacidadAdd", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_PersonalIncapacidadAdd", CommandType.StoredProcedure)
|
||||||
Try
|
Try
|
||||||
@@ -2750,6 +2750,7 @@ Public Class ClsNominas
|
|||||||
.Add("@CveSecuelaConsecuencia", SqlDbType.Int).Value = cveSecuelaConsecuencia
|
.Add("@CveSecuelaConsecuencia", SqlDbType.Int).Value = cveSecuelaConsecuencia
|
||||||
.Add("@CveControlIncapacidad", SqlDbType.Int).Value = cveControlIncapacidad
|
.Add("@CveControlIncapacidad", SqlDbType.Int).Value = cveControlIncapacidad
|
||||||
.Add("@Descripcion", SqlDbType.VarChar).Value = descripcion
|
.Add("@Descripcion", SqlDbType.VarChar).Value = descripcion
|
||||||
|
.Add("@DiasPagoEmpresa", SqlDbType.Int).Value = DiasPagoEmpresa
|
||||||
End With
|
End With
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = True
|
||||||
@@ -2766,7 +2767,7 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function PersonalIncapacidadUp(CveUsuarioCapturo As Integer, cvePersonalIncapacidad As Int32, folio As String, fechaInicio As DateTime, diasAutorizados As Int32, cveTipodeIncidencia As Int32, cveRamoSeguro As Int32, cveTipoRiesgo As Int32, porcentajedeIncapacidad As Int32, cveSecuelaConsecuencia As Int32, cveControlIncapacidad As Int32, descripcion As String) As Boolean
|
Public Function PersonalIncapacidadUp(CveUsuarioCapturo As Integer, cvePersonalIncapacidad As Int32, folio As String, fechaInicio As DateTime, diasAutorizados As Int32, cveTipodeIncidencia As Int32, cveRamoSeguro As Int32, cveTipoRiesgo As Int32, porcentajedeIncapacidad As Int32, cveSecuelaConsecuencia As Int32, cveControlIncapacidad As Int32, descripcion As String, Optional DiasPagoEmpresa As Integer = 0) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_Nom_PersonalIncapacidadUp", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_PersonalIncapacidadUp", CommandType.StoredProcedure)
|
||||||
Try
|
Try
|
||||||
@@ -2783,6 +2784,7 @@ Public Class ClsNominas
|
|||||||
.Add("@CveSecuelaConsecuencia", SqlDbType.Int).Value = cveSecuelaConsecuencia
|
.Add("@CveSecuelaConsecuencia", SqlDbType.Int).Value = cveSecuelaConsecuencia
|
||||||
.Add("@CveControlIncapacidad", SqlDbType.Int).Value = cveControlIncapacidad
|
.Add("@CveControlIncapacidad", SqlDbType.Int).Value = cveControlIncapacidad
|
||||||
.Add("@Descripcion", SqlDbType.VarChar).Value = descripcion
|
.Add("@Descripcion", SqlDbType.VarChar).Value = descripcion
|
||||||
|
.Add("@DiasPagoEmpresa", SqlDbType.Int).Value = DiasPagoEmpresa
|
||||||
End With
|
End With
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = True
|
||||||
|
|||||||
@@ -7343,6 +7343,27 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
|||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
Public Function estatusPersonalUp(Fecha As DateTime, CvePersonal As Integer, CveEstatusPersonal As Integer, CveEmpresa As Integer, CveUsuario As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
Data = New DataTable
|
||||||
|
SqlDataAdapter("PA_RH_EstatusPersonalUp")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@Fecha", SqlDbType.DateTime).Value = Fecha
|
||||||
|
.Add("@CvePersonal", SqlDbType.Int).Value = CvePersonal
|
||||||
|
.Add("@CveEstatusPersonal", SqlDbType.Int).Value = CveEstatusPersonal
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch Ex1 As SqlException
|
||||||
|
Me.OnError("Ocurrió un error al guardar correos nominas", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al guardar correos nominas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
Public Function NomBitacoraCorreoAdd(CvePeriodo As Integer, CvePersonal As Integer, Correos As String, CveEmpresa As Integer, CveUsuario As Integer) As Boolean
|
Public Function NomBitacoraCorreoAdd(CvePeriodo As Integer, CvePersonal As Integer, Correos As String, CveEmpresa As Integer, CveUsuario As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
Data = New DataTable
|
Data = New DataTable
|
||||||
|
|||||||
@@ -4832,7 +4832,7 @@ Public Class Timbrado
|
|||||||
|
|
||||||
If ObjCFDITimbre.Conceptos IsNot Nothing AndAlso ObjCFDITimbre.Conceptos.Count > 0 Then
|
If ObjCFDITimbre.Conceptos IsNot Nothing AndAlso ObjCFDITimbre.Conceptos.Count > 0 Then
|
||||||
For Each concep As CFDIConceptos In ObjCFDITimbre.Conceptos
|
For Each concep As CFDIConceptos In ObjCFDITimbre.Conceptos
|
||||||
cfdi.Concepto(concep.ClaveProdServ, concep.Noidentificacion, concep.Cantidad.ToString("0.00####"), concep.ClaveUnidad, concep.Unidad, concep.Descripcion, concep.ValorUnitario.ToString("0.00####"), concep.Importe, concep.Descuento, concep.ObjetoImpuesto)
|
cfdi.Concepto(concep.ClaveProdServ, concep.Noidentificacion, concep.Cantidad.ToString("0.00####").ToDouble(), concep.ClaveUnidad, concep.Unidad, concep.Descripcion, concep.ValorUnitario.ToString("0.00####").ToDouble(), concep.Importe, concep.Descuento, concep.ObjetoImpuesto)
|
||||||
For Each imp As CFDIConceptosImpuestos In concep.Impuestos
|
For Each imp As CFDIConceptosImpuestos In concep.Impuestos
|
||||||
If imp.TrasladooRetencion = "T" Then
|
If imp.TrasladooRetencion = "T" Then
|
||||||
cfdi.ConceptoTraslado(imp.Base, imp.Impuesto, imp.TipoFactor, imp.TasaOCuota, imp.Importe)
|
cfdi.ConceptoTraslado(imp.Base, imp.Impuesto, imp.TipoFactor, imp.TasaOCuota, imp.Importe)
|
||||||
|
|||||||
@@ -3394,7 +3394,7 @@ Partial Class PopUpVerFactura
|
|||||||
ImprimirPDF("Empresas/Grales/Formatos/Inicial.rdlc", DtMovimientos, params, String.Format("Inventario Inicial - {0}", Folio), RDSName:="DsInventarios")
|
ImprimirPDF("Empresas/Grales/Formatos/Inicial.rdlc", DtMovimientos, params, String.Format("Inventario Inicial - {0}", Folio), RDSName:="DsInventarios")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Case 2, 32, 33, 36 ' E N T R A D A S
|
Case 2, 32, 33, 36, 48 ' E N T R A D A S
|
||||||
|
|
||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/Entradas.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/Entradas.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
.table table-striped table-hover dataTable no-footer {
|
.table table-striped table-hover dataTable no-footer {
|
||||||
margin-top: 0px !important;
|
margin-top: 0px !important;
|
||||||
}
|
}
|
||||||
|
.ajax__tab_xp .ajax__tab_body {
|
||||||
|
font-size: 12px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
|||||||
@@ -778,6 +778,7 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
|
MostrarSolcitudesSAT()
|
||||||
End If
|
End If
|
||||||
removeasincevent()
|
removeasincevent()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -2976,6 +2977,18 @@ Partial Class Compras_eFacturas
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MostrarSolcitudesSAT()
|
||||||
|
LnkShowSolicitudes.Visible = False
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.ArchivoPfx.Trim.Length > 0 Then
|
||||||
|
Dim ArchivoCertificado As String = $"{UsuarioActual.Empresa.Ruta}Certificados\{UsuarioActual.Empresa.ArchivoPfx}"
|
||||||
|
If File.Exists(ArchivoCertificado) Then
|
||||||
|
LnkShowSolicitudes.Visible = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
@@ -426,8 +426,13 @@ Partial Class RepCxCDetalle
|
|||||||
|
|
||||||
If UsuarioActual.CveEmpresa.Contiene(72, 80, 146, 119) Then ChkAnticipos.Visible = True
|
If UsuarioActual.CveEmpresa.Contiene(72, 80, 146, 119) Then ChkAnticipos.Visible = True
|
||||||
End Sub
|
End Sub
|
||||||
Private Function CargaDatos() As DataTable
|
Private Function CargaDatos() As DataSet
|
||||||
Dim dt As DataTable = Nothing
|
|
||||||
|
Dim DSRespuesta As New DataSet
|
||||||
|
|
||||||
|
Dim DTaDAtos As New DataTable
|
||||||
|
Dim DTCartera As New DataTable
|
||||||
|
|
||||||
Dim ObjMovtos As New ClsMovimientos()
|
Dim ObjMovtos As New ClsMovimientos()
|
||||||
Dim FechaI, FechaF, FechaVI, FechaVF As String
|
Dim FechaI, FechaF, FechaVI, FechaVF As String
|
||||||
|
|
||||||
@@ -452,10 +457,20 @@ Partial Class RepCxCDetalle
|
|||||||
CveClienteClasificacion:=DdlClienteClasificacion.SelectedValue.ToEntero, LimiteCredito:=LimiteCredito, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero,
|
CveClienteClasificacion:=DdlClienteClasificacion.SelectedValue.ToEntero, LimiteCredito:=LimiteCredito, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero,
|
||||||
CveMoneda:=CveMoneda, EstatusCliente:=DdlEstatusCliente.SelectedValue.ToEntero, AplicaAnticiposPagados:=If(ChkAnticipos.Checked, 1, 0)) Then
|
CveMoneda:=CveMoneda, EstatusCliente:=DdlEstatusCliente.SelectedValue.ToEntero, AplicaAnticiposPagados:=If(ChkAnticipos.Checked, 1, 0)) Then
|
||||||
|
|
||||||
GvDatos.DataSource = ObjMovtos.DSResultados.Tables(0)
|
GvDatos.DataSource = ObjMovtos.DSResultados.Tables(0)
|
||||||
dt = ObjMovtos.DSResultados.Tables(0)
|
|
||||||
|
'DTaDAtos = ObjMovtos.DSResultados.Tables(0)
|
||||||
|
'DTaDAtos.TableName = "DTaDAtos"
|
||||||
|
DSRespuesta.Tables.Add(ObjMovtos.DSResultados.Tables(0).Copy)
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
|
|
||||||
GvCartera.DataSource = ObjMovtos.DSResultados.Tables(1)
|
GvCartera.DataSource = ObjMovtos.DSResultados.Tables(1)
|
||||||
|
|
||||||
|
'DTCartera = ObjMovtos.DSResultados.Tables(1)
|
||||||
|
'DTCartera.TableName = "DTCartera"
|
||||||
|
DSRespuesta.Tables.Add(ObjMovtos.DSResultados.Tables(1).Copy)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -475,7 +490,7 @@ Partial Class RepCxCDetalle
|
|||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
UpCartera.Update()
|
UpCartera.Update()
|
||||||
|
|
||||||
Return dt
|
Return DSRespuesta
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -949,11 +964,36 @@ Partial Class RepCxCDetalle
|
|||||||
Else
|
Else
|
||||||
params.Add(New ReportParameter("LogoPath", ""))
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
|
|
||||||
|
Dim DSDatos As DataSet = CargaDatos()
|
||||||
|
|
||||||
|
Dim rds As New ReportDataSource With {.Name = "DataSet1", .Value = DSDatos.Tables(0)}
|
||||||
|
lrds.Add(rds)
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
|
Dim rdsCartera As New ReportDataSource With {.Name = "DSCartera", .Value = DSDatos.Tables(1)}
|
||||||
|
lrds.Add(rdsCartera)
|
||||||
|
Else
|
||||||
|
Dim DTCartera As New DataTable
|
||||||
|
DTCartera.Columns.Add("Rango")
|
||||||
|
DTCartera.Columns.Add("Saldo", GetType(Decimal))
|
||||||
|
DTCartera.Columns.Add("Porcentaje", GetType(Decimal))
|
||||||
|
DTCartera.Columns.Add("Objetivo", GetType(Decimal))
|
||||||
|
Dim rdsCartera As New ReportDataSource With {.Name = "DSCartera", .Value = DTCartera}
|
||||||
|
lrds.Add(rdsCartera)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepCxCDetalle.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepCxCDetalle.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
If Archivo.Exists Then
|
If Archivo.Exists Then
|
||||||
ImprimirPDF(String.Format("{0}Formatos/RepCxCDetalle.rdlc", UsuarioActual.Empresa.Ruta), CargaDatos, params, "ReporteCxCDetalle", TipoImpresion)
|
ImprimirPDF(String.Format("{0}Formatos/RepCxCDetalle.rdlc", UsuarioActual.Empresa.Ruta), lrds, params, "ReporteCxCDetalle", TipoImpresion)
|
||||||
Else
|
Else
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/RepCxCDetalle.rdlc", CargaDatos, params, "ReporteCxCDetalle", TipoImpresion)
|
ImprimirPDF("Empresas/Grales/Formatos/RepCxCDetalle.rdlc", lrds, params, "ReporteCxCDetalle", TipoImpresion)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1202,8 +1202,435 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</Style>
|
</Style>
|
||||||
</Tablix>
|
</Tablix>
|
||||||
|
<Tablix Name="Tablix2">
|
||||||
|
<TablixBody>
|
||||||
|
<TablixColumns>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.5cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.5cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.5cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.5cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
</TablixColumns>
|
||||||
|
<TablixRows>
|
||||||
|
<TablixRow>
|
||||||
|
<Height>0.49417cm</Height>
|
||||||
|
<TablixCells>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox15">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Rango Días</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>9pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox15</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<TopBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</TopBorder>
|
||||||
|
<BottomBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</BottomBorder>
|
||||||
|
<LeftBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</LeftBorder>
|
||||||
|
<RightBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</RightBorder>
|
||||||
|
<BackgroundColor>Silver</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox19">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Importe</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>9pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox19</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<TopBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</TopBorder>
|
||||||
|
<BottomBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</BottomBorder>
|
||||||
|
<LeftBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</LeftBorder>
|
||||||
|
<RightBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</RightBorder>
|
||||||
|
<BackgroundColor>Silver</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox23">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>%</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>9pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox23</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<TopBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</TopBorder>
|
||||||
|
<BottomBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</BottomBorder>
|
||||||
|
<LeftBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</LeftBorder>
|
||||||
|
<RightBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</RightBorder>
|
||||||
|
<BackgroundColor>Silver</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
<rd:Selected>true</rd:Selected>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox26">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Objetivo</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>9pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox26</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<TopBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</TopBorder>
|
||||||
|
<BottomBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</BottomBorder>
|
||||||
|
<LeftBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</LeftBorder>
|
||||||
|
<RightBorder>
|
||||||
|
<Color>Black</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
<Width>1pt</Width>
|
||||||
|
</RightBorder>
|
||||||
|
<BackgroundColor>Silver</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
</TablixCells>
|
||||||
|
</TablixRow>
|
||||||
|
<TablixRow>
|
||||||
|
<Height>0.2825cm</Height>
|
||||||
|
<TablixCells>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Rango">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!Rango.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF(Fields!Rango.Value = "Total","Bold","Default")</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style />
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Rango</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>White</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Saldo1">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!Saldo.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF(Fields!Rango.Value = "Total","Bold","Default")</FontWeight>
|
||||||
|
<Format>#,0.00;(#,0.00)</Format>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Right</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Saldo1</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>White</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Porcentaje">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!Porcentaje.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF(Fields!Rango.Value = "Total","Bold","Default")</FontWeight>
|
||||||
|
<Format>0.00;(0.00)</Format>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Right</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Porcentaje</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>White</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Objetivo">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!Objetivo.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF(Fields!Rango.Value = "Total","Bold","Default")</FontWeight>
|
||||||
|
<Format>#,0.00;(#,0.00)</Format>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Right</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Objetivo</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>White</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
</TablixCells>
|
||||||
|
</TablixRow>
|
||||||
|
</TablixRows>
|
||||||
|
</TablixBody>
|
||||||
|
<TablixColumnHierarchy>
|
||||||
|
<TablixMembers>
|
||||||
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
|
</TablixMembers>
|
||||||
|
</TablixColumnHierarchy>
|
||||||
|
<TablixRowHierarchy>
|
||||||
|
<TablixMembers>
|
||||||
|
<TablixMember>
|
||||||
|
<KeepWithGroup>After</KeepWithGroup>
|
||||||
|
</TablixMember>
|
||||||
|
<TablixMember>
|
||||||
|
<Group Name="Details" />
|
||||||
|
</TablixMember>
|
||||||
|
</TablixMembers>
|
||||||
|
</TablixRowHierarchy>
|
||||||
|
<DataSetName>DSCartera</DataSetName>
|
||||||
|
<Top>1.6429cm</Top>
|
||||||
|
<Height>0.77667cm</Height>
|
||||||
|
<Width>10cm</Width>
|
||||||
|
<ZIndex>1</ZIndex>
|
||||||
|
<Visibility>
|
||||||
|
<Hidden>=IIF(CountRows()>0,false,true)</Hidden>
|
||||||
|
</Visibility>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Style>None</Style>
|
||||||
|
</Border>
|
||||||
|
</Style>
|
||||||
|
</Tablix>
|
||||||
</ReportItems>
|
</ReportItems>
|
||||||
<Height>0.78933in</Height>
|
<Height>0.99425in</Height>
|
||||||
<Style />
|
<Style />
|
||||||
</Body>
|
</Body>
|
||||||
<Width>10.44508in</Width>
|
<Width>10.44508in</Width>
|
||||||
@@ -1331,7 +1758,6 @@
|
|||||||
</Textbox>
|
</Textbox>
|
||||||
<Line Name="Line1">
|
<Line Name="Line1">
|
||||||
<Top>3.61032cm</Top>
|
<Top>3.61032cm</Top>
|
||||||
<Left>0cm</Left>
|
|
||||||
<Height>0cm</Height>
|
<Height>0cm</Height>
|
||||||
<Width>26.34825cm</Width>
|
<Width>26.34825cm</Width>
|
||||||
<ZIndex>4</ZIndex>
|
<ZIndex>4</ZIndex>
|
||||||
@@ -1373,7 +1799,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>0.20991cm</Top>
|
<Top>0.2099cm</Top>
|
||||||
<Left>23.83501cm</Left>
|
<Left>23.83501cm</Left>
|
||||||
<Height>0.40039cm</Height>
|
<Height>0.40039cm</Height>
|
||||||
<Width>2.35691cm</Width>
|
<Width>2.35691cm</Width>
|
||||||
@@ -1405,7 +1831,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox8</rd:DefaultName>
|
<rd:DefaultName>Textbox8</rd:DefaultName>
|
||||||
<Top>0.20991cm</Top>
|
<Top>0.2099cm</Top>
|
||||||
<Left>0.14cm</Left>
|
<Left>0.14cm</Left>
|
||||||
<Height>0.40039cm</Height>
|
<Height>0.40039cm</Height>
|
||||||
<Width>1.60042cm</Width>
|
<Width>1.60042cm</Width>
|
||||||
@@ -1437,7 +1863,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox9</rd:DefaultName>
|
<rd:DefaultName>Textbox9</rd:DefaultName>
|
||||||
<Top>0.19403cm</Top>
|
<Top>0.19402cm</Top>
|
||||||
<Left>1.68433cm</Left>
|
<Left>1.68433cm</Left>
|
||||||
<Height>0.41627cm</Height>
|
<Height>0.41627cm</Height>
|
||||||
<Width>5.14936cm</Width>
|
<Width>5.14936cm</Width>
|
||||||
@@ -1470,7 +1896,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox10</rd:DefaultName>
|
<rd:DefaultName>Textbox10</rd:DefaultName>
|
||||||
<Top>0.22225cm</Top>
|
<Top>0.22224cm</Top>
|
||||||
<Left>10.92719cm</Left>
|
<Left>10.92719cm</Left>
|
||||||
<Height>0.40039cm</Height>
|
<Height>0.40039cm</Height>
|
||||||
<Width>2.92333cm</Width>
|
<Width>2.92333cm</Width>
|
||||||
@@ -1505,7 +1931,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox11</rd:DefaultName>
|
<rd:DefaultName>Textbox11</rd:DefaultName>
|
||||||
<Top>0.22225cm</Top>
|
<Top>0.22224cm</Top>
|
||||||
<Left>13.83641cm</Left>
|
<Left>13.83641cm</Left>
|
||||||
<Height>0.40039cm</Height>
|
<Height>0.40039cm</Height>
|
||||||
<Width>6.04724cm</Width>
|
<Width>6.04724cm</Width>
|
||||||
@@ -1521,7 +1947,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
<Line Name="Line2">
|
<Line Name="Line2">
|
||||||
<Top>0.11642cm</Top>
|
<Top>0.11641cm</Top>
|
||||||
<Left>0.0635cm</Left>
|
<Left>0.0635cm</Left>
|
||||||
<Height>0cm</Height>
|
<Height>0cm</Height>
|
||||||
<Width>26.34825cm</Width>
|
<Width>26.34825cm</Width>
|
||||||
@@ -1549,7 +1975,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox13</rd:DefaultName>
|
<rd:DefaultName>Textbox13</rd:DefaultName>
|
||||||
<Top>0.6103cm</Top>
|
<Top>0.61029cm</Top>
|
||||||
<Left>0.14cm</Left>
|
<Left>0.14cm</Left>
|
||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>6.69369cm</Width>
|
<Width>6.69369cm</Width>
|
||||||
@@ -1651,6 +2077,38 @@
|
|||||||
<rd:TableAdapterName />
|
<rd:TableAdapterName />
|
||||||
</rd:DataSetInfo>
|
</rd:DataSetInfo>
|
||||||
</DataSet>
|
</DataSet>
|
||||||
|
<DataSet Name="DSCartera">
|
||||||
|
<Query>
|
||||||
|
<DataSourceName>DataSet</DataSourceName>
|
||||||
|
<CommandText>/* Local Query */</CommandText>
|
||||||
|
</Query>
|
||||||
|
<Fields>
|
||||||
|
<Field Name="Rango">
|
||||||
|
<DataField>Rango</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Saldo">
|
||||||
|
<DataField>Saldo</DataField>
|
||||||
|
<rd:TypeName>System.Double</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Porcentaje">
|
||||||
|
<DataField>Porcentaje</DataField>
|
||||||
|
<rd:TypeName>System.Double</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Objetivo">
|
||||||
|
<DataField>Objetivo</DataField>
|
||||||
|
<rd:TypeName>System.Double</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
</Fields>
|
||||||
|
<rd:DataSetInfo>
|
||||||
|
<rd:DataSetName>DataSet</rd:DataSetName>
|
||||||
|
<rd:SchemaPath>C:\Users\Caudillo\Documents\Visual Studio 2013\WebSites\WebSite9\App_Code\DSCartera.xsd</rd:SchemaPath>
|
||||||
|
<rd:TableName>DataTable1</rd:TableName>
|
||||||
|
<rd:TableAdapterFillMethod />
|
||||||
|
<rd:TableAdapterGetDataMethod />
|
||||||
|
<rd:TableAdapterName />
|
||||||
|
</rd:DataSetInfo>
|
||||||
|
</DataSet>
|
||||||
</DataSets>
|
</DataSets>
|
||||||
<ReportParameters>
|
<ReportParameters>
|
||||||
<ReportParameter Name="NombreEmpresa">
|
<ReportParameter Name="NombreEmpresa">
|
||||||
|
|||||||
@@ -166,8 +166,8 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
chkPrimaantiguedad.Checked = da["ValPrimadeantiguedad"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
chkPrimaantiguedad.Checked = da["ValPrimadeantiguedad"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DdlTipoPeriodo.SelectedValueExist(da["CveTipoPeriodo"]);
|
||||||
DdlMotivoBaja.SelectedValueExist(da["CveMotivoBaja"]);
|
DdlMotivoBaja.SelectedValueExist(da["CveMotivoBaja"]);
|
||||||
TxtSalarioMinimo.Text = $"{da["SalarioMinimo"]:N2}";
|
TxtSalarioMinimo.Text = $"{da["SalarioMinimo"]:N2}";
|
||||||
ChkesLiquidacion.Checked = (da["esLiquidacion"].ToString() == "1" || da["esLiquidacion"].ToString().ToUpper() == "TRUE");
|
ChkesLiquidacion.Checked = (da["esLiquidacion"].ToString() == "1" || da["esLiquidacion"].ToString().ToUpper() == "TRUE");
|
||||||
|
|||||||
@@ -1741,7 +1741,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body" style="min-height: 200px;">
|
<div class="portlet-body" style="min-height: 200px;">
|
||||||
<asp:GridView ID="GVNom_PersonalIncapacidad" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
<asp:GridView ID="GVNom_PersonalIncapacidad" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||||
DataKeyNames="CvePersonalIncapacidad,CvePersonal,Folio,FechaInicio,DiasAutorizados,CveTipodeIncidencia,CveRamoSeguro,CveTipoRiesgo,PorcentajedeIncapacidad,CveSecuelaConsecuencia,CveControlIncapacidad,Descripcion">
|
DataKeyNames="CvePersonalIncapacidad,CvePersonal,Folio,FechaInicio,DiasAutorizados,DiasPagoEmpresa,CveTipodeIncidencia,CveRamoSeguro,CveTipoRiesgo,PorcentajedeIncapacidad,CveSecuelaConsecuencia,CveControlIncapacidad,Descripcion">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Folio">
|
<asp:TemplateField HeaderText="Folio">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -1795,7 +1795,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtSRINCfolio" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtSRINCfolio" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RfvNom_folio" runat="server" ControlToValidate="TxtSRINCfolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvNom_folio" runat="server" ControlToValidate="TxtSRINCfolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
@@ -1804,7 +1804,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtSRINCfechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtSRINCfechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<ajax:MaskedEditExtender ID="MEENom_fechaInicio" runat="server" TargetControlID="TxtSRINCfechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="MEENom_fechaInicio" runat="server" TargetControlID="TxtSRINCfechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
@@ -1816,7 +1816,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtSRINCdiasAutorizados" CssClass="form-control " runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtSRINCdiasAutorizados" CssClass="form-control " runat="server"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RfvNom_diasAutorizados" runat="server" ControlToValidate="TxtSRINCdiasAutorizados" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dias Autorizados''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvNom_diasAutorizados" runat="server" ControlToValidate="TxtSRINCdiasAutorizados" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dias Autorizados''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
@@ -1824,6 +1824,12 @@
|
|||||||
<asp:Label runat="server" AssociatedControlID="TxtSRINCdiasAutorizados">Dias autorizados</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSRINCdiasAutorizados">Dias autorizados</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtDiasPagoEmpresa" CssClass="form-control " runat="server"></asp:TextBox>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtDiasPagoEmpresa">Dias pagados por empresa</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|||||||
@@ -7363,6 +7363,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
string folio = gvRow.DataKey("Folio");
|
string folio = gvRow.DataKey("Folio");
|
||||||
DateTime fechaInicio = gvRow.DataKey("FechaInicio").ToDateTime();
|
DateTime fechaInicio = gvRow.DataKey("FechaInicio").ToDateTime();
|
||||||
int diasAutorizados = gvRow.DataKey("DiasAutorizados").ToEntero();
|
int diasAutorizados = gvRow.DataKey("DiasAutorizados").ToEntero();
|
||||||
|
int diasPagoEmpresa = gvRow.DataKey("DiasPagoEmpresa").ToEntero();
|
||||||
|
|
||||||
int cveTipodeIncidencia = gvRow.DataKey("CveTipodeIncidencia").ToEntero();
|
int cveTipodeIncidencia = gvRow.DataKey("CveTipodeIncidencia").ToEntero();
|
||||||
int cveRamoSeguro = gvRow.DataKey("CveRamoSeguro").ToEntero();
|
int cveRamoSeguro = gvRow.DataKey("CveRamoSeguro").ToEntero();
|
||||||
int cveTipoRiesgo = gvRow.DataKey("CveTipoRiesgo").ToEntero();
|
int cveTipoRiesgo = gvRow.DataKey("CveTipoRiesgo").ToEntero();
|
||||||
@@ -7374,6 +7376,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
TxtSRINCfolio.Text = folio.ToString();
|
TxtSRINCfolio.Text = folio.ToString();
|
||||||
TxtSRINCfechaInicio.Text = $"{fechaInicio:dd/MM/yyyy}";
|
TxtSRINCfechaInicio.Text = $"{fechaInicio:dd/MM/yyyy}";
|
||||||
TxtSRINCdiasAutorizados.Text = diasAutorizados.ToString();
|
TxtSRINCdiasAutorizados.Text = diasAutorizados.ToString();
|
||||||
|
TxtDiasPagoEmpresa.Text = diasPagoEmpresa.ToString();
|
||||||
DdlSRINCcveTipodeIncidencia.SelectedValueExist(cveTipodeIncidencia.ToString());
|
DdlSRINCcveTipodeIncidencia.SelectedValueExist(cveTipodeIncidencia.ToString());
|
||||||
DdlSRINCcveRamoSeguro.SelectedValueExist(cveRamoSeguro.ToString());
|
DdlSRINCcveRamoSeguro.SelectedValueExist(cveRamoSeguro.ToString());
|
||||||
DdlSRINCcveTipoRiesgo.SelectedValueExist(cveTipoRiesgo.ToString());
|
DdlSRINCcveTipoRiesgo.SelectedValueExist(cveTipoRiesgo.ToString());
|
||||||
@@ -7399,6 +7402,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
string folio = TxtSRINCfolio.Text;
|
string folio = TxtSRINCfolio.Text;
|
||||||
DateTime fechaInicio = TxtSRINCfechaInicio.Text.ToDateTime();
|
DateTime fechaInicio = TxtSRINCfechaInicio.Text.ToDateTime();
|
||||||
int diasAutorizados = TxtSRINCdiasAutorizados.Text.ToEntero();
|
int diasAutorizados = TxtSRINCdiasAutorizados.Text.ToEntero();
|
||||||
|
int diasPagoEmpresa = TxtDiasPagoEmpresa.Text.ToEntero();
|
||||||
int cveTipodeIncidencia = DdlSRINCcveTipodeIncidencia.Text.ToEntero();
|
int cveTipodeIncidencia = DdlSRINCcveTipodeIncidencia.Text.ToEntero();
|
||||||
int cveRamoSeguro = DdlSRINCcveRamoSeguro.Text.ToEntero();
|
int cveRamoSeguro = DdlSRINCcveRamoSeguro.Text.ToEntero();
|
||||||
int cveTipoRiesgo = DdlSRINCcveTipoRiesgo.Text.ToEntero();
|
int cveTipoRiesgo = DdlSRINCcveTipoRiesgo.Text.ToEntero();
|
||||||
@@ -7409,7 +7413,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
bool Continuar;
|
bool Continuar;
|
||||||
using (ClsNominas ObjPers = new ClsNominas())
|
using (ClsNominas ObjPers = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjPers.PersonalIncapacidadAdd(UsuarioActual.CveUsuario, SRCvePersonal, folio, fechaInicio, diasAutorizados, cveTipodeIncidencia, cveRamoSeguro, cveTipoRiesgo, porcentajedeIncapacidad, cveSecuelaConsecuencia, cveControlIncapacidad, descripcion);
|
Continuar = ObjPers.PersonalIncapacidadAdd(UsuarioActual.CveUsuario, SRCvePersonal, folio, fechaInicio, diasAutorizados, cveTipodeIncidencia, cveRamoSeguro, cveTipoRiesgo, porcentajedeIncapacidad, cveSecuelaConsecuencia, cveControlIncapacidad, descripcion, diasPagoEmpresa);
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
{
|
{
|
||||||
@@ -7425,6 +7429,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
string folio = TxtSRINCfolio.Text;
|
string folio = TxtSRINCfolio.Text;
|
||||||
DateTime fechaInicio = TxtSRINCfechaInicio.Text.ToDateTime();
|
DateTime fechaInicio = TxtSRINCfechaInicio.Text.ToDateTime();
|
||||||
int diasAutorizados = TxtSRINCdiasAutorizados.Text.ToEntero();
|
int diasAutorizados = TxtSRINCdiasAutorizados.Text.ToEntero();
|
||||||
|
int diasPagoEmpresa = TxtDiasPagoEmpresa.Text.ToEntero();
|
||||||
int cveTipodeIncidencia = DdlSRINCcveTipodeIncidencia.Text.ToEntero();
|
int cveTipodeIncidencia = DdlSRINCcveTipodeIncidencia.Text.ToEntero();
|
||||||
int cveRamoSeguro = DdlSRINCcveRamoSeguro.Text.ToEntero();
|
int cveRamoSeguro = DdlSRINCcveRamoSeguro.Text.ToEntero();
|
||||||
int cveTipoRiesgo = DdlSRINCcveTipoRiesgo.Text.ToEntero();
|
int cveTipoRiesgo = DdlSRINCcveTipoRiesgo.Text.ToEntero();
|
||||||
@@ -7436,7 +7441,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
using (ClsNominas ObjPers = new ClsNominas())
|
using (ClsNominas ObjPers = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjPers.PersonalIncapacidadUp(UsuarioActual.CveUsuario, CcvePersonalIncapacidad, folio, fechaInicio, diasAutorizados,
|
Continuar = ObjPers.PersonalIncapacidadUp(UsuarioActual.CveUsuario, CcvePersonalIncapacidad, folio, fechaInicio, diasAutorizados,
|
||||||
cveTipodeIncidencia, cveRamoSeguro, cveTipoRiesgo, porcentajedeIncapacidad, cveSecuelaConsecuencia, cveControlIncapacidad, descripcion);
|
cveTipodeIncidencia, cveRamoSeguro, cveTipoRiesgo, porcentajedeIncapacidad, cveSecuelaConsecuencia, cveControlIncapacidad, descripcion, diasPagoEmpresa);
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
{
|
{
|
||||||
|
|||||||
585
RH/Personal.aspx
585
RH/Personal.aspx
@@ -62,6 +62,10 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkBuzonDeCalidad" Visible="true" runat="server"> <i class="fa fa-sticky-note"></i> Agregar buzón de calidad</asp:LinkButton>
|
<asp:LinkButton ID="LnkBuzonDeCalidad" Visible="true" runat="server"> <i class="fa fa-sticky-note"></i> Agregar buzón de calidad</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkActivar" OnClick="LnkActivar_Click" runat="server"><i class="fa fa-refresh-o"></i>Activar </asp:LinkButton>
|
||||||
|
<asp:LinkButton ID="LnkDesactivar" OnClick="LnkDesactivar_Click" runat="server"><i class="fa fa-ban"></i>Desactivar </asp:LinkButton>
|
||||||
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
@@ -588,13 +592,13 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:Label AssociatedControlID="DDlAgroDepartamento" runat="server" Text="Depto:"></asp:Label>
|
<asp:Label AssociatedControlID="DDlAgroDepartamento" runat="server" Text="Depto:"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList Width="100%" ID="DdlMedioTransporte" CssClass="form-control input-sm select2me" runat="server"
|
<asp:DropDownList Width="100%" ID="DdlMedioTransporte" CssClass="form-control input-sm select2me" runat="server"
|
||||||
DataTextField="Nombre" DataValueField="CveOrigen" ValidationGroup="GrpGuardar">
|
DataTextField="Nombre" DataValueField="CveOrigen" ValidationGroup="GrpGuardar">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:Label AssociatedControlID="DdlMedioTransporte" runat="server" Text="Medio transporte:"></asp:Label>
|
<asp:Label AssociatedControlID="DdlMedioTransporte" runat="server" Text="Medio transporte:"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:Label AssociatedControlID="ChkPensionado" CssClass="lblforchk" runat="server" Text="Pensionado:"></asp:Label>
|
<asp:Label AssociatedControlID="ChkPensionado" CssClass="lblforchk" runat="server" Text="Pensionado:"></asp:Label>
|
||||||
@@ -604,7 +608,7 @@
|
|||||||
<asp:Label AssociatedControlID="ChkSindicalizado" CssClass="lblforchk" runat="server" Text="Sindicalizado:"></asp:Label>
|
<asp:Label AssociatedControlID="ChkSindicalizado" CssClass="lblforchk" runat="server" Text="Sindicalizado:"></asp:Label>
|
||||||
<asp:CheckBox ID="ChkSindicalizado" CssClass="chksino " Text=" " runat="server" />
|
<asp:CheckBox ID="ChkSindicalizado" CssClass="chksino " Text=" " runat="server" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:Label AssociatedControlID="ChkEstemporal" CssClass="lblforchk" runat="server" Text="¿es Temporal?:"></asp:Label>
|
<asp:Label AssociatedControlID="ChkEstemporal" CssClass="lblforchk" runat="server" Text="¿es Temporal?:"></asp:Label>
|
||||||
@@ -621,7 +625,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:Label AssociatedControlID="chkEsReserva" CssClass="lblforchk" runat="server" Text="Es reserva:"></asp:Label>
|
<asp:Label AssociatedControlID="chkEsReserva" CssClass="lblforchk" runat="server" Text="Es reserva:"></asp:Label>
|
||||||
@@ -634,7 +638,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" style="display: none;">
|
<div class="row" style="display: none;">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:Label AssociatedControlID="CHKRFCValidado" CssClass="lblforchk" runat="server" Text="¿RFC Validado ante el SAT?:"></asp:Label></div>
|
<asp:Label AssociatedControlID="CHKRFCValidado" CssClass="lblforchk" runat="server" Text="¿RFC Validado ante el SAT?:"></asp:Label>
|
||||||
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:CheckBox ID="CHKRFCValidado" Text=" " CssClass="chksino" runat="server" />
|
<asp:CheckBox ID="CHKRFCValidado" Text=" " CssClass="chksino" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
@@ -712,79 +717,46 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body form">
|
<div class="portlet-body form">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:DropDownList Width="100%" ID="DdlEstatusPersonal" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="EstatusPersonal" DataValueField="CveEstatusPersonal" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
<label for="<%= DdlEstatusPersonal.ClientID.ToString()%>">Estatus: </label>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVEstatusPersonal" runat="server" ControlToValidate="DdlEstatusPersonal" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''EstatusPersonal''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<i></i>
|
|
||||||
</div>
|
|
||||||
<div class="form-group form-md-line-input input-iconright" runat="server" id="DivMotivoBaja">
|
|
||||||
<asp:DropDownList Width="100%" ID="DdlMotivoBaja" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
|
||||||
<asp:ListItem Selected="True" Text="Sin asignar Motivo de Baja" Value="-1"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
<label for="<%= DdlMotivoBaja.ClientID.ToString()%>">Motivo de Baja: </label>
|
|
||||||
<i></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<%-- <div runat="server" id="DivFechaActivo" visible="true" class="form-group form-md-line-input input-iconright">
|
<div style="display: none;">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style=" padding: 5px 0px;">
|
<asp:DropDownList Width="100%" ID="DdlEstatusPersonal" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="EstatusPersonal" DataValueField="CveEstatusPersonal" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||||
<asp:TextBox ID="TxtFechaActivo" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<label for="<%= TxtFechaActivo.ClientID.ToString()%>" style="margin-top: -10px;">Fecha Activo: </label>
|
</asp:DropDownList>
|
||||||
<span class="input-group-btn ">
|
<label for="<%= DdlEstatusPersonal.ClientID.ToString()%>">Estatus: </label>
|
||||||
<asp:LinkButton ID="ImgFechaActivo" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:RequiredFieldValidator ID="RFVEstatusPersonal" runat="server" ControlToValidate="DdlEstatusPersonal" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''EstatusPersonal''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
</span>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
<ajax:MaskedEditExtender ID="MKTxtFechaActivo" runat="server" TargetControlID="TxtFechaActivo" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DivMotivoBaja">
|
||||||
<ajax:CalendarExtender ID="CETxtFechaActivo" runat="server" TargetControlID="TxtFechaActivo" PopupButtonID="ImgFechaActivo" PopupPosition="BottomRight"></ajax:CalendarExtender>
|
<asp:DropDownList Width="100%" ID="DdlMotivoBaja" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||||
<asp:CompareValidator ID="CVFTxtFechaActivo" runat="server" ControlToValidate="TxtFechaActivo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Activo''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
<asp:ListItem Selected="True" Text="Sin asignar Motivo de Baja" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RfvTxtFechaActivo" runat="server" ControlToValidate="TxtFechaActivo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Activo''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<label for="<%= DdlMotivoBaja.ClientID.ToString()%>">Motivo de Baja: </label>
|
||||||
|
<i></i>
|
||||||
<i></i>
|
|
||||||
|
|
||||||
</div>--%>
|
|
||||||
|
|
||||||
<div runat="server" id="DivFechaBaja" visible="true" class="form-group form-md-line-input input-iconright">
|
|
||||||
|
|
||||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="padding: 5px 0px;">
|
|
||||||
<asp:TextBox ID="TxtFechaBaja" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
|
||||||
<label style="margin-top: -10px;" for="<%= TxtFechaBaja.ClientID.ToString()%>">Fecha Baja: </label>
|
|
||||||
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="ImgFechaBaja" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<ajax:MaskedEditExtender ID="MKEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender ID="CEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" PopupButtonID="ImgFechaBaja" PopupPosition="BottomRight" BehaviorID="_content_CEFechaBaja"></ajax:CalendarExtender>
|
|
||||||
<asp:CompareValidator ID="CVFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
|
||||||
|
|
||||||
<asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<i></i>
|
<div runat="server" id="DivFechaBaja" visible="true" class="form-group form-md-line-input input-iconright">
|
||||||
|
|
||||||
|
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="padding: 5px 0px;">
|
||||||
|
<asp:TextBox ID="TxtFechaBaja" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
||||||
|
<label style="margin-top: -10px;" for="<%= TxtFechaBaja.ClientID.ToString()%>">Fecha Baja: </label>
|
||||||
|
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgFechaBaja" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MKEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender ID="CEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" PopupButtonID="ImgFechaBaja" PopupPosition="BottomRight" BehaviorID="_content_CEFechaBaja"></ajax:CalendarExtender>
|
||||||
|
<asp:CompareValidator ID="CVFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
||||||
|
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- <div runat="server" id="DivFechaReingreso" visible="true" class="form-group form-md-line-input input-iconright">
|
|
||||||
|
|
||||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style=" padding: 5px 0px;">
|
|
||||||
<asp:TextBox ID="TxtFechaReingreso" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
|
||||||
<label for="<%= TxtFechaReingreso.ClientID.ToString()%>" style="margin-top: -10px;">Fecha Reingreso: </label>
|
|
||||||
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="ImgFechaReingreso" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MKTxtFechaReingreso" runat="server" TargetControlID="TxtFechaReingreso" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender ID="CETxtFechaReingreso" runat="server" TargetControlID="TxtFechaReingreso" PopupButtonID="ImgFechaReingreso" PopupPosition="BottomRight"></ajax:CalendarExtender>
|
|
||||||
<asp:CompareValidator ID="CVTxtFechaReingreso" runat="server" ControlToValidate="TxtFechaReingreso" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Reingreso''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
|
||||||
|
|
||||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtFechaReingreso" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Reingreso''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<i></i>
|
|
||||||
|
|
||||||
</div>--%>
|
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<asp:GridView ID="GvPersonalAltas" runat="server" AutoGenerateColumns="False" OnRowDataBound="GvPersonalAltas_RowDataBound"
|
<asp:GridView ID="GvPersonalAltas" runat="server" AutoGenerateColumns="False" OnRowDataBound="GvPersonalAltas_RowDataBound"
|
||||||
@@ -813,8 +785,6 @@
|
|||||||
<HeaderStyle CssClass="Titulos" />
|
<HeaderStyle CssClass="Titulos" />
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="ModalUpAltas" class="modal ADS fade" role="dialog">
|
<div id="ModalUpAltas" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -871,7 +841,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1449,7 +1418,7 @@
|
|||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtFechaIngreso" Text="Fecha de Ingreso:"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtFechaIngreso" Text="Fecha de Ingreso:"></asp:Label>
|
||||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="padding: 5px 0px;">
|
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="padding: 5px 0px;">
|
||||||
<asp:TextBox ID="TxtFechaIngreso" runat="server" CausesValidation="true" CssClass="form-control input-sm"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaIngreso" runat="server" Enabled="false" CausesValidation="true" CssClass="form-control input-sm"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="ImgFechaIngreso" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="ImgFechaIngreso" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -1597,6 +1566,408 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpMovtosPermanentes" UpdateMode="Conditional" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<div class="portlet light xspadding bordered " id="pnlListMovtos">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption ">
|
||||||
|
<i class="icon-pin font-yellow-gold"></i>
|
||||||
|
<span class="caption-subject font-yellow-gold bold uppercase">Movimientos Permanentes</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<asp:LinkButton ID="LnkAddMovtoPermanente" OnClick="LnkAddMovtoPermanente_Click" CssClass="btn yellow-gold" runat="server">Agregar</asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body ">
|
||||||
|
|
||||||
|
<asp:GridView ID="GVMovtoPermanente" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall " AutoGenerateColumns="False"
|
||||||
|
ShowHeader="true" EmptyDataText="No se encontraron Movimientos"
|
||||||
|
DataKeyNames="CveMovtoPermanente,CveConcepto,CveCuenta,IdCtaContable,CvePersonal,Descripcion,TipoDescuento,Valor,VecesAplicar,MontoLimite,FechaInicioAplicacion,Estatus,FechaRegistro">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField HeaderText="Descripción">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" OnClick="LnkEditarMovtoPermanente_Click"
|
||||||
|
CssClass="lnkMovotPermanente" runat="server" Text='<%# Eval("Descripcion")%>'></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Tipo descuento">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" OnClick="LnkEditarMovtoPermanente_Click"
|
||||||
|
CssClass="lnkMovotPermanente" runat="server" Text='<%# Eval("TipoDescuentoTexto")%>'></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Valor">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" OnClick="LnkEditarMovtoPermanente_Click"
|
||||||
|
CssClass="lnkMovotPermanente" runat="server" Text='<%# Eval("Valor")%>'></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Veces por aplicar">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" OnClick="LnkEditarMovtoPermanente_Click"
|
||||||
|
CssClass="lnkMovotPermanente" runat="server" Text='<%# Eval("VecesAplicar","{0:###,###.##}")%>'></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Monto limite">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" OnClick="LnkEditarMovtoPermanente_Click"
|
||||||
|
CssClass="lnkMovotPermanente" runat="server" Text='<%# Eval("MontoLimite","{0:###,###.##}")%>'></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="38">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditarmovtoper" OnClick="LnkEditarMovtoPermanente_Click" CssClass="btn btn-circle btn-sm btn-xs green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="38">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkremoveMovtoPermanente" runat="server" OnClick="LnkremoveMovtoPermanente_Click" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el NomFonacot?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="ModalMovtoPermanente" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpMovtosPermanentesModal" UpdateMode="Conditional" class="modal-dialog" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header ">
|
||||||
|
|
||||||
|
<button type="button" class="close" onclick="$('#ModalMovtoPermanente').modal('hide');return;">×</button><h4 class="modal-title">Moviento permanente</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<asp:Panel runat="server" Visible="false" CssClass="portlet light xspadding bordered " ID="pnlAddupMovto">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption ">
|
||||||
|
<i class="icon-pin font-yellow-gold"></i>
|
||||||
|
<span class="caption-subject font-yellow-gold bold uppercase">
|
||||||
|
<asp:Literal ID="LtlMovtoPermanenteaddup" runat="server"></asp:Literal></span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body ">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtDescripcion" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtDescripcion" CssClass="help-block errorimput"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario "
|
||||||
|
ValidationGroup="GrpGuardarMovyoPerma"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Descripción:" AssociatedControlID="TxtDescripcion"></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" Text="Tipo Concepto:" AssociatedControlID=""></asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlTipo" runat="server" AppendDataBoundItems="True" OnSelectedIndexChanged="DdlTipo_SelectedIndexChanged" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="TipoGasto" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||||
|
<asp:ListItem Value="P" Text="Percepciones"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="D" Selected="True" Text="Deducciones"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="O" Text="Obligaciones"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" Text="Concepto:" AssociatedControlID=""></asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlConcepto" runat="server" DataTextField="CodigoConcepto" DataValueField="CveConcepto" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" Text="Tipo Descuento:" AssociatedControlID=""></asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlTipoDescto" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoDescto_SelectedIndexChanged" DataTextField="CodigoConcepto" DataValueField="CveConcepto" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||||
|
<asp:ListItem Value="1" Text="Importe"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="2" Text="Porcentaje"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="3" Text="Importe(Tope Monto)"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="4" Text="Porcentaje(Tope Monto)"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtValor" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvValor" runat="server" ControlToValidate="TxtValor" CssClass="help-block errorimput"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Valor''</b> es necesario "
|
||||||
|
ValidationGroup="GrpGuardarMovyoPerma"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Valor:" AssociatedControlID="TxtValor"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<asp:Panel runat="server" ID="pnlVecesAplicar" CssClass="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtVecesAplicar" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvVecesAplicar" runat="server" ControlToValidate="TxtVecesAplicar" CssClass="help-block errorimput"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Veces por Aplicar''</b> es necesario "
|
||||||
|
ValidationGroup="GrpGuardarMovyoPerma"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Veces por Aplicar:" AssociatedControlID="TxtVecesAplicar"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
<asp:Panel runat="server" ID="pnlMonto" CssClass="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtMontoLimite" CssClass="form-control" runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvMontoLimite" runat="server" ControlToValidate="TxtMontoLimite" CssClass="help-block errorimput"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Monto Limite''</b> es necesario "
|
||||||
|
ValidationGroup="GrpGuardarMovyoPerma"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Monto Limite:" AssociatedControlID="TxtMontoLimite"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtFechaAplicacion" runat="server" CausesValidation="True" CssClass="form-control"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvFechaAplicacion" runat="server" ControlToValidate="TxtFechaAplicacion" CssClass="help-block errorimput"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario "
|
||||||
|
ValidationGroup="GrpGuardarMovyoPerma"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Fecha de Aplicación: " AssociatedControlID="TxtFechaAplicacion"></asp:Label>
|
||||||
|
<ajax:MaskedEditExtender ID="MKEFechaAplicacion" runat="server" TargetControlID="TxtFechaAplicacion" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender ID="CEFechaAplicacion" runat="server" TargetControlID="TxtFechaAplicacion" PopupButtonID="ImgFechaBaja" PopupPosition="BottomRight" BehaviorID="_content_CEFechaBaja"></ajax:CalendarExtender>
|
||||||
|
<asp:CompareValidator ID="CVFechaAplicacion" runat="server" ControlToValidate="TxtFechaAplicacion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||||
|
<asp:Label runat="server" Text="Cuenta contable" AssociatedControlID="DdlCtaContable"></asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlCtaContable" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="CveCuenta" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div style="padding-top: 10px; padding-bottom: 14px;">
|
||||||
|
¿Activo?
|
||||||
|
</div>
|
||||||
|
<asp:CheckBox ID="ChkEstatus" CssClass="chksino " Text=" " runat="server" />
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="text-right"></div>
|
||||||
|
</div>
|
||||||
|
</asp:Panel>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:LinkButton ID="LnkAddMovto" OnClick="LnkAddMovto_Click" ValidationGroup="GrpGuardarMovyoPerma" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||||
|
<asp:LinkButton ID="LnkUpMovto" OnClick="LnkUpMovto_Click" ValidationGroup="GrpGuardarMovyoPerma" CssClass="btn btn-success" runat="server">Actualizar</asp:LinkButton>
|
||||||
|
|
||||||
|
<button type="button" class="btn btn-danger" onclick="$('#ModalMovtoPermanente').modal('hide');return;">Cancelar</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpsrIncapacidadpersonal" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="portlet light xspadding bordered " id="pnlIncapacidadesgv">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption ">
|
||||||
|
<i class="icon-pin font-yellow-gold"></i>
|
||||||
|
<span class="caption-subject font-yellow-gold bold uppercase">Incapacidades registradas</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<asp:LinkButton ID="LnkshowaaddIncapacidad" OnClick="LnkshowaaddIncapacidad_Click" CssClass="btn yellow-gold" runat="server">Agregar</asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body" style="min-height: 40px;">
|
||||||
|
<asp:GridView ID="GVNom_PersonalIncapacidad" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="CvePersonalIncapacidad,CvePersonal,Folio,FechaInicio,DiasAutorizados,DiasPagoEmpresa,CveTipodeIncidencia,CveRamoSeguro,CveTipoRiesgo,PorcentajedeIncapacidad,CveSecuelaConsecuencia,CveControlIncapacidad,Descripcion">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField HeaderText="Folio">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" Text='<%# Eval("Folio")%>' OnClick="LnkPersonalIncapacidad_Click" data-toggle="tooltip" title="Editar" Width="100%"> </asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Fecha inicio">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>' OnClick="LnkPersonalIncapacidad_Click" data-toggle="tooltip" title="Editar" Width="100%"> </asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Dias autorizados">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" OnClick="LnkPersonalIncapacidad_Click" data-toggle="tooltip" title="Editar" Width="100%">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<%# Eval("DiasAutorizados")%>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 text-right">
|
||||||
|
<label class="btn btn-circle btn-sm btn-xs green mysmallbtn"><i class="fa fa-pencil"></i></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="ModalSRIncapacidad" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel ID="UPSRModalIncapacidad" UpdateMode="Conditional" class="modal-dialog" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" onclick="$('#ModalSRIncapacidad').modal('hide');return;">×</button><h4 class="modal-title">Incapacidades</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="portlet light xspadding bordered " id="pnlIncapacidade">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption ">
|
||||||
|
<i class="icon-pin font-yellow-gold"></i>
|
||||||
|
<span class="caption-subject font-yellow-gold bold uppercase">Agregar incapacidades</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSRINCfolio" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_folio" runat="server" ControlToValidate="TxtSRINCfolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_folio" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_folio"></ajax:ValidatorCalloutExtender>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtSRINCfolio">Folio</asp:Label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSRINCfechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
|
<ajax:MaskedEditExtender ID="MEENom_fechaInicio" runat="server" TargetControlID="TxtSRINCfechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CEENom_fechaInicio" TargetControlID="TxtSRINCfechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_fechaInicio" runat="server" ControlToValidate="TxtSRINCfechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_fechaInicio" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_fechaInicio"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtSRINCfechaInicio">Fecha Inicio</asp:Label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSRINCdiasAutorizados" CssClass="form-control " runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_diasAutorizados" runat="server" ControlToValidate="TxtSRINCdiasAutorizados" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dias Autorizados''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_diasAutorizados" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_diasAutorizados"></ajax:ValidatorCalloutExtender>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtSRINCdiasAutorizados">Dias autorizados</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtDiasPagoEmpresa" CssClass="form-control " runat="server"></asp:TextBox>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtDiasPagoEmpresa">Dias pagados por empresa</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlSRINCcveTipodeIncidencia">Tipo de incidencia</asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlSRINCcveTipodeIncidencia" DataValueField="Cve" DataTextField="Texto" Width="100%" CssClass="form-control select2me" runat="server"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_cveTipodeIncidencia" runat="server" ControlToValidate="DdlSRINCcveTipodeIncidencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cve Tipode Incidencia''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_cveTipodeIncidencia" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_cveTipodeIncidencia"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlSRINCcveRamoSeguro">Ramo seguro</asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlSRINCcveRamoSeguro" DataValueField="Cve" DataTextField="Texto" Width="100%" CssClass="form-control select2me " runat="server"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_cveRamoSeguro" runat="server" ControlToValidate="DdlSRINCcveRamoSeguro" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cve Ramo Seguro''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_cveRamoSeguro" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_cveRamoSeguro"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlSRINCcveTipoRiesgo"> Tipo Riesgo</asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlSRINCcveTipoRiesgo" DataValueField="Cve" DataTextField="Texto" Width="100%" CssClass="form-control select2me" runat="server"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_cveTipoRiesgo" runat="server" ControlToValidate="DdlSRINCcveTipoRiesgo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cve Tipo Riesgo''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_cveTipoRiesgo" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_cveTipoRiesgo"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSRINCporcentajedeIncapacidad" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_porcentajedeIncapacidad" runat="server" ControlToValidate="TxtSRINCporcentajedeIncapacidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Porcentajede Incapacidad''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_porcentajedeIncapacidad" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_porcentajedeIncapacidad"></ajax:ValidatorCalloutExtender>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtSRINCporcentajedeIncapacidad">Porcentaje de incapacidad</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlSRINCcveSecuelaConsecuencia"> Secuela o Consecuencia</asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlSRINCcveSecuelaConsecuencia" DataValueField="Cve" DataTextField="Texto" Width="100%" CssClass="form-control select2me" runat="server"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_cveSecuelaConsecuencia" runat="server" ControlToValidate="DdlSRINCcveSecuelaConsecuencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cve Secuela Consecuencia''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_cveSecuelaConsecuencia" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_cveSecuelaConsecuencia"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlSRINCcveControlIncapacidad"> Control de incapacidad</asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlSRINCcveControlIncapacidad" DataValueField="Cve" DataTextField="Texto" Width="100%" CssClass="form-control select2me" runat="server"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_cveControlIncapacidad" runat="server" ControlToValidate="DdlSRINCcveControlIncapacidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cve Control Incapacidad''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_cveControlIncapacidad" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_cveControlIncapacidad"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtSRINCdescripcion" CssClass="form-control " runat="server"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvNom_descripcion" runat="server" ControlToValidate="TxtSRINCdescripcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripcion''</b> es necesario, por favor ingréselo." ValidationGroup="VGMNom_"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNom_descripcion" runat="server" HighlightCssClass="vco" TargetControlID="RfvNom_descripcion"></ajax:ValidatorCalloutExtender>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtSRINCdescripcion">Descripción</asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="text-right"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:LinkButton ID="LnkActualizarIncapacidad" OnClick="LnkActualizarIncapacidad_Click" CssClass="btn btn-success " ValidationGroup="VGMNom_" runat="server">Actualizar</asp:LinkButton>
|
||||||
|
<asp:LinkButton ID="LnkAgregarIncapacidad" OnClick="LnkAgregarIncapacidad_Click" CssClass="btn btn-primary" ValidationGroup="VGMNom_" runat="server">Guardar</asp:LinkButton>
|
||||||
|
|
||||||
|
<button type="button" class="btn btn-danger" onclick="$('#ModalSRIncapacidad').modal('hide');return;">Cancelar</button>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
<%--<div class="portlet light bordered xspadding" id="porletconceptos">
|
<%--<div class="portlet light bordered xspadding" id="porletconceptos">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
@@ -3093,14 +3464,8 @@
|
|||||||
<asp:ListItem Text="Cheque" Value="2" />
|
<asp:ListItem Text="Cheque" Value="2" />
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
|
|
||||||
<asp:LinkButton ID="BtnPDFHistorial" OnClick="BtnPDFHistorial_Click" runat="server" data-toggle="tooltip" Title="PDF" Style="float: right;"><i class="fa fa-file-pdf-o" style=" margin-right: 10px;
|
<asp:LinkButton ID="BtnPDFHistorial" OnClick="BtnPDFHistorial_Click" runat="server" data-toggle="tooltip" Title="PDF" Style="float: right;"><i class="fa fa-file-pdf-o" style=" margin-right: 10px;font-size: 15px; font-weight: bold; color: dimgray;"></i></asp:LinkButton>
|
||||||
font-size: 15px;
|
<asp:LinkButton ID="BtnExcelHistorial" OnClick="BtnExcelHistorial_Click" runat="server" data-toggle="tooltip" Title="Excel" Style="float: right;"><i style='margin-right: 10px;font-size: 15px; font-weight: bold; color: dimgray;' class='fa fa-file-excel-o'></i></asp:LinkButton>
|
||||||
font-weight: bold;
|
|
||||||
color: dimgray;"></i></asp:LinkButton>
|
|
||||||
<asp:LinkButton ID="BtnExcelHistorial" OnClick="BtnExcelHistorial_Click" runat="server" data-toggle="tooltip" Title="Excel" Style="float: right;"><i style=' margin-right: 10px;
|
|
||||||
font-size: 15px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: dimgray;' class='fa fa-file-excel-o'></i></asp:LinkButton>
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpnHistorial" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpnHistorial" runat="server" UpdateMode="Conditional">
|
||||||
<Triggers>
|
<Triggers>
|
||||||
@@ -5291,6 +5656,52 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="ModalUpEstatus" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button><h4 class="modal-title">
|
||||||
|
<asp:Label ID="LblEstatus" runat="server" Text="Label"></asp:Label>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<asp:UpdatePanel runat="server" ID="upPersonEstatus" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label><asp:Literal ID="LblFechaEstatus" runat="server"></asp:Literal></label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class=" " style="width: 100px !important">
|
||||||
|
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="width: 160px;">
|
||||||
|
<asp:TextBox ID="TxtFechaEstatus" runat="server" CausesValidation="true" CssClass="form-control input-sm"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="LnkFechaEstatus" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
<ajax:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="TxtFechaEstatus" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender6" TargetControlID="TxtFechaEstatus" PopupButtonID="LnkFechaEstatus" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<asp:Button ID="LnkUpEstatus" runat="server" Text="Actualizar" OnClick="LnkUpEstatus_Click" class="btn btn-primary" />
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<iframe id="my_iframe" style="display: none;"></iframe>
|
<iframe id="my_iframe" style="display: none;"></iframe>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -16,6 +16,18 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
#Region "P R O P I E D A D E S"
|
#Region "P R O P I E D A D E S"
|
||||||
|
|
||||||
|
Property CcveMovtoPermanente As Integer
|
||||||
|
Get
|
||||||
|
If ViewState("CcveMovtoPermanente") Is Nothing Then
|
||||||
|
Return -1
|
||||||
|
Else
|
||||||
|
Return DirectCast(ViewState("CcveMovtoPermanente"), Integer)
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CcveMovtoPermanente") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Property CveFonacot As Integer
|
Property CveFonacot As Integer
|
||||||
Get
|
Get
|
||||||
If ViewState("CveFonacot") Is Nothing Then
|
If ViewState("CveFonacot") Is Nothing Then
|
||||||
@@ -218,6 +230,17 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Private Property dtNomConceptos As Data.DataTable
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("dtNomConceptos"), DataTable)
|
||||||
|
End Get
|
||||||
|
Set(value As Data.DataTable)
|
||||||
|
ViewState("dtNomConceptos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Private Property DtCuentasContables As Data.DataTable
|
Private Property DtCuentasContables As Data.DataTable
|
||||||
Get
|
Get
|
||||||
Return CType(ViewState("DtCuentasContables"), DataTable)
|
Return CType(ViewState("DtCuentasContables"), DataTable)
|
||||||
@@ -825,6 +848,10 @@ Partial Class RH_Personal
|
|||||||
pnlSalarioIMSS.Visible = False
|
pnlSalarioIMSS.Visible = False
|
||||||
End If
|
End If
|
||||||
'
|
'
|
||||||
|
Using objno = New ClsNominas
|
||||||
|
objno.GetConceptos()
|
||||||
|
dtNomConceptos = objno.DtResultados
|
||||||
|
End Using
|
||||||
PnlSalarios.Visible = showsalarios
|
PnlSalarios.Visible = showsalarios
|
||||||
|
|
||||||
ViewState("Orden") = ""
|
ViewState("Orden") = ""
|
||||||
@@ -877,6 +904,8 @@ Partial Class RH_Personal
|
|||||||
'CvePersonal = ViewState("CvePersonal").ToString().ToEntero()
|
'CvePersonal = ViewState("CvePersonal").ToString().ToEntero()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
CargaDocumentacionFirmaDecontratos()
|
CargaDocumentacionFirmaDecontratos()
|
||||||
|
CargaPersonalIncapacidad()
|
||||||
|
CargaMovtoPermanente()
|
||||||
'LnkAddLicencias.Visible = True
|
'LnkAddLicencias.Visible = True
|
||||||
'TabLicencias.Visible = True
|
'TabLicencias.Visible = True
|
||||||
'Configuración de Modalidad Update
|
'Configuración de Modalidad Update
|
||||||
@@ -1663,6 +1692,8 @@ Partial Class RH_Personal
|
|||||||
'End If
|
'End If
|
||||||
|
|
||||||
DdlEstatusPersonal.SelectedValue = ObjPersonal.CveEstatusPersonal.ToString()
|
DdlEstatusPersonal.SelectedValue = ObjPersonal.CveEstatusPersonal.ToString()
|
||||||
|
LnkActivar.Visible = (ObjPersonal.CveEstatusPersonal = 2)
|
||||||
|
LnkDesactivar.Visible = Not LnkActivar.Visible
|
||||||
CargaEstatusPersonal(DdlEstatusPersonal.SelectedValue.ToEntero())
|
CargaEstatusPersonal(DdlEstatusPersonal.SelectedValue.ToEntero())
|
||||||
MostrarOcultarFechasEstatus()
|
MostrarOcultarFechasEstatus()
|
||||||
|
|
||||||
@@ -7062,5 +7093,373 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
End Using
|
End Using
|
||||||
End Sub
|
End Sub
|
||||||
|
#Region "movtosPermanentes"
|
||||||
|
Protected Sub CargaTipoConcepto()
|
||||||
|
CargaConcepto()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub CargaConcepto()
|
||||||
|
Dim dt As DataTable = dtNomConceptos.FiltraParametros(" FormulaTotal = 'FNC.[MovimientosPermanentes]'")
|
||||||
|
DdlConcepto.Items.Clear()
|
||||||
|
|
||||||
|
If DdlTipo.SelectedValue.Contiene("P", "D", "O") Then
|
||||||
|
DdlConcepto.DataSource = dt.FiltraParametros(String.Format("Tipo ='{0}'", DdlTipo.SelectedValue))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim drow As DataRow = dt.NewRow()
|
||||||
|
drow("CveConcepto") = "-1"
|
||||||
|
drow("Concepto") = "Seleccione"
|
||||||
|
dt.Rows.InsertAt(drow, 0)
|
||||||
|
DdlConcepto.DataSource = dt
|
||||||
|
DdlConcepto.SelectedValueExist("-1")
|
||||||
|
DdlConcepto.DataBind()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaMovtoPermanente()
|
||||||
|
Using ObjMovt As ClsNominas = New ClsNominas()
|
||||||
|
ObjMovt.GetMovtoPermanente(UsuarioActual.CveEmpresa, CvePersonal)
|
||||||
|
GVMovtoPermanente.DataSource = ObjMovt.DtResultados
|
||||||
|
End Using
|
||||||
|
|
||||||
|
GVMovtoPermanente.DataBind()
|
||||||
|
UpMovtosPermanentes.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlTipo_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
CargaConcepto()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkAddMovtoPermanente_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
CargaConcepto()
|
||||||
|
DdlTipoDescto_SelectedIndexChanged(Nothing, Nothing)
|
||||||
|
pnlAddupMovto.Visible = True
|
||||||
|
LnkAddMovto.Visible = True
|
||||||
|
LnkUpMovto.Visible = False
|
||||||
|
LtlMovtoPermanenteaddup.Text = "Agregar Movimiento"
|
||||||
|
TxtDescripcion.Text = ""
|
||||||
|
TxtValor.Text = ""
|
||||||
|
TxtVecesAplicar.Text = ""
|
||||||
|
TxtMontoLimite.Text = ""
|
||||||
|
TxtFechaAplicacion.Text = ""
|
||||||
|
ChkEstatus.Visible = True
|
||||||
|
ChkEstatus.Checked = True
|
||||||
|
UpMovtosPermanentesModal.Update()
|
||||||
|
RegistraScript("$('#ModalMovtoPermanente').modal()")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkAddMovto_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
Dim cveConcepto As Integer = DdlConcepto.SelectedValue.ToEntero()
|
||||||
|
Dim descripcion As String = TxtDescripcion.Text
|
||||||
|
Dim tipoDescuento As Integer = DdlTipoDescto.SelectedValue.ToEntero()
|
||||||
|
Dim valor As Double = TxtValor.Text.ToDouble()
|
||||||
|
Dim vecesAplicar As Integer = TxtVecesAplicar.Text.ToEntero()
|
||||||
|
Dim montoLimite As Decimal = TxtMontoLimite.Text.ToDecimal()
|
||||||
|
Dim fechaInicioAplicacion As String = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd")
|
||||||
|
Dim estatus As Boolean = ChkEstatus.Checked
|
||||||
|
Dim CveCuenta As Integer = DdlCtaContable.SelectedValue.ToEntero() * (If(DdlCtaContable.DataValueField = "Id", -1, 1))
|
||||||
|
Dim Continuar As Boolean
|
||||||
|
|
||||||
|
Using ObjMovt As ClsNominas = New ClsNominas()
|
||||||
|
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, CvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta) > 0
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If Continuar Then
|
||||||
|
Me.RegistraScript("$('#DModalMovtoPermanente').modal('hide');")
|
||||||
|
CargaMovtoPermanente()
|
||||||
|
UpMovtosPermanentes.Update()
|
||||||
|
Me.Alert("Se ha agregado el movimiento permanente")
|
||||||
|
End If
|
||||||
|
|
||||||
|
RegistraScript("$('#ModalMovtoPermanente').modal('hide')")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkUpMovto_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
Dim cveConcepto As Integer = DdlConcepto.SelectedValue.ToEntero()
|
||||||
|
Dim descripcion As String = TxtDescripcion.Text
|
||||||
|
Dim tipoDescuento As Integer = DdlTipoDescto.SelectedValue.ToEntero()
|
||||||
|
Dim valor As Double = TxtValor.Text.ToDouble()
|
||||||
|
Dim vecesAplicar As Integer = TxtVecesAplicar.Text.ToEntero()
|
||||||
|
Dim montoLimite As Decimal = TxtMontoLimite.Text.ToDecimal()
|
||||||
|
Dim fechaInicioAplicacion As String = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd")
|
||||||
|
Dim estatus As Boolean = ChkEstatus.Checked
|
||||||
|
Dim CveCuenta As Integer = DdlCtaContable.SelectedValue.ToEntero() * (If(DdlCtaContable.DataValueField = "Id", -1, 1))
|
||||||
|
Dim Continuar As Boolean
|
||||||
|
|
||||||
|
Using ObjMovt As ClsNominas = New ClsNominas()
|
||||||
|
Continuar = ObjMovt.UpMovtoPermanente(CcveMovtoPermanente, cveConcepto, CvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta)
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If Continuar Then
|
||||||
|
Me.RegistraScript("$('#ModalMovtoPermanente').modal('hide');")
|
||||||
|
CargaMovtoPermanente()
|
||||||
|
UpMovtosPermanentes.Update()
|
||||||
|
Me.Alert("Se ha actualizado el movimiento permanente")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlTipoDescto_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
pnlMonto.Visible = DdlTipoDescto.SelectedValue.ToEntero() > 2
|
||||||
|
pnlVecesAplicar.Visible = DdlTipoDescto.SelectedValue.ToEntero() < 3
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkremoveMovtoPermanente_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
Dim gvRow As GridViewRow = CType(((CType(sender, LinkButton)).NamingContainer), GridViewRow)
|
||||||
|
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero()
|
||||||
|
Dim Continuar As Boolean = False
|
||||||
|
|
||||||
|
Using ObjMovt As ClsNominas = New ClsNominas()
|
||||||
|
Continuar = ObjMovt.RemoveMovtoPermanente(CcveMovtoPermanente)
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If Continuar Then
|
||||||
|
Me.RegistraScript("$('#ModalMovtoPermanente').modal('hide');")
|
||||||
|
CargaMovtoPermanente()
|
||||||
|
UpMovtosPermanentes.Update()
|
||||||
|
Me.Alert("Se ha eliminadó el movimiento permanente")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkEditarMovtoPermanente_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
Dim gvRow As GridViewRow = CType(((CType(sender, LinkButton)).NamingContainer), GridViewRow)
|
||||||
|
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero()
|
||||||
|
Dim cveConcepto As Integer = gvRow.DataKey("CveConcepto").ToEntero()
|
||||||
|
Dim cvePersonal As Integer = gvRow.DataKey("CvePersonal").ToEntero()
|
||||||
|
Dim CveCuenta As Integer = gvRow.DataKey("CveCuenta").ToEntero()
|
||||||
|
Dim IdCtaContable As Integer = gvRow.DataKey("IdCtaContable").ToEntero()
|
||||||
|
Dim descripcion As String = gvRow.DataKey("Descripcion")
|
||||||
|
Dim tipoDescuento As Integer = gvRow.DataKey("TipoDescuento").ToEntero()
|
||||||
|
Dim valor As Double = gvRow.DataKey("Valor").ToDouble()
|
||||||
|
Dim vecesAplicar As Integer = gvRow.DataKey("VecesAplicar").ToEntero()
|
||||||
|
Dim montoLimite As Decimal = gvRow.DataKey("MontoLimite").ToDecimal()
|
||||||
|
Dim fechaInicioAplicacion As DateTime = gvRow.DataKey("FechaInicioAplicacion").ToDate()
|
||||||
|
Dim estatus As Boolean = gvRow.DataKey("Estatus") = "1" OrElse gvRow.DataKey("Estatus").ToUpper() = "TRUE"
|
||||||
|
Dim fechaRegistro As DateTime = gvRow.DataKey("FechaRegistro").ToDateTime()
|
||||||
|
Dim tipo As String = "P"
|
||||||
|
Dim drow As DataRow = dtNomConceptos.FiltroPrimero(String.Format("CveConcepto ='{0}'", cveConcepto))
|
||||||
|
|
||||||
|
If drow IsNot Nothing Then
|
||||||
|
tipo = drow("Tipo").ToString()
|
||||||
|
DdlTipo.SelectedValueExist(tipo)
|
||||||
|
DdlTipo_SelectedIndexChanged(Nothing, Nothing)
|
||||||
|
End If
|
||||||
|
|
||||||
|
CargaConcepto()
|
||||||
|
DdlConcepto.SelectedValueExist(cveConcepto)
|
||||||
|
TxtDescripcion.Text = descripcion.ToString()
|
||||||
|
DdlTipoDescto.SelectedValueExist(tipoDescuento.ToString())
|
||||||
|
DdlTipoDescto_SelectedIndexChanged(Nothing, Nothing)
|
||||||
|
TxtValor.Text = valor.ToString()
|
||||||
|
TxtVecesAplicar.Text = vecesAplicar.ToString()
|
||||||
|
TxtMontoLimite.Text = montoLimite.ToString()
|
||||||
|
TxtFechaAplicacion.Text = $"{fechaInicioAplicacion}"
|
||||||
|
DdlCtaContable.SelectedValueExist("-1")
|
||||||
|
|
||||||
|
If DdlCtaContable.DataValueField = "Id" Then
|
||||||
|
DdlCtaContable.SelectedValueExist(IdCtaContable)
|
||||||
|
Else
|
||||||
|
DdlCtaContable.SelectedValueExist(CveCuenta)
|
||||||
|
End If
|
||||||
|
|
||||||
|
ChkEstatus.Checked = estatus
|
||||||
|
RegistraScript("$('#ModalMovtoPermanente').modal()")
|
||||||
|
pnlAddupMovto.Visible = True
|
||||||
|
LnkAddMovto.Visible = False
|
||||||
|
LnkUpMovto.Visible = True
|
||||||
|
UpMovtosPermanentesModal.Update()
|
||||||
|
End Sub
|
||||||
|
#End Region
|
||||||
|
#Region "incapacidad"
|
||||||
|
Private Property CcvePersonalIncapacidad As Integer
|
||||||
|
Get
|
||||||
|
Return If((ViewState("CcvePersonalIncapacidad") Is Nothing), 0, Convert.ToInt32(ViewState("CcvePersonalIncapacidad")))
|
||||||
|
End Get
|
||||||
|
Set(ByVal value As Integer)
|
||||||
|
ViewState("CcvePersonalIncapacidad") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Protected Sub CargaPersonalIncapacidad()
|
||||||
|
LimpiaPersonalIncapacidad()
|
||||||
|
LnkAgregarIncapacidad.Visible = False
|
||||||
|
LnkActualizarIncapacidad.Visible = False
|
||||||
|
CcvePersonalIncapacidad = 0
|
||||||
|
|
||||||
|
Using ObjPers As ClsNominas = New ClsNominas()
|
||||||
|
ObjPers.PersonalIncapacidadGet(-1, CvePersonal, UsuarioActual.CveEmpresa)
|
||||||
|
GVNom_PersonalIncapacidad.DataSource = ObjPers.DtResultados
|
||||||
|
End Using
|
||||||
|
|
||||||
|
GVNom_PersonalIncapacidad.DataBind()
|
||||||
|
UpsrIncapacidadpersonal.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LimpiaPersonalIncapacidad()
|
||||||
|
TxtSRINCfolio.Text = ""
|
||||||
|
TxtSRINCfechaInicio.Text = ""
|
||||||
|
TxtSRINCdiasAutorizados.Text = ""
|
||||||
|
DdlSRINCcveTipodeIncidencia.SelectedValue = "-1"
|
||||||
|
DdlSRINCcveRamoSeguro.SelectedValue = "-1"
|
||||||
|
DdlSRINCcveTipoRiesgo.SelectedValue = "-1"
|
||||||
|
TxtSRINCporcentajedeIncapacidad.Text = "100"
|
||||||
|
DdlSRINCcveSecuelaConsecuencia.SelectedValue = "-1"
|
||||||
|
DdlSRINCcveControlIncapacidad.SelectedValue = "-1"
|
||||||
|
TxtSRINCdescripcion.Text = ""
|
||||||
|
UpsrIncapacidadpersonal.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkPersonalIncapacidad_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
LimpiaPersonalIncapacidad()
|
||||||
|
Dim gvRow As GridViewRow = CType(((CType(sender, LinkButton)).NamingContainer), GridViewRow)
|
||||||
|
CcvePersonalIncapacidad = gvRow.DataKey("CvePersonalIncapacidad").ToEntero()
|
||||||
|
Dim cvePersonal As Integer = gvRow.DataKey("CvePersonal").ToEntero()
|
||||||
|
Dim folio As String = gvRow.DataKey("Folio")
|
||||||
|
Dim fechaInicio As DateTime = gvRow.DataKey("FechaInicio").ToDateTime()
|
||||||
|
Dim diasAutorizados As Integer = gvRow.DataKey("DiasAutorizados").ToEntero()
|
||||||
|
Dim diasPagoEmpresa As Integer = gvRow.DataKey("DiasPagoEmpresa").ToEntero()
|
||||||
|
Dim cveTipodeIncidencia As Integer = gvRow.DataKey("CveTipodeIncidencia").ToEntero()
|
||||||
|
Dim cveRamoSeguro As Integer = gvRow.DataKey("CveRamoSeguro").ToEntero()
|
||||||
|
Dim cveTipoRiesgo As Integer = gvRow.DataKey("CveTipoRiesgo").ToEntero()
|
||||||
|
Dim porcentajedeIncapacidad As Integer = gvRow.DataKey("PorcentajedeIncapacidad").ToEntero()
|
||||||
|
Dim cveSecuelaConsecuencia As Integer = gvRow.DataKey("CveSecuelaConsecuencia").ToEntero()
|
||||||
|
Dim cveControlIncapacidad As Integer = gvRow.DataKey("CveControlIncapacidad").ToEntero()
|
||||||
|
Dim descripcion As String = gvRow.DataKey("Descripcion")
|
||||||
|
TxtSRINCfolio.Text = folio.ToString()
|
||||||
|
TxtSRINCfechaInicio.Text = $"{fechaInicio}"
|
||||||
|
TxtSRINCdiasAutorizados.Text = diasAutorizados.ToString()
|
||||||
|
TxtDiasPagoEmpresa.Text = diasPagoEmpresa.ToString()
|
||||||
|
DdlSRINCcveTipodeIncidencia.SelectedValueExist(cveTipodeIncidencia.ToString())
|
||||||
|
DdlSRINCcveRamoSeguro.SelectedValueExist(cveRamoSeguro.ToString())
|
||||||
|
DdlSRINCcveTipoRiesgo.SelectedValueExist(cveTipoRiesgo.ToString())
|
||||||
|
TxtSRINCporcentajedeIncapacidad.Text = porcentajedeIncapacidad.ToString()
|
||||||
|
DdlSRINCcveSecuelaConsecuencia.SelectedValueExist(cveSecuelaConsecuencia.ToString())
|
||||||
|
DdlSRINCcveControlIncapacidad.SelectedValueExist(cveControlIncapacidad.ToString())
|
||||||
|
TxtSRINCdescripcion.Text = descripcion.ToString()
|
||||||
|
LnkAgregarIncapacidad.Visible = False
|
||||||
|
LnkActualizarIncapacidad.Visible = True
|
||||||
|
RegistraScript("$('#ModalSRIncapacidad').modal()")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkshowaaddIncapacidad_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
LimpiaPersonalIncapacidad()
|
||||||
|
LnkAgregarIncapacidad.Visible = True
|
||||||
|
LnkActualizarIncapacidad.Visible = False
|
||||||
|
CcvePersonalIncapacidad = 0
|
||||||
|
RegistraScript("$('#ModalSRIncapacidad').modal()")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkAgregarIncapacidad_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
Dim folio As String = TxtSRINCfolio.Text
|
||||||
|
Dim fechaInicio As DateTime = TxtSRINCfechaInicio.Text.ToDateTime()
|
||||||
|
Dim diasAutorizados As Integer = TxtSRINCdiasAutorizados.Text.ToEntero()
|
||||||
|
Dim DiasPagoEmpresa As Integer = TxtDiasPagoEmpresa.Text.ToEntero()
|
||||||
|
Dim cveTipodeIncidencia As Integer = DdlSRINCcveTipodeIncidencia.Text.ToEntero()
|
||||||
|
Dim cveRamoSeguro As Integer = DdlSRINCcveRamoSeguro.Text.ToEntero()
|
||||||
|
Dim cveTipoRiesgo As Integer = DdlSRINCcveTipoRiesgo.Text.ToEntero()
|
||||||
|
Dim porcentajedeIncapacidad As Integer = TxtSRINCporcentajedeIncapacidad.Text.ToEntero()
|
||||||
|
Dim cveSecuelaConsecuencia As Integer = DdlSRINCcveSecuelaConsecuencia.Text.ToEntero()
|
||||||
|
Dim cveControlIncapacidad As Integer = DdlSRINCcveControlIncapacidad.Text.ToEntero()
|
||||||
|
Dim descripcion As String = TxtSRINCdescripcion.Text
|
||||||
|
Dim Continuar As Boolean
|
||||||
|
|
||||||
|
Using ObjPers As ClsNominas = New ClsNominas()
|
||||||
|
Continuar = ObjPers.PersonalIncapacidadAdd(UsuarioActual.CveUsuario, CvePersonal, folio, fechaInicio, diasAutorizados, cveTipodeIncidencia, cveRamoSeguro, cveTipoRiesgo, porcentajedeIncapacidad, cveSecuelaConsecuencia, cveControlIncapacidad, descripcion, DiasPagoEmpresa)
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If Continuar Then
|
||||||
|
CargaPersonalIncapacidad()
|
||||||
|
UpsrIncapacidadpersonal.Update()
|
||||||
|
Me.Alert("La incapacidad se ha agregado.", TipoMensaje.ToastInformacion)
|
||||||
|
RegistraScript("$('#ModalSRIncapacidad').modal('hide')")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkActualizarIncapacidad_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
Dim folio As String = TxtSRINCfolio.Text
|
||||||
|
Dim fechaInicio As DateTime = TxtSRINCfechaInicio.Text.ToDateTime()
|
||||||
|
Dim diasAutorizados As Integer = TxtSRINCdiasAutorizados.Text.ToEntero()
|
||||||
|
Dim DiasPagoEmpresa As Integer = TxtDiasPagoEmpresa.Text.ToEntero()
|
||||||
|
Dim cveTipodeIncidencia As Integer = DdlSRINCcveTipodeIncidencia.Text.ToEntero()
|
||||||
|
Dim cveRamoSeguro As Integer = DdlSRINCcveRamoSeguro.Text.ToEntero()
|
||||||
|
Dim cveTipoRiesgo As Integer = DdlSRINCcveTipoRiesgo.Text.ToEntero()
|
||||||
|
Dim porcentajedeIncapacidad As Integer = TxtSRINCporcentajedeIncapacidad.Text.ToEntero()
|
||||||
|
Dim cveSecuelaConsecuencia As Integer = DdlSRINCcveSecuelaConsecuencia.Text.ToEntero()
|
||||||
|
Dim cveControlIncapacidad As Integer = DdlSRINCcveControlIncapacidad.Text.ToEntero()
|
||||||
|
Dim descripcion As String = TxtSRINCdescripcion.Text
|
||||||
|
Dim Continuar As Boolean
|
||||||
|
|
||||||
|
Using ObjPers As ClsNominas = New ClsNominas()
|
||||||
|
Continuar = ObjPers.PersonalIncapacidadUp(UsuarioActual.CveUsuario, CcvePersonalIncapacidad, folio, fechaInicio, diasAutorizados, cveTipodeIncidencia, cveRamoSeguro, cveTipoRiesgo, porcentajedeIncapacidad, cveSecuelaConsecuencia, cveControlIncapacidad, descripcion, DiasPagoEmpresa)
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If Continuar Then
|
||||||
|
CargaPersonalIncapacidad()
|
||||||
|
UpsrIncapacidadpersonal.Update()
|
||||||
|
Me.Alert("La incapacidad se ha actualizado.", TipoMensaje.ToastInformacion)
|
||||||
|
RegistraScript("$('#ModalSRIncapacidad').modal('hide')")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub LnkActivar_Click(sender As Object, e As EventArgs)
|
||||||
|
LblEstatus.Text = "Activar personal"
|
||||||
|
LblFechaEstatus.Text = "Fecha ingreso ó reingreso"
|
||||||
|
TxtFechaEstatus.Text = ""
|
||||||
|
RegistraScript("$('#ModalUpEstatus').modal();")
|
||||||
|
upPersonEstatus.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkDesactivar_Click(sender As Object, e As EventArgs)
|
||||||
|
LblEstatus.Text = "Desactivar personal"
|
||||||
|
LblFechaEstatus.Text = "Fecha baja"
|
||||||
|
TxtFechaEstatus.Text = ""
|
||||||
|
RegistraScript("$('#ModalUpEstatus').modal();")
|
||||||
|
upPersonEstatus.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkUpEstatus_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim fini As DateTime
|
||||||
|
Dim ffin As DateTime
|
||||||
|
Dim fecha As DateTime = TxtFechaEstatus.Text.ToDateTime()
|
||||||
|
|
||||||
|
If GvPersonalAltas.Rows.Count > 0 Then
|
||||||
|
Dim gvrow As GridViewRow = GvPersonalAltas.Rows(0)
|
||||||
|
fini = gvrow.DataKey("FechaInicio").ToDateTime()
|
||||||
|
ffin = gvrow.DataKey("FechaFin").ToDateTime()
|
||||||
|
|
||||||
|
End If
|
||||||
|
Dim estatus = -1
|
||||||
|
Dim continuar = False
|
||||||
|
|
||||||
|
|
||||||
|
If (LnkActivar.Visible) Then
|
||||||
|
estatus = 1
|
||||||
|
If ffin >= fecha Then
|
||||||
|
continuar = False
|
||||||
|
Alert(String.Format("la '{0}' debe ser mayor a {1:dd/MM/yyyy}", LblFechaEstatus.Text, ffin), TipoMensaje.MsgAdvertencia)
|
||||||
|
Else
|
||||||
|
continuar = True
|
||||||
|
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
|
||||||
|
estatus = 2
|
||||||
|
If fini >= fecha Then
|
||||||
|
continuar = False
|
||||||
|
Alert(String.Format("la '{0}' debe ser mayor a {1:dd/MM/yyyy}", LblFechaEstatus.Text, fini), TipoMensaje.MsgAdvertencia)
|
||||||
|
Else
|
||||||
|
continuar = True
|
||||||
|
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If continuar Then
|
||||||
|
|
||||||
|
RegistraScript("$('#ModalUpEstatus').modal('hide');")
|
||||||
|
Alert("Se guardo correctamente", TipoMensaje.MsgInformacion)
|
||||||
|
CargaDatos()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ajax__tab_xp .ajax__tab_body {
|
.ajax__tab_xp .ajax__tab_body {
|
||||||
font-family: verdana,tahoma,helvetica;
|
font-family: "Open Sans", sans-serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,12 +131,13 @@
|
|||||||
background-color: #3598dc;
|
background-color: #3598dc;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reporte5 .GVSolicitudTimbreNominaGral tr td:nth-child(2),
|
.reporte5 .GVSolicitudTimbreNominaGral tr td:nth-child(2),
|
||||||
.reporte5 .GVSolicitudTimbreNominaGral tr td:nth-child(3),
|
.reporte5 .GVSolicitudTimbreNominaGral tr td:nth-child(3),
|
||||||
.reporte5 .GVSolicitudTimbreNominaGral tr td:nth-child(4){
|
.reporte5 .GVSolicitudTimbreNominaGral tr td:nth-child(4) {
|
||||||
text-align:right
|
text-align: right
|
||||||
}
|
}
|
||||||
|
|
||||||
.reporte5 .GVSolicitudTimbreNominaGral tr th:nth-child(2) /*,
|
.reporte5 .GVSolicitudTimbreNominaGral tr th:nth-child(2) /*,
|
||||||
.reporte5 .ADScroller-body .GVSolicitudTimbreNominaGral tr:nth-child(2) td:nth-child(2)*/ {
|
.reporte5 .ADScroller-body .GVSolicitudTimbreNominaGral tr:nth-child(2) td:nth-child(2)*/ {
|
||||||
background-color: #C46B06;
|
background-color: #C46B06;
|
||||||
@@ -490,121 +491,95 @@
|
|||||||
|
|
||||||
<ajax:TabPanel runat="server" HeaderText="Pendientes" ID="TabPendientes">
|
<ajax:TabPanel runat="server" HeaderText="Pendientes" ID="TabPendientes">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet light xspadding bordered " id="PnlPendientes">
|
<asp:GridView ID="GVSolicitudesPendientes" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||||
<div class="portlet-title">
|
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
|
||||||
<div class="caption ">
|
DataKeyNames="CveSolicitud,CveSolicitudCFDI,CveSolicitudMetadata,Estatus,Observaciones,FechaInicio,FechaFin,FechaIng,CveUsuarioIng,CveEmpresa">
|
||||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
<Columns>
|
||||||
<span class="caption-subject font-yellow-gold bold uppercase"></span>
|
<asp:TemplateField HeaderText="Folio">
|
||||||
</div>
|
<ItemTemplate>
|
||||||
<div class="tools">
|
<asp:Label runat="server" Text='<%# Eval("CveSolicitud")%>'></asp:Label>
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
</ItemTemplate>
|
||||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
</asp:TemplateField>
|
||||||
</div>
|
<asp:TemplateField HeaderText="Fecha Inicio">
|
||||||
</div>
|
<ItemTemplate>
|
||||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Fecha Fin">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Estatus">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblestatus" runat="server" Text='<%# Eval("EstatusText")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Observaciones">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblobservaciones" CssClass="truncate" ItemStyle-Width="200px" ControlStyle-Width="200px" runat="server" data-toggle="tooltip" data-placement="top" title='<%# Eval("Observaciones")%>' Text='<%# Eval("Observaciones")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Fecha solicitud">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy HH:mm}")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Solicitó">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" CssClass="truncate" ItemStyle-Width="150px" ControlStyle-Width="150px" data-toggle="tooltip" data-placement="top" title='<%# Eval("UsuarioIng")%>' Text='<%# Eval("UsuarioIng")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
<asp:GridView ID="GVSolicitudesPendientes" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
|
||||||
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
|
|
||||||
DataKeyNames="CveSolicitud,CveSolicitudCFDI,CveSolicitudMetadata,Estatus,Observaciones,FechaInicio,FechaFin,FechaIng,CveUsuarioIng,CveEmpresa">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText="Folio">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("CveSolicitud")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Inicio">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Fin">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Estatus">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblestatus" runat="server" Text='<%# Eval("EstatusText")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Observaciones">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblobservaciones" CssClass="truncate" ItemStyle-Width="200px" ControlStyle-Width="200px" runat="server" data-toggle="tooltip" data-placement="top" title='<%# Eval("Observaciones")%>' Text='<%# Eval("Observaciones")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha solicitud">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy HH:mm}")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Solicitó">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" CssClass="truncate" ItemStyle-Width="150px" ControlStyle-Width="150px" data-toggle="tooltip" data-placement="top" title='<%# Eval("UsuarioIng")%>' Text='<%# Eval("UsuarioIng")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
<ajax:TabPanel runat="server" HeaderText="Historial" ID="TabHistorial">
|
<ajax:TabPanel runat="server" HeaderText="Historial" ID="TabHistorial">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet light xspadding bordered " id="PnlTerminads">
|
|
||||||
<div class="portlet-title">
|
<asp:GridView ID="GVSolicitudesNominas" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||||
<div class="caption ">
|
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
|
||||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
DataKeyNames="CveSolicitud,idSolicitudCFDI,idSolicitudMetadata,Estatus,Observaciones,FechaInicio,FechaFin,FechaIng,CveUsuarioIng,CveEmpresa">
|
||||||
<span class="caption-subject font-yellow-gold bold uppercase"></span>
|
<Columns>
|
||||||
</div>
|
<asp:TemplateField HeaderText="Folio">
|
||||||
<div class="tools">
|
<ItemTemplate>
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<asp:Label runat="server" Text='<%# Eval("CveSolicitud")%>'></asp:Label>
|
||||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
</ItemTemplate>
|
||||||
</div>
|
</asp:TemplateField>
|
||||||
</div>
|
<asp:TemplateField HeaderText="Fecha Inicio">
|
||||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
<ItemTemplate>
|
||||||
<asp:GridView ID="GVSolicitudesNominas" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'></asp:Label>
|
||||||
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
|
</ItemTemplate>
|
||||||
DataKeyNames="CveSolicitud,idSolicitudCFDI,idSolicitudMetadata,Estatus,Observaciones,FechaInicio,FechaFin,FechaIng,CveUsuarioIng,CveEmpresa">
|
</asp:TemplateField>
|
||||||
<Columns>
|
<asp:TemplateField HeaderText="Fecha Fin">
|
||||||
<asp:TemplateField HeaderText="Folio">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'></asp:Label>
|
||||||
<asp:Label runat="server" Text='<%# Eval("CveSolicitud")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="No CFDI">
|
||||||
<asp:TemplateField HeaderText="Fecha Inicio">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label ID="lblobservaciones" runat="server" Text='<%# Eval("numeroCFDIs")%>'></asp:Label>
|
||||||
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Observaciones">
|
||||||
<asp:TemplateField HeaderText="Fecha Fin">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label ID="lblobservaciones" CssClass="truncate" ItemStyle-Width="200px" ControlStyle-Width="200px" data-toggle="tooltip" data-placement="top" title='<%# Eval("Observaciones")%>' runat="server" Text='<%# Eval("Observaciones")%>'></asp:Label>
|
||||||
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Fecha solicitud">
|
||||||
<asp:TemplateField HeaderText="No CFDI">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy HH:mm}")%>'></asp:Label>
|
||||||
<asp:Label ID="lblobservaciones" runat="server" Text='<%# Eval("numeroCFDIs")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Solicitó">
|
||||||
<asp:TemplateField HeaderText="Observaciones">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:Label runat="server" CssClass="truncate" ItemStyle-Width="150px" ControlStyle-Width="150px" data-toggle="tooltip" data-placement="top" title='<%# Eval("UsuarioIng")%>' Text='<%# Eval("UsuarioIng")%>'></asp:Label>
|
||||||
<asp:Label ID="lblobservaciones" CssClass="truncate" ItemStyle-Width="200px" ControlStyle-Width="200px" data-toggle="tooltip" data-placement="top" title='<%# Eval("Observaciones")%>' runat="server" Text='<%# Eval("Observaciones")%>'></asp:Label>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
</Columns>
|
||||||
<asp:TemplateField HeaderText="Fecha solicitud">
|
</asp:GridView>
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy HH:mm}")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Solicitó">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" CssClass="truncate" ItemStyle-Width="150px" ControlStyle-Width="150px" data-toggle="tooltip" data-placement="top" title='<%# Eval("UsuarioIng")%>' Text='<%# Eval("UsuarioIng")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
</ajax:TabContainer>
|
</ajax:TabContainer>
|
||||||
|
|||||||
@@ -462,19 +462,25 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%--25--%>
|
<%--25--%>
|
||||||
|
<asp:TemplateField Visible="false">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtLiqCol9" Width="55px" runat="server" Style="text-align: right;"></asp:TextBox>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<%--26--%>
|
||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtLiqColT" Width="55px" runat="server" Font-Bold="true" Style="text-align: right;" onkeypress="return disablekeys();"></asp:TextBox>
|
<asp:TextBox ID="TxtLiqColT" Width="55px" runat="server" Font-Bold="true" Style="text-align: right;" onkeypress="return disablekeys();"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%--26--%>
|
<%--27--%>
|
||||||
<asp:TemplateField Visible="false" HeaderText="Anticipo" ItemStyle-Width="120px">
|
<asp:TemplateField Visible="false" HeaderText="Anticipo" ItemStyle-Width="120px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtAmort" Width="50px" runat="server" Style="text-align: right;" ></asp:TextBox>
|
<asp:TextBox ID="TxtAmort" Width="50px" runat="server" Style="text-align: right;" ></asp:TextBox>
|
||||||
<asp:DropDownList ID="DdlAnti" runat="server" Width="40px" DataTextField="RazonSocial" DataValueField="CveIE"></asp:DropDownList>
|
<asp:DropDownList ID="DdlAnti" runat="server" Width="40px" DataTextField="RazonSocial" DataValueField="CveIE"></asp:DropDownList>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%--27--%>
|
<%--28--%>
|
||||||
<asp:TemplateField Visible="false" HeaderText="Anticipo2" ItemStyle-Width="120px">
|
<asp:TemplateField Visible="false" HeaderText="Anticipo2" ItemStyle-Width="120px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtAmort2" Width="50px" runat="server" Style="text-align: right;" ></asp:TextBox>
|
<asp:TextBox ID="TxtAmort2" Width="50px" runat="server" Style="text-align: right;" ></asp:TextBox>
|
||||||
@@ -482,7 +488,7 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<%--28--%>
|
<%--29--%>
|
||||||
<asp:TemplateField >
|
<asp:TemplateField >
|
||||||
<HeaderTemplate>Auxiliar</HeaderTemplate>
|
<HeaderTemplate>Auxiliar</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -490,7 +496,7 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<%--29--%>
|
<%--30--%>
|
||||||
<asp:TemplateField >
|
<asp:TemplateField >
|
||||||
<HeaderTemplate>Comp<br> Pago</HeaderTemplate>
|
<HeaderTemplate>Comp<br> Pago</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|||||||
@@ -391,7 +391,8 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
GvCxC.Columns(22).HeaderText = "Diversos" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol6).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
GvCxC.Columns(22).HeaderText = "Diversos" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol6).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
||||||
GvCxC.Columns(23).HeaderText = "Aduana<br/>USA" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol7).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
GvCxC.Columns(23).HeaderText = "Aduana<br/>USA" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol7).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
||||||
GvCxC.Columns(24).HeaderText = "Material<br/>Empaque" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol7).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
GvCxC.Columns(24).HeaderText = "Material<br/>Empaque" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol7).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
||||||
GvCxC.Columns(25).HeaderText = "Total<br/>Gastos"
|
GvCxC.Columns(25).HeaderText = "Semilla" 'GlobalDTClasificaciones(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacionCol7).FiltroPrimeroValor("Clasificacion").Substring(0, 12)
|
||||||
|
GvCxC.Columns(26).HeaderText = "Total<br/>Gastos"
|
||||||
|
|
||||||
DvLiquidacion1.Visible = True
|
DvLiquidacion1.Visible = True
|
||||||
DvLiquidacion2.Visible = True
|
DvLiquidacion2.Visible = True
|
||||||
@@ -549,6 +550,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
e.Row.FCTextBox("TxtLiqCol6").Visible = False
|
e.Row.FCTextBox("TxtLiqCol6").Visible = False
|
||||||
e.Row.FCTextBox("TxtLiqCol7").Visible = False
|
e.Row.FCTextBox("TxtLiqCol7").Visible = False
|
||||||
e.Row.FCTextBox("TxtLiqCol8").Visible = False
|
e.Row.FCTextBox("TxtLiqCol8").Visible = False
|
||||||
|
e.Row.FCTextBox("TxtLiqCol9").Visible = False
|
||||||
e.Row.FCTextBox("TxtLiqColT").Visible = False
|
e.Row.FCTextBox("TxtLiqColT").Visible = False
|
||||||
e.Row.FCTextBox("TxtAmort").Visible = False
|
e.Row.FCTextBox("TxtAmort").Visible = False
|
||||||
e.Row.FCTextBox("TxtAmort2").Visible = False
|
e.Row.FCTextBox("TxtAmort2").Visible = False
|
||||||
@@ -638,6 +640,8 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
e.Row.FCTextBox("TxtLiqCol6").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
e.Row.FCTextBox("TxtLiqCol6").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
||||||
e.Row.FCTextBox("TxtLiqCol7").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
e.Row.FCTextBox("TxtLiqCol7").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
||||||
e.Row.FCTextBox("TxtLiqCol8").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
e.Row.FCTextBox("TxtLiqCol8").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
||||||
|
e.Row.FCTextBox("TxtLiqCol9").Attributes.Add("class", $"ClsSelLiq ClsSelLiqVenta{e.Row.DBCampo("CveVenta")}")
|
||||||
|
|
||||||
e.Row.FCTextBox("TxtLiqColT").Attributes.Add("class", $"ClsSelLiqVentaTotal{e.Row.DBCampo("CveVenta")}")
|
e.Row.FCTextBox("TxtLiqColT").Attributes.Add("class", $"ClsSelLiqVentaTotal{e.Row.DBCampo("CveVenta")}")
|
||||||
e.Row.FCTextBox("TxtAmort").Attributes.Add("class", $"ClsSelLiqAnt")
|
e.Row.FCTextBox("TxtAmort").Attributes.Add("class", $"ClsSelLiqAnt")
|
||||||
e.Row.FCTextBox("TxtAmort2").Attributes.Add("class", $"ClsSelLiqAnt")
|
e.Row.FCTextBox("TxtAmort2").Attributes.Add("class", $"ClsSelLiqAnt")
|
||||||
@@ -650,6 +654,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
e.Row.FCTextBox("TxtLiqCol6").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
e.Row.FCTextBox("TxtLiqCol6").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
||||||
e.Row.FCTextBox("TxtLiqCol7").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
e.Row.FCTextBox("TxtLiqCol7").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
||||||
e.Row.FCTextBox("TxtLiqCol8").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
e.Row.FCTextBox("TxtLiqCol8").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
||||||
|
e.Row.FCTextBox("TxtLiqCol9").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
||||||
e.Row.FCTextBox("TxtAmort").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
e.Row.FCTextBox("TxtAmort").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
||||||
e.Row.FCTextBox("TxtAmort2").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
e.Row.FCTextBox("TxtAmort2").Attributes.Add("onkeyup", $"SumaLiq(this,{e.Row.DBCampo("CveVenta")},{CveMonedaFiltro},{ moneda})")
|
||||||
|
|
||||||
@@ -1005,6 +1010,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Dim ImporteLiq6 As Decimal = gvr.FCTextBox("TxtLiqCol6").Text.ToDecimal
|
Dim ImporteLiq6 As Decimal = gvr.FCTextBox("TxtLiqCol6").Text.ToDecimal
|
||||||
Dim ImporteLiq7 As Decimal = gvr.FCTextBox("TxtLiqCol7").Text.ToDecimal
|
Dim ImporteLiq7 As Decimal = gvr.FCTextBox("TxtLiqCol7").Text.ToDecimal
|
||||||
Dim ImporteLiq8 As Decimal = gvr.FCTextBox("TxtLiqCol8").Text.ToDecimal
|
Dim ImporteLiq8 As Decimal = gvr.FCTextBox("TxtLiqCol8").Text.ToDecimal
|
||||||
|
Dim ImporteLiq9 As Decimal = gvr.FCTextBox("TxtLiqCol9").Text.ToDecimal
|
||||||
|
|
||||||
Dim CveClasificacionCol1 As Integer = 21514 'comisiones sobre venta
|
Dim CveClasificacionCol1 As Integer = 21514 'comisiones sobre venta
|
||||||
Dim CveClasificacionCol2 As Integer = 21916 ' manejo
|
Dim CveClasificacionCol2 As Integer = 21916 ' manejo
|
||||||
@@ -1014,6 +1020,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Dim CveClasificacionCol6 As Integer = 21920 ' diveros
|
Dim CveClasificacionCol6 As Integer = 21920 ' diveros
|
||||||
Dim CveClasificacionCol7 As Integer = 21919 'gastos aduanales usa
|
Dim CveClasificacionCol7 As Integer = 21919 'gastos aduanales usa
|
||||||
Dim CveClasificacionCol8 As Integer = 21211 'material Empaque
|
Dim CveClasificacionCol8 As Integer = 21211 'material Empaque
|
||||||
|
Dim CveClasificacionCol9 As Integer = 21207 'Semilla
|
||||||
|
|
||||||
Dim CveSubProyectoLiquidacion As Integer = gvr.DataKey("CveSubProyecto").ToEntero
|
Dim CveSubProyectoLiquidacion As Integer = gvr.DataKey("CveSubProyecto").ToEntero
|
||||||
Dim CveConceptoLiquidacion As Integer = 51
|
Dim CveConceptoLiquidacion As Integer = 51
|
||||||
@@ -1068,6 +1075,13 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If ImporteLiq9 <> 0 Then
|
||||||
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteLiq9, gvr.DataKey("SerieFolio"), CveConceptoLiquidacion, ConceptoPartida, Now, -1, -1, CveIE, gvr.DataKey("CveVenta").ToEntero, -1, CveSubProyectoLiquidacion, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=ImporteLiq9 * tipoCambioPago, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=0, CveClasificacion:=CveClasificacionCol9, ImporteME:=If(CveMoneda > 1, ImporteLiq9, 0), CveTipoGasto:=gvr.FCDropDownList("DdlTG").SelectedValue.ToEntero) Then
|
||||||
|
MsgError = "No se pudo insertar la póliza"
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If gvr.FCDropDownList("DdlAnti").SelectedValue.ToEntero > 0 Then
|
If gvr.FCDropDownList("DdlAnti").SelectedValue.ToEntero > 0 Then
|
||||||
Dim TCP As Decimal = 0
|
Dim TCP As Decimal = 0
|
||||||
Dim FolioPago As String = " "
|
Dim FolioPago As String = " "
|
||||||
@@ -2900,11 +2914,12 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
GvCxC.Columns(23).Visible = True
|
GvCxC.Columns(23).Visible = True
|
||||||
GvCxC.Columns(24).Visible = True
|
GvCxC.Columns(24).Visible = True
|
||||||
GvCxC.Columns(25).Visible = True
|
GvCxC.Columns(25).Visible = True
|
||||||
GvCxC.Columns(26).Visible = True 'anticipos
|
GvCxC.Columns(26).Visible = True
|
||||||
GvCxC.Columns(27).Visible = True 'anticipos2
|
GvCxC.Columns(27).Visible = True 'anticipos
|
||||||
|
GvCxC.Columns(28).Visible = True 'anticipos2
|
||||||
|
|
||||||
GvCxC.Columns(28).Visible = False
|
|
||||||
GvCxC.Columns(29).Visible = False
|
GvCxC.Columns(29).Visible = False
|
||||||
|
GvCxC.Columns(30).Visible = False
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -2924,11 +2939,12 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
GvCxC.Columns(23).Visible = False
|
GvCxC.Columns(23).Visible = False
|
||||||
GvCxC.Columns(24).Visible = False
|
GvCxC.Columns(24).Visible = False
|
||||||
GvCxC.Columns(25).Visible = False
|
GvCxC.Columns(25).Visible = False
|
||||||
GvCxC.Columns(26).Visible = False 'anticipos
|
GvCxC.Columns(26).Visible = False
|
||||||
GvCxC.Columns(27).Visible = False 'anticipos2
|
GvCxC.Columns(27).Visible = False 'anticipos
|
||||||
|
GvCxC.Columns(28).Visible = False 'anticipos2
|
||||||
|
|
||||||
GvCxC.Columns(28).Visible = True
|
|
||||||
GvCxC.Columns(29).Visible = True
|
GvCxC.Columns(29).Visible = True
|
||||||
|
GvCxC.Columns(30).Visible = True
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -957,7 +957,7 @@ Partial Class Ventas_RepVentas
|
|||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|
||||||
|
|
||||||
DTDataos.ExportToExcel("RepCartasPorte.xls")
|
DTDataos.ExportToExcel("RepCartasPorte")
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -6982,10 +6982,10 @@ Partial Class Ventas
|
|||||||
Dim OpcionMsg As String = String.Format("El Cliente se encuentra bloqueado por la siguiente razón: <br> <br> {0}", Vta.SerieVenta)
|
Dim OpcionMsg As String = String.Format("El Cliente se encuentra bloqueado por la siguiente razón: <br> <br> {0}", Vta.SerieVenta)
|
||||||
Vta.Dispose()
|
Vta.Dispose()
|
||||||
If Opcion > 0 Then
|
If Opcion > 0 Then
|
||||||
If Opcion = 1 Then
|
'If Opcion = 1 Then
|
||||||
BtnEmitirImprimir.Visible = False
|
' BtnEmitirImprimir.Visible = False
|
||||||
BtnsFacturar.Visible = False
|
' BtnsFacturar.Visible = False
|
||||||
End If
|
'End If
|
||||||
If Alertas Then Alert(OpcionMsg, TipoMensaje.MsgAdvertencia)
|
If Alertas Then Alert(OpcionMsg, TipoMensaje.MsgAdvertencia)
|
||||||
Else
|
Else
|
||||||
If Alertas Then Alert("El cliente tiene su límite de crédito agotado.", TipoMensaje.MsgAdvertencia)
|
If Alertas Then Alert("El cliente tiene su límite de crédito agotado.", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -7011,6 +7011,7 @@ Partial Class Ventas
|
|||||||
LnkPedido2SinFacturar.Visible = False
|
LnkPedido2SinFacturar.Visible = False
|
||||||
LnkCotizaciones.Visible = False
|
LnkCotizaciones.Visible = False
|
||||||
LnkOCs.Visible = False
|
LnkOCs.Visible = False
|
||||||
|
|
||||||
Else
|
Else
|
||||||
'VERIFICAR LIMITE DE CREDITO
|
'VERIFICAR LIMITE DE CREDITO
|
||||||
If DdlTipoComprobante.SelectedValue = "Cot" AndAlso CveVenta > 0 AndAlso RBLPago.SelectedValue = "1" Then
|
If DdlTipoComprobante.SelectedValue = "Cot" AndAlso CveVenta > 0 AndAlso RBLPago.SelectedValue = "1" Then
|
||||||
@@ -19612,7 +19613,7 @@ Partial Class Ventas
|
|||||||
AplicaMovimientoDetalleEntrada = True
|
AplicaMovimientoDetalleEntrada = True
|
||||||
Else
|
Else
|
||||||
'Le damos salida de apartado por traspaso
|
'Le damos salida de apartado por traspaso
|
||||||
CveMovimientoSalidaPorTraspaso = GenerarMovimientoAlmacen(ObjInventario, MovDetalle, CveAlmacenSalida, 8, CveMoneda, CveRemision, AplicaMovimientoDetalleEntrada:=AplicaMovimientoDetalleEntrada)
|
CveMovimientoSalidaPorTraspaso = GenerarMovimientoAlmacen(ObjInventario, MovDetalle, CveAlmacenSalida, 8, CveMoneda, CveRemision, AplicaMovimientoDetalleEntrada:=AplicaMovimientoDetalleEntrada, ObjConta:=ObjConta)
|
||||||
|
|
||||||
If Not CveMovimientoSalidaPorTraspaso > 0 Then
|
If Not CveMovimientoSalidaPorTraspaso > 0 Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
@@ -19621,7 +19622,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'Le damos entrada al general por traspaso
|
'Le damos entrada al general por traspaso
|
||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
GeneroMovimientoAlmacen = GenerarMovimientoAlmacen(ObjInventario, MovDetalle, CveAlmacenEntrada, 9, CveMoneda, CveRemision, CveMovimientoRelacionado:=CveMovimientoSalidaPorTraspaso, AplicaMovimientoDetalleEntrada:=AplicaMovimientoDetalleEntrada) > 0
|
GeneroMovimientoAlmacen = GenerarMovimientoAlmacen(ObjInventario, MovDetalle, CveAlmacenEntrada, 9, CveMoneda, CveRemision, CveMovimientoRelacionado:=CveMovimientoSalidaPorTraspaso, AplicaMovimientoDetalleEntrada:=AplicaMovimientoDetalleEntrada, ObjConta:=ObjConta) > 0
|
||||||
|
|
||||||
If Not GeneroMovimientoAlmacen Then
|
If Not GeneroMovimientoAlmacen Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
@@ -19909,6 +19910,13 @@ Partial Class Ventas
|
|||||||
Dim Cont As Integer = 1
|
Dim Cont As Integer = 1
|
||||||
Dim TotalCosto As Decimal = DtCostos.SUMD("Total").RoundSQL
|
Dim TotalCosto As Decimal = DtCostos.SUMD("Total").RoundSQL
|
||||||
|
|
||||||
|
Dim TipoMovto69 As Boolean = False
|
||||||
|
|
||||||
|
'SI ES MOVIMIENTO DE ENTRADA CAMBIAR LA NATURALEZA DEL MOVIMIENTO
|
||||||
|
If ConceptoEntrada.Contiene(9) Then
|
||||||
|
TipoMovto69 = True
|
||||||
|
End If
|
||||||
|
|
||||||
For Each RowInv As DataRow In DtCostosDistinct.Rows
|
For Each RowInv As DataRow In DtCostosDistinct.Rows
|
||||||
ValorInventario = DtCostos.SUMD("Total", String.Format("CveClasificacion = {0}", RowInv("CveClasificacion"))).RoundSQL
|
ValorInventario = DtCostos.SUMD("Total", String.Format("CveClasificacion = {0}", RowInv("CveClasificacion"))).RoundSQL
|
||||||
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
||||||
@@ -19921,13 +19929,14 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Try
|
Try
|
||||||
'If ValorInventario <> 0 Then
|
'If ValorInventario <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, ValorInventario, ValorInventario, 69, ObjFactura.SerieFolio, ObjFactura.SerieFolio, IdCtaContable, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoInventario, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovto69, ValorInventario, ValorInventario, 69, ObjFactura.SerieFolio, ObjFactura.SerieFolio, IdCtaContable, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoInventario, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
'End If
|
'End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
|
ModExtensiones.GuardaLog("Error inesperado (15147)." + ex.ToString())
|
||||||
Alert("Error inesperado (15147). Por favor comuniquese con atención SIG.", TipoMensaje.ToastError)
|
Alert("Error inesperado (15147). Por favor comuniquese con atención SIG.", TipoMensaje.ToastError)
|
||||||
End Try
|
End Try
|
||||||
Cont += 1
|
Cont += 1
|
||||||
@@ -19935,7 +19944,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacen)).ToEntero()
|
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacen)).ToEntero()
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, TotalCosto, TotalCosto, 68, ObjFactura.SerieFolio, ObjFactura.SerieFolio, IdCtaContable, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveMovimientoAlmacen:=CveMovimientoInventario, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovto69, TotalCosto, TotalCosto, 68, ObjFactura.SerieFolio, ObjFactura.SerieFolio, IdCtaContable, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveMovimientoAlmacen:=CveMovimientoInventario, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user