diff --git a/App_Code/ClsClasificaciones.vb b/App_Code/ClsClasificaciones.vb
index 6d25100b9..acbf3ef8c 100644
--- a/App_Code/ClsClasificaciones.vb
+++ b/App_Code/ClsClasificaciones.vb
@@ -440,7 +440,11 @@ Public Class ClsClasificaciones
End Try
Return Retorno
- End Function
+ End Function
+
+ 'Public Function UpdateClasificacionCunetas(CveClasificacion As Integer, CveCuentaContableIngreso As Integer, CveCuentaContableGasto As Integer, CveEmpresa As Object) As Boolean
+
+ 'End Function
Public Function RemoveClasificacion(CveClasificacion As Integer) As Boolean
Dim OnError As Boolean = False
@@ -662,6 +666,8 @@ Public Class ClsClasificaciones
Dispose(True)
GC.SuppressFinalize(Me)
End Sub
+
+
#End Region
End Class
diff --git a/App_Code/ClsClientes.vb b/App_Code/ClsClientes.vb
index 0c3f1856e..2422f98ee 100644
--- a/App_Code/ClsClientes.vb
+++ b/App_Code/ClsClientes.vb
@@ -589,7 +589,7 @@ Public Class ClsClientes
Optional CveMotivoTraslado As Integer = 0, Optional NumRegIdTrib As String = "", Optional ComExtEstado As String = "-1", Optional ComExtMunicipio As String = "-1", Optional ComExtColonia As String = "-1", Optional RequiereOC As Boolean = False,
Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0,
Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1", Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False,
- Optional RepresentanteLegal As String = "") As Boolean
+ Optional RepresentanteLegal As String = "", Optional FechaLimiteCredito As Date = MinFecha) As Boolean
Dim Retorno As Boolean = False
@@ -735,11 +735,7 @@ Public Class ClsClientes
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
.Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal
-
-
-
-
-
+ .Add("@FechaLimiteCredito", SqlDbType.Date).Value = FechaLimiteCredito
End With
Try
@@ -789,7 +785,7 @@ Public Class ClsClientes
Optional ApellidoPaternoPF As String = "-1", Optional ApellidoMaternoPF As String = "-1", Optional NombresPF As String = "-1", Optional RequiereOC As Boolean = False,
Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0, Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1",
Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional NoDesglosaIVA As Boolean = False, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False,
- Optional RepresentanteLegal As String = "") As Boolean
+ Optional RepresentanteLegal As String = "", Optional FechaLimiteCredito As Date = MinFecha) As Boolean
Dim Retorno As Boolean = False
@@ -951,6 +947,7 @@ Public Class ClsClientes
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
.Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal
+ .Add("@FechaLimiteCredito", SqlDbType.Date).Value = FechaLimiteCredito
diff --git a/App_Code/ClsCompras.vb b/App_Code/ClsCompras.vb
index 8768624dd..abb33f395 100644
--- a/App_Code/ClsCompras.vb
+++ b/App_Code/ClsCompras.vb
@@ -921,31 +921,6 @@ Public Class ClsCompras
Return Retorno
End Function
- 'Reporte de Perioricidad
- Public Function GetRepComprasPerioricidad(CveSubProyecto As Integer, CveClasificacion As Integer, CvePS As Integer,
- FechaInicio As Date, FechaFin As Date, CveEmpresa As Integer) As Boolean
-
- Dim Retorno As Boolean = False
- DataAdapter("PA_Comp_ComprasPerioricidadRep")
-
- With SqlAdapter.SelectCommand.Parameters
- .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
- .Add("@CveClasificacion", SqlDbType.Int).Value = CveClasificacion
- .Add("@CvePS", SqlDbType.Int).Value = CvePS
- .Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
- .Add("@FechaFin", SqlDbType.Date).Value = FechaFin
- .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
- End With
-
- Try
- SqlAdapter.Fill(Data)
- Retorno = True
- Catch ex As Exception
- OnError("Ocurrió un error al obtener el Reporte de Perioricidad.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
- End Try
-
- Return Retorno
- End Function
'Reporte de Productos y Servicios
Public Function GetRepProductosServicios(CveProyecto As Integer, CveSubProyecto As String, CveCategoria As String, CveClasificacion As Integer, CvePS As Integer, FechaI As Date,
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index 6d71b3738..65ef143b6 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -4285,8 +4285,6 @@ Public Class ClsPaginas
PaginaDict.Add("/GPS/ReporteUnidadesnoTransmiten.aspx".ToUpper(), 917)
PaginaDict.Add("/GPS/RepArrastre.aspx".ToUpper(), 718)
- PaginaDict.Add("/Ventas/RepConciliacionSat.aspx".ToUpper(), 716)
- PaginaDict.Add("/Ventas/SolicitudesSAT.aspx".ToUpper(), 717)
PaginaDict.Add("/Nomina/CatConceptos2.aspx".ToUpper(), -1)
PaginaDict.Add("/Nomina/NomTimbrados.aspx".ToUpper(), 920)
@@ -4731,7 +4729,7 @@ Public Class ClsPaginas
PaginaDict.Add("/Compras/RepNotasCredito.aspx".ToUpper(), 337)
PaginaDict.Add("/Compras/ReembolsosComprobaciones.aspx".ToUpper(), 350)
PaginaDict.Add("/Compras/RepProductosServicios.aspx".ToUpper(), 97)
- PaginaDict.Add("/Compras/RepPerioricidad.aspx".ToUpper(), 126)
+
PaginaDict.Add("/Compras/PopUpFacturasPendientesAutorizar.aspx".ToUpper(), 559)
PaginaDict.Add("/Compras/RepEvaluacionProveedor.aspx".ToUpper(), 564)
PaginaDict.Add("/Compras/RepRembolsoComprobaciones.aspx".ToUpper(), 591)
@@ -5468,8 +5466,8 @@ Public Class ClsPaginas
PaginaDict.Add("/Ventas/CatImpuestosLocales.aspx".ToUpper(), 394)
PaginaDict.Add("/Ventas/ActualizarPrecios.aspx".ToUpper(), 397)
PaginaDict.Add("/Ventas/ClientesAbonar.aspx".ToUpper(), 321)
- PaginaDict.Add("/Ventas/DiseñadorReportes.aspx".ToUpper(), 569)
- PaginaDict.Add("/Ventas/ReporteDetalle.aspx".ToUpper(), 576)
+
+
PaginaDict.Add("/Ventas/PopUpBuscarPs.aspx".ToUpper(), 13)
PaginaDict.Add("/Ventas/RepVentasUtilidadPadre.aspx".ToUpper(), 590)
PaginaDict.Add("/Ventas/RepVentasUtilidad.aspx".ToUpper(), 590)
@@ -5502,7 +5500,7 @@ Public Class ClsPaginas
PaginaDict.Add("/Ventas/RepCancelacionesPorAtender.aspx".ToUpper(), 750)
PaginaDict.Add("/Ventas/RepCancelacionesPorRespuesta.aspx".ToUpper(), 751)
- PaginaDict.Add("/Ventas/RepIngresos.aspx".ToUpper(), 540)
+
'Reportes de Anticipos-NC-IXC'
PaginaDict.Add("/Ventas/RepAnticipo-NC-IXC.aspx".ToUpper(), 869)
PaginaDict.Add("/Ventas/RepAnticipo-NC-IXCDetalle.aspx".ToUpper(), 869)
@@ -5519,7 +5517,6 @@ Public Class ClsPaginas
PaginaDict.Add("/Ventas/RepVentasResumen.aspx".ToUpper(), 674)
PaginaDict.Add("/Ventas/RepAnticiposEspeciales.aspx".ToUpper(), 678)
- PaginaDict.Add("/Ventas/RepArqueosDetalle.aspx".ToUpper(), 680)
PaginaDict.Add("/Ventas/RepCotizacionesxFacturar.aspx".ToUpper(), 686)
PaginaDict.Add("/Ventas/RepRemisionesNC.aspx".ToUpper(), 687)
PaginaDict.Add("/Ventas/CatCobranzaEstatus.aspx".ToUpper(), 7003)
diff --git a/App_Code/ClsSisUsuarios.vb b/App_Code/ClsSisUsuarios.vb
index 613bc8b9a..2d74edb22 100644
--- a/App_Code/ClsSisUsuarios.vb
+++ b/App_Code/ClsSisUsuarios.vb
@@ -1495,13 +1495,14 @@ Public Class ClsSisUsuarios
#Region " S U B - P R O Y E C T O S "
- Public Function GetSubProyectos(CveUsuario As Integer) As Boolean
+ Public Function GetSubProyectos(CveUsuario As Integer, Optional CveSubProyecto As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Sis_UsuariosSubProyectosGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
+ .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
End With
Try
diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index 7f7f2cc8d..f590ed159 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -4824,24 +4824,7 @@ Public Class ClsVentas
Return retorno
'compila
End Function
- Public Function GetRepArqueosDetalle(Fecha As DateTime, CveSubProyecto As Integer, CveEmpresa As Integer) As Boolean
- Dim retorno As Boolean = False
- Dataset = New DataSet()
- DataAdapter("PA_Vta_RepArqueosDetalleGet")
- With SqlAdapter.SelectCommand.Parameters
- .Add("@Fecha", SqlDbType.DateTime).Value = Fecha
- .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
- .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
- End With
- Try
- SqlAdapter.Fill(Dataset)
- retorno = True
- Catch ex As Exception
- OnError("Ocurrió un error al obtener el reporte de arqueos.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
- End Try
- Return retorno
- 'compila
- End Function
+
Public Function GetRepVentasMensuales(CveEmpresa As Integer, FechaInicio As Date, FechaFin As Date, Optional CveSubProyecto As Integer = -1, Optional CveClasificacion As Integer = -1,
Optional CveVendedor As Integer = -1, Optional CveMarca As Integer = -1, Optional Modalidad As Integer = 0) As Boolean
Dim retorno As Boolean = False
@@ -5702,7 +5685,7 @@ Public Class ClsVentas
Public Function UpdateLineasAdicionales(CveLineaAdicional As Integer, LineaAdicional As String, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, Importe As Decimal,
CveMoneda As Integer, FechaVencimiento As Date, CveUsuario As Integer, CveCategoria As Integer, CveEmpresa As Integer,
- Optional Comprobante As String = "-1", Optional DiasVencimiento As Integer = -1, Optional CveVenta As Integer = -1, Optional CveLineaAdicionalEstatus As Integer = -1) As Boolean
+ Optional LineaAdicionalComprobante As String = "-1", Optional DiasVencimiento As Integer = -1, Optional CveVenta As Integer = -1, Optional CveLineaAdicionalEstatus As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_LineasAdicionalesUpdate")
@@ -5719,7 +5702,7 @@ Public Class ClsVentas
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
.Add("@CveCategoria", SqlDbType.Int).Value = CveCategoria
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
- .Add("@Comprobante", SqlDbType.VarChar).Value = Comprobante
+ .Add("@LineaAdicionalComprobante", SqlDbType.VarChar).Value = LineaAdicionalComprobante
.Add("@DiasVencimiento", SqlDbType.VarChar).Value = DiasVencimiento
.Add("@CveVenta", SqlDbType.VarChar).Value = CveVenta
.Add("@CveLineaAdicionalEstatus", SqlDbType.Int).Value = CveLineaAdicionalEstatus
diff --git a/Bancos/DepositosCaja.aspx.vb b/Bancos/DepositosCaja.aspx.vb
index 7cbb67f23..3dc18e324 100644
--- a/Bancos/DepositosCaja.aspx.vb
+++ b/Bancos/DepositosCaja.aspx.vb
@@ -43,8 +43,8 @@ Partial Class Bancos_DepositosCaja
DdlCajaChica.DataSource = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa).FiltraParametros(" CveTipoCuenta = 1", "", {"CveCuenta", "NumCuentaMoneda"})
DdlCajaChica.DataBind()
- 'código temporal, para claudia y toñita
- If UsuarioActual.CveUsuario.Contiene(1937, 2452) Then
+ 'código temporal, para claudia y toñita, monge, anadelia
+ If UsuarioActual.CveUsuario.Contiene(1937, 2452, 3358, 3033) Then
DdlCajaChica.Items.Add(New ListItem("Todas", "-1"))
End If
diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb
index 90f5c97d8..a2bd46524 100644
--- a/Bancos/IE.aspx.vb
+++ b/Bancos/IE.aspx.vb
@@ -6097,7 +6097,17 @@ Partial Class Bancos_IE
Dim Cuerpo As String = "Se hace entrega del comprobante de pago"
Dim Asunto As String = "Entrega de comprobante de pago"
- If IO.File.Exists(RutaPDF) AndAlso IO.File.Exists(RutaXML) Then
+ Dim ErrorAdjuntas As String = ""
+
+ If Not IO.File.Exists(RutaPDF) Then
+ ErrorAdjuntas = "No se pudo adjuntar el archivo PDF "
+ End If
+
+ If Not IO.File.Exists(RutaXML) Then
+ ErrorAdjuntas = $"{ErrorAdjuntas} No se pudo adjuntar el XML."
+ End If
+
+ If ErrorAdjuntas.Length > 0 Then
Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail)
@@ -6116,7 +6126,7 @@ Partial Class Bancos_IE
End If
Else
- Msg = "No se pudo adjuntar el correo electrónico."
+ Msg = ErrorAdjuntas
End If
End If
diff --git a/Compras/RepComprasAFDetalle.aspx b/Compras/RepComprasAFDetalle.aspx
index 23ec0098d..bb5fbd9fa 100644
--- a/Compras/RepComprasAFDetalle.aspx
+++ b/Compras/RepComprasAFDetalle.aspx
@@ -329,8 +329,6 @@
-
-
@@ -341,6 +339,15 @@
+
+
+ Cuenta
+
+
+
+
+
+
<%----%>
diff --git a/Compras/RepPerioricidad.aspx b/Compras/RepPerioricidad.aspx
deleted file mode 100644
index 17ad7be7d..000000000
--- a/Compras/RepPerioricidad.aspx
+++ /dev/null
@@ -1,153 +0,0 @@
-<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepPerioricidad.aspx.vb" Inherits="Compras_RepPerioricidad" %>
-
-
-
-
-
-
- Reporte Perioricidad de Compra
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Ventas/RepArqueosDetalle.aspx.vb b/Ventas/RepArqueosDetalle.aspx.vb
deleted file mode 100644
index a9b726fed..000000000
--- a/Ventas/RepArqueosDetalle.aspx.vb
+++ /dev/null
@@ -1,108 +0,0 @@
-Option Explicit On
-Option Strict On
-
-Imports Extensiones
-Imports Microsoft.Reporting.WebForms
-Imports System.Data
-
-Partial Class Ventas_RepArqueosDetalle
- Inherits ClsPaginas
-#Region "P R O P I E D A D E S"
- Private Property DtVentas As DataTable
- Get
- Return DirectCast(ViewState("DtVentas"), DataTable)
- End Get
- Set(value As DataTable)
- ViewState("DtVentas") = value
- End Set
- End Property
- Private Property DtCuentas As DataTable
- Get
- Return DirectCast(ViewState("DtCuentas"), DataTable)
- End Get
- Set(value As DataTable)
- ViewState("DtCuentas") = value
- End Set
- End Property
-#End Region
- Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
- If Not IsPostBack Then
- Dim CveSubProyecto As Integer = -1
- Dim Fecha As DateTime = Now
- If Request("CveSubProyecto") IsNot Nothing Then
- CveSubProyecto = Request("CveSubProyecto").ToString().ToEntero()
- End If
- If Request("Fecha") IsNot Nothing Then
- Fecha = Request("Fecha").ToString().ToDate()
- End If
- CargaDatos(Fecha, CveSubProyecto)
- End If
- End Sub
- Private Sub CargaDatos(Fecha As DateTime, CveSubProyecto As Integer)
- LtlTitulo.Text = String.Format("Reporte de Arqueos Detalle: Fecha {0:dd/MM/yyyy}", Fecha)
-
- Dim ObjVentas As New ClsVentas()
- If ObjVentas.GetRepArqueosDetalle(Fecha, CveSubProyecto, UsuarioActual.CveEmpresa) Then
- DtVentas = ObjVentas.DataSetResultados.Tables(0).Copy()
- DtCuentas = ObjVentas.DataSetResultados.Tables(1).Copy()
- End If
- ObjVentas.Dispose()
- GvDatos.DataSource = DtVentas
- GvCuentas.DataSource = DtCuentas
- GvDatos.DataBind()
- GvCuentas.DataBind()
-
- UPDatos.Update()
- End Sub
- Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound
- If e.Row.RowType = DataControlRowType.DataRow Then
- If e.Row.DBCampo("SerieFolio") = "Total" Then
- e.Row.CssClass = "Totales"
- End If
- End If
- End Sub
- Protected Sub GvCuentas_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvCuentas.RowDataBound
- If e.Row.RowType = DataControlRowType.DataRow Then
- If e.Row.DBCampo("Folio") = "Total" Then
- e.Row.CssClass = "Totales"
- End If
- End If
- End Sub
- Protected Sub GeneraPDF(Formato As String)
- Dim params As List(Of ReportParameter) = New List(Of ReportParameter)()
- Dim Imagen As System.IO.FileInfo = New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
- Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
- params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
- params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
- params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString()))
-
- params.Add(New ReportParameter("Encabezado", String.Format("Fecha:{0}", Request("Fecha").ToString().ToDate().ToString("dd/MM/yyyy"))))
-
-
- Dim lrds As List(Of ReportDataSource) = New List(Of ReportDataSource)()
- Dim rds As ReportDataSource = New ReportDataSource()
- rds.Name = "DataSet1"
- rds.Value = DtVentas
-
- Dim rds2 As ReportDataSource = New ReportDataSource()
- rds2.Name = "DataSet2"
- rds2.Value = DtCuentas
-
- lrds.Add(rds)
- lrds.Add(rds2)
-
- If Imagen.Exists Then
- params.Add(New ReportParameter("LogoPath", logouri))
- Else
- params.Add(New ReportParameter("LogoPath", ""))
- End If
-
- ImprimirPDF("Empresas/Grales/Formatos/RepArqueosDetalle.rdlc", lrds, params, "Rep Arqueos Detalle", Formato)
- End Sub
- Protected Sub LnkPdf_Click(sender As Object, e As EventArgs)
- GeneraPDF("PDF")
- End Sub
- Protected Sub LnkExportar_Click(sender As Object, e As EventArgs)
- GeneraPDF("EXCEL")
- End Sub
-End Class
diff --git a/Ventas/RepConciliacionSat.aspx b/Ventas/RepConciliacionSat.aspx
deleted file mode 100644
index d5e7c5c20..000000000
--- a/Ventas/RepConciliacionSat.aspx
+++ /dev/null
@@ -1,235 +0,0 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepConciliacionSat.aspx.cs" Inherits="Ventas_RepConciliacionSat" %>
-
-
-
-
-
-
-
- Conciliación CFDI SAT
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Ventas/RepIngresos.aspx.vb b/Ventas/RepIngresos.aspx.vb
deleted file mode 100644
index 8e5a5f6af..000000000
--- a/Ventas/RepIngresos.aspx.vb
+++ /dev/null
@@ -1,197 +0,0 @@
-
-Imports System.Data
-Imports Extensiones
-Imports Microsoft.Reporting.WebForms
-
-Partial Class Ventas_RepIngresos
- Inherits ClsPaginas
-
-#Region "Propiedades"
- Protected ReadOnly Property Filtros As String
- Get
- Dim retorno As New StringBuilder
- If RsFechaI <> "-1" Then
- retorno.Append("&RsFechaI=")
- retorno.Append(RsFechaI)
- End If
- If RsFechaF <> "-1" Then
- retorno.Append("&RsFechaF=")
- retorno.Append(RsFechaF)
- End If
- If TipoDoc <> "-1" Then
- retorno.Append("&TipoDoc=")
- retorno.Append(TipoDoc)
- End If
- If CveSubProyecto <> -1 Then
- retorno.Append("&CveSubProyecto=")
- retorno.Append(CveSubProyecto)
- End If
- Return retorno.ToString()
- End Get
- End Property
- Private Property RsFechaI() As String
- Get
- Return If(IsNothing(ViewState("RsFechaI")), "-1", CStr(ViewState("RsFechaI")))
- End Get
- Set
- ViewState("RsFechaI") = Value
- End Set
- End Property
- Private Property RsFechaF() As String
- Get
- Return If(IsNothing(ViewState("RsFechaF")), "-1", CStr(ViewState("RsFechaF")))
- End Get
- Set
- ViewState("RsFechaF") = Value
- End Set
- End Property
- Private Property TipoDoc() As String
- Get
- Return If(IsNothing(ViewState("TipoDoc")), "-1", CStr(ViewState("TipoDoc")))
- End Get
- Set
- ViewState("TipoDoc") = Value
- End Set
- End Property
- Private Property CveSubProyecto() As Integer
- Get
- Return If(IsNothing(ViewState("CveSubProyecto")), -1, ViewState("CveSubProyecto").ToString().ToEntero())
- End Get
- Set
- ViewState("CveSubProyecto") = Value
- End Set
- End Property
- Private Property DtDatos As DataTable
- Get
- DtDatos = DirectCast(ViewState("DtDatos"), DataTable)
- End Get
-
- Set(ByVal value As DataTable)
- ViewState("DtDatos") = value
- End Set
- End Property
-
- Private Property TipoCambio As Integer
- Get
- Return ViewState("TipoCambio").ToString.ToEntero
- End Get
-
- Set(value As Integer)
- ViewState("TipoCambio") = value
- End Set
- End Property
- Private Property TCEspecifico As Decimal
- Get
- Return ViewState("TCEspecifico").ToString.ToDecimal
- End Get
-
- Set(value As Decimal)
- ViewState("TCEspecifico") = value
- End Set
- End Property
-#End Region
-
- Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
- If Not IsPostBack Then
- TCEspecifico = -1
- TipoCambio = 1
- CveSubProyecto = -1
- TxtFechaInicio.Text = String.Format("01/01/{0}", Now.Year)
- DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
- DdlSubProyecto.DataBind()
-
- End If
- End Sub
-
- Protected Sub CargaRepIngresos(Optional tipoReporte As Integer = -1)
- Dim Cves_Subprotectos As String = If(DdlSubProyecto.GetSelectedValuesM = "", "-1", DdlSubProyecto.GetSelectedValuesM)
- Dim TiposDoc As String = If(DdlTipoDocto.GetSelectedValuesM = "", "-1", DdlTipoDocto.GetSelectedValuesM)
-
- 'If RblTipoCambio.SelectedValue.ToEntero = 3 And TxtEspecifico.Text <> "" Then
- ' TCEspecifico = TxtEspecifico.Text.ToDecimal
- 'Else
- ' TCEspecifico = -1
- 'End If
-
- Dim ObjRepI As New ClsVentas()
- If ObjRepI.RepIngresos(UsuarioActual.CveEmpresa, If(RsFechaI = "-1", MinFecha, RsFechaI.ToDate), If(RsFechaF = "-1", MaxFecha, RsFechaF.ToDate), TiposDoc, Cves_Subprotectos, TipoCambio:=TipoCambio, TCEspecifico:=TCEspecifico) Then
- GVRepIngresos.DataSource = ObjRepI.DtResultados
- DtDatos = ObjRepI.DtResultados
- End If
- ObjRepI.Dispose()
- GVRepIngresos.DataBind()
- upDatosRepI.Update()
- End Sub
- Protected Sub LnkFiltrar_Click(sender As Object, e As EventArgs)
- RsFechaI = TxtFechaInicio.Text.Replace("__/__/____", "").Trim()
- RsFechaI = If(RsFechaI.Length > 6, RsFechaI.ToDate().ToString("yyyy/MM/dd"), "-1")
- RsFechaF = TxtFechaFin.Text.Replace("__/__/____", "").Trim()
- RsFechaF = If(RsFechaF.Length > 6, RsFechaF.ToDate().ToString("yyyy/MM/dd"), "-1")
- TipoDoc = DdlTipoDocto.SelectedValue
- CveSubProyecto = DdlSubProyecto.SelectedValue.ToEntero()
- CargaRepIngresos()
- End Sub
-#Region "IMPRESION"
- Protected Sub LnkPDF_Click(sender As Object, e As EventArgs)
- GeneraImpresion()
- End Sub
- Protected Sub LnkExcel_Click(sender As Object, e As EventArgs)
- GeneraImpresion("Excel")
- End Sub
-
- Private Sub GeneraImpresion(Optional Formato As String = "PDF")
-
- Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
- Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
-
- Dim FI As String = If(TxtFechaInicio.Text = "", "", $"Fecha Inicio: {TxtFechaInicio.Text} ")
- Dim FF As String = If(TxtFechaFin.Text = "", "", $"Fecha Fin: {TxtFechaFin.Text} ")
- Dim Tipo As String = If(DdlTipoDocto.SelectedValue = "", "", $"Tipo Docto: {DdlTipoDocto.GetSelectedText} ")
- Dim subProy As String = If(DdlSubProyecto.SelectedValue = "", "", $"SubProyecto: {DdlSubProyecto.GetSelectedText} ")
-
- If DtDatos IsNot Nothing AndAlso DtDatos.Rows.Count > 0 Then
-
- Dim params As New List(Of ReportParameter)
-
- params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
- params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
- params.Add(New ReportParameter("AgrupadoPor", $"{FI}{FF}{Tipo}{subProy}"))
- params.Add(New ReportParameter("FechaImpresion", DateAndTime.Now))
- If Imagen.Exists Then
- params.Add(New ReportParameter("LogoPath", logouri))
- Else
- params.Add(New ReportParameter("LogoPath", ""))
- End If
-
- ImprimirPDF("Empresas/Grales/Formatos/RepIngresos.rdlc", DtDatos, params, "RepPUESinPago", Formato)
- Else
- Alert("No se encontraron datos con los filtros especificados", TipoMensaje.MsgAdvertencia)
- End If
-
- End Sub
-#End Region
- Protected Sub GVRepIngresos_RowDataBound(sender As Object, e As GridViewRowEventArgs)
- If e.Row.RowType = DataControlRowType.DataRow Then
- If e.Row.DBCampo("TipoAmortizacion") = "" Then
- e.Row.CssClass = "Totales"
- ElseIf e.Row.DBCampo("TipoAmortizacion") <> "" AndAlso e.Row.DBCampo("CveConceptoContable") = "" Then
- e.Row.CssClass = "SubTotales"
- End If
- End If
- End Sub
- Private Sub RblTipoCambio_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RblTipoCambio.SelectedIndexChanged
- TipoCambio = RblTipoCambio.SelectedValue.ToEntero
- 'If TipoCambio = 3 Then
- ' LiEspecifico.Visible = True
- ' TCEspecifico = GlobalTipoCambio(Now).ToDecimal
- ' TxtEspecifico.Text = TCEspecifico.ToString
- 'Else
- ' LiEspecifico.Visible = False
- 'End If
- UpBodyTipoCambio.Update()
- End Sub
- Private Sub BtnTipoCambio_Click(sender As Object, e As EventArgs) Handles BtnTipoCambio.Click
- RegistraScript(String.Format("$('#{0}').modal('hide');", "DivTipoCambio"))
- LnkFiltrar_Click(LnkFiltrar, EventArgs.Empty)
- End Sub
-End Class
diff --git a/Ventas/RepLineasAdicionales.aspx b/Ventas/RepLineasAdicionales.aspx
index 4a65fdc2b..bfe5ef7aa 100644
--- a/Ventas/RepLineasAdicionales.aspx
+++ b/Ventas/RepLineasAdicionales.aspx
@@ -3,12 +3,7 @@
-
+
@@ -16,10 +11,7 @@
-
-
-
-
+