This commit is contained in:
@@ -87,7 +87,7 @@ Public Class ClsClientes
|
|||||||
Public Property Codigo As String
|
Public Property Codigo As String
|
||||||
Public Property LimiteCredito As Double
|
Public Property LimiteCredito As Double
|
||||||
'Public Property NumCtaPago As String
|
'Public Property NumCtaPago As String
|
||||||
'Public Property CveMetodoPago As Integer
|
Public Property CveMetodoPago As Integer
|
||||||
Public Property AplicaFEMSA As Boolean
|
Public Property AplicaFEMSA As Boolean
|
||||||
Public Property FEMSA_NumSociedad As String
|
Public Property FEMSA_NumSociedad As String
|
||||||
Public Property FEMSA_NumProveedor As String
|
Public Property FEMSA_NumProveedor As String
|
||||||
|
|||||||
@@ -2619,13 +2619,12 @@ Public Class ClsGenerales
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "SAT PRODUCTOS SERVICIOS Y UNIDAD DE MEDIDA"
|
#Region "SAT PRODUCTOS SERVICIOS Y UNIDAD DE MEDIDA"
|
||||||
Public Function GetSATProductosServicios() As Boolean
|
Public Function GetSATProductosServicios(Optional SATClaveProductoServicio As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Gral_SAT_ProductosServiciosGet")
|
DataAdapter("PA_Gral_SAT_ProductosServiciosGet")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@SATClaveProductoServicio", SqlDbType.Int).Value = SATClaveProductoServicio
|
||||||
|
|
||||||
End With
|
End With
|
||||||
'SqlTypes.SqlDateTime.Null
|
'SqlTypes.SqlDateTime.Null
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -130,7 +130,8 @@ Public Class ClsNominas
|
|||||||
.CommandText = pStrSQL
|
.CommandText = pStrSQL
|
||||||
.CommandType = TipoComando
|
.CommandType = TipoComando
|
||||||
End With
|
End With
|
||||||
Data = New DataTable
|
Data = New DataTable()
|
||||||
|
DTSet = New DataSet()
|
||||||
If SqlTransacc IsNot Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
|
If SqlTransacc IsNot Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
|
||||||
End Sub
|
End Sub
|
||||||
#Region "Conexiones"
|
#Region "Conexiones"
|
||||||
@@ -311,7 +312,7 @@ Public Class ClsNominas
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetCalculoAguinaldo(ejercicio As Int32, cveEmpresa As Int32, importe As Double, CveTipoPeriodo As Integer, CvePeriodo As Integer) As Boolean
|
Public Function GetCalculoAguinaldo(ejercicio As Int32, cveEmpresa As Int32, importe As Double, CveTipoPeriodo As Integer, CvePeriodo As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_NomCalcularAguinaldo", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_CalcularAguinaldo", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
||||||
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
||||||
@@ -327,24 +328,28 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function Autorizaperiodoconta(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
Public Function RegistraProvision(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_Nom_Autorizaperiodoconta", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_RegistraProvision", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(DTSet)
|
||||||
|
Data = New DataTable
|
||||||
|
If DTSet.Tables.Count > 0 Then
|
||||||
|
Data = DTSet.Tables(0)
|
||||||
|
End If
|
||||||
retorno = True
|
retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al autorizar periodo.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al registrar la provisión de nomina.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetDispersiondenomina(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
Public Function GetDispersionnomina(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_PA_NomDispersiondenomina", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_Dispersionnomina", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
@@ -359,7 +364,7 @@ Public Class ClsNominas
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetCalculoUtilidades(ejercicio As Int32, cveEmpresa As Int32, importe As Double, importeA As Double) As Boolean
|
Public Function GetCalculoUtilidades(ejercicio As Int32, cveEmpresa As Int32, importe As Double, importeA As Double) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_NomCalcularUtilidades", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_CalcularUtilidades", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
||||||
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
||||||
@@ -2549,7 +2554,7 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddMovtoPermanente(cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean) As Boolean
|
Public Function AddMovtoPermanente(cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean, CveCuenta As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_AddMovtoPermanente", CommandType.StoredProcedure)
|
DataAdapter("PA_AddMovtoPermanente", CommandType.StoredProcedure)
|
||||||
|
|
||||||
@@ -2563,20 +2568,21 @@ Public Class ClsNominas
|
|||||||
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
||||||
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
||||||
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
||||||
|
.Add("@CveCuenta", SqlDbType.Int).Value = (CveCuenta)
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = True
|
||||||
Catch sqEx As SqlException
|
Catch sqEx As SqlException
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al agregar los movimientos permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al agregar los movimientos permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpMovtoPermanente(cveMovtoPermanente As Int32, cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean) As Boolean
|
Public Function UpMovtoPermanente(cveMovtoPermanente As Int32, cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean, CveCuenta As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_UpMovtoPermanente", CommandType.StoredProcedure)
|
DataAdapter("PA_UpMovtoPermanente", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2590,16 +2596,21 @@ Public Class ClsNominas
|
|||||||
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
||||||
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
||||||
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
||||||
|
.Add("@CveCuenta", SqlDbType.Int).Value = (CveCuenta)
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = True
|
||||||
Catch sqEx As SqlException
|
Catch sqEx As SqlException
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
If (sqEx.Message.Contains("FK_Conta_CuentasAsignaciones_Conta_ConceptosContables")) Then
|
||||||
|
OnError("Es necesario asignar el concepto contable al concepto de nomina para poder realizar la vinculacion de la cuenta.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
Else
|
||||||
|
OnError("Ocurrió un error al actualizar los movimientos permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al actualizar los movimientos permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
@@ -293,19 +293,28 @@ Public Class ClsPaginas
|
|||||||
Application("Directorio") = value
|
Application("Directorio") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTPSATPS() As DataTable
|
Public Shared ReadOnly Property GlobalDTPSATPS(SATClaveProductoServicio As String) As DataTable
|
||||||
Get
|
Get
|
||||||
If Application("GlobalDTPSATPS") Is Nothing Then
|
'If Application("GlobalDTPSATPS") Is Nothing Then
|
||||||
Dim ObjGrales As New ClsGenerales
|
' Dim ObjGrales As New ClsGenerales
|
||||||
If ObjGrales.GetSATProductosServicios Then Application("GlobalDTPSATPS") = ObjGrales.DtResultados.AsEnumerable() Else Application("GlobalDTPSATPS") = Nothing
|
' If ObjGrales.GetSATProductosServicios Then Application("GlobalDTPSATPS") = ObjGrales.DtResultados.AsEnumerable() Else Application("GlobalDTPSATPS") = Nothing
|
||||||
ObjGrales.Dispose()
|
' ObjGrales.Dispose()
|
||||||
|
'End If
|
||||||
|
|
||||||
|
'GlobalDTPSATPS = DirectCast(Application("GlobalDTPSATPS"), EnumerableRowCollection(Of DataRow)).CopyToDataTable
|
||||||
|
|
||||||
|
Dim ObjGrales As New ClsGenerales
|
||||||
|
If ObjGrales.GetSATProductosServicios(SATClaveProductoServicio) Then
|
||||||
|
GlobalDTPSATPS = ObjGrales.DtResultados
|
||||||
|
Else
|
||||||
|
GlobalDTPSATPS = Nothing
|
||||||
End If
|
End If
|
||||||
|
ObjGrales.Dispose()
|
||||||
|
|
||||||
GlobalDTPSATPS = DirectCast(Application("GlobalDTPSATPS"), EnumerableRowCollection(Of DataRow)).CopyToDataTable
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
'Set(value As DataTable)
|
||||||
Application("GlobalDTPSATPS") = value
|
' Application("GlobalDTPSATPS") = value
|
||||||
End Set
|
'End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#Region "GLOBALES DE SAT COMERCIO EXTERIOR"
|
#Region "GLOBALES DE SAT COMERCIO EXTERIOR"
|
||||||
@@ -638,7 +647,7 @@ Public Class ClsPaginas
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
Property GlobalDTClasificaciones(Optional CveEmpresa As Integer = -1, Optional CveCategoria As Integer = -1, Optional UsoClasificacion As Integer = -1, Optional CveClasificacion As Integer = -1) As DataTable
|
Property GlobalDTClasificaciones(Optional CveEmpresa As Integer = -1, Optional CveCategoria As Integer = -1, Optional UsoClasificacion As Integer = -1, Optional CveClasificacion As Integer = -1, Optional Estatus As Integer = 1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = String.Format("GlobalDTClasificaciones-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTClasificaciones-{0}", CveEmpresa)
|
||||||
'sino existe, recarga los datos
|
'sino existe, recarga los datos
|
||||||
@@ -653,6 +662,7 @@ Public Class ClsPaginas
|
|||||||
If CveCategoria <> -1 Then Str.AppendFormat(" AND CveCategoria = {0}", CveCategoria)
|
If CveCategoria <> -1 Then Str.AppendFormat(" AND CveCategoria = {0}", CveCategoria)
|
||||||
If UsoClasificacion <> -1 Then Str.AppendFormat(" AND UsoClasificacion IN ({0},3) ", UsoClasificacion)
|
If UsoClasificacion <> -1 Then Str.AppendFormat(" AND UsoClasificacion IN ({0},3) ", UsoClasificacion)
|
||||||
If CveClasificacion <> -1 Then Str.AppendFormat(" AND CveClasificacion = {0}", CveClasificacion)
|
If CveClasificacion <> -1 Then Str.AppendFormat(" AND CveClasificacion = {0}", CveClasificacion)
|
||||||
|
If Estatus <> -1 Then Str.AppendFormat(" AND Estatus = '{0}'", If(Estatus = 1, "Activo", "Inactivo"))
|
||||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), Str.ToString(), "", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), Str.ToString(), "", DataViewRowState.CurrentRows)
|
||||||
GlobalDTClasificaciones = Dv.ToTable
|
GlobalDTClasificaciones = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
@@ -3066,8 +3076,6 @@ Public Class ClsPaginas
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Property GlobalDTContaConceptosContables(CvePlantillaPoliza As Integer) As DataTable
|
Property GlobalDTContaConceptosContables(CvePlantillaPoliza As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
If CvePlantillaPoliza <> -1 Then
|
If CvePlantillaPoliza <> -1 Then
|
||||||
@@ -3840,6 +3848,7 @@ Public Class ClsPaginas
|
|||||||
If Application("GlobalSIGAppPaginas") Is Nothing Then
|
If Application("GlobalSIGAppPaginas") Is Nothing Then
|
||||||
PaginaDict = New System.Collections.Hashtable
|
PaginaDict = New System.Collections.Hashtable
|
||||||
|
|
||||||
|
|
||||||
PaginaDict.Add("/Nomina/ISRCalculoAnual.aspx".ToUpper(), 918)
|
PaginaDict.Add("/Nomina/ISRCalculoAnual.aspx".ToUpper(), 918)
|
||||||
PaginaDict.Add("/Nomina/Acumulados.aspx".ToUpper(), 916)
|
PaginaDict.Add("/Nomina/Acumulados.aspx".ToUpper(), 916)
|
||||||
PaginaDict.Add("/RH/CalculoSBC.aspx".ToUpper(), 915)
|
PaginaDict.Add("/RH/CalculoSBC.aspx".ToUpper(), 915)
|
||||||
@@ -4610,6 +4619,7 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/GPS/RepGastos.aspx".ToUpper(), 685)
|
PaginaDict.Add("/GPS/RepGastos.aspx".ToUpper(), 685)
|
||||||
PaginaDict.Add("/GPS/RecursoConfiableTracking.aspx".ToUpper(), 692)
|
PaginaDict.Add("/GPS/RecursoConfiableTracking.aspx".ToUpper(), 692)
|
||||||
PaginaDict.Add("/GPS/KimberlyClarkTracking.aspx".ToUpper(), -1)
|
PaginaDict.Add("/GPS/KimberlyClarkTracking.aspx".ToUpper(), -1)
|
||||||
|
PaginaDict.Add("/GPS/RepUnidades.aspx".ToUpper(), 780)
|
||||||
#End Region
|
#End Region
|
||||||
'INVENTARIOS
|
'INVENTARIOS
|
||||||
#Region "Inventarios"
|
#Region "Inventarios"
|
||||||
@@ -5943,6 +5953,19 @@ Public Class ClsPaginas
|
|||||||
Dim TipoDocumentoRef As String = ""
|
Dim TipoDocumentoRef As String = ""
|
||||||
Dim AplicaPagare As String = "1"
|
Dim AplicaPagare As String = "1"
|
||||||
|
|
||||||
|
Dim RFCReceptor As String = ""
|
||||||
|
|
||||||
|
If String.IsNullOrEmpty(Vta.RFCReceptor) Then
|
||||||
|
RFCReceptor = Vta.Cliente.RFC
|
||||||
|
If Vta.FacturarSucursal Then
|
||||||
|
If Vta.ClienteSucursal IsNot Nothing Then
|
||||||
|
RFCReceptor = Vta.ClienteSucursal.RFC
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
RFCReceptor = Vta.RFCReceptor
|
||||||
|
End If
|
||||||
|
|
||||||
Dim RutaCBB As String = String.Format("{0}CBB\{1}.jpg", Ruta, Vta.SerieFolio)
|
Dim RutaCBB As String = String.Format("{0}CBB\{1}.jpg", Ruta, Vta.SerieFolio)
|
||||||
Dim ImagenCBB As New System.IO.FileInfo(RutaCBB)
|
Dim ImagenCBB As New System.IO.FileInfo(RutaCBB)
|
||||||
Dim ImgCBB As String '= String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
Dim ImgCBB As String '= String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
||||||
@@ -6072,7 +6095,7 @@ Public Class ClsPaginas
|
|||||||
'Si no tiene CBB, SE GENERA
|
'Si no tiene CBB, SE GENERA
|
||||||
If Not ImagenCBB.Exists Then
|
If Not ImagenCBB.Exists Then
|
||||||
Dim CBB As New ClbNegBICFDv3_2.ClsNegCBBGenerar()
|
Dim CBB As New ClbNegBICFDv3_2.ClsNegCBBGenerar()
|
||||||
CBB.GenerarCBB(UsuarioActual.Empresa.RFC, Vta.Cliente.RFC, Vta.Total.ToString.ToDecimal, Vta.FolioFiscal, RutaCBB)
|
CBB.GenerarCBB(UsuarioActual.Empresa.RFC, RFCReceptor, Vta.Total.ToString.ToDecimal, Vta.FolioFiscal, RutaCBB)
|
||||||
End If
|
End If
|
||||||
ImgCBB = String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
ImgCBB = String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
||||||
|
|
||||||
@@ -6087,7 +6110,7 @@ Public Class ClsPaginas
|
|||||||
|
|
||||||
'CLIENTE
|
'CLIENTE
|
||||||
params.Add(New CrystalParametro("ClienteCodigo", Vta.Cliente.Codigo))
|
params.Add(New CrystalParametro("ClienteCodigo", Vta.Cliente.Codigo))
|
||||||
params.Add(New CrystalParametro("ClienteNombre", If(Vta.ClienteSucursal.ImprimeNombreSucursal = "True", If(Vta.CveClienteSucursal > 0, Vta.ClienteSucursal.Sucursal, Vta.Cliente.Nombre), If(Vta.AtencionA <> "" AndAlso Vta.TipoDocto.Contiene("Ing", "Rem") AndAlso Vta.Cliente.RFC = "XAXX010101000", $"{Vta.Cliente.Nombre}({Vta.AtencionA})", Vta.Cliente.Nombre))))
|
params.Add(New CrystalParametro("ClienteNombre", If(Vta.ClienteSucursal.ImprimeNombreSucursal = "True", If(Vta.CveClienteSucursal > 0, Vta.ClienteSucursal.Sucursal, Vta.Cliente.Nombre), If(Vta.AtencionA <> "" AndAlso Vta.TipoDocto.Contiene("Ing", "Rem") AndAlso RFCReceptor = "XAXX010101000", $"{Vta.Cliente.Nombre}({Vta.AtencionA})", Vta.Cliente.Nombre))))
|
||||||
params.Add(New CrystalParametro("ClienteDireccion", ClienteDireccion))
|
params.Add(New CrystalParametro("ClienteDireccion", ClienteDireccion))
|
||||||
params.Add(New CrystalParametro("ClienteLugar", ClienteLugar))
|
params.Add(New CrystalParametro("ClienteLugar", ClienteLugar))
|
||||||
|
|
||||||
@@ -6119,7 +6142,7 @@ Public Class ClsPaginas
|
|||||||
params.Add(New CrystalParametro("SelloSAT", Vta.SelloSAT))
|
params.Add(New CrystalParametro("SelloSAT", Vta.SelloSAT))
|
||||||
|
|
||||||
params.Add(New CrystalParametro("QR", ImgCBB))
|
params.Add(New CrystalParametro("QR", ImgCBB))
|
||||||
params.Add(New CrystalParametro("ClienteRFC", Vta.Cliente.RFC))
|
params.Add(New CrystalParametro("ClienteRFC", RFCReceptor))
|
||||||
params.Add(New CrystalParametro("FormaPago", Vta.FormaPagoText))
|
params.Add(New CrystalParametro("FormaPago", Vta.FormaPagoText))
|
||||||
params.Add(New CrystalParametro("Moneda", Vta.Moneda))
|
params.Add(New CrystalParametro("Moneda", Vta.Moneda))
|
||||||
params.Add(New CrystalParametro("TipoCambio", Vta.TipoCambio.ToString))
|
params.Add(New CrystalParametro("TipoCambio", Vta.TipoCambio.ToString))
|
||||||
@@ -6454,7 +6477,18 @@ Public Class ClsPaginas
|
|||||||
Dim NombreArchivoDescarga As String = ""
|
Dim NombreArchivoDescarga As String = ""
|
||||||
Dim TipoDocumento As String = ""
|
Dim TipoDocumento As String = ""
|
||||||
Dim TipoDocumentoRef As String = ""
|
Dim TipoDocumentoRef As String = ""
|
||||||
|
Dim RFCReceptor As String = ""
|
||||||
|
|
||||||
|
If String.IsNullOrEmpty(Vta.RFCReceptor) Then
|
||||||
|
RFCReceptor = Vta.Cliente.RFC
|
||||||
|
If Vta.FacturarSucursal Then
|
||||||
|
If Vta.ClienteSucursal IsNot Nothing Then
|
||||||
|
RFCReceptor = Vta.ClienteSucursal.RFC
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
RFCReceptor = Vta.RFCReceptor
|
||||||
|
End If
|
||||||
|
|
||||||
Dim RutaCBB As String = String.Format("{0}CBB\{1}.jpg", Ruta, Vta.SerieFolio)
|
Dim RutaCBB As String = String.Format("{0}CBB\{1}.jpg", Ruta, Vta.SerieFolio)
|
||||||
Dim ImagenCBB As New System.IO.FileInfo(RutaCBB)
|
Dim ImagenCBB As New System.IO.FileInfo(RutaCBB)
|
||||||
@@ -6609,7 +6643,7 @@ Public Class ClsPaginas
|
|||||||
'Si no tiene CBB, SE GENERA
|
'Si no tiene CBB, SE GENERA
|
||||||
If Not ImagenCBB.Exists AndAlso Vta.CveCliente.ToEntero > 0 Then
|
If Not ImagenCBB.Exists AndAlso Vta.CveCliente.ToEntero > 0 Then
|
||||||
Dim CBB As New ClbNegBICFDv3_2.ClsNegCBBGenerar()
|
Dim CBB As New ClbNegBICFDv3_2.ClsNegCBBGenerar()
|
||||||
CBB.GenerarCBB(UsuarioActual.Empresa.RFC, Vta.Cliente.RFC, Vta.Total.ToString.ToDecimal, Vta.FolioFiscal, RutaCBB)
|
CBB.GenerarCBB(UsuarioActual.Empresa.RFC, RFCReceptor, Vta.Total.ToString.ToDecimal, Vta.FolioFiscal, RutaCBB)
|
||||||
End If
|
End If
|
||||||
ImgCBB = String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
ImgCBB = String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
||||||
|
|
||||||
@@ -6630,14 +6664,14 @@ Public Class ClsPaginas
|
|||||||
params.Add(New ReportParameter("ClienteNombre", If(Vta.ClienteSucursal.ImprimeNombreSucursal = "True", If(Vta.CveClienteSucursal > 0, Vta.ClienteSucursal.Sucursal, Vta.Cliente.Nombre), If(Vta.AtencionA <> "" AndAlso Vta.TipoDocto.Contiene("Ing", "Rem") AndAlso Vta.Cliente.RFC = "XAXX010101000", $"{Vta.Cliente.Nombre}({Vta.AtencionA})", Vta.Cliente.Nombre))))
|
params.Add(New ReportParameter("ClienteNombre", If(Vta.ClienteSucursal.ImprimeNombreSucursal = "True", If(Vta.CveClienteSucursal > 0, Vta.ClienteSucursal.Sucursal, Vta.Cliente.Nombre), If(Vta.AtencionA <> "" AndAlso Vta.TipoDocto.Contiene("Ing", "Rem") AndAlso Vta.Cliente.RFC = "XAXX010101000", $"{Vta.Cliente.Nombre}({Vta.AtencionA})", Vta.Cliente.Nombre))))
|
||||||
params.Add(New ReportParameter("ClienteDireccion", ClienteDireccion))
|
params.Add(New ReportParameter("ClienteDireccion", ClienteDireccion))
|
||||||
params.Add(New ReportParameter("ClienteLugar", ClienteLugar))
|
params.Add(New ReportParameter("ClienteLugar", ClienteLugar))
|
||||||
params.Add(New ReportParameter("ClienteRFC", Vta.Cliente.RFC))
|
params.Add(New ReportParameter("ClienteRFC", RFCReceptor))
|
||||||
End If
|
End If
|
||||||
If Vta.CveEmpresaCRM.ToEntero > 0 Then
|
If Vta.CveEmpresaCRM.ToEntero > 0 Then
|
||||||
params.Add(New ReportParameter("ClienteCodigo", Vta.Cliente.Codigo))
|
params.Add(New ReportParameter("ClienteCodigo", Vta.Cliente.Codigo))
|
||||||
params.Add(New ReportParameter("ClienteNombre", Vta.Cliente.Nombre))
|
params.Add(New ReportParameter("ClienteNombre", Vta.Cliente.Nombre))
|
||||||
params.Add(New ReportParameter("ClienteDireccion", ClienteDireccion))
|
params.Add(New ReportParameter("ClienteDireccion", ClienteDireccion))
|
||||||
params.Add(New ReportParameter("ClienteLugar", ClienteLugar))
|
params.Add(New ReportParameter("ClienteLugar", ClienteLugar))
|
||||||
params.Add(New ReportParameter("ClienteRFC", Vta.Cliente.RFC))
|
params.Add(New ReportParameter("ClienteRFC", RFCReceptor))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'TOTALES
|
'TOTALES
|
||||||
|
|||||||
@@ -35,11 +35,33 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
context.Response.Close()
|
context.Response.Close()
|
||||||
context.Response.End()
|
context.Response.End()
|
||||||
Else
|
Else
|
||||||
context.Response.ContentType = "text/plain"
|
If context.Request("metodo").Contiene("Contabilizapoliza", "RevisaConexion") Then
|
||||||
|
context.Response.ContentType = "text/json"
|
||||||
|
Else
|
||||||
|
context.Response.ContentType = "text/plain"
|
||||||
|
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Select Case context.Request("metodo")
|
Select Case context.Request("metodo")
|
||||||
|
Case "Contabilizapoliza"
|
||||||
|
Dim CvePrePoliza As Integer = context.Request("CvePrePoliza").ToString().ToEntero()
|
||||||
|
Dim CveUsuario As Integer = context.Request("CveUsuario").ToString().ToEntero()
|
||||||
|
Dim CveEmpresa As Integer = context.Request("CveEmpresa").ToString().ToEntero()
|
||||||
|
GuardaLog(String.Format("?metodo=Contabilizapoliza&CvePrePoliza={0}&CveUsuario={1}&CveEmpresa ={2}", CvePrePoliza, CveUsuario, CveEmpresa))
|
||||||
|
ActualizaPrePoliza(context)
|
||||||
|
Dim obj As New ADSNetLibrary.SIGAPI.Models.ResponseModel(Of Object)()
|
||||||
|
obj.Result = DateTime.Now.ToString()
|
||||||
|
Dim retorno = JsonConvert.SerializeObject(obj).ToString()
|
||||||
|
context.Response.Write(retorno)
|
||||||
|
context.Response.StatusCode = 200
|
||||||
|
Case "RevisaConexion"
|
||||||
|
Dim obj As New ADSNetLibrary.SIGAPI.Models.ResponseModel(Of Object)()
|
||||||
|
obj.Result = DateTime.Now.ToString()
|
||||||
|
Dim retorno = JsonConvert.SerializeObject(obj).ToString()
|
||||||
|
context.Response.Write(retorno)
|
||||||
|
context.Response.StatusCode = 200
|
||||||
Case "getps"
|
Case "getps"
|
||||||
GETPS(context)
|
GETPS(context)
|
||||||
Case "getps2"
|
Case "getps2"
|
||||||
|
|||||||
BIN
BinJLC.zip
Normal file
BIN
BinJLC.zip
Normal file
Binary file not shown.
@@ -18225,12 +18225,12 @@ Partial Class Compras_Compras
|
|||||||
If Version = "3.3" And CveSATPS > 0 Then
|
If Version = "3.3" And CveSATPS > 0 Then
|
||||||
Dim DrPSSAT As DataRow = Nothing
|
Dim DrPSSAT As DataRow = Nothing
|
||||||
If CargaXml Then
|
If CargaXml Then
|
||||||
DrPSSAT = GlobalDTPSATPS().FiltroPrimero(String.Format("SATClavePS={0}", CveSATPS))
|
DrPSSAT = GlobalDTPSATPS("-1").FiltroPrimero(String.Format("SATClavePS={0}", CveSATPS))
|
||||||
'If GlobalDTPSATPS().FiltraParametros(String.Format("SATClavePS={0}", CveSATPS)).Rows.Count > 0 Then
|
'If GlobalDTPSATPS().FiltraParametros(String.Format("SATClavePS={0}", CveSATPS)).Rows.Count > 0 Then
|
||||||
' DrPSSAT = GlobalDTPSATPS().FiltraParametros(String.Format("SATClavePS={0}", CveSATPS)).Rows(0)
|
' DrPSSAT = GlobalDTPSATPS().FiltraParametros(String.Format("SATClavePS={0}", CveSATPS)).Rows(0)
|
||||||
'End If
|
'End If
|
||||||
Else
|
Else
|
||||||
DrPSSAT = GlobalDTPSATPS().FiltroPrimero(String.Format("SATClavePS={0}", CveSATPS))
|
DrPSSAT = GlobalDTPSATPS("-1").FiltroPrimero(String.Format("SATClavePS={0}", CveSATPS))
|
||||||
'If GlobalDTPSATPS().FiltraParametros(String.Format("CveSATPS={0}", CveSATPS)).Rows.Count > 0 Then
|
'If GlobalDTPSATPS().FiltraParametros(String.Format("CveSATPS={0}", CveSATPS)).Rows.Count > 0 Then
|
||||||
' DrPSSAT = GlobalDTPSATPS().FiltraParametros(String.Format("CveSATPS={0}", CveSATPS)).Rows(0)
|
' DrPSSAT = GlobalDTPSATPS().FiltraParametros(String.Format("CveSATPS={0}", CveSATPS)).Rows(0)
|
||||||
'End If
|
'End If
|
||||||
|
|||||||
@@ -857,9 +857,9 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
If CvePeriodo > 0 Then
|
If CvePeriodo > 0 Then
|
||||||
If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
|
'If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
|
||||||
MsgError = "No se pudo actualizar el periodo de la nómina"
|
' MsgError = "No se pudo actualizar el periodo de la nómina"
|
||||||
End If
|
'End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
|
If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpAccciones" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpAccciones" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkAutorizar" Visible="false" OnClick="LnkAutorizar_Click" runat="server"><i class="fa fa-thumbs-up" aria-hidden="true"></i>Autorizar</asp:LinkButton>
|
<asp:LinkButton ID="LnkAutorizar" Visible="false" OnClick="LnkAutorizar_Click" runat="server"><i class="fa fa-thumbs-up" aria-hidden="true"></i>Autorizar</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
@@ -220,13 +220,13 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="HypPDFSTimbrados" Visible="false" onclick="GETPDF(-1,0)" NavigateUrl="#" runat="server"><i class="fa fa-download" aria-hidden="true"></i>Recibos timbrados</asp:HyperLink>
|
<asp:HyperLink ID="HypPDFSTimbrados" Visible="false" onclick="GETPDF(-1,0)" NavigateUrl="#" runat="server"><i class="fa fa-download" aria-hidden="true"></i>Recibos timbrados</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkListaRaya" />
|
<asp:PostBackTrigger ControlID="LnkListaRaya" />
|
||||||
<asp:PostBackTrigger ControlID="LnkFormatoTabular" />
|
<asp:PostBackTrigger ControlID="LnkFormatoTabular" />
|
||||||
<asp:PostBackTrigger ControlID="LnkLayoutContable" />
|
<asp:PostBackTrigger ControlID="LnkLayoutContable" />
|
||||||
|
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
@@ -335,10 +335,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
|
|
||||||
<ajax:TabContainer ID="Tab" runat="server" Width="100%" AutoPostBack="True">
|
<ajax:TabContainer ID="Tab" runat="server" Width="100%" AutoPostBack="True">
|
||||||
<ajax:TabPanel ID="TabNominas" runat="server" HeaderText="Nominas">
|
<ajax:TabPanel ID="TabNominas" runat="server" HeaderText="Nominas">
|
||||||
@@ -552,14 +552,14 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
</ajax:TabContainer>
|
</ajax:TabContainer>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
|
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<div id="DModalModAsistencia" class="modal ADS fade" role="dialog">
|
<div id="DModalModAsistencia" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpModalAsistencia" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalAsistencia" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -617,7 +617,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -626,7 +626,7 @@
|
|||||||
<div id="ModalConceptos" class="modal ADS fade" role="dialog">
|
<div id="ModalConceptos" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalConceptos" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalConceptos" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">Sobre Recibo</h4>
|
<h4 class="modal-title">Sobre Recibo</h4>
|
||||||
@@ -779,7 +779,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Importe">
|
<asp:TemplateField HeaderText="Importe">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all;"></asp:Label>
|
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all;display: inline-block;" ></asp:Label>
|
||||||
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
||||||
<div style="display: inline-block; width: 29px;">
|
<div style="display: inline-block; width: 29px;">
|
||||||
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" 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 importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" 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 importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
@@ -1009,7 +1009,7 @@
|
|||||||
|
|
||||||
<asp:GridView ID="GVMovtoPermanente" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall " AutoGenerateColumns="False"
|
<asp:GridView ID="GVMovtoPermanente" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall " AutoGenerateColumns="False"
|
||||||
ShowHeader="false" EmptyDataText="No se encontraron Movimientos"
|
ShowHeader="false" EmptyDataText="No se encontraron Movimientos"
|
||||||
DataKeyNames="CveMovtoPermanente,CveConcepto,CvePersonal,Descripcion,TipoDescuento,Valor,VecesAplicar,MontoLimite,FechaInicioAplicacion,Estatus,FechaRegistro">
|
DataKeyNames="CveMovtoPermanente,CveConcepto,CveCuenta,CvePersonal,Descripcion,TipoDescuento,Valor,VecesAplicar,MontoLimite,FechaInicioAplicacion,Estatus,FechaRegistro">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -1120,12 +1120,13 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
<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:Label runat="server" Text="Cuenta contable" AssociatedControlID="DdlCtaContable"></asp:Label>
|
||||||
<asp:DropDownList ID="DdlCtaContable" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="Id" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
<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>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
¿Activo?
|
<div style=" padding-top: 10px; padding-bottom: 14px; ">
|
||||||
<br />
|
¿Activo?
|
||||||
|
</div>
|
||||||
<asp:CheckBox ID="ChkEstatus" CssClass="chksino " Text=" " runat="server" />
|
<asp:CheckBox ID="ChkEstatus" CssClass="chksino " Text=" " runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
@@ -1579,16 +1580,16 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<%--<asp:PostBackTrigger ControlID="BtnImprimirsobrerecibo" />--%>
|
<%--<asp:PostBackTrigger ControlID="BtnImprimirsobrerecibo" />--%>
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="ModalUpConcepto" class="modal ADS fade" role="dialog">
|
<div id="ModalUpConcepto" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog " runat="server" ID="UPpanelModalUpConcepto" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog " runat="server" ID="UPpanelModalUpConcepto" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">Modificar o agregar concepto :
|
<h4 class="modal-title">Modificar o agregar concepto :
|
||||||
@@ -1629,13 +1630,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="ModalTablas" class="modal ADS fade" role="dialog">
|
<div id="ModalTablas" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalTablas" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalTablas" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
@@ -1880,13 +1881,13 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="ModalCalculoISR" class="modal ADS fade" role="dialog">
|
<div id="ModalCalculoISR" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpCalculoISR" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpCalculoISR" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
@@ -1989,13 +1990,13 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DModalNominas" class="modal ADS fade" role="dialog">
|
<div id="DModalNominas" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpCargarNomina" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpCargarNomina" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2096,16 +2097,16 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkFormato" />
|
<asp:PostBackTrigger ControlID="LnkFormato" />
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DModalCargaASistenciaMasiva" class="modal ADS fade" role="dialog">
|
<div id="DModalCargaASistenciaMasiva" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpModalAsistenciaMasiva" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalAsistenciaMasiva" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2141,12 +2142,12 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="DSimulador" class="modal ADS fade" role="dialog">
|
<div id="DSimulador" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpSimulador" class="modal-dialog modal-lg" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpSimulador" class="modal-dialog modal-lg" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2330,7 +2331,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -2346,7 +2347,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<asp:UpdatePanel ID="upperiodoreporte" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="upperiodoreporte" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
@@ -2355,7 +2356,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -2382,20 +2383,20 @@
|
|||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="TxtRpdFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:maskededitextender id="MaskedEditExtender3" runat="server" targetcontrolid="TxtRpdFechaInicio" mask="99/99/9999" masktype="Date" displaymoney="Left" acceptnegative="Left"></ajax:maskededitextender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="TxtRpdFechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender3" targetcontrolid="TxtRpdFechaInicio" popupposition="BottomRight" enabled="True" format="dd/MM/yyyy"></ajax:calendarextender>
|
||||||
<asp:RequiredFieldValidator ID="rfvRpdFechaInicio" runat="server" ControlToValidate="TxtRpdFechaInicio" 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="VGReporterepperde"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="rfvRpdFechaInicio" runat="server" ControlToValidate="TxtRpdFechaInicio" 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="VGReporterepperde"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="rfvRpdFechaInicio"></ajax:ValidatorCalloutExtender>
|
<ajax:validatorcalloutextender id="ValidatorCalloutExtender1" runat="server" highlightcssclass="vco" targetcontrolid="rfvRpdFechaInicio"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="TxtRpdFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:maskededitextender id="MaskedEditExtender5" runat="server" targetcontrolid="TxtRpdFechaFin" mask="99/99/9999" masktype="Date" displaymoney="Left" acceptnegative="Left"></ajax:maskededitextender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender4" TargetControlID="TxtRpdFechaFin" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender4" targetcontrolid="TxtRpdFechaFin" popupposition="BottomRight" enabled="True" format="dd/MM/yyyy"></ajax:calendarextender>
|
||||||
<asp:RequiredFieldValidator ID="rfvRpdFechaFin" runat="server" ControlToValidate="TxtRpdFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor ingréselo." ValidationGroup="VGReporterepperde"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="rfvRpdFechaFin" runat="server" ControlToValidate="TxtRpdFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor ingréselo." ValidationGroup="VGReporterepperde"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="rfvRpdFechaFin"></ajax:ValidatorCalloutExtender>
|
<ajax:validatorcalloutextender id="ValidatorCalloutExtender2" runat="server" highlightcssclass="vco" targetcontrolid="rfvRpdFechaFin"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2424,20 +2425,20 @@
|
|||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRIFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRIFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TxtRIFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:maskededitextender id="MaskedEditExtender1" runat="server" targetcontrolid="TxtRIFechaInicio" mask="99/99/9999" masktype="Date" displaymoney="Left" acceptnegative="Left"></ajax:maskededitextender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtRIFechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender1" targetcontrolid="TxtRIFechaInicio" popupposition="BottomRight" enabled="True" format="dd/MM/yyyy"></ajax:calendarextender>
|
||||||
<asp:RequiredFieldValidator ID="rfvRIFechaInicio" runat="server" ControlToValidate="TxtRIFechaInicio" 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="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="rfvRIFechaInicio" runat="server" ControlToValidate="TxtRIFechaInicio" 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="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VcorfvRIFechaInicio" runat="server" HighlightCssClass="vco" TargetControlID="rfvRIFechaInicio"></ajax:ValidatorCalloutExtender>
|
<ajax:validatorcalloutextender id="VcorfvRIFechaInicio" runat="server" highlightcssclass="vco" targetcontrolid="rfvRIFechaInicio"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRIFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRIFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtRIFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:maskededitextender id="MaskedEditExtender2" runat="server" targetcontrolid="TxtRIFechaFin" mask="99/99/9999" masktype="Date" displaymoney="Left" acceptnegative="Left"></ajax:maskededitextender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="TxtRIFechaFin" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender2" targetcontrolid="TxtRIFechaFin" popupposition="BottomRight" enabled="True" format="dd/MM/yyyy"></ajax:calendarextender>
|
||||||
<asp:RequiredFieldValidator ID="rfvRIFechaFin" runat="server" ControlToValidate="TxtRIFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor ingréselo." ValidationGroup="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="rfvRIFechaFin" runat="server" ControlToValidate="TxtRIFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor ingréselo." ValidationGroup="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VcorfvRIFechaFin" runat="server" HighlightCssClass="vco" TargetControlID="rfvRIFechaFin"></ajax:ValidatorCalloutExtender>
|
<ajax:validatorcalloutextender id="VcorfvRIFechaFin" runat="server" highlightcssclass="vco" targetcontrolid="rfvRIFechaFin"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2452,7 +2453,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="DmodalCompareSua" class="modal ADS fade" role="dialog">
|
<div id="DmodalCompareSua" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpArchivoSua" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpArchivoSua" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2792,15 +2793,15 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkDownExcelSua" />
|
<asp:PostBackTrigger ControlID="LnkDownExcelSua" />
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="DmodalGetSua" class="modal ADS fade" role="dialog">
|
<div id="DmodalGetSua" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpModalGetSUA" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalGetSUA" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2876,7 +2877,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<asp:TextBox ID="TxtCvePeriodo" CssClass="TxtCvePeriodo hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCvePeriodo" CssClass="TxtCvePeriodo hidden" runat="server"></asp:TextBox>
|
||||||
@@ -2884,13 +2885,13 @@
|
|||||||
<asp:Button ID="BtnGeneratepdf" CssClass="BtnGeneratepdf hidden" OnClick="BtnGeneratepdf_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<asp:Button ID="BtnGeneratepdf" CssClass="BtnGeneratepdf hidden" OnClick="BtnGeneratepdf_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<asp:Button ID="BtnGenerateXml" CssClass="BtnGenerateXml hidden" OnClick="BtnGenerateXml_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<asp:Button ID="BtnGenerateXml" CssClass="BtnGenerateXml hidden" OnClick="BtnGenerateXml_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
<span class="ltlxml">
|
<span class="ltlxml">
|
||||||
<asp:Literal ID="LtlXml" runat="server"></asp:Literal></span>
|
<asp:Literal ID="LtlXml" runat="server"></asp:Literal></span>
|
||||||
<span class="ltlxmlfin">
|
<span class="ltlxmlfin">
|
||||||
<asp:Literal ID="LtlXmlfin" runat="server"></asp:Literal></span>
|
<asp:Literal ID="LtlXmlfin" runat="server"></asp:Literal></span>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
|
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
|
||||||
int CvePrePolizaProvisionAsimilados = drow["CvePrePolizaAsimilables"].ToString().ToEntero();
|
int CvePrePolizaProvisionAsimilados = drow["CvePrePolizaAsimilables"].ToString().ToEntero();
|
||||||
LnkConceptoEmpleado.Visible = (Estatus == 1);
|
LnkConceptoEmpleado.Visible = (Estatus == 1);
|
||||||
LnkRegistrarProvision.Visible = (Estatus >= 2) && CvePrePolizaProvision <= 0;
|
LnkRegistrarProvision.Visible = (Estatus >= 2);// && CvePrePolizaProvision <= 0;
|
||||||
LnkConceptoEmpleado.Visible = (Estatus < 2);
|
LnkConceptoEmpleado.Visible = (Estatus < 2);
|
||||||
LnkCargaAsistenciaMasiva.Visible = (Estatus < 2);
|
LnkCargaAsistenciaMasiva.Visible = (Estatus < 2);
|
||||||
LnkModalPlantillaNomina.Visible = (Estatus < 2);
|
LnkModalPlantillaNomina.Visible = (Estatus < 2);
|
||||||
@@ -1101,12 +1101,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
Nom.IniciaTransacSQL();
|
Nom.IniciaTransacSQL();
|
||||||
//AutorizaNom_Nominas
|
//AutorizaNom_Nominas
|
||||||
if (continuar && (continuar=Nom.RemoveNom_Nominas(Cve)))
|
if (continuar && (continuar = Nom.RemoveNom_Nominas(Cve)))
|
||||||
{
|
{
|
||||||
Alert("Los movimientos de la nómina fueron eliminados", TipoMensaje.MsgInformacion); cargaDatos();
|
Alert("Los movimientos de la nómina fueron eliminados", TipoMensaje.MsgInformacion); cargaDatos();
|
||||||
Nom.Commit();
|
Nom.Commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkCancelar_Click(object sender, EventArgs e)
|
protected void LnkCancelar_Click(object sender, EventArgs e)
|
||||||
@@ -1634,7 +1634,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
using (ClsNominas onom = new ClsNominas())
|
using (ClsNominas onom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (continuar=onom.DeleteNom_NominasDetalles(SRCveConcepto, SRCvePersonal, CvePeriodoSeleccionado))
|
if (continuar = onom.DeleteNom_NominasDetalles(SRCveConcepto, SRCvePersonal, CvePeriodoSeleccionado))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2404,7 +2404,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
bool isEditedD = e.Row.DataKey("isEditedD").ToEntero() > 0;
|
bool isEditedD = e.Row.DataKey("isEditedD").ToEntero() > 0;
|
||||||
bool isSavedP = e.Row.DataKey("isSavedP").ToEntero() > 0;
|
bool isSavedP = e.Row.DataKey("isSavedP").ToEntero() > 0;
|
||||||
bool isSavedD = e.Row.DataKey("isSavedD").ToEntero() > 0;
|
bool isSavedD = e.Row.DataKey("isSavedD").ToEntero() > 0;
|
||||||
|
|
||||||
//isEditedD
|
//isEditedD
|
||||||
// Controles
|
// Controles
|
||||||
Label LtlConcepto = e.Row.FCLabel("LtlConcepto");
|
Label LtlConcepto = e.Row.FCLabel("LtlConcepto");
|
||||||
@@ -4509,10 +4509,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
||||||
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
||||||
bool estatus = ChkEstatus.Checked;
|
bool estatus = ChkEstatus.Checked;
|
||||||
|
int CveCuenta =DdlCtaContable.SelectedValue.ToEntero();
|
||||||
bool Continuar;
|
bool Continuar;
|
||||||
using (ClsNominas ObjMovt = new ClsNominas())
|
using (ClsNominas ObjMovt = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus);
|
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
@@ -4520,7 +4521,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||||
CargaMovtoPermanente();
|
CargaMovtoPermanente();
|
||||||
UpMovtosPermanentes.Update();
|
UpMovtosPermanentes.Update();
|
||||||
this.Alert("El Movto_Permanente Se ha agregado");
|
this.Alert("Se ha agregado el movimiento permanente");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4535,10 +4536,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
||||||
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
||||||
bool estatus = ChkEstatus.Checked;
|
bool estatus = ChkEstatus.Checked;
|
||||||
|
int CveCuenta = DdlCtaContable.SelectedValue.ToEntero();
|
||||||
bool Continuar;
|
bool Continuar;
|
||||||
using (ClsNominas ObjMovt = new ClsNominas())
|
using (ClsNominas ObjMovt = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjMovt.UpMovtoPermanente(CcveMovtoPermanente, cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus);
|
Continuar = ObjMovt.UpMovtoPermanente(CcveMovtoPermanente, cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
@@ -4546,7 +4548,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||||
CargaMovtoPermanente();
|
CargaMovtoPermanente();
|
||||||
UpMovtosPermanentes.Update();
|
UpMovtosPermanentes.Update();
|
||||||
this.Alert("El Movto_Permanente Se ha agregado");
|
this.Alert("Se ha actualizado el movimiento permanente");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4564,6 +4566,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero();
|
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero();
|
||||||
int cveConcepto = gvRow.DataKey("CveConcepto").ToEntero();
|
int cveConcepto = gvRow.DataKey("CveConcepto").ToEntero();
|
||||||
int cvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
int cvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
||||||
|
int CveCuenta = gvRow.DataKey("CveCuenta").ToEntero();
|
||||||
string descripcion = gvRow.DataKey("Descripcion");
|
string descripcion = gvRow.DataKey("Descripcion");
|
||||||
int tipoDescuento = gvRow.DataKey("TipoDescuento").ToEntero();
|
int tipoDescuento = gvRow.DataKey("TipoDescuento").ToEntero();
|
||||||
double valor = gvRow.DataKey("Valor").ToDouble();
|
double valor = gvRow.DataKey("Valor").ToDouble();
|
||||||
@@ -4590,6 +4593,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
TxtVecesAplicar.Text = vecesAplicar.ToString();
|
TxtVecesAplicar.Text = vecesAplicar.ToString();
|
||||||
TxtMontoLimite.Text = montoLimite.ToString();
|
TxtMontoLimite.Text = montoLimite.ToString();
|
||||||
TxtFechaAplicacion.Text = $"{fechaInicioAplicacion:dd/MM/yyyy}";
|
TxtFechaAplicacion.Text = $"{fechaInicioAplicacion:dd/MM/yyyy}";
|
||||||
|
DdlCtaContable.SelectedValueExist("-1");
|
||||||
|
DdlCtaContable.SelectedValueExist(CveCuenta);
|
||||||
ChkEstatus.Checked = estatus;
|
ChkEstatus.Checked = estatus;
|
||||||
this.RegistraScript("$('#DModalMovtoPermanente').modal();");
|
this.RegistraScript("$('#DModalMovtoPermanente').modal();");
|
||||||
|
|
||||||
@@ -6183,16 +6188,65 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
using (ClsNominas objnom = new ClsNominas())
|
using (ClsNominas objnom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (objnom.Autorizaperiodoconta(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
if (objnom.RegistraProvision(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
int CvePrePolizaProvision = 0; int CvePrePolizaasmilidos = 0;
|
int CvePrePolizaProvision = 0; int CvePrePolizaasmilidos = 0;
|
||||||
if (objnom.DtResultados.Rows.Count > 0)
|
if (objnom.DTSetResultados.Tables.Count > 1 && objnom.DTSetResultados.Tables[1].Rows.Count == 0)
|
||||||
{
|
{
|
||||||
CvePrePolizaProvision = objnom.DtResultados.Rows[0]["CvePrePoliza"].ToString().ToEntero();
|
|
||||||
CvePrePolizaasmilidos = objnom.DtResultados.Rows[0]["CvePrePolizaAsimilables"].ToString().ToEntero();
|
if (objnom.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
CvePrePolizaProvision = objnom.DtResultados.Rows[0]["CvePrePoliza"].ToString().ToEntero();
|
||||||
|
CvePrePolizaasmilidos = objnom.DtResultados.Rows[0]["CvePrePolizaAsimilables"].ToString().ToEntero();
|
||||||
|
}
|
||||||
|
string mensaje = string.Format("La provision a sido autorizada.<br/><a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}&Tipo=NOMPROV\">Provision </a><br/>", CvePrePolizaProvision );
|
||||||
|
if (CvePrePolizaasmilidos>0)
|
||||||
|
{
|
||||||
|
mensaje = string.Format("{0} <a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={1}&Tipo=NOMPROV\"> Asimilados</a>", mensaje, CvePrePolizaasmilidos);
|
||||||
|
|
||||||
|
}
|
||||||
|
Alert(mensaje);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (objnom.DTSetResultados.Tables.Count > 1)
|
||||||
|
{
|
||||||
|
StringBuilder str = new StringBuilder();
|
||||||
|
str.Append("<table>");
|
||||||
|
str.Append("<tbody>");
|
||||||
|
//ConceptoContable ConceptoNomina CodigoNombreCompleto
|
||||||
|
|
||||||
|
str.Append("<tr>");
|
||||||
|
str.Append("<th>");
|
||||||
|
str.Append("Concepto Contable");
|
||||||
|
str.Append("</th>");
|
||||||
|
str.Append("<th>");
|
||||||
|
str.Append("Concepto Nomina");
|
||||||
|
str.Append("</th>");
|
||||||
|
str.Append("<th>");
|
||||||
|
str.Append("Personal");
|
||||||
|
str.Append("</th>");
|
||||||
|
str.Append("</tr>");
|
||||||
|
foreach (DataRow item in objnom.DTSetResultados.Tables[1].Rows)
|
||||||
|
{
|
||||||
|
|
||||||
|
str.Append("<tr>");
|
||||||
|
str.Append("<td>");
|
||||||
|
str.Append(item["ConceptoContable"]);
|
||||||
|
str.Append("</td>");
|
||||||
|
str.Append("<td>");
|
||||||
|
str.Append(item["ConceptoNomina"]);
|
||||||
|
str.Append("</td>");
|
||||||
|
str.Append("<td>");
|
||||||
|
str.Append(item["CodigoNombreCompleto"]);
|
||||||
|
str.Append("</td>");
|
||||||
|
str.Append("</tr>");
|
||||||
|
}
|
||||||
|
str.Append("</tbody>");
|
||||||
|
str.Append("</table>");
|
||||||
|
Alert(string.Format("<div>no se pudo registrar la provisión, existen cuentas sin vincular.</div> {0}", str));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
string mensaje = string.Format("La provision a sido autorizada.<br/><a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}&Tipo=NOMPROV\">Provision </a><br/><a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}&Tipo=NOMPROV\"> Asimilados</a>", CvePrePolizaProvision, CvePrePolizaasmilidos);
|
|
||||||
Alert(mensaje);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6306,7 +6360,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
|
|
||||||
using (ClsNominas objnom = new ClsNominas())
|
using (ClsNominas objnom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (objnom.GetDispersiondenomina(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
if (objnom.GetDispersionnomina(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
CrearLayout(objnom.DtResultados);
|
CrearLayout(objnom.DtResultados);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
2859
Nomina/Nomina2.aspx
2859
Nomina/Nomina2.aspx
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1867,7 +1867,7 @@ Public Class WSSIGApp
|
|||||||
|
|
||||||
'VALIDA PROMOCIONES Y EXISTENCIAS
|
'VALIDA PROMOCIONES Y EXISTENCIAS
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetPromocionesPS(-1, Now, CveSubProyecto, CveCliente, ObjFactura.CveVendedor, UsuarioActual.CveEmpresa) Then
|
If ObjVentas.GetPromocionesPS(-1, Now, CveSubProyecto, CveCliente, ObjFactura.CveVendedor, -1, UsuarioActual.CveEmpresa) Then
|
||||||
ObjFactura.DtPromociones = ObjVentas.DtResultados
|
ObjFactura.DtPromociones = ObjVentas.DtResultados
|
||||||
End If
|
End If
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|||||||
@@ -250,6 +250,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user