diff --git a/AC/Reportes/RepEstadoActividades.rdlc b/AC/Reportes/RepEstadoActividades.rdlc
index 931f42736..de0652b3b 100644
--- a/AC/Reportes/RepEstadoActividades.rdlc
+++ b/AC/Reportes/RepEstadoActividades.rdlc
@@ -1008,7 +1008,18 @@
- =Parameters!pFirma1.Value
+ C.P Vera Guadalupe Tarazon Moreno
+
+
+
+
+
+
+
+
+ Director Administrativo
diff --git a/AC/Reportes/RepSituacionFinanciera.rdlc b/AC/Reportes/RepSituacionFinanciera.rdlc
index 3723ffd7a..ab0b3f9b8 100644
--- a/AC/Reportes/RepSituacionFinanciera.rdlc
+++ b/AC/Reportes/RepSituacionFinanciera.rdlc
@@ -2942,7 +2942,18 @@
- =Parameters!pFirma1.Value
+ C.P Vera Guadalupe Tarazon Moreno
+
+
+
+
+
+
+
+
+ Director Administrativo
diff --git a/App_Code/ClsBancos.vb b/App_Code/ClsBancos.vb
index 03d47a895..754e99d4a 100644
--- a/App_Code/ClsBancos.vb
+++ b/App_Code/ClsBancos.vb
@@ -3122,6 +3122,13 @@ Public Class ClsBancos
Try
SqlAdapter.Fill(Data)
Retorno = True
+
+ Catch Ex1 As SqlException
+ If Ex1.Message.Contains("Número: 2627;") Then
+ Alert("Ya existe un registro con el mismo Folio", TipoMensaje.MsgAdvertencia)
+ Else
+ Me.OnError("Ocurrió un error al guardar los cambios", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End If
Catch ex As Exception
OnError("Ocurrió un error al actualizar El movimiento Bancario", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End Try
diff --git a/App_Code/ClsGenerales.vb b/App_Code/ClsGenerales.vb
index 8d999ba99..167b29d2b 100644
--- a/App_Code/ClsGenerales.vb
+++ b/App_Code/ClsGenerales.vb
@@ -6,8 +6,8 @@ Imports System.Data.SqlClient
Imports Extensiones
Public Class ClsGenerales
- Implements IDisposable
-
+ Implements IDisposable
+
#Region "Campos"
Private _CveColectiva As Integer
@@ -48,9 +48,9 @@ Public Class ClsGenerales
Get
DtResultados = Data
End Get
- End Property
+ End Property
#End Region
-
+
Public Function IniciaTransacSQL() As SqlTransaction
If SqlTransacc Is Nothing Then SqlTransacc = SqlConexion.BeginTransaction()
Return SqlTransacc
@@ -89,9 +89,9 @@ Public Class ClsGenerales
End With
Data = New DataTable
If SqlTransacc IsNot Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
- End Sub
+ End Sub
#Region "Conexiones"
-
+
Private Sub ConexionAdd()
If Not EsTransaccionCompartida AndAlso ConfigurationManager.AppSettings("RegistraConexion") IsNot Nothing AndAlso ConfigurationManager.AppSettings("RegistraConexion").ToString() = "1" Then
Try
@@ -124,9 +124,9 @@ Public Class ClsGenerales
CveConexion = 0
End If
- End Sub
+ End Sub
#End Region
-
+
Private Sub DataCommand(ByVal pStrSQL As String, Optional ByVal TipoComando As CommandType = CommandType.StoredProcedure)
With SqlCommand
.Parameters.Clear()
@@ -209,7 +209,7 @@ Public Class ClsGenerales
OnError("Ocurrió un error al obtener los registros de solicitudes CFDI SAT.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End Try
Return retorno
- End Function
+ End Function
#Region " I N D I C A D O R E S Y G R A F I C A S"
Public Function GetIndicadores(CveEmpresa As Integer) As DataSet
'Dim Retorno As Boolean = False
@@ -231,10 +231,10 @@ Public Class ClsGenerales
End Try
Return ds
- End Function
-
+ End Function
+
#End Region
-
+
#Region " D I A S I N H A B I L E S "
Public Function DiasInhabiles_Add(CveEmpresa As Integer, CveUsuario As Integer, DiaInhabil As String, Descripcion As String, Estatus As Integer, FechaInhabil As Date) As Boolean
Dim Retorno As Boolean = False
@@ -317,9 +317,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region " P A Q U E T E R I A S"
Public Function GetGralPaqueterias(Optional CveEmpresa As Integer = -1) As Boolean
Dim Retorno As Boolean = False
@@ -453,11 +453,11 @@ Public Class ClsGenerales
OnError("Ocurrió un error al actualizar en el Catálogo de Paqueterias Guias Tipos.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "P L A N T I L L A S C O N T R A T O S"
-
+
Public Function ContratoPlantillaAdd(CveEmpresa As Integer, CveUsuario As Integer, NombrePlantilla As String, URL As String, Tipo As String) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Gral_ContratoPlantillaAdd")
@@ -534,10 +534,10 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
-
+ End Function
+
#End Region
-
+
#Region " E S T A D O S"
Public Function GetGralEstados() As Boolean
Dim Retorno As Boolean = False
@@ -550,9 +550,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region " M U N I C I P I O S"
Public Function GetGralMunicipios() As Boolean
Dim Retorno As Boolean = False
@@ -565,9 +565,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region " P A I S E S"
Public Function GetGralPaises() As Boolean
Dim Retorno As Boolean = False
@@ -580,9 +580,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region " P O B L A C I O N E S"
Public Function GetGralPoblaciones() As Boolean
Dim Retorno As Boolean = False
@@ -595,9 +595,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "E S C O L A R I D A D"
Public Function GetEscolaridades() As Boolean
Dim Retorno As Boolean = False
@@ -687,9 +687,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "C A T E G O R I A S"
Public Function GetCategorias(Optional CveEmpresa As Integer = -1, Optional Tipo As Integer = 1) As Boolean
Dim Retorno As Boolean = False
@@ -786,9 +786,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "M O D E L O S"
Public Function GetModelos(CveEmpresa As Integer, Optional CveModelo As Integer = -1) As Boolean
Dim Retorno As Boolean = False
@@ -882,9 +882,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "R I M T A M A N I O S"
Public Function GetRimTamanios(CveEmpresa As Integer, Optional CveRinTamaño As Integer = -1) As Boolean
Dim Retorno As Boolean = False
@@ -976,9 +976,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "M E D I D A S"
Public Function GetMedidas(CveEmpresa As Integer, Optional CveMedida As Integer = -1) As Boolean
Dim Retorno As Boolean = False
@@ -1058,9 +1058,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "C O L E C T I V A S"
Public Function GetColectivas(CveColectiva As Integer, Colectiva As String, Codigo As String, Tipo As String, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
@@ -1216,10 +1216,10 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
-
+ End Function
+
#End Region
-
+
#Region "C O L E C T I V A S - D E T A L L E S"
Public Function GetColectivasDetalles(CveColectiva As Integer, Tipo As String, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
@@ -1337,9 +1337,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "S u b i r I m a g e n e s"
Public Function ImagenUpload(pCveOpcion As Integer, pCveClave As Integer, pCveUsuario As Integer, IMEI As String, pCveEmpresa As Integer) As Integer
Dim Retorno As Integer = -1
@@ -1370,6 +1370,7 @@ Public Class ClsGenerales
#Region "G E N E R A L E S - C U E N T A S B A N C A R I A S "
Public Function GetCuentasDepositos(Optional CveProveedor As Integer = -1, Optional CveCliente As Integer = -1, Optional CvePersonal As Integer = -1, Optional CveColectiva As Integer = -1, Optional CveCuentaDeposito As Integer = -1, Optional CveEmpresa As Integer = -1) As Boolean
Dim Retorno As Boolean = False
+
DataAdapter("PA_Gral_CuentasDepositosGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
@@ -1390,8 +1391,9 @@ Public Class ClsGenerales
Return Retorno
End Function
Public Function AddCuentasDepositos(BancoNombre As String, Plaza As String, Sucursal As String, Cuenta As String, CLABE As String, CIE As String, SWIFT As String, Referencia As String, RefCrediProveedor As String, CveUsuario As Integer, CveMoneda As Integer,
- Optional CveProveedor As Integer = -1, Optional CveCliente As Integer = -1, Optional CvePersonal As Integer = -1, Optional CveColectiva As Integer = -1, Optional CveUsuarioModifico As Integer = -1,
- Optional Correo As String = "", Optional BBVAAlias As String = "-1", Optional EstatusPagoElectronico As Boolean = False, Optional EstatusPagoElectronicoGrupos As Boolean = False, Optional CveSATBanco As Integer = -1) As Boolean
+ Optional CveProveedor As Integer = -1, Optional CveCliente As Integer = -1, Optional CvePersonal As Integer = -1, Optional CveColectiva As Integer = -1, Optional CveUsuarioModifico As Integer = -1,
+ Optional Correo As String = "", Optional BBVAAlias As String = "-1", Optional EstatusPagoElectronico As Boolean = False, Optional EstatusPagoElectronicoGrupos As Boolean = False, Optional CveSATBanco As Integer = -1,
+ Optional ConceptoCIE As String = "-1") As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Gral_CuentasDepositosAdd")
@@ -1418,6 +1420,7 @@ Public Class ClsGenerales
.Add("@EstatusPagoElectronico", SqlDbType.Bit).Value = EstatusPagoElectronico
.Add("@EstatusPagoElectronicoGrupos", SqlDbType.Bit).Value = EstatusPagoElectronicoGrupos
.Add("@CveSATBanco", SqlDbType.Int).Value = CveSATBanco
+ .Add("@ConceptoCIE", SqlDbType.VarChar).Value = ConceptoCIE
End With
@@ -1436,6 +1439,7 @@ Public Class ClsGenerales
Return Retorno
End Function
+
Public Function RemoveCuentasDepositos(CveCuentaDeposito As Integer, Optional CveUsuarioModifico As Integer = -1) As Boolean
Dim Retorno As Boolean = False
@@ -1462,7 +1466,8 @@ Public Class ClsGenerales
Public Function UpdateCuentasDepositos(CveCuentaDeposito As Integer, BancoNombre As String, Plaza As String, Sucursal As String, Cuenta As String, CLABE As String, CIE As String, SWIFT As String, Referencia As String,
RefCrediProveedor As String, Predeterminada As Boolean, Estatus As Boolean, CveMoneda As Integer, Optional CveUsuarioModifico As Integer = -1, Optional Correo As String = "",
- Optional BBVAAlias As String = "-1", Optional EstatusPagoElectronico As Boolean = False, Optional EstatusPagoElectronicoGrupos As Boolean = False, Optional CveSATBanco As Integer = -1) As Boolean
+ Optional BBVAAlias As String = "-1", Optional EstatusPagoElectronico As Boolean = False, Optional EstatusPagoElectronicoGrupos As Boolean = False, Optional CveSATBanco As Integer = -1,
+ Optional ConceptoCIE As String = "-1") As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Gral_CuentasDepositosUpdate")
@@ -1488,6 +1493,7 @@ Public Class ClsGenerales
.Add("@EstatusPagoElectronico", SqlDbType.Bit).Value = EstatusPagoElectronico
.Add("@EstatusPagoElectronicoGrupos", SqlDbType.Bit).Value = EstatusPagoElectronicoGrupos
.Add("@CveSATBanco", SqlDbType.Int).Value = CveSATBanco
+ .Add("@ConceptoCIE", SqlDbType.VarChar).Value = ConceptoCIE
End With
@@ -1507,7 +1513,7 @@ Public Class ClsGenerales
Return Retorno
End Function
- Public Function UpdateCuentasDepositosEstatusPagoElectronicoGrupos(CveCuentaDeposito As Integer, EstatusPagoElectronicoGrupos As Boolean, CveSATBanco As Integer, BBVAAlias As String) As Boolean
+ Public Function UpdateCuentasDepositosEstatusPagoElectronicoGrupos(CveCuentaDeposito As Integer, EstatusPagoElectronicoGrupos As Integer, CveSATBanco As Integer, BBVAAlias As String, Referencia As String, ConceptoCIE As String) As Boolean
Dim Retorno As Boolean = False
@@ -1515,21 +1521,17 @@ Public Class ClsGenerales
With SqlAdapter.SelectCommand.Parameters
.Add("@CveCuentaDeposito", SqlDbType.VarChar).Value = CveCuentaDeposito
- .Add("@EstatusPagoElectronicoGrupos", SqlDbType.Bit).Value = EstatusPagoElectronicoGrupos
+ .Add("@EstatusPagoElectronicoGrupos", SqlDbType.Int).Value = EstatusPagoElectronicoGrupos
.Add("@CveSATBanco", SqlDbType.Int).Value = CveSATBanco
.Add("@BBVAAlias", SqlDbType.VarChar).Value = BBVAAlias
+ .Add("@Referencia", SqlDbType.VarChar).Value = Referencia
+ .Add("@ConceptoCIE", SqlDbType.VarChar).Value = ConceptoCIE
End With
Try
SqlAdapter.Fill(Data)
- Retorno = True
- Catch Ex1 As SqlException
- If Ex1.Message.Contains("Número: 2627;") Then
- Alert("Ya existe un registro con el mismo nombre", TipoMensaje.MsgAdvertencia)
- Else
- Me.OnError("Ocurrió un error al guardar los cambios", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- End If
+ Retorno = True
Catch ex As Exception
OnError("Ocurrió un error al guardar los cambios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
End Try
@@ -1639,11 +1641,11 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "C l a s i f i c a c i o n e s C a r a c t e r i s t i c a s"
-
+
Public Function AddClasificacionesCaracteristicas(CaracteristicaClasificacion As String, Orden As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Gral_CaracteristicasClasificacionesAdd")
@@ -1724,12 +1726,12 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
-
+ End Function
+
#End Region
-
+
#Region "C a r a c t e r í s t i c a s"
-
+
Public Function GetCaracteristicasModulos() As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Gral_CaracteristicasModuloGet")
@@ -1983,9 +1985,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "O p c i o n e s"
Public Function AddCaracteristicasOpciones(CaracteristicaOpcion As String, CveCaracteristica As Integer, Orden As Integer, Estatus As Boolean, CveUsuario As Integer) As Boolean
Dim Retorno As Boolean = False
@@ -2086,9 +2088,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "T I P O C U E N T A S E Q U I P O S"
Public Function AddTipoCuentaEquipo(TipoCuentaEquipo As String, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
@@ -2175,9 +2177,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "C U E N T A S E Q U I P O S"
Public Function AddCuentaEquipo(CveCliente As Integer, CveTipoCuentaEquipo As Integer, CuentaEquipo As String, NoSerie As String, CveClienteSucursal As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional CveCuentaEquipo As Integer = -1, Optional CveCuentaEquipoRelacionado As Integer = -1) As Boolean
Dim Retorno As Boolean = False
@@ -2350,11 +2352,11 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
-
-
+ End Function
+
+
#End Region
-
+
#Region "Bitacora"
Public Function GetHistorialBitacora(CveAcarreo As Integer, CveOrdenCompra As Integer, CveActivoFijo As Integer,
CveOS As Integer, CvePS As Integer, CveCompra As Integer, CveIE As Integer,
@@ -2448,9 +2450,9 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "SAT PRODUCTOS SERVICIOS Y UNIDAD DE MEDIDA"
Public Function GetSATProductosServicios() As Boolean
Dim Retorno As Boolean = False
@@ -2506,10 +2508,10 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
-
+ End Function
+
#End Region
-
+
#Region "SAT CFDI COMERCIO EXTERIOR"
Public Function GetSATClavePedimento() As Boolean
Dim Retorno As Boolean = False
@@ -2651,10 +2653,10 @@ Public Class ClsGenerales
OnError("Ocurrió un error al obtener las colonias del SAT", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
End Try
Return Retorno
- End Function
-
+ End Function
+
#End Region
-
+
Public Function JAMComparativo(Opcion As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_JAM_Comparativo")
@@ -2850,6 +2852,72 @@ Public Class ClsGenerales
Return Retorno
End Function
+ Public Function GetMotivoRechazoPaqueteria(CveMotivoRechazoPaqueteria As Integer, CveEmpresa As Integer) As Boolean
+ Dim Retorno As Boolean = False
+ DataAdapter("Gral_MotivoRechazoPaqueteriaGet")
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveMotivoRechazoPaqueteria", SqlDbType.Int).Value = CveMotivoRechazoPaqueteria
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al obtener los motivos de rechazo de entrega", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+
+ Return Retorno
+ End Function
+
+ Public Function AddMotivoRechazoPaqueteria(Descripcion As String, CveEmpresa As Integer) As Boolean
+ Dim Retorno As Boolean = False
+ DataAdapter("Gral_MotivoRechazoPaqueteriaAdd")
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@Descripcion", SqlDbType.VarChar).Value = Descripcion
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al agregar el motivos de rechazo de entrega", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+
+ Return Retorno
+ End Function
+
+ Public Function RemoveMotivoRechazoPaqueteria(CveMotivoRechazoPaqueteria As Integer) As Boolean
+ Dim Retorno As Boolean = False
+ DataAdapter("Gral_MotivoRechazoPaqueteriaDelete")
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveMotivoRechazoPaqueteria", SqlDbType.Int).Value = CveMotivoRechazoPaqueteria
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al eliminar el motivos de rechazo de entrega", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+
+ Return Retorno
+ End Function
+
+ Public Function UpdateMotivoRechazoPaqueteria(CveMotivoRechazoPaqueteria As Integer, Optional Descripcion As String = "-1") As Boolean
+ Dim Retorno As Boolean = False
+ DataAdapter("Gral_MotivoRechazoPaqueteriaUpdate")
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveMotivoRechazoPaqueteria", SqlDbType.Int).Value = CveMotivoRechazoPaqueteria
+ .Add("@Descripcion", SqlDbType.VarChar).Value = Descripcion
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al modificar el motivos de rechazo de entrega", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+
+ Return Retorno
+ End Function
#End Region
#Region "P A Q U E T E R I A S G U I A S D E T A L L E S"
@@ -2938,11 +3006,11 @@ Public Class ClsGenerales
End Try
Return Retorno
- End Function
+ End Function
#End Region
-
+
#Region "CLASIFICACIONES PORCENTAJE"
-
+
Public Function GetClasificacionPorcentaje(CveEmpresa As Integer, Optional CveClasificacionPorcentaje As Integer = -1,
Optional CveClasificacion As Integer = -1, Optional PorcentajeIVA As Double = -1,
Optional Opcion As Integer = 1) As Boolean
@@ -3018,11 +3086,11 @@ Public Class ClsGenerales
OnError("Ocurrió un error al eliminar la clasificacion del porcentaje.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End Try
Return Retorno
- End Function
-
+ End Function
+
#End Region
-
-
+
+
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
If Not disposedValue Then
If disposing Then
@@ -3038,9 +3106,9 @@ Public Class ClsGenerales
' TODO: Establecer campos grandes como Null.
End If
disposedValue = True
- End Sub
-
-
+ End Sub
+
+
#Region "CRUD_Edoc_DocumentacionTipo"
Public Function GetEdoc_DocumentacionTipo(CveDocumentacionTipo As Integer, CveEmpresa As Integer, Optional Estatus As Integer = -1, Optional EsCatalogo As Integer = 0, Optional Modulo As Integer = 1) As Boolean
@@ -3121,21 +3189,21 @@ Public Class ClsGenerales
Return retorno
- End Function
-
+ End Function
+
#End Region
-
-
+
+
#Region " IDisposable Support "
- ' Visual Basic agregó este código para implementar correctamente el modelo descartable.
+ ' Visual Basic agregó este código para implementar correctamente el modelo descartable.
Public Sub Dispose() Implements IDisposable.Dispose
' No cambie este código. Coloque el código de limpieza en Dispose (ByVal que se dispone como Boolean).
ConexionClose()
Dispose(True)
GC.SuppressFinalize(Me)
- End Sub
+ End Sub
#End Region
-
+
#Region " P O L I Z A V I R T U A L "
Public Function ModelosAutosGet(CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
@@ -3195,7 +3263,7 @@ Public Class ClsGenerales
OnError("Ocurrió un error al obtener los BCI de Usados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End Try
Return Retorno
- End Function
+ End Function
#End Region
End Class
diff --git a/App_Code/ClsOC.vb b/App_Code/ClsOC.vb
index 2aa435c09..20d2c9d8f 100644
--- a/App_Code/ClsOC.vb
+++ b/App_Code/ClsOC.vb
@@ -2532,7 +2532,23 @@ Public Class ClsOC
End Function
#End Region
+ Public Function GetVentasRelacionadas(CveOCDetalle As String) As Boolean
+ Dim Retorno As Boolean = False
+ DataAdapter("PA_OC_VentaRelacionada")
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveOCDetalles", SqlDbType.NVarChar).Value = CveOCDetalle
+ End With
+
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al obtener la venta relacionada", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+
+ Return Retorno
+ End Function
#Region " IDisposable Support "
' IDisposable
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index 479609e6b..ea4c411ed 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -3696,6 +3696,7 @@ Public Class ClsPaginas
PaginaDict.Add("/Sistemas/CatPlataformas.aspx".ToUpper(), -1)
PaginaDict.Add("/Sistemas/PopUpAddUsuario.aspx".ToUpper(), -1)
PaginaDict.Add("/General/JAMComparativos.aspx".ToUpper(), 643)
+ PaginaDict.Add("/General/CatMotivoRechazoGuias.aspx".ToUpper(), 729)
'-------------------------------------------Q U I T A R----------------------------------
#Region "Q U I T A R"
@@ -7258,7 +7259,7 @@ Public Class ClsPaginas
params.Add(New ReportParameter("TipoCambio", TipoCambio))
params.Add(New ReportParameter("NombreSolicito", dtOC(0)("UsuarioSolicito").ToString)) 'drSol("Nombre").ToString))
params.Add(New ReportParameter("PuestoSolicito", PuestoSol)) 'drPuestoSol("Puesto").ToString
- params.Add(New ReportParameter("NombreAutorizo", nombreautorizo))
+ params.Add(New ReportParameter("NombreAutorizo", UsuarioActual.Nombre))
params.Add(New ReportParameter("PuestoAutorizo", PuestoAut)) 'drPuestoAut("Puesto").ToString
params.Add(New ReportParameter("TipoOC", If(ObjOC.Tipo = "OC", "Orden de Compra", "Requisición")))
params.Add(New ReportParameter("UsoCFDI", ObjOC.UsoCFDI))
diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index e9f7496a6..c348cebec 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -4462,6 +4462,21 @@ Public Class ClsVentas
End Try
Return retorno
End Function
+
+ Public Function GetOCRelacionadas(CveVentasDetalles As String) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Vta_OrdenCompraRelacionada", CommandType.StoredProcedure)
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveVentasDetalles", SqlDbType.NVarChar).Value = CveVentasDetalles
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al obtener la orden de compra relacionada", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
+ End Try
+ Return retorno
+ End Function
#Region "Conciliación emitidas SAT"
Public Function ConciliacionemitidasSATGet(cveEmpresa As Int32) As Boolean
diff --git a/App_Code/DtDatos.xsd b/App_Code/DtDatos.xsd
index a4b0800c5..f354dcef4 100644
--- a/App_Code/DtDatos.xsd
+++ b/App_Code/DtDatos.xsd
@@ -12,7 +12,7 @@
-
+
@@ -28,7 +28,7 @@
-
+
@@ -46,7 +46,7 @@
-
+
@@ -64,7 +64,7 @@
-
+
@@ -87,7 +87,7 @@
-
+
@@ -111,7 +111,7 @@
-
+
@@ -137,7 +137,7 @@
-
+
@@ -153,7 +153,7 @@
-
+
@@ -170,7 +170,7 @@
-
+
@@ -179,7 +179,7 @@
-
+
@@ -215,7 +215,7 @@
-
+
@@ -237,7 +237,7 @@
-
+
@@ -259,10 +259,15 @@
+
+
+
+
+
-
+
diff --git a/App_Code/DtDatos.xss b/App_Code/DtDatos.xss
index d278af616..6f4a11dac 100644
--- a/App_Code/DtDatos.xss
+++ b/App_Code/DtDatos.xss
@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb
index 9fdf3e692..08b59bea8 100644
--- a/App_Code/Modelos.vb
+++ b/App_Code/Modelos.vb
@@ -4585,7 +4585,7 @@ Namespace Modelos
End If
'DEBE REGRESAR LA EXISTENCIA DE (ENTREGA POR ADELANTADO) AL ALMACEN ORGINAL (GENERAL,SIN COSTO)
- If Not ErrorCancelar AndAlso DtDevoluciones IsNot Nothing Then
+ If Not ErrorCancelar AndAlso DtDevoluciones IsNot Nothing AndAlso DtDevoluciones.Rows.Count > 0 Then
For Each CveRemision As Integer In ListaRemisionesCancelar
Dim DtDevRemision As DataTable = DtDevoluciones.FiltraParametros($"CveRemision={CveRemision}")
@@ -4603,8 +4603,6 @@ Namespace Modelos
Next
Next
- Else
- ErrorCancelar = True
End If
End If
diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb
index bd81b0c7c..cfb1e58c4 100644
--- a/Bancos/IE.aspx.vb
+++ b/Bancos/IE.aspx.vb
@@ -573,6 +573,7 @@ Partial Class Bancos_IE
CveCredito = IfNull(Request("CveCredito"), "-1").ToString.ToEntero
CveCreditoDetalle = IfNull(Request("CveCreditoDetalle"), "-1").ToString.ToEntero
LtlTitulo.Text = "Pago de Créditos"
+ CveIE = -1
DVInteresMoratorio.Visible = True
@@ -4642,7 +4643,7 @@ Partial Class Bancos_IE
Dim Dep As New ClsGenerales
If Dep.GetCuentasDepositos(CveProveedor:=CveProveedor, CveCliente:=CveCliente, CvePersonal:=CvePersonal) Then
- If DdlTipoTransaccion.SelectedValue = "9" Then
+ If DdlTipoTransaccion.SelectedValue = "9" And CveIE <= -1 Then
DdlCuentaDeposito.DataSource = Dep.DtResultados.FiltraParametros("EstatusPagoElectronico = 'True' AND Estatus ='True'")
@@ -4653,7 +4654,7 @@ Partial Class Bancos_IE
Alert("El Beneficiario no tiene una cuenta activa en BBVA, dela de alta o seleccione otro método de pago", TipoMensaje.MsgAdvertencia)
End If
- ElseIf DdlTipoTransaccion.SelectedValue = "17" Then
+ ElseIf DdlTipoTransaccion.SelectedValue = "17" And CveIE <= -1 Then
If Dep.DtResultados.Rows.Count > 0 Then
@@ -4685,7 +4686,7 @@ Partial Class Bancos_IE
Else
- If DdlTipoTransaccion.SelectedValue.Contiene("9", "17") Then
+ If DdlTipoTransaccion.SelectedValue.Contiene("9", "17") And CveIE <= -1 Then
BtnGuardar.Enabled = False
Alert("El proveedor no tiene cuentas deposito.", TipoMensaje.MsgAdvertencia)
diff --git a/Bancos/PagoElectronico.aspx.vb b/Bancos/PagoElectronico.aspx.vb
index ed0b9df3c..a47729cf5 100644
--- a/Bancos/PagoElectronico.aspx.vb
+++ b/Bancos/PagoElectronico.aspx.vb
@@ -1979,7 +1979,7 @@ Partial Class Bancos_PagoElectronico
'Dim CveTipoTransaccion As Integer = Parametros(4).ToEntero
'Dim Estatus As Integer = If(CveTipoTransaccion = 2, 2, 1) ' cuando es transferencia, no lo pasa por entregar
- ' Mail.MandaCorreo(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body)
+ 'Mail.MandaCorreo(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body)
Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body)
End Sub
@@ -2756,10 +2756,15 @@ Partial Class Bancos_PagoElectronico
params.Add(New ReportParameter("LogoPath", ""))
End If
- params.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
+ params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
params.Add(New ReportParameter("Direccion", UsuarioActual.Empresa.Direccion))
params.Add(New ReportParameter("RFC", UsuarioActual.Empresa.RFC))
- params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
+ params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
+
+
+ params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
+ params.Add(New ReportParameter("Titulo", "Reporte Pago Proveedor Layout"))
+
ImprimirPDF("Empresas/Grales/Formatos/LayoutPagoProveedor.rdlc", DtPago, params, "LayoutPagoProveedor", RDSName:="DSPagoElectronicoV2")
End If
diff --git a/Bancos/PagoElectronicoGrupos.aspx b/Bancos/PagoElectronicoGrupos.aspx
index a79a95981..89aae1006 100644
--- a/Bancos/PagoElectronicoGrupos.aspx
+++ b/Bancos/PagoElectronicoGrupos.aspx
@@ -732,7 +732,7 @@
-
+
@@ -855,19 +855,20 @@
Cuentas Interbancarias
+
+
Cuentas Convennios CIE
+
-
-
-
+
diff --git a/Bancos/PagoElectronicoGrupos.aspx.vb b/Bancos/PagoElectronicoGrupos.aspx.vb
index 9529708ac..9013449c5 100644
--- a/Bancos/PagoElectronicoGrupos.aspx.vb
+++ b/Bancos/PagoElectronicoGrupos.aspx.vb
@@ -202,6 +202,16 @@ Partial Class Bancos_PagoElectronicoGrupos
End Set
End Property
+
+ Private Property NombreArchivoCIE As String
+ Get
+ Return ViewState("NombreArchivoCIE").ToString
+ End Get
+ Set(value As String)
+ ViewState("NombreArchivoCIE") = value
+ End Set
+ End Property
+
Property DTSATBancos As DataTable
Get
If ViewState("DTSATBancos") Is Nothing Then
@@ -216,6 +226,63 @@ Partial Class Bancos_PagoElectronicoGrupos
End Property
+ Property CveIEPagoActual As Integer
+ Get
+ If ViewState("CveIEPagoActual") Is Nothing Then
+ Return -1
+ Else
+ Return ViewState("CveIEPagoActual").ToString.ToEntero
+ End If
+ End Get
+ Set(value As Integer)
+ ViewState("CveIEPagoActual") = value
+ End Set
+ End Property
+
+ Property CveLayoutEnvioDetalleActual As Integer
+ Get
+ If ViewState("CveLayoutEnvioDetalleActual") Is Nothing Then
+ Return -1
+ Else
+ Return ViewState("CveLayoutEnvioDetalleActual").ToString.ToEntero
+ End If
+ End Get
+ Set(value As Integer)
+ ViewState("CveLayoutEnvioDetalleActual") = value
+ End Set
+ End Property
+
+ Property GvIndexActual As Integer
+ Get
+ If ViewState("GvIndexActual") Is Nothing Then
+ Return -1
+ Else
+ Return ViewState("GvIndexActual").ToString.ToEntero
+ End If
+ End Get
+ Set(value As Integer)
+ ViewState("GvIndexActual") = value
+ End Set
+
+ End Property
+
+
+ Property DTFoliosPrefijos As DataTable
+ Get
+ If ViewState("DTFoliosPrefijos") Is Nothing Then
+ Crate_DTFoliosPrefijos()
+ Return DirectCast(ViewState("DTFoliosPrefijos"), DataTable)
+ Else
+ Return DirectCast(ViewState("DTFoliosPrefijos"), DataTable)
+ End If
+ End Get
+ Set(value As DataTable)
+ ViewState("DTFoliosPrefijos") = value
+ End Set
+
+ End Property
+
+
#End Region
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
@@ -244,6 +311,20 @@ Partial Class Bancos_PagoElectronicoGrupos
End Sub
+ Private Sub Crate_DTFoliosPrefijos()
+
+ Dim DTFolios As New DataTable
+ DTFolios.Columns.Add("CveIE", GetType(Integer))
+ DTFolios.Columns.Add("Folio", GetType(String))
+ DTFolios.AcceptChanges()
+
+ ViewState("DTFoliosPrefijos") = DTFolios.Copy
+
+
+
+ End Sub
+
+
#Region " C A R G A - D A T O S "
Private Sub CargaCuentas()
DdlCuenta.DataSource = GlobalDTBancosCuentas(UsuarioActual.CveUsuario).FiltraParametros("UsaLayoutGrupos = 1")
@@ -412,6 +493,13 @@ Partial Class Bancos_PagoElectronicoGrupos
End If
Dim path As String = String.Format("{0}Layout\{1}", UsuarioActual.Empresa.Ruta, NombreArchivo)
+
+ If File.Exists(path) Then
+
+ File.Delete(path)
+
+ End If
+
Dim fs As FileStream = File.Create(path)
' Add text to the file.
@@ -622,9 +710,16 @@ Partial Class Bancos_PagoElectronicoGrupos
NombreArchivoBancomer = ""
NombreArchivoInterbancario = ""
+ NombreArchivoCIE = ""
+
+ DVDescargaCuentas1.Visible = False
+ DVDescargaCuentas2.Visible = False
+ DVDescargaCuentas3.Visible = False
+
NombreArchivo = ""
Dim RegistrosAltaBancomer As New StringBuilder
+ Dim RegistrosAltaBancomerCIE As New StringBuilder
Dim RegistrosAltaInterbancario As New StringBuilder
Dim SBErrores As New StringBuilder
@@ -643,12 +738,13 @@ Partial Class Bancos_PagoElectronicoGrupos
DtCuentasPendientesTemp.CaseSensitive = False
- Dim DtCuentasPendientesBancomer As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre like '%BBVA%' OR BancoNombre like '%BANCOMER%' ) ", "", {"CveCuentaDeposito", "BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias"})
- Dim DtCuentasPendientesInterbancarias As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre not like '%BBVA%' AND BancoNombre not like '%BANCOMER%' ) ", "", {"CveCuentaDeposito", "BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias"})
+ Dim DtCuentasPendientesBancomer As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre like '%BBVA%' OR BancoNombre like '%BANCOMER%' AND CveBanco = '012' AND LEN(CIE) = 0) ", "", {"CveCuentaDeposito", "BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias", "CIE"})
+ Dim DtCuentasPendientesCIE As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre like '%BBVA%' OR BancoNombre like '%BANCOMER%' AND LEN(CIE) > 0 AND CveBanco = '012') ", "", {"CveCuentaDeposito", "BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias", "CIE"})
+ Dim DtCuentasPendientesInterbancarias As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre not like '%BBVA%' AND BancoNombre not like '%BANCOMER%' ) ", "", {"CveCuentaDeposito", "BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias", "CIE"})
- 'Dim ObjGrales As New ClsGenerales
+ 'Cuentas bancomer
If DtCuentasPendientesBancomer.Rows.Count > 0 Then
For Each dRow As DataRow In DtCuentasPendientesBancomer.Rows
@@ -707,10 +803,60 @@ Partial Class Bancos_PagoElectronicoGrupos
NombreArchivoBancomer = NombreArchivo
End If
-
End If
+ 'Cuentas bancomer CIE
+ If DtCuentasPendientesCIE.Rows.Count > 0 Then
+ For Each dRow As DataRow In DtCuentasPendientesCIE.Rows
+
+ Dim SBTmpBancomerCIE As New StringBuilder
+ Dim SBErroresBancomerCIE As New StringBuilder
+ Dim ErrorLineaBancomerCIE As Boolean = False
+
+ SBErroresBancomerCIE.Append($"{dRow("RazonSocial").ToString } ")
+ SBErroresBancomerCIE.Append($"Cuenta: {dRow("Cuenta").ToString } ")
+
+ SBTmpBancomerCIE.Append("CV")
+ SBTmpBancomerCIE.Append(dRow("CIE").ToString.PadLeft(18, CeroRelleno))
+
+ If dRow("Abreviatura").ToString.Length = 3 Then
+ SBTmpBancomerCIE.Append(dRow("Abreviatura"))
+ Else
+ SBErroresBancomerCIE.Append("El tamaño de la divisa es incorrecto, ")
+ ErrorLineaBancomerCIE = True
+ End If
+
+ SBTmpBancomerCIE.Append("0999999999999.99")
+
+ If dRow("RazonSocial").ToString.Trim.Length < 31 Then 'Tamaño maximo 30
+ SBTmpBancomerCIE.Append(dRow("RazonSocial").ToString.PadRight(30, EspacioRelleno))
+ Else
+ SBTmpBancomerCIE.Append(dRow("RazonSocial").ToString.Trim.Substring(0, 30))
+ End If
+
+ 'ALIAS DE LA CUENTA PENDIENTE TAMAÑO MAXIMO 30
+ SBTmpBancomerCIE.Append(dRow("BBVAAlias").ToString.PadRight(30, EspacioRelleno))
+
+ SBTmpBancomerCIE.Append(vbCrLf)
+
+ If Not ErrorLineaBancomerCIE Then
+ RegistrosAltaBancomerCIE.Append(SBTmpBancomerCIE.ToString)
+ Else
+ SBErroresBancomerCIE.Append(" ")
+ SBErrores.AppendLine(SBErroresBancomerCIE.ToString)
+ End If
+
+ Next
+
+ TextoCompleto = RegistrosAltaBancomerCIE.ToString
+
+ If CreaArchivo(2, True) Then
+ NombreArchivoCIE = NombreArchivo
+ End If
+
+ End If
+
If DtCuentasPendientesInterbancarias.Rows.Count > 0 Then
@@ -799,17 +945,13 @@ Partial Class Bancos_PagoElectronicoGrupos
If NombreArchivoBancomer.Trim.Length > 0 Then
-
DVDescargaCuentas1.Visible = True
- ' Mensaje.Append($"Cuentas Bancomer Descarga Archivo cuentas Bancomer
")
-
End If
-
-
If NombreArchivoInterbancario.Trim.Length > 0 Then
DVDescargaCuentas2.Visible = True
- 'Mensaje.Append($"Cuentas Interbancarias Descarga Archivo cuentas Bancomer
")
-
+ End If
+ If NombreArchivoCIE.Trim.Length > 0 Then
+ DVDescargaCuentas3.Visible = True
End If
@@ -820,21 +962,18 @@ Partial Class Bancos_PagoElectronicoGrupos
Mensaje.Append("")
End If
- If NombreArchivoBancomer.Length > 0 Or NombreArchivoInterbancario.Length > 0 Then
-
+ If NombreArchivoBancomer.Length > 0 Or NombreArchivoInterbancario.Length > 0 Or NombreArchivoCIE.Length > 0 Then
LnkDescargaCuentas1.Text = NombreArchivoBancomer
LnkDescargaCuentas2.Text = NombreArchivoInterbancario
+ LnkDescargaCuentas3.Text = NombreArchivoCIE
+
RegistraScript("$('#ModalDescarga').modal({ backdrop: 'static', keyboard: false});")
-
UpModalDescarga.Update()
-
-
Else
Alert(Mensaje.ToString, TipoMensaje.MsgAdvertencia)
End If
-
CargaDatos()
End Sub
@@ -1000,6 +1139,7 @@ Partial Class Bancos_PagoElectronicoGrupos
'Alert("Hola")
End If
End Sub
+
Protected Sub FormarTexto(Registros As Integer)
'''''' LLENADO HEADER
Dim convenio As String = DTPendienteActual(0)("ConvenioPagoElectronico").ToString
@@ -1050,7 +1190,7 @@ Partial Class Bancos_PagoElectronicoGrupos
Dim RegistrosPago As New StringBuilder
Dim MENSAJEError As New StringBuilder
-
+ Dim EsCIE As Boolean = False
Dim CeroRelleno As Char = "0"c
Dim EspacioRelleno As Char = Chr(32)
Dim ErrorLayout = False
@@ -1064,40 +1204,53 @@ Partial Class Bancos_PagoElectronicoGrupos
MENSAJEError.AppendLine($"Error al generar pago ")
MENSAJEError.AppendLine($" Proveedor: {drow("RazonSocial").ToString} detalle: { drow("Observaciones").ToString} ")
+ 'CveBanco = '012'
+ If drow("CveBanco").ToString.Trim = "012" Then
+ If drow("CIE").ToString.Trim.Length > 0 Then 'cuenta bancomer Con convenio CIE
+ EsCIE = True
+ If drow("CIE").ToString.Trim.Length > 0 Then
+ RegistrosPago.Append("CIL")
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR en tamaño de CIE")
+ End If
+ Else
+ RegistrosPago.Append("PTC") 'cuenta bancomer
+ End If
- If drow("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Or drow("BancoNombre").ToString.ToUpper.Contains("BBVA") Then
- RegistrosPago.Append("PTC")
Else
RegistrosPago.Append("PSC")
End If
- If drow("CLABEDestino").ToString.Trim.Length.Contiene(10, 18) Then
- RegistrosPago.Append(drow("CLABEDestino").ToString.PadLeft(18, CeroRelleno))
- Else
- ErrorLayout = True
- MENSAJEError.AppendLine("ERROR EN CLABE cuenta destino")
- Exit For
- End If
+ If EsCIE Then
+
+ If drow("ConceptoCIE").ToString.Length <= 30 Then
+ RegistrosPago.Append(drow("ConceptoCIE").ToString.PadRight(30, CeroRelleno))
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR Tamaño de ConceptoCIE.")
+ Exit For
+ End If
- If drow("CLABEOrigen").ToString.Trim.Length.Contiene(10, 18) Then
+ If drow("CIE").ToString.Length < 5 Or drow("CIE").ToString.Length > 7 Then
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR Tamaño de CIE (rango 5-7).")
+ Exit For
+ Else
+ RegistrosPago.Append(drow("CIE").ToString.PadLeft(7, CeroRelleno))
+ End If
- RegistrosPago.Append(drow("CLABEOrigen").ToString.PadLeft(18, CeroRelleno))
+ If drow("CLABEOrigen").ToString.Trim.Length.Contiene(10, 18) Then
+ RegistrosPago.Append(drow("CLABEOrigen").ToString.PadLeft(18, CeroRelleno))
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR EN CLABE cuenta origen")
+ Exit For
+ End If
- Else
- ErrorLayout = True
- MENSAJEError.AppendLine("ERROR EN CLABE cuenta origen")
- Exit For
- End If
-
-
-
- RegistrosPago.Append(drow("Abreviatura").ToString)
- RegistrosPago.Append(drow("Abonado").ToString.ToDecimal.ToString("0000000000000.00"))
-
-
- If drow("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Or drow("BancoNombre").ToString.ToUpper.Contains("BBVA") Then
+ RegistrosPago.Append(drow("Abonado").ToString.ToDecimal.ToString("0000000000000.00"))
If drow("Observaciones").ToString.Trim.Length = 0 Then
@@ -1117,7 +1270,78 @@ Partial Class Bancos_PagoElectronicoGrupos
End If
- Else
+
+ If drow("Referencia").ToString.Trim.Length > 20 Then
+ RegistrosPago.Append(drow("Referencia").ToString.Substring(0, 20))
+ Else
+ RegistrosPago.Append(drow("Referencia").ToString.PadRight(20, EspacioRelleno))
+ End If
+
+
+ ElseIf drow("CveBanco").ToString.Trim = "012" And drow("CIE").ToString.Trim.Length = 0 Then
+
+ 'cuentas Inicio
+ If drow("CLABEDestino").ToString.Trim.Length.Contiene(10, 18) Then
+ RegistrosPago.Append(drow("CLABEDestino").ToString.PadLeft(18, CeroRelleno))
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR EN CLABE cuenta destino")
+ Exit For
+ End If
+
+ If drow("CLABEOrigen").ToString.Trim.Length.Contiene(10, 18) Then
+ RegistrosPago.Append(drow("CLABEOrigen").ToString.PadLeft(18, CeroRelleno))
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR EN CLABE cuenta origen")
+ Exit For
+ End If
+ 'cuentas Fin
+
+
+ RegistrosPago.Append(drow("Abreviatura").ToString)
+ RegistrosPago.Append(drow("Abonado").ToString.ToDecimal.ToString("0000000000000.00"))
+
+
+ If drow("Observaciones").ToString.Trim.Length = 0 Then
+
+ If drow("RazonSocial").ToString.Trim.Length > 30 Then
+ RegistrosPago.Append(drow("RazonSocial").ToString.Substring(0, 30))
+ Else
+ RegistrosPago.Append(drow("RazonSocial").ToString.PadRight(30, EspacioRelleno))
+ End If
+ Else
+
+ If drow("Observaciones").ToString.Trim.Length > 30 Then
+ RegistrosPago.Append(drow("Observaciones").ToString.Substring(0, 30))
+ Else
+ RegistrosPago.Append(drow("Observaciones").ToString.PadRight(30, EspacioRelleno))
+ End If
+
+ End If
+
+ ElseIf drow("CveBanco").ToString <> "012" Then 'I N T E R B A N C A R I O
+
+ 'cuentas Inicio
+ If drow("CLABEDestino").ToString.Trim.Length.Contiene(10, 18) Then
+ RegistrosPago.Append(drow("CLABEDestino").ToString.PadLeft(18, CeroRelleno))
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR EN CLABE cuenta destino")
+ Exit For
+ End If
+
+ If drow("CLABEOrigen").ToString.Trim.Length.Contiene(10, 18) Then
+ RegistrosPago.Append(drow("CLABEOrigen").ToString.PadLeft(18, CeroRelleno))
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("ERROR EN CLABE cuenta origen")
+ Exit For
+ End If
+ 'cuentas Fin
+
+ RegistrosPago.Append(drow("Abreviatura").ToString)
+ RegistrosPago.Append(drow("Abonado").ToString.ToDecimal.ToString("0000000000000.00"))
If drow("RazonSocial").ToString.Length <= 30 Then
RegistrosPago.Append(drow("RazonSocial").ToString.PadRight(30, EspacioRelleno))
@@ -1149,8 +1373,14 @@ Partial Class Bancos_PagoElectronicoGrupos
RegistrosPago.Append("H")
+ Else
+ ErrorLayout = True
+ MENSAJEError.AppendLine("Parametros incorrecots")
+ Exit For
End If
+
+
If ErrorLayout Then
Alert(MENSAJEError.ToString(), TipoMensaje.MsgAdvertencia)
Exit For
@@ -1232,6 +1462,7 @@ Partial Class Bancos_PagoElectronicoGrupos
DVDescargaPagos.Visible = True
DVDescargaCuentas1.Visible = False
DVDescargaCuentas2.Visible = False
+ DVDescargaCuentas3.Visible = False
DVDescargaReporte.Visible = True
DT_PagosReporte = DTPendientesTemp.Copy
@@ -1866,7 +2097,7 @@ Partial Class Bancos_PagoElectronicoGrupos
If ObjBancos.GetLayoutProveedores(DdlCuenta.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, PorGrupos:=True) Then
DTProveedores = ObjBancos.DtResultados.FiltraParametros("LEN(RFC) IN (12,13)")
Else
- DTProveedores = Nothing
+ DTProveedores = New DataTable
End If
ObjBancos.Dispose()
@@ -1984,20 +2215,20 @@ Partial Class Bancos_PagoElectronicoGrupos
strBody.AppendFormat("