Merge branch 'master' of http://agonzalez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -2864,7 +2864,7 @@ Public Class ClsBancos
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetLayoutPagosEnviados(CveCuenta As Integer, Estatus As Integer, Tipo As String, FechaI As String, FechaF As String) As Boolean
|
Public Function GetLayoutPagosEnviados(CveCuenta As Integer, Estatus As Integer, Tipo As String, FechaI As String, FechaF As String, Optional PorGrupos As Boolean = False) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Banc_LayoutPagosEnviados")
|
DataAdapter("PA_Banc_LayoutPagosEnviados")
|
||||||
@@ -2875,6 +2875,7 @@ Public Class ClsBancos
|
|||||||
.Add("@Tipo", SqlDbType.VarChar).Value = Tipo
|
.Add("@Tipo", SqlDbType.VarChar).Value = Tipo
|
||||||
.Add("@FechaI", SqlDbType.VarChar).Value = FechaI
|
.Add("@FechaI", SqlDbType.VarChar).Value = FechaI
|
||||||
.Add("@FechaF", SqlDbType.VarChar).Value = FechaF
|
.Add("@FechaF", SqlDbType.VarChar).Value = FechaF
|
||||||
|
.Add("@PorGrupos", SqlDbType.Bit).Value = PorGrupos
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -2906,7 +2907,7 @@ Public Class ClsBancos
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddLayoutEnvios(Archivo As String, Fecha As Date, CveCuenta As Integer) As Integer
|
Public Function AddLayoutEnvios(Archivo As String, Fecha As Date, CveCuenta As Integer, Optional PorGrupos As Boolean = False) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno = -1
|
||||||
|
|
||||||
DataAdapter("PA_Banc_LayoutEnviosAdd")
|
DataAdapter("PA_Banc_LayoutEnviosAdd")
|
||||||
@@ -2915,6 +2916,7 @@ Public Class ClsBancos
|
|||||||
.Add("@Archivo", SqlDbType.VarChar).Value = Archivo
|
.Add("@Archivo", SqlDbType.VarChar).Value = Archivo
|
||||||
.Add("@Fecha", SqlDbType.DateTime).Value = Fecha
|
.Add("@Fecha", SqlDbType.DateTime).Value = Fecha
|
||||||
.Add("@CveCuenta", SqlDbType.Int).Value = CveCuenta
|
.Add("@CveCuenta", SqlDbType.Int).Value = CveCuenta
|
||||||
|
.Add("@PorGrupos", SqlDbType.Bit).Value = PorGrupos
|
||||||
.Add("@CveLayoutEnvio", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@CveLayoutEnvio", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -3113,7 +3115,7 @@ Public Class ClsBancos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetLayoutProveedores(CveCuenta As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetLayoutProveedores(CveCuenta As Integer, CveEmpresa As Integer, Optional PorGrupos As Boolean = False) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Banc_LayoutProveedores")
|
DataAdapter("PA_Banc_LayoutProveedores")
|
||||||
@@ -3121,6 +3123,7 @@ Public Class ClsBancos
|
|||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveCuenta", SqlDbType.Int).Value = CveCuenta
|
.Add("@CveCuenta", SqlDbType.Int).Value = CveCuenta
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@PorGrupos", SqlDbType.Bit).Value = PorGrupos
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -1388,7 +1388,7 @@ Public Class ClsGenerales
|
|||||||
End Function
|
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,
|
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 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 = "") As Boolean
|
Optional Correo As String = "", Optional BBVAAlias As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Gral_CuentasDepositosAdd")
|
DataAdapter("PA_Gral_CuentasDepositosAdd")
|
||||||
@@ -1410,7 +1410,8 @@ Public Class ClsGenerales
|
|||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@RefCrediProveedor", SqlDbType.VarChar).Value = RefCrediProveedor
|
.Add("@RefCrediProveedor", SqlDbType.VarChar).Value = RefCrediProveedor
|
||||||
.Add("@CveUsuarioModifico", SqlDbType.Int).Value = CveUsuarioModifico
|
.Add("@CveUsuarioModifico", SqlDbType.Int).Value = CveUsuarioModifico
|
||||||
.Add("@Correo", SqlDbType.VarChar).Value = Correo
|
.Add("@Correo", SqlDbType.VarChar).Value = Correo
|
||||||
|
.Add("@BBVAAlias", SqlDbType.VarChar).Value = BBVAAlias
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -1453,7 +1454,7 @@ Public Class ClsGenerales
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
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 = "") As Boolean
|
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") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Gral_CuentasDepositosUpdate")
|
DataAdapter("PA_Gral_CuentasDepositosUpdate")
|
||||||
@@ -1475,6 +1476,7 @@ Public Class ClsGenerales
|
|||||||
.Add("@RefCrediProveedor", SqlDbType.VarChar).Value = RefCrediProveedor
|
.Add("@RefCrediProveedor", SqlDbType.VarChar).Value = RefCrediProveedor
|
||||||
.Add("@CveUsuarioModifico", SqlDbType.Int).Value = CveUsuarioModifico
|
.Add("@CveUsuarioModifico", SqlDbType.Int).Value = CveUsuarioModifico
|
||||||
.Add("@Correo", SqlDbType.VarChar).Value = Correo
|
.Add("@Correo", SqlDbType.VarChar).Value = Correo
|
||||||
|
.Add("@BBVAAlias", SqlDbType.VarChar).Value = BBVAAlias
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -1492,10 +1494,10 @@ Public Class ClsGenerales
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "T I P O - C A M B I O"
|
#Region "T I P O - C A M B I O"
|
||||||
Public Function AddTipoCambio(TipoCambio As Double, Fecha As Date, Optional TipoCambioEuro As Double = 0, Optional TipoCambioFIX As Double = 0) As Boolean
|
Public Function AddTipoCambio(TipoCambio As Double, Fecha As Date, Optional TipoCambioEuro As Double = 0, Optional TipoCambioFIX As Double = 0) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|||||||
@@ -547,6 +547,24 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
Public Function CancelarPagos(CveVenta As Integer, CvePrePoliza As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Vta_CancelarPagosVenta")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||||
|
.Add("@CvePrePoliza", SqlDbType.Int).Value = CvePrePoliza
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al cancelar los pagos de la venta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
Public Function RemoveVta_VentaPago(CveVenta As Integer, CveMetodoPago As Integer) As Boolean
|
Public Function RemoveVta_VentaPago(CveVenta As Integer, CveMetodoPago As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_VentasPagoRemove")
|
DataAdapter("PA_Vta_VentasPagoRemove")
|
||||||
|
|||||||
@@ -4285,7 +4285,7 @@ Namespace Modelos
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'CUANDO LA CANCELACION ESTA EN PROCESO NO DEBE REALIZAR NADA DE ESTE PROCESO
|
'CUANDO LA CANCELACION ESTA EN PROCESO NO DEBE REALIZAR NADA DE ESTE PROCESO
|
||||||
If (((ObjFactura.Saldo > 0 AndAlso (CveEstatus > 0 AndAlso CveEstatus <> 20)) OrElse (ObjFactura.Total = 0 AndAlso UsuarioActual.CveEmpresa.Contiene(72) AndAlso ObjFactura.TipoDocto.Contiene("Ing"))) AndAlso CveEstatus.Contiene(4, 5)) OrElse (CvePlantillaPoliza = 7 AndAlso (CveEstatus > 0 AndAlso CveEstatus <> 20)) Then
|
If Not EsRefacturacion AndAlso ((((ObjFactura.Saldo > 0 AndAlso (CveEstatus > 0 AndAlso CveEstatus <> 20)) OrElse (ObjFactura.Total = 0 AndAlso UsuarioActual.CveEmpresa.Contiene(72) AndAlso ObjFactura.TipoDocto.Contiene("Ing"))) AndAlso CveEstatus.Contiene(4, 5)) OrElse (CvePlantillaPoliza = 7 AndAlso (CveEstatus > 0 AndAlso CveEstatus <> 20))) Then
|
||||||
|
|
||||||
'CUANDO SE CANCELA, LA PÓLIZA DEBE DE SER DE DIARIO
|
'CUANDO SE CANCELA, LA PÓLIZA DEBE DE SER DE DIARIO
|
||||||
CvePrePoliza = ObjConta.AddPrePolizas("Modelos/CancelarDocumento", CvePlantillaPoliza, ObjFactura.Total, ObjFactura.Total, ObjFactura.CveMoneda, Now, ObjFactura.Cliente.Nombre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=3)
|
CvePrePoliza = ObjConta.AddPrePolizas("Modelos/CancelarDocumento", CvePlantillaPoliza, ObjFactura.Total, ObjFactura.Total, ObjFactura.CveMoneda, Now, ObjFactura.Cliente.Nombre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=3)
|
||||||
@@ -4296,8 +4296,16 @@ Namespace Modelos
|
|||||||
MensajeError = "Ocurrió un error al generar la prepoliza de cancelación."
|
MensajeError = "Ocurrió un error al generar la prepoliza de cancelación."
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
''CANCELAR PAGOS
|
||||||
|
'If EsRefacturacion AndAlso ObjFactura.TipoDocto.Contiene("Ing", "Rem", "Ant") AndAlso ObjFactura.Pagado > 0 Then
|
||||||
|
' If Not ObjVentas.CancelarPagos(ObjFactura.CveVenta, CvePrePoliza) Then
|
||||||
|
' ErrorCancelar = True
|
||||||
|
' MensajeError = "Ocurrió un error al generar la cancelación de pagos."
|
||||||
|
' End If
|
||||||
|
'End If
|
||||||
|
|
||||||
'CANCELAR PAGOS
|
'CANCELAR PAGOS
|
||||||
If ObjFactura.TipoDocto.Contiene("Egs", "Dev") Then
|
If Not EsRefacturacion AndAlso ObjFactura.TipoDocto.Contiene("Egs", "Dev") Then
|
||||||
If Not ErrorCancelar Then
|
If Not ErrorCancelar Then
|
||||||
If Not ObjConta.PrePolizasCancelarPagos(ObjFactura.CveDevolucion, CvePrePoliza) Then
|
If Not ObjConta.PrePolizasCancelarPagos(ObjFactura.CveDevolucion, CvePrePoliza) Then
|
||||||
ErrorCancelar = True
|
ErrorCancelar = True
|
||||||
@@ -4306,6 +4314,7 @@ Namespace Modelos
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
'CANCELA PREPOLIZA
|
'CANCELA PREPOLIZA
|
||||||
If Not ErrorCancelar Then
|
If Not ErrorCancelar Then
|
||||||
ErrorCancelar = ProcesoPrepolizas(ObjFactura, ObjConta, -1, ObjFactura.DtDetalle, ObjAC, -1, ObjBancos, ObjVentas, ObjEventos, DtRemisionesRelacionadas:=DtRemisionesRelacionadas, SeCancelaRemisionProceso:=SeCancelaRemisionProceso,
|
ErrorCancelar = ProcesoPrepolizas(ObjFactura, ObjConta, -1, ObjFactura.DtDetalle, ObjAC, -1, ObjBancos, ObjVentas, ObjEventos, DtRemisionesRelacionadas:=DtRemisionesRelacionadas, SeCancelaRemisionProceso:=SeCancelaRemisionProceso,
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
ViewState("NombreArchivo") = value
|
ViewState("NombreArchivo") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Property DTPendientes As DataTable
|
Private Property DTPendientes As DataTable
|
||||||
Get
|
Get
|
||||||
Return CType(ViewState("DTPendientes"), DataTable)
|
Return CType(ViewState("DTPendientes"), DataTable)
|
||||||
@@ -67,7 +68,17 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
ViewState("DTPendientes") = value
|
ViewState("DTPendientes") = value
|
||||||
End Set
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property DTAltasPendientes As DataTable
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("DTAltasPendientes"), DataTable)
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DTAltasPendientes") = value
|
||||||
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Property DTProveedores As DataTable
|
Private Property DTProveedores As DataTable
|
||||||
Get
|
Get
|
||||||
Return CType(ViewState("DTProveedores"), DataTable)
|
Return CType(ViewState("DTProveedores"), DataTable)
|
||||||
@@ -214,7 +225,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
DTPendientes = Nothing
|
DTPendientes = Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjBancos.GetLayoutPagosEnviados(CveCuenta, 1, DdlTipoGeneracion.SelectedValue, "-1", "-1") Then
|
If ObjBancos.GetLayoutPagosEnviados(CveCuenta, 1, DdlTipoGeneracion.SelectedValue, "-1", "-1", PorGrupos:=True) Then
|
||||||
DTEnviadas = ObjBancos.DtResultados
|
DTEnviadas = ObjBancos.DtResultados
|
||||||
Else
|
Else
|
||||||
DTEnviadas = Nothing
|
DTEnviadas = Nothing
|
||||||
@@ -237,7 +248,13 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
UpGVDatos.Update()
|
UpGVDatos.Update()
|
||||||
|
|
||||||
If DTPendientes IsNot Nothing AndAlso DTPendientes.Rows.Count > 0 Then
|
If DTPendientes IsNot Nothing AndAlso DTPendientes.Rows.Count > 0 Then
|
||||||
CargaDatosInformativos()
|
CargaDatosInformativos()
|
||||||
|
Else
|
||||||
|
|
||||||
|
LbNumeroMovimientos.Text = "0"
|
||||||
|
LbImporteMovimientos.Text = "0"
|
||||||
|
|
||||||
|
UpComandosGeneracion.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -331,13 +348,23 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
Response.ContentType = "application/zip"
|
Response.ContentType = "application/zip"
|
||||||
Response.End()
|
Response.End()
|
||||||
End Sub
|
End Sub
|
||||||
Private Function CreaArchivo(Tipo As Integer) As Boolean
|
Private Function CreaArchivo(Tipo As Integer, Optional MismoBanco As Boolean = True) As Boolean
|
||||||
|
|
||||||
|
|
||||||
|
System.Threading.Thread.Sleep(1000) 'Un segundo de diferencia Para doferentes tipos de bancos
|
||||||
|
|
||||||
DirectoryExistsCreate(String.Format("{0}Layout", UsuarioActual.Empresa.Ruta))
|
DirectoryExistsCreate(String.Format("{0}Layout", UsuarioActual.Empresa.Ruta))
|
||||||
|
|
||||||
NombreArchivo = String.Format("{2}{1}{0}.txt", UsuarioActual.CveUsuario, Date.Now.ToString("yyyyMMdd-HH-mm"), If(Tipo = 1, "LAYOUTPAGO", "LAYOUTALTA"))
|
NombreArchivo = String.Format("{2}{1}{0}.txt", UsuarioActual.CveUsuario, Date.Now.ToString("yyyyMMdd-HH-mm-ss"), If(Tipo = 1, "LAYOUTPAGO", "LAYOUTALTA"))
|
||||||
|
|
||||||
|
If Tipo = 1 Then
|
||||||
|
NombreArchivo = String.Format("{2}{1}{0}.txt", UsuarioActual.CveUsuario, Date.Now.ToString("yyyyMMdd-HH-mm-ss"), "LAYOUTPAGO")
|
||||||
|
Else
|
||||||
|
NombreArchivo = String.Format("{2}{1}{0}{3}.txt", UsuarioActual.CveUsuario, Date.Now.ToString("yyyyMMdd-HH-mm-ss"), "LAYOUTALTA", If(MismoBanco, "BANCOMER", "INTERBANCARIO"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim path As String = String.Format("{0}Layout\{1}", UsuarioActual.Empresa.Ruta, NombreArchivo)
|
Dim path As String = String.Format("{0}Layout\{1}", UsuarioActual.Empresa.Ruta, NombreArchivo)
|
||||||
Dim fs As FileStream = File.Create(path)
|
Dim fs As FileStream = File.Create(path)
|
||||||
|
|
||||||
@@ -442,7 +469,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
Dim DtRegenerar As New DataTable
|
Dim DtRegenerar As New DataTable
|
||||||
|
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
If ObjBancos.GetLayoutPagos(CveCuenta, CveBLE, "-1") Then
|
If ObjBancos.GetLayoutPagos(CveCuenta, CveBLE, "-1", PorGrupos:=True) Then
|
||||||
DtRegenerar = ObjBancos.DtResultados
|
DtRegenerar = ObjBancos.DtResultados
|
||||||
Else
|
Else
|
||||||
DtRegenerar = Nothing
|
DtRegenerar = Nothing
|
||||||
@@ -450,7 +477,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
ObjBancos.Dispose()
|
ObjBancos.Dispose()
|
||||||
|
|
||||||
If DtRegenerar IsNot Nothing Then
|
If DtRegenerar IsNot Nothing Then
|
||||||
GeneraPago(DtRegenerar)
|
GeneraPago(DtRegenerar, False)
|
||||||
Else
|
Else
|
||||||
Alert("Ocurrió un error al obtener los datos para generar el archivo. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
Alert("Ocurrió un error al obtener los datos para generar el archivo. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
@@ -492,13 +519,14 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
AltaProveedores(1)
|
AltaProveedores(1)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub AltaProveedores(TipoAlta As Integer)
|
Private Sub AltaProveedores(TipoAlta As Integer, Optional DtCuentasPendientesTemp As DataTable = Nothing)
|
||||||
|
|
||||||
|
|
||||||
NombreArchivo = ""
|
NombreArchivo = ""
|
||||||
|
|
||||||
Dim RegistrosAltaBancomer As New StringBuilder
|
Dim RegistrosAltaBancomer As New StringBuilder
|
||||||
Dim RegistrosAltaInterbancario As New StringBuilder
|
Dim RegistrosAltaInterbancario As New StringBuilder
|
||||||
|
Dim SBErrores As New StringBuilder
|
||||||
|
|
||||||
Dim NombreArchivoBancomer As String = ""
|
Dim NombreArchivoBancomer As String = ""
|
||||||
Dim NombreArchivoInterbancario As String = ""
|
Dim NombreArchivoInterbancario As String = ""
|
||||||
@@ -508,46 +536,72 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
Dim ErrorLayout = False
|
Dim ErrorLayout = False
|
||||||
|
|
||||||
|
|
||||||
Dim DtCuentasPendientesTemp As DataTable = DTPendientes.Copy
|
If DtCuentasPendientesTemp Is Nothing Then
|
||||||
|
DtCuentasPendientesTemp = DTPendientes.Copy
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DtCuentasPendientesTemp.CaseSensitive = False
|
DtCuentasPendientesTemp.CaseSensitive = False
|
||||||
|
|
||||||
Dim DtCuentasPendientesBancomer As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (CuentaPago like '%BBVA%' OR CuentaPago like '%BANCOMER%' ) ", "", {"CuentaPago", "NumCuenta", "AbreviaturaMon", "RazonSocial", "CveProveedor", "CveBanco"})
|
Dim DtCuentasPendientesBancomer As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre like '%BBVA%' OR BancoNombre like '%BANCOMER%' ) ", "", {"BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias"})
|
||||||
Dim DtCuentasPendientesInterbancarias As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND NOT (CuentaPago like '%BBVA%' OR CuentaPago like '%BANCOMER%' ) ", "", {"CuentaPago", "NumCuenta", "AbreviaturaMon", "RazonSocial", "CveProveedor", "CveBanco"})
|
Dim DtCuentasPendientesInterbancarias As DataTable = DtCuentasPendientesTemp.FiltraParametros($" (EstatusPagoElectronicoGrupos IS NULL OR EstatusPagoElectronicoGrupos = False) AND (BancoNombre not like '%BBVA%' AND BancoNombre not like '%BANCOMER%' ) ", "", {"BancoNombre", "CLABEDestino", "Abreviatura", "RazonSocial", "CveProveedor", "CveBanco", "Cuenta", "BBVAAlias"})
|
||||||
|
'CLABEDestino
|
||||||
|
|
||||||
If DtCuentasPendientesBancomer.Rows.Count > 0 Then
|
If DtCuentasPendientesBancomer.Rows.Count > 0 Then
|
||||||
For Each dRow As DataRow In DtCuentasPendientesBancomer.Rows
|
For Each dRow As DataRow In DtCuentasPendientesBancomer.Rows
|
||||||
|
|
||||||
|
Dim SBTmpBancomer As New StringBuilder
|
||||||
|
Dim SBErroresBancomer As New StringBuilder
|
||||||
|
Dim ErrorLineaBancomer As Boolean = False
|
||||||
|
|
||||||
If dRow("NumCuenta").ToString.Length < 19 Then 'Tamaño maximo 18
|
SBErroresBancomer.Append($"{dRow("RazonSocial").ToString } ")
|
||||||
RegistrosAltaBancomer.Append(dRow("NumCuenta").ToString.PadLeft(18, CeroRelleno))
|
SBErroresBancomer.Append($"Cuenta: {dRow("Cuenta").ToString } ")
|
||||||
|
|
||||||
|
If dRow("CLABEDestino").ToString.Length <= 18 Then 'Tamaño maximo 18
|
||||||
|
SBTmpBancomer.Append(dRow("CLABEDestino").ToString.PadLeft(18, CeroRelleno))
|
||||||
|
Else
|
||||||
|
SBErroresBancomer.Append("La cuenta beneficiaria no puede ser mayor a 18 caracteres, ")
|
||||||
|
ErrorLineaBancomer = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If dRow("AbreviaturaMon").ToString.Length = 3 AndAlso dRow("AbreviaturaMon").ToString.Contiene("MXN", "USD", "EUR") Then
|
If dRow("Abreviatura").ToString.Length = 3 Then
|
||||||
RegistrosAltaBancomer.Append(dRow("AbreviaturaMon"))
|
SBTmpBancomer.Append(dRow("Abreviatura"))
|
||||||
|
Else
|
||||||
|
SBErroresBancomer.Append("El tamaño de la divisa es incorrecto, ")
|
||||||
|
ErrorLineaBancomer = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
RegistrosAltaBancomer.Append("0999999999999.99")
|
SBTmpBancomer.Append("0999999999999.99")
|
||||||
|
|
||||||
If dRow("RazonSocial").ToString.Trim.Length < 31 Then 'Tamaño maximo 30
|
If dRow("RazonSocial").ToString.Trim.Length < 31 Then 'Tamaño maximo 30
|
||||||
RegistrosAltaBancomer.Append(dRow("RazonSocial").ToString.PadLeft(30, EspacioRelleno))
|
SBTmpBancomer.Append(dRow("RazonSocial").ToString.PadRight(30, EspacioRelleno))
|
||||||
Else
|
Else
|
||||||
RegistrosAltaBancomer.Append(dRow("RazonSocial").ToString.Trim.Substring(0, 30))
|
SBTmpBancomer.Append(dRow("RazonSocial").ToString.Trim.Substring(0, 30))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'ALIAS DE LA CUENTA PENDIENTE TAMAÑO MAXIMO 30
|
'ALIAS DE LA CUENTA PENDIENTE TAMAÑO MAXIMO 30
|
||||||
RegistrosAltaBancomer.Append(dRow("CveProveedor").ToString.PadLeft(30, EspacioRelleno))
|
SBTmpBancomer.Append(dRow("BBVAAlias").ToString.PadRight(30, EspacioRelleno))
|
||||||
|
|
||||||
'CORREO OPCIONAL TAMAÑO MAXIMO 80
|
'CORREO OPCIONAL TAMAÑO MAXIMO 80
|
||||||
'RegistrosAlta.Append("".ToString.PadLeft(80, EspacioRelleno))
|
'RegistrosAlta.Append("".ToString.PadLeft(80, EspacioRelleno))
|
||||||
|
|
||||||
RegistrosAltaBancomer.Append(vbCrLf)
|
SBTmpBancomer.Append(vbCrLf)
|
||||||
|
|
||||||
|
|
||||||
|
If Not ErrorLineaBancomer Then
|
||||||
|
RegistrosAltaBancomer.Append(SBTmpBancomer.ToString)
|
||||||
|
Else
|
||||||
|
SBErroresBancomer.Append("<br>")
|
||||||
|
SBErrores.AppendLine(SBErroresBancomer.ToString)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
TextoCompleto = RegistrosAltaBancomer.ToString
|
TextoCompleto = RegistrosAltaBancomer.ToString
|
||||||
|
|
||||||
If CreaArchivo(2) Then
|
If CreaArchivo(2, True) Then
|
||||||
NombreArchivoBancomer = NombreArchivo
|
NombreArchivoBancomer = NombreArchivo
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -561,53 +615,70 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
|
|
||||||
For Each dRow As DataRow In DtCuentasPendientesInterbancarias.Rows
|
For Each dRow As DataRow In DtCuentasPendientesInterbancarias.Rows
|
||||||
|
|
||||||
If Not (dRow("CuentaPago").ToString.ToUpper.Contains("BBVA") Or dRow("CuentaPago").ToString.ToUpper.Contains("BANCOMER")) Then
|
Dim SBTmpInterbancarias As New StringBuilder
|
||||||
|
Dim SBErroresInterBancario As New StringBuilder
|
||||||
|
Dim ErrorLineaInterbancaria As Boolean = False
|
||||||
|
|
||||||
If dRow("CveBanco").ToString = "" Then
|
SBErroresInterBancario.Append($"{dRow("RazonSocial").ToString } ")
|
||||||
RegistrosAltaInterbancario.Append(dRow("CveBanco").ToString)
|
SBErroresInterBancario.Append($"Cuenta: {dRow("Cuenta").ToString } ")
|
||||||
Else
|
|
||||||
Alert("La cuenta deposito no tiene clave ABM(Clave SAT) asignada", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
|
|
||||||
End If
|
If dRow("CveBanco").ToString.Trim.Length = 3 Then
|
||||||
|
SBTmpInterbancarias.Append(dRow("CveBanco").ToString.Trim)
|
||||||
|
|
||||||
|
|
||||||
If dRow("NumCuenta").ToString.Length < 19 Then 'Tamaño maximo 18
|
|
||||||
RegistrosAltaInterbancario.Append(dRow("NumCuenta").ToString.PadLeft(18, CeroRelleno))
|
|
||||||
End If
|
|
||||||
|
|
||||||
If dRow("AbreviaturaMon").ToString.Length = 3 AndAlso dRow("AbreviaturaMon").ToString.Contiene("MXN", "USD", "EUR") Then
|
|
||||||
RegistrosAltaInterbancario.Append(dRow("AbreviaturaMon"))
|
|
||||||
End If
|
|
||||||
|
|
||||||
RegistrosAltaInterbancario.Append("0999999999999.99")
|
|
||||||
|
|
||||||
If dRow("RazonSocial").ToString.Trim.Length < 31 Then 'Tamaño maximo 30
|
|
||||||
RegistrosAltaInterbancario.Append(dRow("RazonSocial").ToString.PadLeft(30, EspacioRelleno))
|
|
||||||
Else
|
Else
|
||||||
RegistrosAltaInterbancario.Append(dRow("RazonSocial").ToString.Trim.Substring(0, 30))
|
SBErroresInterBancario.Append("clave ABM(Clave SAT) incorrecta, ")
|
||||||
|
ErrorLineaInterbancaria = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'ALIAS DE LA CUENTA PENDIENTE TAMAÑO MAXIMO 30
|
|
||||||
RegistrosAltaInterbancario.Append(dRow("CveProveedor").ToString.PadLeft(30, EspacioRelleno))
|
If dRow("CLABEDestino").ToString.Length <= 18 Then 'Tamaño maximo 18
|
||||||
|
SBTmpInterbancarias.Append(dRow("CLABEDestino").ToString.PadLeft(18, CeroRelleno))
|
||||||
|
Else
|
||||||
|
SBErroresInterBancario.Append("La cuenta beneficiaria no puede ser mayor a 18 caracteres, ")
|
||||||
|
ErrorLineaInterbancaria = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If dRow("Abreviatura").ToString.Length = 3 Then
|
||||||
|
SBTmpInterbancarias.Append(dRow("Abreviatura").ToString.Trim)
|
||||||
|
Else
|
||||||
|
SBErroresInterBancario.Append("El tamaño de la divisa es incorrecto, ")
|
||||||
|
ErrorLineaInterbancaria = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
SBTmpInterbancarias.Append("0999999999999.99")
|
||||||
|
|
||||||
|
If dRow("RazonSocial").ToString.Trim.Length <31 Then 'Tamaño maximo 30
|
||||||
|
SBTmpInterbancarias.Append(dRow("RazonSocial").ToString.PadRight(30, EspacioRelleno))
|
||||||
|
Else
|
||||||
|
SBTmpInterbancarias.Append(dRow("RazonSocial").ToString.Trim.Substring(0, 30))
|
||||||
|
End If
|
||||||
|
|
||||||
|
' ALIAS DE LA CUENTA PENDIENTE TAMAÑO MAXIMO 30
|
||||||
|
SBTmpInterbancarias.Append(dRow("BBVAAlias").ToString.PadRight(30, EspacioRelleno))
|
||||||
|
|
||||||
'CORREO OPCIONAL TAMAÑO MAXIMO 80
|
'CORREO OPCIONAL TAMAÑO MAXIMO 80
|
||||||
'RegistrosAlta.Append("".ToString.PadLeft(80, EspacioRelleno))
|
'RegistrosAlta.Append("".ToString.PadLeft(80, EspacioRelleno))
|
||||||
|
|
||||||
If Not (dRow("CuentaPago").ToString.ToUpper.Contains("BBVA") Or dRow("CuentaPago").ToString.ToUpper.Contains("BANCOMER")) Then
|
|
||||||
RegistrosAltaInterbancario.Append("40")
|
|
||||||
End If
|
|
||||||
|
|
||||||
RegistrosAltaInterbancario.Append(vbCrLf)
|
'Tipo de cuenta
|
||||||
|
SBTmpInterbancarias.Append("40")
|
||||||
|
|
||||||
|
SBTmpInterbancarias.Append(vbCrLf)
|
||||||
|
|
||||||
|
|
||||||
|
If Not ErrorLineaInterbancaria Then
|
||||||
|
RegistrosAltaInterbancario.Append(SBTmpInterbancarias.ToString)
|
||||||
|
Else
|
||||||
|
SBErroresInterBancario.Append("<br>")
|
||||||
|
SBErrores.AppendLine(SBErroresInterBancario.ToString)
|
||||||
|
End If
|
||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
If RegistrosAltaInterbancario.Length > 0 Then
|
||||||
TextoCompleto = RegistrosAltaInterbancario.ToString
|
TextoCompleto = RegistrosAltaInterbancario.ToString
|
||||||
If CreaArchivo(2) Then
|
If CreaArchivo(2, False) Then
|
||||||
NombreArchivoInterbancario = NombreArchivo
|
NombreArchivoInterbancario = NombreArchivo
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -616,15 +687,23 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
Dim Mensaje As New StringBuilder
|
Dim Mensaje As New StringBuilder
|
||||||
|
|
||||||
|
|
||||||
Mensaje.Append("Descarga Layouts<br>")
|
Mensaje.Append("Descarga Layouts<br><br>")
|
||||||
|
|
||||||
If NombreArchivoBancomer.Trim.Length > 0 Then
|
If NombreArchivoBancomer.Trim.Length > 0 Then
|
||||||
Mensaje.Append($"Cuentas Bancomer <a class='texto' href='../Empresas/{UsuarioActual.CveEmpresa}/Layout/{NombreArchivoBancomer}' download>Descarga Archivo cuentas Bancomer<a> <br><br>")
|
Mensaje.Append($"Cuentas Bancomer <a class='Texto' href='../Empresas/{UsuarioActual.CveEmpresa}/Layout/{NombreArchivoBancomer}' download > Descarga Archivo cuentas Bancomer</a> <br><br>")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If NombreArchivoInterbancario.Trim.Length > 0 Then
|
If NombreArchivoInterbancario.Trim.Length > 0 Then
|
||||||
Mensaje.Append($"Cuentas Interbancarias <a class='texto' href='../Empresas/{UsuarioActual.CveEmpresa}/Layout/{NombreArchivoInterbancario}' download>Descarga Archivo cuentas Bancomer<a>")
|
Mensaje.Append($"Cuentas Interbancarias <a class='Texto' href='../Empresas/{UsuarioActual.CveEmpresa}/Layout/{NombreArchivoInterbancario}' download >Descarga Archivo cuentas Bancomer</a> <br><br>")
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If SBErrores.ToString.Length > 0 Then
|
||||||
|
Mensaje.Append("<a class='Texto' data-toggle='collapse' data-target='#ErroresCuentas'>Errores Cuentas</a><br>")
|
||||||
|
Mensaje.Append("<div id='ErroresCuentas' Class='collapse'")
|
||||||
|
Mensaje.Append(SBErrores.ToString)
|
||||||
|
Mensaje.Append("</div>")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If NombreArchivoBancomer.Length > 0 Or NombreArchivoInterbancario.Length > 0 Then
|
If NombreArchivoBancomer.Length > 0 Or NombreArchivoInterbancario.Length > 0 Then
|
||||||
@@ -637,239 +716,86 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Private Sub AltaProveedoresViejo(TipoAlta As Integer)
|
|
||||||
Dim DtTemp As DataTable = Nothing
|
|
||||||
CreaDtAlta()
|
|
||||||
|
|
||||||
|
'Protected Sub CrearDetalle()
|
||||||
'TIPO ALTA
|
' Dim Resultado = True
|
||||||
'1 = Alta comun
|
' Dim CuentaDeposito As String = ""
|
||||||
'2 = Alta masiva
|
' Dim TipoCuentaDeposito As String = ""
|
||||||
If TipoAlta = 1 Then
|
' Dim TipoCuenta As String = ""
|
||||||
If DTPendientes Is Nothing OrElse DTPendientes.FiltraParametros("EstatusCtaDeposito = 'True'").Rows.Count <= 0 Then
|
|
||||||
Alert("No hay registros para generar", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
Else
|
|
||||||
DtTemp = DTPendientes.FiltraParametros("EstatusCtaDeposito = 'True'").Copy
|
|
||||||
End If
|
|
||||||
ElseIf TipoAlta = 2 Then
|
|
||||||
If DTProveedores Is Nothing OrElse DTProveedores.Rows.Count <= 0 Then
|
|
||||||
Alert("No hay registros para generar", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
Else
|
|
||||||
DtTemp = DTProveedores.Copy
|
|
||||||
End If
|
|
||||||
ElseIf TipoAlta = 3 Then
|
|
||||||
If DTFyE Is Nothing OrElse DTFyE.Rows.Count <= 0 Then
|
|
||||||
Alert("No hay registros para generar", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
Else
|
|
||||||
DtTemp = DTProveedores.Copy
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
'REINICIA PROPIEDAS
|
|
||||||
HeaderTexto = ""
|
|
||||||
DetalleTexto = ""
|
|
||||||
TrailerTexto = ""
|
|
||||||
TotalAcumulado = 0
|
|
||||||
|
|
||||||
''VALIDA CUENTAS DEPOSITOS
|
|
||||||
Dim ErrorCuenta = False
|
|
||||||
Dim ProveedoresError As StringBuilder = New StringBuilder
|
|
||||||
ProveedoresError.AppendFormat("<table width='600px'><thead><tr><td width='300px'>Proveedor</td><td width='150px'>Cuenta</td><td width='150px'>Error</td></tr></thead><tbody>")
|
|
||||||
Dim TotalDetalles As Integer = 0
|
|
||||||
Dim EsBancomer = False
|
|
||||||
For Each gvr As DataRow In DtTemp.Rows
|
|
||||||
If gvr("CveCuentaDeposito").ToString <> "" AndAlso gvr("EstatusPagoElectronico").ToString <> "True" AndAlso gvr("AltaCuenta").ToString = "1" Then
|
|
||||||
DTPendienteActual = DtTemp.FiltraParametros(String.Format("CveCuentaDeposito = {0}", gvr("CveCuentaDeposito").ToString))
|
|
||||||
ErrorCuenta = False
|
|
||||||
EsBancomer = False
|
|
||||||
|
|
||||||
If DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BBVA") Or DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Or (DTPendienteActual(0)("CLABE").ToString.Length = 18 AndAlso DTPendienteActual(0)("CLABE").ToString.Substring(0, 3) = "012") Then
|
|
||||||
EsBancomer = True
|
|
||||||
End If
|
|
||||||
|
|
||||||
''COMENTADO PARA PERMITIR ENTRADA DE UNA CUENTA A PROVEEDOR, 22 DE SEPTIEMBRE, ISRAEL PIÑA
|
|
||||||
'If Not ErrorCuenta Then
|
|
||||||
' If EsBancomer AndAlso (DTPendienteActual(0)("CLABE").ToString.Length = 18 AndAlso Not DTPendienteActual(0)("CLABE").ToString.Substring(0, 3) = "012") Then
|
|
||||||
' ProveedoresError.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>CLABE NO PERTENECE A BANCOMER</td></tr>", DTPendienteActual(0)("RazonSocial").ToString, DTPendienteActual(0)("BancoNombre").ToString)
|
|
||||||
' ErrorCuenta = True
|
|
||||||
' End If
|
|
||||||
'End If
|
|
||||||
|
|
||||||
''CLABE SIEMPRE OBLIGATORIA CUANDO NO ES BANCOMER CON CIE
|
|
||||||
'If (DTPendienteActual(0)("CLABE").ToString.Trim.Length <> 18 And Not EsBancomer) Or (EsBancomer And TxtConvenioCIE.Text.Trim.Length <> 6 And DTPendienteActual(0)("CLABE").ToString.Trim.Length <> 18) Then
|
|
||||||
' Alert("La CLABE es obligatoria y debe tener una longitud de 18 dígitos. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
|
|
||||||
' Exit Sub
|
|
||||||
'End If
|
|
||||||
|
|
||||||
'CLABE SIEMPRE OBLIGATORIA SI NO ES BANCOMER
|
|
||||||
If Not ErrorCuenta Then
|
|
||||||
If DTPendienteActual(0)("CLABE").ToString.Trim.Length <> 18 And DTPendienteActual(0)("CLABE").ToString.Trim.Length = 0 And Not EsBancomer Then
|
|
||||||
ProveedoresError.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>CLABE ES OBLIGATORIA</td></tr>", DTPendienteActual(0)("RazonSocial").ToString, DTPendienteActual(0)("BancoNombre").ToString)
|
|
||||||
ErrorCuenta = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
'SI CUENTA TIENE ALGO Y BANCO BANCOMER DEBE TENER UNA LOGITUD EXACTA DE 10
|
|
||||||
If Not ErrorCuenta Then
|
|
||||||
If DTPendienteActual(0)("Cuenta").ToString.Trim.Length <> 0 AndAlso DTPendienteActual(0)("Cuenta").ToString.Trim.Length <> 10 AndAlso EsBancomer Then
|
|
||||||
ProveedoresError.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>NUMERO DE CUENTA CON FORMATO INCORRECTO</td></tr>", DTPendienteActual(0)("RazonSocial").ToString, DTPendienteActual(0)("BancoNombre").ToString)
|
|
||||||
ErrorCuenta = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
'SI CLABE TIENE ALGO DEBE TENER UNA LOGITUD EXACTA DE 18
|
|
||||||
If Not ErrorCuenta Then
|
|
||||||
If DTPendienteActual(0)("CLABE").ToString.Trim.Length <> 0 AndAlso DTPendienteActual(0)("CLABE").ToString.Trim.Length <> 18 Then
|
|
||||||
ProveedoresError.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>CLABE CON FORMATO INCORRECTO</td></tr>", DTPendienteActual(0)("RazonSocial").ToString, DTPendienteActual(0)("BancoNombre").ToString)
|
|
||||||
ErrorCuenta = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
'SI CIE TIENE ALGO DEBE TENER REFERENCIA OBLIGATORIA
|
|
||||||
If Not ErrorCuenta Then
|
|
||||||
If DTPendienteActual(0)("CIE").ToString.Trim.Length <> 0 And DTPendienteActual(0)("Referencia").ToString.Trim.Length < 3 Then
|
|
||||||
ProveedoresError.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>CIE CON FORMATO INCORRECTO</td></tr>", DTPendienteActual(0)("RazonSocial").ToString, DTPendienteActual(0)("BancoNombre").ToString)
|
|
||||||
ErrorCuenta = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
'CUANDO SEA "BBVA" O "BANCOMER" DEBE TENER "CIE" O "CUENTA"
|
|
||||||
If Not ErrorCuenta Then
|
|
||||||
If EsBancomer AndAlso Not (DTPendienteActual(0)("Cuenta").ToString.Trim.Length = 10 Or DTPendienteActual(0)("CIE").ToString.Trim.Length <> 0) Then
|
|
||||||
ProveedoresError.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>CUENTA BANCOMER SIN CUENTA O CIE</td></tr>", DTPendienteActual(0)("RazonSocial").ToString, DTPendienteActual(0)("BancoNombre").ToString)
|
|
||||||
ErrorCuenta = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
'DTPendienteActual(0)("").ToString
|
|
||||||
|
|
||||||
'VALDIACION ANTIGUA
|
|
||||||
'If Not (DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BBVA") Or DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BANCOMER")) Then
|
|
||||||
' If Not DTPendienteActual(0)("CLABE").ToString.Length = 18 Then
|
|
||||||
' ProveedoresError.AppendFormat("Proveedor: {0}", DTPendienteActual(0)("RazonSocial").ToString)
|
|
||||||
' ErrorCuenta = True
|
|
||||||
' End If
|
|
||||||
'End If
|
|
||||||
|
|
||||||
If Not ErrorCuenta Then
|
|
||||||
If TotalDetalles > 0 Then
|
|
||||||
DetalleTexto &= vbCrLf
|
|
||||||
End If
|
|
||||||
CrearDetalle()
|
|
||||||
TotalDetalles += 1
|
|
||||||
End If
|
|
||||||
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
ProveedoresError.AppendFormat("</tbody></table>")
|
|
||||||
|
|
||||||
|
|
||||||
If TotalDetalles > 0 Then
|
|
||||||
FormarTexto(TotalDetalles)
|
|
||||||
CreaArchivo(2)
|
|
||||||
|
|
||||||
Dim Descargas As New StringBuilder()
|
|
||||||
Descargas.AppendFormat("<li><a class=""Texto"" href=""/Compras/PopUpVerFactura.aspx?File={0}"" target='_blank'>TXT</a></li>", NombreArchivo)
|
|
||||||
'Descargas.AppendFormat("<li><a class=""Texto"" href=""/Compras/PopUpVerFactura.aspx?REPORTE=S"" target='_blank'>Reporte</a></li>", NombreArchivo)
|
|
||||||
Descargas.AppendFormat("<li><a href=""#"" class=""Texto"" onclick=""fncg();"">Descargar Reporte</a></li>", NombreArchivo)
|
|
||||||
|
|
||||||
|
|
||||||
Dim TextoErrorProveedores = ""
|
|
||||||
If ProveedoresError.Length > 160 Then TextoErrorProveedores = String.Format("<br /><br /><br />Proveedores con Error: <br/><br/>------------------------------------------------------------------<br/>{0}<br /><br />", ProveedoresError.ToString)
|
|
||||||
|
|
||||||
Alert(String.Format("<br />El Layout fue creado satisfactoriamente.{1}<br />Descargas:<ul>{0}</ul>", Descargas, TextoErrorProveedores), TipoMensaje.MsgInformacion)
|
|
||||||
|
|
||||||
'NombreArchivo = "LayoutAltaProveedores"
|
|
||||||
'DescargarArchivo()
|
|
||||||
Else
|
|
||||||
Alert("No hay proveedores que dar de alta", TipoMensaje.MsgInformacion)
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Protected Sub CrearDetalle()
|
|
||||||
Dim Resultado = True
|
|
||||||
Dim CuentaDeposito As String = ""
|
|
||||||
Dim TipoCuentaDeposito As String = ""
|
|
||||||
Dim TipoCuenta As String = ""
|
|
||||||
|
|
||||||
''''' LLENADO DE DETALLE
|
' ''''' LLENADO DE DETALLE
|
||||||
'Campos #1-4 del Detalle
|
' 'Campos #1-4 del Detalle
|
||||||
DetalleTexto &= String.Format("DA{0}N ", DTPendienteActual(0)("CveCuentaDeposito").ToString.ToUpper.PadLeft(30, PadCeros))
|
' DetalleTexto &= String.Format("DA{0}N ", DTPendienteActual(0)("CveCuentaDeposito").ToString.ToUpper.PadLeft(30, PadCeros))
|
||||||
|
|
||||||
'Banco BBVA
|
' 'Banco BBVA
|
||||||
If DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BBVA") Or DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Then
|
' If DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BBVA") Or DTPendienteActual(0)("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Then
|
||||||
'Llenamos datos de BBVA
|
' 'Llenamos datos de BBVA
|
||||||
'Campo #5-7 del detalle
|
' 'Campo #5-7 del detalle
|
||||||
|
|
||||||
'Busca que cuenta sera la asignada para el proveedor
|
' 'Busca que cuenta sera la asignada para el proveedor
|
||||||
If DTPendienteActual(0)("CIE").ToString <> "" Then
|
' If DTPendienteActual(0)("CIE").ToString <> "" Then
|
||||||
CuentaDeposito = String.Format("02{0}", DTPendienteActual(0)("CIE").ToString.PadLeft(8, PadCeros))
|
' CuentaDeposito = String.Format("02{0}", DTPendienteActual(0)("CIE").ToString.PadLeft(8, PadCeros))
|
||||||
TipoCuenta = "50"
|
' TipoCuenta = "50"
|
||||||
TipoCuentaDeposito = "CIE"
|
' TipoCuentaDeposito = "CIE"
|
||||||
ElseIf DTPendienteActual(0)("Cuenta").ToString.Length = 10 Then
|
' ElseIf DTPendienteActual(0)("Cuenta").ToString.Length = 10 Then
|
||||||
CuentaDeposito = DTPendienteActual(0)("Cuenta").ToString
|
' CuentaDeposito = DTPendienteActual(0)("Cuenta").ToString
|
||||||
TipoCuenta = "99"
|
' TipoCuenta = "99"
|
||||||
TipoCuentaDeposito = "Cuenta"
|
' TipoCuentaDeposito = "Cuenta"
|
||||||
ElseIf DTPendienteActual(0)("CLABE").ToString.Length = 18 Then
|
' ElseIf DTPendienteActual(0)("CLABE").ToString.Length = 18 Then
|
||||||
CuentaDeposito = DTPendienteActual(0)("CLABE").ToString
|
' CuentaDeposito = DTPendienteActual(0)("CLABE").ToString
|
||||||
TipoCuenta = "40"
|
' TipoCuenta = "40"
|
||||||
TipoCuentaDeposito = "CLABE"
|
' TipoCuentaDeposito = "CLABE"
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
|
|
||||||
DetalleTexto &= String.Format("{0}{1}{2}", DTPendienteActual(0)("Abreviatura").ToString, TipoCuenta, CuentaDeposito.PadLeft(35, PadCeros))
|
' DetalleTexto &= String.Format("{0}{1}{2}", DTPendienteActual(0)("Abreviatura").ToString, TipoCuenta, CuentaDeposito.PadLeft(35, PadCeros))
|
||||||
|
|
||||||
'Llenamos en blanco datos de otros bancos
|
' 'Llenamos en blanco datos de otros bancos
|
||||||
'Campos 8-17 del detalle --- 64 de otros bancos y 45 para FILLER --- Fecha de Alta
|
' 'Campos 8-17 del detalle --- 64 de otros bancos y 45 para FILLER --- Fecha de Alta
|
||||||
DetalleTexto &= String.Format("{0}{1}", Vacio.PadLeft(109), DateTime.Now().ToString("yyyy-MM-dd"))
|
' DetalleTexto &= String.Format("{0}{1}", Vacio.PadLeft(109), DateTime.Now().ToString("yyyy-MM-dd"))
|
||||||
|
|
||||||
|
|
||||||
'Otros Bancos NACIONAL!!
|
' 'Otros Bancos NACIONAL!!
|
||||||
Else
|
' Else
|
||||||
|
|
||||||
CuentaDeposito = DTPendienteActual(0)("CLABE").ToString
|
' CuentaDeposito = DTPendienteActual(0)("CLABE").ToString
|
||||||
TipoCuentaDeposito = "CLABE"
|
' TipoCuentaDeposito = "CLABE"
|
||||||
|
|
||||||
'Llenamos en blanco datos de BBVA
|
' 'Llenamos en blanco datos de BBVA
|
||||||
DetalleTexto &= Vacio.PadRight(40)
|
' DetalleTexto &= Vacio.PadRight(40)
|
||||||
|
|
||||||
'Llenamos datos de otros bancos
|
' 'Llenamos datos de otros bancos
|
||||||
'Campos 8- 17 del detalle --- 44 de otros bancos --- 20 de internacional --- 45 Filler -- Fecha de Alta
|
' 'Campos 8- 17 del detalle --- 44 de otros bancos --- 20 de internacional --- 45 Filler -- Fecha de Alta
|
||||||
DetalleTexto &= String.Format("{0}40{1}{2}{3}{4}{5}", DTPendienteActual(0)("Abreviatura").ToString, DTPendienteActual(0)("CLABE").ToString.PadLeft(35, PadCeros), DTPendienteActual(0)("CLABE").ToString.Substring(0, 3).PadLeft(4, PadCeros), Vacio.PadRight(20), Vacio.PadRight(45), DateTime.Now().ToString("yyyy-MM-dd"))
|
' DetalleTexto &= String.Format("{0}40{1}{2}{3}{4}{5}", DTPendienteActual(0)("Abreviatura").ToString, DTPendienteActual(0)("CLABE").ToString.PadLeft(35, PadCeros), DTPendienteActual(0)("CLABE").ToString.Substring(0, 3).PadLeft(4, PadCeros), Vacio.PadRight(20), Vacio.PadRight(45), DateTime.Now().ToString("yyyy-MM-dd"))
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
'Llenamos datos de Tipo de Persona - Fisica o Moral
|
' 'Llenamos datos de Tipo de Persona - Fisica o Moral
|
||||||
TipoPersona()
|
' TipoPersona()
|
||||||
|
|
||||||
'Campos 27-32 --- Fillers --- datos de otros bancos (internacional)
|
' 'Campos 27-32 --- Fillers --- datos de otros bancos (internacional)
|
||||||
DetalleTexto &= Vacio.PadLeft(153)
|
' DetalleTexto &= Vacio.PadLeft(153)
|
||||||
|
|
||||||
'Campos 33-36 --- Datos de confirmacion
|
' 'Campos 33-36 --- Datos de confirmacion
|
||||||
DetalleTexto &= String.Format("{0}02{1}", Vacio.PadRight(40), CorreoNotificacionesEmpresa.ToUpper.PadRight(50))
|
' DetalleTexto &= String.Format("{0}02{1}", Vacio.PadRight(40), CorreoNotificacionesEmpresa.ToUpper.PadRight(50))
|
||||||
|
|
||||||
'If DTPendienteActual(0)("ContactoMail").ToString.Length > 0 Then
|
' 'If DTPendienteActual(0)("ContactoMail").ToString.Length > 0 Then
|
||||||
' 'DetalleTexto &= String.Format("{0}02{1}", Vacio.PadRight(40), DTPendienteActual(0)("ContactoMail").ToString.ToUpper.PadRight(50))
|
' ' 'DetalleTexto &= String.Format("{0}02{1}", Vacio.PadRight(40), DTPendienteActual(0)("ContactoMail").ToString.ToUpper.PadRight(50))
|
||||||
'ElseIf DTPendienteActual(0)("ContactoMail").ToString.Length <= 0 Then
|
' 'ElseIf DTPendienteActual(0)("ContactoMail").ToString.Length <= 0 Then
|
||||||
' DetalleTexto &= String.Format("{0}00{1}", Vacio.PadRight(40), Vacio.PadRight(50))
|
' ' DetalleTexto &= String.Format("{0}00{1}", Vacio.PadRight(40), Vacio.PadRight(50))
|
||||||
'End If
|
' 'End If
|
||||||
|
|
||||||
'Campos 37-39 -- FILLER
|
' 'Campos 37-39 -- FILLER
|
||||||
DetalleTexto &= String.Format("00{0}", Vacio.PadRight(38))
|
' DetalleTexto &= String.Format("00{0}", Vacio.PadRight(38))
|
||||||
|
|
||||||
|
|
||||||
''LLENA DT PARA REPORTE
|
' ''LLENA DT PARA REPORTE
|
||||||
Dim Row = DtAlta.NewRow()
|
' Dim Row = DtAlta.NewRow()
|
||||||
Row("Proveedor") = DTPendienteActual(0)("RazonSocial").ToString
|
' Row("Proveedor") = DTPendienteActual(0)("RazonSocial").ToString
|
||||||
Row("Banco") = DTPendienteActual(0)("BancoNombre").ToString
|
' Row("Banco") = DTPendienteActual(0)("BancoNombre").ToString
|
||||||
Row("TipoCuenta") = TipoCuentaDeposito
|
' Row("TipoCuenta") = TipoCuentaDeposito
|
||||||
Row("Cuenta") = String.Format("{0}", CuentaDeposito)
|
' Row("Cuenta") = String.Format("{0}", CuentaDeposito)
|
||||||
DtAlta.Rows.Add(Row)
|
' DtAlta.Rows.Add(Row)
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
Protected Sub TipoPersona()
|
Protected Sub TipoPersona()
|
||||||
'Persona Moral
|
'Persona Moral
|
||||||
@@ -985,7 +911,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
|
|
||||||
If DTPendientes.FiltraParametros("EstatusPagoElectronicoGrupos = 'True' AND EstatusCtaDeposito = 'True'") IsNot Nothing Then
|
If DTPendientes.FiltraParametros("EstatusPagoElectronicoGrupos = 'True' AND EstatusCtaDeposito = 'True'") IsNot Nothing Then
|
||||||
|
|
||||||
GeneraPago(DTPendientes.FiltraParametros("EstatusPagoElectronico > 0 AND EstatusCtaDeposito > 0"))
|
GeneraPago(DTPendientes.FiltraParametros("EstatusPagoElectronicoGrupos = 'True' AND EstatusCtaDeposito > 0"))
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
@@ -994,10 +920,10 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub GeneraPago(DTPendientesTemp As DataTable)
|
Private Sub GeneraPago(DTPendientesTemp As DataTable, Optional InsertaEnDB As Boolean = True)
|
||||||
|
|
||||||
Dim RegistrosPago As New StringBuilder
|
Dim RegistrosPago As New StringBuilder
|
||||||
Dim MENSAJE As New StringBuilder
|
Dim MENSAJEError As New StringBuilder
|
||||||
|
|
||||||
|
|
||||||
Dim CeroRelleno As Char = "0"c
|
Dim CeroRelleno As Char = "0"c
|
||||||
@@ -1008,6 +934,12 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
For Each drow As DataRow In DTPendientesTemp.Rows
|
For Each drow As DataRow In DTPendientesTemp.Rows
|
||||||
|
|
||||||
|
|
||||||
|
MENSAJEError.Clear()
|
||||||
|
|
||||||
|
MENSAJEError.AppendLine($"Error al generar pago <br>")
|
||||||
|
MENSAJEError.AppendLine($" Proveedor: {drow("RazonSocial").ToString} detalle: { drow("Observaciones").ToString} <br>")
|
||||||
|
|
||||||
|
|
||||||
If drow("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Or drow("BancoNombre").ToString.ToUpper.Contains("BBVA") Then
|
If drow("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Or drow("BancoNombre").ToString.ToUpper.Contains("BBVA") Then
|
||||||
RegistrosPago.Append("PTC")
|
RegistrosPago.Append("PTC")
|
||||||
Else
|
Else
|
||||||
@@ -1018,31 +950,144 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
RegistrosPago.Append(drow("CLABEOrigen").ToString)
|
RegistrosPago.Append(drow("CLABEOrigen").ToString)
|
||||||
Else
|
Else
|
||||||
ErrorLayout = True
|
ErrorLayout = True
|
||||||
MENSAJE.AppendLine("ERROR EN CLABE")
|
MENSAJEError.AppendLine("ERROR EN CLABE cuenta origen")
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If drow("CLABEDestino").ToString.Trim.Length <> 18 Then
|
If drow("CLABEDestino").ToString.Trim.Length = 18 Then
|
||||||
RegistrosPago.Append(drow("CLABEDestino").ToString)
|
RegistrosPago.Append(drow("CLABEDestino").ToString)
|
||||||
Else
|
Else
|
||||||
ErrorLayout = True
|
ErrorLayout = True
|
||||||
MENSAJE.AppendLine("ERROR EN CLABE")
|
MENSAJEError.AppendLine("ERROR EN CLABE cuenta destino")
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
RegistrosPago.Append("Abreviatura")
|
RegistrosPago.Append(drow("Abreviatura").ToString)
|
||||||
|
|
||||||
RegistrosPago.Append(drow("Abonado").ToString.ToDecimal.ToString("0000000000000.00"))
|
RegistrosPago.Append(drow("Abonado").ToString.ToDecimal.ToString("0000000000000.00"))
|
||||||
|
|
||||||
RegistrosPago.Append(drow("CveIE").ToString.PadRight(30, EspacioRelleno))
|
|
||||||
|
If drow("BancoNombre").ToString.ToUpper.Contains("BANCOMER") Or drow("BancoNombre").ToString.ToUpper.Contains("BBVA") Then
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
If drow("RazonSocial").ToString.Length <= 30 Then
|
||||||
|
RegistrosPago.Append(drow("RazonSocial").ToString.PadRight(30, EspacioRelleno))
|
||||||
|
Else
|
||||||
|
RegistrosPago.Append(drow("RazonSocial").ToString.Substring(0, 30))
|
||||||
|
End If
|
||||||
|
|
||||||
|
RegistrosPago.Append("40") '03 tarjeta debito 40 Clabe
|
||||||
|
|
||||||
|
If drow("CveBanco").ToString.Trim.Length = 3 Then
|
||||||
|
RegistrosPago.Append(drow("CveBanco").ToString.Trim)
|
||||||
|
Else
|
||||||
|
ErrorLayout = True
|
||||||
|
MENSAJEError.AppendLine("Error tamaño clave banco")
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Motivo de pago
|
||||||
|
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
|
||||||
|
|
||||||
|
If drow("Referencia").ToString.Trim.Length > 7 Then
|
||||||
|
RegistrosPago.Append(drow("Referencia").ToString.Substring(0, 7))
|
||||||
|
Else
|
||||||
|
RegistrosPago.Append(drow("Referencia").ToString.PadRight(7, EspacioRelleno))
|
||||||
|
End If
|
||||||
|
|
||||||
|
RegistrosPago.Append("H")
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ErrorLayout Then
|
||||||
|
Alert(MENSAJEError.ToString(), TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
RegistrosPago.Append(vbCrLf)
|
RegistrosPago.Append(vbCrLf)
|
||||||
|
|
||||||
'CveIE
|
|
||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
If Not ErrorLayout Then
|
||||||
|
|
||||||
|
Dim NombreArchivoPago As String = ""
|
||||||
|
|
||||||
|
TextoCompleto = RegistrosPago.ToString
|
||||||
|
If CreaArchivo(1) Then
|
||||||
|
NombreArchivoPago = NombreArchivo
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If InsertaEnDB Then
|
||||||
|
|
||||||
|
Dim ObjBancos As New ClsBancos
|
||||||
|
ObjBancos.IniciaTransacSQL()
|
||||||
|
|
||||||
|
|
||||||
|
Dim CveLayoutEnvio = ObjBancos.AddLayoutEnvios(NombreArchivo, Date.Now, CveCuenta, PorGrupos:=True)
|
||||||
|
|
||||||
|
If CveLayoutEnvio > 0 Then
|
||||||
|
For Each dr As DataRow In DTPendientesTemp.Rows
|
||||||
|
If dr("CveProveedor").ToString <> "" Or dr("CvePersonal").ToString <> "" Then
|
||||||
|
If Not ObjBancos.AddLayoutEnviosDetalle(CveLayoutEnvio, dr("CveIE").ToString.ToEntero, dr("CveProveedor").ToString.ToEntero, dr("CvePersonal").ToString.ToEntero, 1, "Observaciones") Then
|
||||||
|
ErrorLayout = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
ErrorLayout = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ErrorLayout Then
|
||||||
|
ObjBancos.RollBack()
|
||||||
|
ObjBancos.Dispose()
|
||||||
|
Else
|
||||||
|
ObjBancos.Commit()
|
||||||
|
ObjBancos.Dispose()
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If ErrorLayout = False And RegistrosPago.Length > 0 Then
|
||||||
|
|
||||||
|
Dim Mensaje As New StringBuilder
|
||||||
|
|
||||||
|
Mensaje.Append("Descarga Layout<br>")
|
||||||
|
|
||||||
|
If NombreArchivoPago.Trim.Length > 0 Then
|
||||||
|
Mensaje.Append($"Pagos Descarga <a class='Texto' href='../Empresas/{UsuarioActual.CveEmpresa}/Layout/{NombreArchivoPago}' download> {NombreArchivoPago}<a> <br><br>")
|
||||||
|
End If
|
||||||
|
|
||||||
|
If NombreArchivoPago.Length > 0 Then
|
||||||
|
Alert(Mensaje.ToString, TipoMensaje.MsgInformacion)
|
||||||
|
End If
|
||||||
|
|
||||||
|
CargaDatos()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1263,6 +1308,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
TextoCompleto = String.Format("{1}{0}{2}{0}{3}{0}", vbCrLf, HeaderTexto, DetalleTexto, TrailerTexto)
|
TextoCompleto = String.Format("{1}{0}{2}{0}{3}{0}", vbCrLf, HeaderTexto, DetalleTexto, TrailerTexto)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "CARGA ALTA PROVEEDORES"
|
#Region "CARGA ALTA PROVEEDORES"
|
||||||
@@ -2082,12 +2128,13 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
CargaReporte()
|
CargaReporte()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaReporte()
|
Private Sub CargaReporte()
|
||||||
|
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
Dim FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1")
|
Dim FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1")
|
||||||
Dim FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1")
|
Dim FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1")
|
||||||
|
|
||||||
If ObjBancos.GetLayoutPagosEnviados(DdlCuentaReportes.SelectedValue.ToEntero, DdlEstatus.SelectedValue.ToEntero, DdlTipoReportes.SelectedValue, FechaI, DateAdd(DateInterval.Day, 1, FechaF.ToDate).ToShortDateString) Then
|
If ObjBancos.GetLayoutPagosEnviados(DdlCuentaReportes.SelectedValue.ToEntero, DdlEstatus.SelectedValue.ToEntero, DdlTipoReportes.SelectedValue, FechaI, DateAdd(DateInterval.Day, 1, FechaF.ToDate).ToShortDateString, PorGrupos:=True) Then
|
||||||
DTReportes = ObjBancos.DtResultados
|
DTReportes = ObjBancos.DtResultados
|
||||||
Else
|
Else
|
||||||
DTReportes = Nothing
|
DTReportes = Nothing
|
||||||
@@ -2141,7 +2188,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If TipoMasiva = 1 Then
|
If TipoMasiva = 1 Then
|
||||||
AltaProveedores(2)
|
AltaProveedores(2, DTProveedores)
|
||||||
Else
|
Else
|
||||||
GeneraAltaFyE()
|
GeneraAltaFyE()
|
||||||
End If
|
End If
|
||||||
@@ -2150,7 +2197,7 @@ Partial Class Bancos_PagoElectronicoGrupos
|
|||||||
Private Sub CargaProveedores()
|
Private Sub CargaProveedores()
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
|
|
||||||
If ObjBancos.GetLayoutProveedores(DdlCuenta.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
If ObjBancos.GetLayoutProveedores(DdlCuenta.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, PorGrupos:=True) Then
|
||||||
DTProveedores = ObjBancos.DtResultados.FiltraParametros("LEN(RFC) IN (12,13)")
|
DTProveedores = ObjBancos.DtResultados.FiltraParametros("LEN(RFC) IN (12,13)")
|
||||||
Else
|
Else
|
||||||
DTProveedores = Nothing
|
DTProveedores = Nothing
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-2">Cuenta:</label>
|
<label class="col-md-2">Cuenta:</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<asp:DropDownList ID="DdlCuenta" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="250px" ValidationGroup="GrpGuardar">
|
<asp:DropDownList ID="DdlCuenta" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="250px" ValidationGroup="GrpGuardar" >
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVCuenta" runat="server" ControlToValidate="DdlCuenta" Display="Dynamic" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVCuenta" runat="server" ControlToValidate="DdlCuenta" Display="Dynamic" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|||||||
@@ -211,10 +211,37 @@ Partial Class Bancos_PolizaCheque
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaCuenta()
|
Private Sub CargaCuenta()
|
||||||
DdlCuenta.Items.Clear()
|
DdlCuenta.Items.Clear()
|
||||||
DdlCuenta.DataSource = GlobalDTBancosCuentas(UsuarioActual.CveUsuario)
|
|
||||||
|
Dim dt As DataTable = GlobalDTBancosCuentas(UsuarioActual.CveUsuario)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If DdlTipoTransaccion.SelectedValue.ToEntero = 3 Then
|
||||||
|
dt = dt.FiltraParametros("CveTipoCuenta = 7")
|
||||||
|
End If
|
||||||
|
|
||||||
|
'cuando es layout
|
||||||
|
If DdlTipoTransaccion.SelectedValue.ToEntero = 9 Then
|
||||||
|
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", 1))
|
||||||
|
dt = dt.FiltraParametros("UsaLayout = 1")
|
||||||
|
End If
|
||||||
|
|
||||||
|
'cuando es layout Por Grupos
|
||||||
|
If DdlTipoTransaccion.SelectedValue.ToEntero = 17 Then
|
||||||
|
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", 1))
|
||||||
|
dt = dt.FiltraParametros("UsaLayoutGrupos = 1")
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DdlCuenta.DataSource = dt 'GlobalDTBancosCuentas(UsuarioActual.CveUsuario)
|
||||||
DdlCuenta.DataBind()
|
DdlCuenta.DataBind()
|
||||||
DdlCuenta.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlCuenta.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
|
UPPDocumento.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaTipoTransaccion(TipoPlantilla As Integer)
|
Private Sub CargaTipoTransaccion(TipoPlantilla As Integer)
|
||||||
@@ -240,7 +267,8 @@ Partial Class Bancos_PolizaCheque
|
|||||||
'End Sub
|
'End Sub
|
||||||
|
|
||||||
Protected Sub DdlTipoTransaccion_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlTipoTransaccion.SelectedIndexChanged
|
Protected Sub DdlTipoTransaccion_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlTipoTransaccion.SelectedIndexChanged
|
||||||
CargaFolio()
|
'CargaFolio()
|
||||||
|
CargaCuenta()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaFolio()
|
Private Sub CargaFolio()
|
||||||
@@ -1184,8 +1212,9 @@ Partial Class Bancos_PolizaCheque
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -2301,10 +2301,10 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
Msg.AppendFormat("<li><a class=""Texto"" target='_blank' href=""/Bancos/Reportes.aspx?Opcion=ImprimeMov&CveIE={0}"">Listado</a></li>", CveIE)
|
Msg.AppendFormat("<li><a class=""Texto"" target='_blank' href=""/Bancos/Reportes.aspx?Opcion=ImprimeMov&CveIE={0}"">Listado</a></li>", CveIE)
|
||||||
If IDPoliza > 0 Then Msg.AppendFormat("<li><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Póliza</a></li>", IDPoliza)
|
If IDPoliza > 0 Then Msg.AppendFormat("<li><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Póliza</a></li>", IDPoliza)
|
||||||
|
|
||||||
Dim Mensaje As String = String.Format("<br />El Documento se generó correctamente.<br /><br /><br />Descargas:<ul>{0}</ul>", Msg.ToString)
|
Dim Mensaje As String = String.Format("<br />El Documento se generó correctamente.<br /><br /><br />Descargas:<ul>{0}</ul>", Msg.ToString)
|
||||||
Alert(Mensaje.ToString, TipoMensaje.MsgInformacion, If(ChkSeguirRegistrando.Checked, "location.href =""#""", "location.href =""RepProveedoresPagos.aspx"""))
|
|
||||||
|
|
||||||
'LIMPIA
|
'LIMPIA
|
||||||
TxtFolio.Text = ""
|
TxtFolio.Text = ""
|
||||||
TxtObservaciones.Text = ""
|
TxtObservaciones.Text = ""
|
||||||
TxtImporte.Text = ""
|
TxtImporte.Text = ""
|
||||||
@@ -2317,6 +2317,9 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
'upanexo.Update()
|
'upanexo.Update()
|
||||||
CargaDatos() '(CveProveedor, CveMoneda, FechaI, FechaF, CveUsuarioRegistro, CveUsuarioProgramo, Serie)
|
CargaDatos() '(CveProveedor, CveMoneda, FechaI, FechaF, CveUsuarioRegistro, CveUsuarioProgramo, Serie)
|
||||||
|
|
||||||
|
|
||||||
|
Alert(Mensaje.ToString, TipoMensaje.MsgInformacion, If(ChkSeguirRegistrando.Checked And GvCxP.Rows.Count > 0, "location.href =""#""", "location.href =""RepProveedoresPagos.aspx"""))
|
||||||
|
|
||||||
'Notificación de Pago
|
'Notificación de Pago
|
||||||
If TxtNotificarA.Text.Trim <> "" AndAlso ChkEnviarCorreo.Checked Then
|
If TxtNotificarA.Text.Trim <> "" AndAlso ChkEnviarCorreo.Checked Then
|
||||||
NotificacionPago(CveIE, TxtNotificarA.Text.Trim)
|
NotificacionPago(CveIE, TxtNotificarA.Text.Trim)
|
||||||
|
|||||||
@@ -3624,6 +3624,7 @@ Partial Class Compras_Compras
|
|||||||
'OBTENER TRASLADOS POR DETALLES
|
'OBTENER TRASLADOS POR DETALLES
|
||||||
Dim ContadorTraslado = 0
|
Dim ContadorTraslado = 0
|
||||||
Dim nodosConceptosTraslado As XmlNodeList = node.SelectNodes(String.Format("//{0}:Impuestos/{0}:Traslados/{0}:Traslado", Prefijo), namespaces)
|
Dim nodosConceptosTraslado As XmlNodeList = node.SelectNodes(String.Format("//{0}:Impuestos/{0}:Traslados/{0}:Traslado", Prefijo), namespaces)
|
||||||
|
|
||||||
For Each nodeTraslado As XmlNode In nodosConceptosTraslado
|
For Each nodeTraslado As XmlNode In nodosConceptosTraslado
|
||||||
|
|
||||||
If Not DtTemporalGuardados.FiltraParametros($"Contador = {ContadorTraslado} AND Tipo = 1").Rows.Count > 0 Then
|
If Not DtTemporalGuardados.FiltraParametros($"Contador = {ContadorTraslado} AND Tipo = 1").Rows.Count > 0 Then
|
||||||
@@ -3637,7 +3638,12 @@ Partial Class Compras_Compras
|
|||||||
Dr("Tipo") = 1
|
Dr("Tipo") = 1
|
||||||
DtTemporalGuardados.Rows.Add(Dr)
|
DtTemporalGuardados.Rows.Add(Dr)
|
||||||
DtTemporalGuardados.AcceptChanges()
|
DtTemporalGuardados.AcceptChanges()
|
||||||
Exit For
|
|
||||||
|
If PorcentajeIVA > 0 Then
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
ElseIf ValorXML(nodeTraslado, "Impuesto") = "003" Then
|
ElseIf ValorXML(nodeTraslado, "Impuesto") = "003" Then
|
||||||
IEPS = ValorXML(nodeTraslado, "Importe").Trim.ToDecimal
|
IEPS = ValorXML(nodeTraslado, "Importe").Trim.ToDecimal
|
||||||
PorcentajeIEPS = ValorXML(nodeTraslado, "TasaOCuota").Trim.ToDecimal
|
PorcentajeIEPS = ValorXML(nodeTraslado, "TasaOCuota").Trim.ToDecimal
|
||||||
|
|||||||
@@ -1943,7 +1943,10 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div runat="server">
|
<div runat="server">
|
||||||
|
|
||||||
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" runat="server" DataKeyNames="CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,RefCrediProveedor,CveMoneda,Estatus,Correo" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" runat="server"
|
||||||
|
DataKeyNames="CveCuentaDeposito,BancoNombre,Sucursal,Cuenta,CLABE,SWIFT,Plaza,CIE,Referencia,RefCrediProveedor,CveMoneda,Estatus,Correo,BBVAAlias" AutoGenerateColumns="False"
|
||||||
|
EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
||||||
|
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Banco" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Banco" ItemStyle-CssClass="Excede">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -3575,6 +3578,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="DivAddCuentasBancarias" class="modal ADS fade" role="dialog">
|
<div id="DivAddCuentasBancarias" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpAddBancos" class="modal-dialog" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpAddBancos" class="modal-dialog" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -3632,6 +3636,13 @@
|
|||||||
<asp:TextBox ID="TxtCorreoCuenta" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
<asp:TextBox ID="TxtCorreoCuenta" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">Correo:</label>
|
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">Correo:</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
||||||
|
<label for="<%= TxtCorreoCuenta.ClientID.ToString()%>">BBVA Alias:</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda"></asp:DropDownList>
|
<asp:DropDownList CssClass="form-control select2me" Width="50%" ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda"></asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVMoneda" runat="server" InitialValue="-1" ControlToValidate="DdlMoneda" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Moneda''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVMoneda" runat="server" InitialValue="-1" ControlToValidate="DdlMoneda" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Moneda''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
|||||||
@@ -1640,7 +1640,7 @@ Partial Class Compras_Proveedores
|
|||||||
''Agregar Cuentas Bancarias
|
''Agregar Cuentas Bancarias
|
||||||
If TempDTCuentasBancos.Rows.Count > 0 Then
|
If TempDTCuentasBancos.Rows.Count > 0 Then
|
||||||
For Each row As DataRow In TempDTCuentasBancos.Rows
|
For Each row As DataRow In TempDTCuentasBancos.Rows
|
||||||
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString, row("Plaza").ToString, row("Sucursal").ToString, row("Cuenta").ToString, row("CLABE").ToString, row("CIE").ToString, row("SWIFT").ToString, row("Referencia").ToString, row("RefCrediProveedor").ToString, UsuarioActual.CveUsuario, row("CveMoneda").ToString.ToEntero, CveProveedor:=NuevoCveProveedor, Correo:=row("Correo").ToString) Then
|
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString, row("Plaza").ToString, row("Sucursal").ToString, row("Cuenta").ToString, row("CLABE").ToString, row("CIE").ToString, row("SWIFT").ToString, row("Referencia").ToString, row("RefCrediProveedor").ToString, UsuarioActual.CveUsuario, row("CveMoneda").ToString.ToEntero, CveProveedor:=NuevoCveProveedor, Correo:=row("Correo").ToString, BBVAAlias:=row("BBVAAlias").ToString) Then
|
||||||
ErrorBancos = True
|
ErrorBancos = True
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -3038,6 +3038,7 @@ Partial Class Compras_Proveedores
|
|||||||
RecargaGlobalCuentasBancarias()
|
RecargaGlobalCuentasBancarias()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LbAgregarCuentaBanco_Click(sender As Object, e As EventArgs)
|
Protected Sub LbAgregarCuentaBanco_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
Dim EsBancomer = False
|
Dim EsBancomer = False
|
||||||
|
|
||||||
If TxtNombreBanco.Text.ToUpper.Contains("BBVA") Or TxtNombreBanco.Text.ToUpper.Contains("BANCOMER") Or (TxtCLABE.Text.Length = 18 AndAlso TxtCLABE.Text.Substring(0, 3) = "012") Then
|
If TxtNombreBanco.Text.ToUpper.Contains("BBVA") Or TxtNombreBanco.Text.ToUpper.Contains("BANCOMER") Or (TxtCLABE.Text.Length = 18 AndAlso TxtCLABE.Text.Substring(0, 3) = "012") Then
|
||||||
@@ -3110,15 +3111,15 @@ Partial Class Compras_Proveedores
|
|||||||
Dim Estatus As Boolean
|
Dim Estatus As Boolean
|
||||||
If ChkEstatus.Checked = True Then Estatus = True Else Estatus = False
|
If ChkEstatus.Checked = True Then Estatus = True Else Estatus = False
|
||||||
|
|
||||||
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABE.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta.Text.Trim, TxtConvenioCIE.Text.Trim, TxtReferencia.Text.Trim, TxtRefCrediProveedor.Text.Trim, DdlMoneda.SelectedValue.ToEntero, DdlMoneda.SelectedItem.Text, Estatus, TxtCorreoCuenta.Text.Trim)
|
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABE.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta.Text.Trim, TxtConvenioCIE.Text.Trim, TxtReferencia.Text.Trim, TxtRefCrediProveedor.Text.Trim, DdlMoneda.SelectedValue.ToEntero, DdlMoneda.SelectedItem.Text, Estatus, TxtCorreoCuenta.Text.Trim, TxtBBVAAlias.Text)
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, RefCrediProveedor As String, CveMoneda As Integer, Moneda As String, Estatus As Boolean, Correo As String)
|
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, RefCrediProveedor As String, CveMoneda As Integer, Moneda As String, Estatus As Boolean, Correo As String, BBVAAlias As String)
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
If Modalidad = "A" Then
|
If Modalidad = "A" Then
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
|
|
||||||
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, UsuarioActual.CveUsuario, CveMoneda, CveProveedor:=CveProveedor, Correo:=Correo) Then
|
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, UsuarioActual.CveUsuario, CveMoneda, CveProveedor:=CveProveedor, Correo:=Correo, BBVAAlias:=BBVAAlias) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CveProveedor = {0}", CveProveedor)))
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CveProveedor = {0}", CveProveedor)))
|
||||||
Alert("Cuenta Bancaria agregada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta Bancaria agregada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
@@ -3156,7 +3157,7 @@ Partial Class Compras_Proveedores
|
|||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
|
|
||||||
If ObjCuentasBancos.UpdateCuentasDepositos(GvBancosCuentas.DataKeys(CveCuentaBancaria)("CveCuentaDeposito").ToString.ToEntero, NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, False, Estatus, CveMoneda, Correo:=Correo) Then
|
If ObjCuentasBancos.UpdateCuentasDepositos(GvBancosCuentas.DataKeys(CveCuentaBancaria)("CveCuentaDeposito").ToString.ToEntero, NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, False, Estatus, CveMoneda, Correo:=Correo, BBVAAlias:=BBVAAlias) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CveProveedor = {0}", CveProveedor)))
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CveProveedor = {0}", CveProveedor)))
|
||||||
Alert("Cuenta actualizada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta actualizada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
@@ -3204,6 +3205,7 @@ Partial Class Compras_Proveedores
|
|||||||
TxtReferencia.Text = ""
|
TxtReferencia.Text = ""
|
||||||
TxtRefCrediProveedor.Text = ""
|
TxtRefCrediProveedor.Text = ""
|
||||||
TxtCorreoCuenta.Text = ""
|
TxtCorreoCuenta.Text = ""
|
||||||
|
TxtBBVAAlias.Text = ""
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "GRIDVIEW - CUENTAS BANCARIAS"
|
#Region "GRIDVIEW - CUENTAS BANCARIAS"
|
||||||
@@ -4668,6 +4670,7 @@ Partial Class Compras_Proveedores
|
|||||||
TxtRefCrediProveedor.Text = ""
|
TxtRefCrediProveedor.Text = ""
|
||||||
DdlMoneda.SelectedIndex = 0
|
DdlMoneda.SelectedIndex = 0
|
||||||
TxtCorreoCuenta.Text = ""
|
TxtCorreoCuenta.Text = ""
|
||||||
|
TxtBBVAAlias.Text = ""
|
||||||
ChkEstatus.Checked = True
|
ChkEstatus.Checked = True
|
||||||
divestatus.Visible = False
|
divestatus.Visible = False
|
||||||
UpAddBancos.Update()
|
UpAddBancos.Update()
|
||||||
@@ -4689,6 +4692,7 @@ Partial Class Compras_Proveedores
|
|||||||
TxtReferencia.Text = GvRow.DataKey("Referencia")
|
TxtReferencia.Text = GvRow.DataKey("Referencia")
|
||||||
TxtRefCrediProveedor.Text = GvRow.DataKey("RefCrediProveedor")
|
TxtRefCrediProveedor.Text = GvRow.DataKey("RefCrediProveedor")
|
||||||
TxtCorreoCuenta.Text = GvRow.DataKey("Correo")
|
TxtCorreoCuenta.Text = GvRow.DataKey("Correo")
|
||||||
|
TxtBBVAAlias.Text = GvRow.DataKey("BBVAAlias")
|
||||||
DdlMoneda.SelectedValueExist(GvRow.DataKey("CveMoneda"))
|
DdlMoneda.SelectedValueExist(GvRow.DataKey("CveMoneda"))
|
||||||
ChkEstatus.Checked = CBool(GvRow.DataKey("Estatus"))
|
ChkEstatus.Checked = CBool(GvRow.DataKey("Estatus"))
|
||||||
divestatus.Visible = True
|
divestatus.Visible = True
|
||||||
|
|||||||
@@ -239,6 +239,22 @@ Partial Class Compras_ReembolsosComprobaciones
|
|||||||
Dim dt As DataTable = GlobalDTBancosCuentas(UsuarioActual.CveUsuario)
|
Dim dt As DataTable = GlobalDTBancosCuentas(UsuarioActual.CveUsuario)
|
||||||
|
|
||||||
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", 1))
|
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", 1))
|
||||||
|
|
||||||
|
|
||||||
|
If DdlTipoTransaccion.SelectedValue.ToEntero = 3 Then
|
||||||
|
dt = dt.FiltraParametros("CveTipoCuenta = 7")
|
||||||
|
End If
|
||||||
|
|
||||||
|
'cuando es layout
|
||||||
|
If DdlTipoTransaccion.SelectedValue.ToEntero = 9 Then
|
||||||
|
dt = dt.FiltraParametros("UsaLayout = 1")
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If DdlTipoTransaccion.SelectedValue.ToEntero = 17 Then
|
||||||
|
dt = dt.FiltraParametros("UsaLayoutGrupos = 1")
|
||||||
|
End If
|
||||||
|
|
||||||
DdlCuenta.DataSource = dt
|
DdlCuenta.DataSource = dt
|
||||||
DdlCuenta.DataBind()
|
DdlCuenta.DataBind()
|
||||||
DdlCuenta.Items.Insert(0, New ListItem("Seleccione cuenta", "-1"))
|
DdlCuenta.Items.Insert(0, New ListItem("Seleccione cuenta", "-1"))
|
||||||
|
|||||||
@@ -2842,16 +2842,24 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
Dim FechaDocumento As Date = GvRowF.DataKey("FechaPago").ToString.ToDate
|
Dim FechaDocumento As Date = GvRowF.DataKey("FechaPago").ToString.ToDate
|
||||||
Dim FechaDoRecibo As Date = GvRowF.DataKey("Fecha").ToString.ToDate
|
Dim FechaDoRecibo As Date = GvRowF.DataKey("Fecha").ToString.ToDate
|
||||||
|
Dim CveIEDocumento As Integer = GvRowF.DataKey("CveIE").ToEntero
|
||||||
|
|
||||||
Dim FT1 As Date = FechaDocumento.AddDays(-6)
|
If CveIEDocumento > 0 And FechaDocumento > New Date(1, 1, 1) Then
|
||||||
Dim FT2 As Date = FechaDocumento.AddDays(7)
|
Dim FT1 As Date = FechaDocumento
|
||||||
|
|
||||||
If Not (FechaDoRecibo >= FT1 And FechaDoRecibo < FT2) Then
|
If FechaDocumento <> New Date(1, 1, 1) Then
|
||||||
|
FT1 = FechaDocumento.AddDays(-6)
|
||||||
|
End If
|
||||||
|
|
||||||
BtnVincularPago.Visible = False
|
Dim FT2 As Date = FechaDocumento.AddDays(7)
|
||||||
MSGComplemento = MSGComplemento & " Existen mas de 3 días de diferencia entre la fecha del documento y la fecha de complemento. "
|
|
||||||
|
|
||||||
Exit For
|
If Not (FechaDoRecibo >= FT1 And FechaDoRecibo < FT2) Then
|
||||||
|
|
||||||
|
BtnVincularPago.Visible = False
|
||||||
|
MSGComplemento = MSGComplemento & " Existen mas de 3 días de diferencia entre la fecha del documento y la fecha de complemento. "
|
||||||
|
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -912,7 +912,11 @@
|
|||||||
</asp:LinkButton></th>
|
</asp:LinkButton></th>
|
||||||
<th id="THEstatus" runat="server" style="width: 7%;">
|
<th id="THEstatus" runat="server" style="width: 7%;">
|
||||||
<asp:LinkButton ID="LbEstatusPE" runat="server" CausesValidation="false" Text="Estatus Layout" OnClick="LbOrden_Click" CommandArgument="Estatus"></asp:LinkButton> <asp:ImageButton ID="ImgEstatusPE" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
<asp:LinkButton ID="LbEstatusPE" runat="server" CausesValidation="false" Text="Estatus Layout" OnClick="LbOrden_Click" CommandArgument="Estatus"></asp:LinkButton> <asp:ImageButton ID="ImgEstatusPE" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
||||||
|
<th width="7%">
|
||||||
|
BBVA Alias
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
<th id="THEstatusTexto" runat="server" style="width: 7%;">
|
<th id="THEstatusTexto" runat="server" style="width: 7%;">
|
||||||
<asp:LinkButton ID="LbEstatusTexto" runat="server" CausesValidation="false" Text="Estatus" CommandArgument="EstatusTexto"></asp:LinkButton> <asp:ImageButton ID="ImageButton5" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
<asp:LinkButton ID="LbEstatusTexto" runat="server" CausesValidation="false" Text="Estatus" CommandArgument="EstatusTexto"></asp:LinkButton> <asp:ImageButton ID="ImageButton5" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
||||||
<th style="text-align: center;" width="14%">Comandos</th>
|
<th style="text-align: center;" width="14%">Comandos</th>
|
||||||
@@ -963,9 +967,18 @@
|
|||||||
</td>
|
</td>
|
||||||
<td id="TDEstatusLayout" runat="server" visible="true" width="7%"></td>
|
<td id="TDEstatusLayout" runat="server" visible="true" width="7%"></td>
|
||||||
|
|
||||||
<td id="TDEstatusTexto" runat="server" visible="true" width="7%">
|
<td align="center" width="7%">
|
||||||
|
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td id="TDEstatusTexto" runat="server" visible="false" width="7%">
|
||||||
<%--<asp:CheckBox ID ="ChkEstatus" runat="server" Checked="true"></asp:CheckBox>--%>
|
<%--<asp:CheckBox ID ="ChkEstatus" runat="server" Checked="true"></asp:CheckBox>--%>
|
||||||
</td>
|
</td>
|
||||||
|
<td id="TD1" runat="server" visible="true" width="7%">
|
||||||
|
<%--<asp:CheckBox ID ="ChkEstatus" runat="server" Checked="true"></asp:CheckBox>--%>
|
||||||
|
</td>
|
||||||
<td align="center" width="7%">
|
<td align="center" width="7%">
|
||||||
|
|
||||||
<asp:LinkButton ID="LbAgregarCuentaBanco" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpAgregarBanco" OnClick="LbAgregarCuentaBanco_Click"></asp:LinkButton>
|
<asp:LinkButton ID="LbAgregarCuentaBanco" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpAgregarBanco" OnClick="LbAgregarCuentaBanco_Click"></asp:LinkButton>
|
||||||
@@ -975,7 +988,8 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" CssClass="table table-striped table-hover Widthall" Style="table-layout: fixed" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" CssClass="table table-striped table-hover Widthall" Style="table-layout: fixed" runat="server"
|
||||||
|
DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
||||||
<%--<asp:GridView ID="GvBancosCuentas" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="table table-striped table-advance table-hover" Style="table-layout: fixed" BorderWidth="0" GridLines="None">--%>
|
<%--<asp:GridView ID="GvBancosCuentas" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="table table-striped table-advance table-hover" Style="table-layout: fixed" BorderWidth="0" GridLines="None">--%>
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
||||||
@@ -1005,6 +1019,7 @@
|
|||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta" FilterType="Numbers" />
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtNumeroCuenta" FilterType="Numbers" />
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtCLABE" runat="server" data-toggle="tooltip" title='<%# Eval("CLABE")%>' Text='<%# Eval("CLABE")%>'></asp:Label>
|
<asp:Label ID="LtCLABE" runat="server" data-toggle="tooltip" title='<%# Eval("CLABE")%>' Text='<%# Eval("CLABE")%>'></asp:Label>
|
||||||
@@ -1014,6 +1029,7 @@
|
|||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtCLABE" FilterType="Numbers" />
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtCLABE" FilterType="Numbers" />
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtSWIFT" runat="server" data-toggle="tooltip" title='<%# Eval("SWIFT")%>' Text='<%# Eval("SWIFT")%>'></asp:Label>
|
<asp:Label ID="LtSWIFT" runat="server" data-toggle="tooltip" title='<%# Eval("SWIFT")%>' Text='<%# Eval("SWIFT")%>'></asp:Label>
|
||||||
@@ -1047,6 +1063,7 @@
|
|||||||
<asp:TextBox CssClass="form-control" ID="TxtReferencia" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Referencia")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtReferencia" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Referencia")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtRefCrediProveedor" runat="server" data-toggle="tooltip" title='<%# Eval("RefCrediProveedor")%>' Text='<%# Eval("RefCrediProveedor")%>'></asp:Label>
|
<asp:Label ID="LtRefCrediProveedor" runat="server" data-toggle="tooltip" title='<%# Eval("RefCrediProveedor")%>' Text='<%# Eval("RefCrediProveedor")%>'></asp:Label>
|
||||||
@@ -1055,6 +1072,7 @@
|
|||||||
<asp:TextBox CssClass="form-control" ID="TxtRefCrediProveedor" runat="server" CausesValidation="true" MaxLength="5" Text='<%# Eval("RefCrediProveedor")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtRefCrediProveedor" runat="server" CausesValidation="true" MaxLength="5" Text='<%# Eval("RefCrediProveedor")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtMoneda" runat="server" data-toggle="tooltip" title='<%# Eval("Moneda")%>' Text='<%# Eval("Moneda")%>'></asp:Label>
|
<asp:Label ID="LtMoneda" runat="server" data-toggle="tooltip" title='<%# Eval("Moneda")%>' Text='<%# Eval("Moneda")%>'></asp:Label>
|
||||||
@@ -1065,6 +1083,18 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCEMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCEMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LblBBVAAlias" runat="server" data-toggle="tooltip" title='<%# Eval("BBVAAlias")%>' Text='<%# Eval("BBVAAlias")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtBBVAAlias" runat="server" CausesValidation="true" MaxLength="30" Text='<%# Eval("BBVAAlias")%>' Width="90%"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<!--IIf(CBool(Eval("EstatusPagoElectronico")), "Sí", "No") = If(EstatusPagoElectronico) Then "Sí" Else "No"-->
|
<!--IIf(CBool(Eval("EstatusPagoElectronico")), "Sí", "No") = If(EstatusPagoElectronico) Then "Sí" Else "No"-->
|
||||||
|
|||||||
@@ -1479,7 +1479,7 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
If TempDTCuentasBancos.Rows.Count > 0 Then
|
If TempDTCuentasBancos.Rows.Count > 0 Then
|
||||||
For Each row As DataRow In TempDTCuentasBancos.Rows
|
For Each row As DataRow In TempDTCuentasBancos.Rows
|
||||||
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString, row("Plaza").ToString, row("Sucursal").ToString, row("Cuenta").ToString, row("CLABE").ToString, row("CIE").ToString, row("SWIFT").ToString, row("Referencia").ToString, "", UsuarioActual.CveUsuario, row("CveMoneda").ToString.ToEntero, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario) Then
|
If Not ObjCuentasDeposito.AddCuentasDepositos(row("BancoNombre").ToString, row("Plaza").ToString, row("Sucursal").ToString, row("Cuenta").ToString, row("CLABE").ToString, row("CIE").ToString, row("SWIFT").ToString, row("Referencia").ToString, "", UsuarioActual.CveUsuario, row("CveMoneda").ToString.ToEntero, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=row("BBVAAlias").ToString) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -2669,7 +2669,7 @@ Partial Class RH_Personal
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABECB.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta.Text.Trim, TxtConvenioCIE.Text.Trim, TxtReferenciaCB.Text.Trim, DdlMoneda.SelectedValue.ToEntero, DdlMoneda.SelectedItem.Text)
|
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABECB.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta.Text.Trim, TxtConvenioCIE.Text.Trim, TxtReferenciaCB.Text.Trim, DdlMoneda.SelectedValue.ToEntero, DdlMoneda.SelectedItem.Text, TxtBBVAAlias.Text)
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaGridCuentasBancos(Orden As String)
|
Private Sub CargaGridCuentasBancos(Orden As String)
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
@@ -2693,13 +2693,13 @@ Partial Class RH_Personal
|
|||||||
GvBancosCuentas.DataBind()
|
GvBancosCuentas.DataBind()
|
||||||
UpCuentasBancos.Update()
|
UpCuentasBancos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, CveMoneda As Integer, Moneda As String)
|
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, CveMoneda As Integer, Moneda As String, BBVAAlias As String)
|
||||||
|
|
||||||
Dim Row As DataRow
|
Dim Row As DataRow
|
||||||
|
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", UsuarioActual.CveUsuario, CveMoneda, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario) Then
|
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", UsuarioActual.CveUsuario, CveMoneda, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=BBVAAlias) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
||||||
|
|
||||||
@@ -2816,7 +2816,9 @@ Partial Class RH_Personal
|
|||||||
Dim Referencia = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtReferencia").Text.Trim
|
Dim Referencia = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtReferencia").Text.Trim
|
||||||
Dim CveMoneda = GvBancosCuentas.Rows(e.RowIndex).FCDropDownList("DdlMoneda").SelectedValue.ToString.ToEntero
|
Dim CveMoneda = GvBancosCuentas.Rows(e.RowIndex).FCDropDownList("DdlMoneda").SelectedValue.ToString.ToEntero
|
||||||
Dim Estatus = GvBancosCuentas.Rows(e.RowIndex).FCCheckBox("ChkEstatus").Checked
|
Dim Estatus = GvBancosCuentas.Rows(e.RowIndex).FCCheckBox("ChkEstatus").Checked
|
||||||
Dim Moneda = GvBancosCuentas.Rows(e.RowIndex).FCDropDownList("DdlMoneda").SelectedItem.Text
|
Dim Moneda = GvBancosCuentas.Rows(e.RowIndex).FCDropDownList("DdlMoneda").SelectedItem.Text
|
||||||
|
|
||||||
|
Dim BBVAAlias As String = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtBBVAAlias").Text
|
||||||
|
|
||||||
Dim RefCrediProveedor = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtRefCrediProveedor").Text.Trim
|
Dim RefCrediProveedor = GvBancosCuentas.Rows(e.RowIndex).FCTextBox("TxtRefCrediProveedor").Text.Trim
|
||||||
|
|
||||||
@@ -2868,7 +2870,7 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
If ObjCuentasBancos.UpdateCuentasDepositos(GvBancosCuentas.DataKeys(e.RowIndex)("CveCuentaDeposito").ToString.ToEntero, NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, False, Estatus, CveMoneda, CveUsuarioModifico:=UsuarioActual.CveUsuario) Then
|
If ObjCuentasBancos.UpdateCuentasDepositos(GvBancosCuentas.DataKeys(e.RowIndex)("CveCuentaDeposito").ToString.ToEntero, NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, RefCrediProveedor, False, Estatus, CveMoneda, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=BBVAAlias) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
||||||
Alert("Cuenta actualizada con exito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta actualizada con exito.", TipoMensaje.MsgInformacion)
|
||||||
@@ -4802,6 +4804,7 @@ Partial Class RH_Personal
|
|||||||
Response.AddHeader("content-disposition", "attachment; filename=" & CvePersonal & "_Constancia_Curso_" & _CveCurso & "_" & Now.ToString("yyyyMMddhhmmss") & ".docx")
|
Response.AddHeader("content-disposition", "attachment; filename=" & CvePersonal & "_Constancia_Curso_" & _CveCurso & "_" & Now.ToString("yyyyMMddhhmmss") & ".docx")
|
||||||
Response.BinaryWrite(DocumenBitArray)
|
Response.BinaryWrite(DocumenBitArray)
|
||||||
Response.End()
|
Response.End()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -202,70 +202,14 @@
|
|||||||
CssClass="table table-striped table-advance table-hover ScrollAD"
|
CssClass="table table-striped table-advance table-hover ScrollAD"
|
||||||
data-sort="true" Width="100%" Style="text-align: center;" GridLines="None">
|
data-sort="true" Width="100%" Style="text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:HyperLinkField HeaderText="Folio" DataTextField="Folio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}"/>
|
||||||
<HeaderTemplate>
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" />
|
||||||
<asp:Label Text="Folio" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:BoundField HeaderText="Fecha Vencimiento" DataField="FechaVencimiento" />
|
||||||
</HeaderTemplate>
|
<asp:BoundField HeaderText="Cantidad" DataField="CantidadOriginal" />
|
||||||
<ItemTemplate>
|
<asp:BoundField HeaderText="Por Facturar" DataField="Cantidad" />
|
||||||
<asp:HyperLink ID="LtlFolio" runat="server" Text='<%# Eval("Folio") %>' Target="_blank" NavigateUrl='<%# String.Concat("/Ventas/Ventas.aspx?CveVenta=" + Eval("CveVenta").ToString) %>'></asp:HyperLink>
|
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-HorizontalAlign="Left" />
|
||||||
</ItemTemplate>
|
<asp:BoundField HeaderText="PU" DataField="PU" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:TemplateField>
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="Fecha" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField>
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="FechaVencimiento" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlFechaVencimiento" runat="server" Text='<%# Eval("FechaVencimiento", "{0:d}") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField>
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="Cantidad" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlCantOri" runat="server" Text='<%# Eval("CantidadOriginal") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField>
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="Por Facturar" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlCantDispo" runat="server" Text='<%# Eval("Cantidad") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="Producto" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlProducto" runat="server" Text='<%# Eval("CodigoPS") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="PU" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlPU" runat="server" Text='<%# Eval("PU", "{0:N2}") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label Text="Total" runat="server" CausesValidation="false"> </asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
</Columns>
|
||||||
<HeaderStyle CssClass="Titulos" />
|
<HeaderStyle CssClass="Titulos" />
|
||||||
<RowStyle CssClass="Texto" />
|
<RowStyle CssClass="Texto" />
|
||||||
|
|||||||
@@ -280,9 +280,13 @@ Partial Class RepRemisionesDetalle
|
|||||||
|
|
||||||
|
|
||||||
Private Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
Private Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
||||||
GvDatos.ExportToExcel("Reporte de Remisiones por Facturar Detalle" & Now.ToShortDateString)
|
'GvDatos.ExportToExcel("Reporte de Remisiones por Facturar Detalle" & Now.ToShortDateString)
|
||||||
|
GvDatos.ExportToExcelG("Reporte de Remisiones por Facturar Detalle" & Now.ToShortDateString, Titulo:="Reporte de Remisiones por Facturar Detalle ", Usuario:=UsuarioActual)
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End Sub
|
End Sub
|
||||||
|
Public Overrides Sub VerifyRenderingInServerForm(control As Control)
|
||||||
|
'MyBase.VerifyRenderingInServerForm(control)
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -17736,20 +17736,20 @@ Partial Class Ventas
|
|||||||
End Sub
|
End Sub
|
||||||
Private Function ValidaPagosContado() As Boolean
|
Private Function ValidaPagosContado() As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno = False
|
||||||
Dim Total As Decimal = TxtTotal.Text.ToDecimal()
|
|
||||||
'SI LA VENTA ES NUEVA VALIDAR TAMBIEN LOS PAGOS DE CONTADO
|
'SI LA VENTA ES NUEVA VALIDAR TAMBIEN LOS PAGOS DE CONTADO
|
||||||
If UsuarioActual.CveEmpresa = 141 AndAlso CveVenta <= 0 AndAlso DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ant") Then
|
If UsuarioActual.CveEmpresa = 141 AndAlso CveVenta <= 0 AndAlso DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ant") Then
|
||||||
|
|
||||||
If Not PermiteCredito AndAlso (DtPagos Is Nothing OrElse DtPagos.Rows.Count = 0) AndAlso Total > 0 Then
|
If Not PermiteCredito AndAlso (DtPagos Is Nothing OrElse DtPagos.Rows.Count = 0) AndAlso TxtTotal.Text.ToDecimal > 0 Then
|
||||||
Alert("Es necesario especificar un pago.", TipoMensaje.MsgAdvertencia)
|
Alert("Es necesario especificar un pago.", TipoMensaje.MsgAdvertencia)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not PermiteCredito AndAlso (DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0) AndAlso Total > 0 Then
|
If Not PermiteCredito AndAlso (DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0) AndAlso TxtTotal.Text.ToDecimal > 0 Then
|
||||||
Dim TotalPago As Decimal = DtPagos.SUM("Importe").ToDecimal()
|
Dim TotalPago As Decimal = DtPagos.SUM("Importe").ToDecimal()
|
||||||
|
|
||||||
If TotalPago < Total Then
|
If TotalPago < TxtTotal.Text.ToDecimal Then
|
||||||
Alert("La suma de los pagos debe ser igual al total de la venta.", TipoMensaje.MsgAdvertencia)
|
Alert("La suma de los pagos debe ser igual al total de la venta.", TipoMensaje.MsgAdvertencia)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -17767,11 +17767,10 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 141 AndAlso DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ant") Then
|
If UsuarioActual.CveEmpresa = 141 AndAlso DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ant") Then
|
||||||
|
|
||||||
If Not PermiteCredito AndAlso DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0 AndAlso Total > 0 Then
|
If Not PermiteCredito AndAlso DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0 AndAlso TxtTotal.Text.ToDecimal > 0 Then
|
||||||
|
|
||||||
Dim TotalPago As Decimal = DtPagos.SUM("Importe").ToDecimal()
|
Dim TotalPago As Decimal = DtPagos.SUM("Importe").ToDecimal()
|
||||||
|
|
||||||
If TotalPago < Total Then
|
If TotalPago < TxtTotal.Text.ToDecimal Then
|
||||||
Alert("La suma de los pagos debe ser igual al total de la venta.", TipoMensaje.MsgAdvertencia)
|
Alert("La suma de los pagos debe ser igual al total de la venta.", TipoMensaje.MsgAdvertencia)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Return Retorno
|
Return Retorno
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user