|
|
|
|
@@ -15,8 +15,8 @@ Imports Stimulsoft.Report.Web
|
|
|
|
|
Partial Class PopUpVerFactura
|
|
|
|
|
Inherits ClsPaginas
|
|
|
|
|
|
|
|
|
|
Private Shared missing As Object = System.Reflection.Missing.Value
|
|
|
|
|
|
|
|
|
|
Private Shared missing As Object = System.Reflection.Missing.Value
|
|
|
|
|
|
|
|
|
|
#Region " PROPIEDADES "
|
|
|
|
|
Public Property DtMovimientos() As DataTable
|
|
|
|
|
Get
|
|
|
|
|
@@ -211,9 +211,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
UsuarioToken.Empresa = ObjEmpresa.Empresa
|
|
|
|
|
End If
|
|
|
|
|
ObjEmpresa.Dispose()
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Private Sub SeleccionaReporte(UrlParametros As Hashtable)
|
|
|
|
|
'DESCARGA DOCUMENTO XML O PDF DE LA FACTURA COMPRA
|
|
|
|
|
If UrlParametros("OP").ToString = "Fact" Then
|
|
|
|
|
@@ -448,10 +448,10 @@ Partial Class PopUpVerFactura
|
|
|
|
|
URLParametros.Add(P2(0).ToString.ToUpper, P2(1))
|
|
|
|
|
Next
|
|
|
|
|
Return URLParametros
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
#Region "OP = CORT - IMPRIMIR CORTE"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Private Sub ImprimeCorte(CveCorte As Integer, Formato As String)
|
|
|
|
|
Dim ObjVenta As New ClsVentas
|
|
|
|
|
Dim ObjPuntoVenta As New ClsPuntoVenta
|
|
|
|
|
@@ -494,10 +494,10 @@ Partial Class PopUpVerFactura
|
|
|
|
|
ImprimirPDF("Empresas/Grales/Formatos/RepCortes.rdlc", lrds, params, "ReporteCortes", Formato)
|
|
|
|
|
End If
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region " OP = FACTURA - IMPRIME COMPRA"
|
|
|
|
|
Private Sub DescargaFactura(Parametros As Hashtable)
|
|
|
|
|
If Parametros("CVEFACTURA") IsNot Nothing AndAlso Parametros("CVEFACTURA").ToString.ToEntero > 0 Then
|
|
|
|
|
@@ -517,9 +517,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
End If
|
|
|
|
|
Archivo = Nothing
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP DesXmlVIA- DESCARGAR XML DE VIATICOS"
|
|
|
|
|
Private Sub DescargaXMLViaticos(Parametros As Hashtable)
|
|
|
|
|
If Parametros("SERIEFOLIO") IsNot Nothing AndAlso Parametros("SERIEFOLIO").ToString <> "" Then
|
|
|
|
|
@@ -539,10 +539,10 @@ Partial Class PopUpVerFactura
|
|
|
|
|
End If
|
|
|
|
|
Archivo = Nothing
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP DesXmlNom- DESCARGAR XML DE UTILIDADES"
|
|
|
|
|
Private Sub DescargaXMLUtilidades(Parametros As Hashtable)
|
|
|
|
|
If Parametros("SERIEFOLIO") IsNot Nothing AndAlso Parametros("SERIEFOLIO").ToString <> "" Then
|
|
|
|
|
@@ -562,9 +562,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
End If
|
|
|
|
|
Archivo = Nothing
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'CONG' - IMPRIME GASTO DE CONTRATO"
|
|
|
|
|
Private Sub ImprimeGastoContrato(CveContrato As Integer, CveContratoGasto As Integer)
|
|
|
|
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
|
|
|
|
@@ -606,10 +606,10 @@ Partial Class PopUpVerFactura
|
|
|
|
|
params.Add(New ReportParameter("LogoPath", ""))
|
|
|
|
|
End If
|
|
|
|
|
ImprimirPDF("Empresas/Grales/Formatos/ContratoGasto.rdlc", dt, params, $"{Nombre}-Gastos", Formato:="PDF")
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'CIC' - IMPRIME FORMATO CICOVISA"
|
|
|
|
|
Private Sub ImprimeFormatoCICOVISA(CveVenta As Integer)
|
|
|
|
|
If CveVenta > 0 Then
|
|
|
|
|
@@ -646,10 +646,10 @@ Partial Class PopUpVerFactura
|
|
|
|
|
ImprimirPDF("Empresas/Grales/Formatos/Cicovisa.rdlc", Dt, params, String.Format("Formato Cicovisa -{0}", Now.ToDateTime.ToShortDateString))
|
|
|
|
|
End If
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'CARPO' - IMPRIME FORMATO CARTA PORTE"
|
|
|
|
|
Private Sub ImprimeFormatoCartaPorte(CveMovimiento As Integer)
|
|
|
|
|
If CveMovimiento > 0 Then
|
|
|
|
|
@@ -774,12 +774,12 @@ Partial Class PopUpVerFactura
|
|
|
|
|
ImprimirPDF("Empresas/Grales/Formatos/CartaPorte.rdlc", Dt, params, String.Format("Carta Porte -{0}", Now.ToDateTime.ToShortDateString))
|
|
|
|
|
End If
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'DesXmlTra' - IMPRIME XML TRASLADO"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Private Sub DescargaXMLTraslado(Parametros As Hashtable)
|
|
|
|
|
If Parametros("CVEMOVIMIENTO") IsNot Nothing AndAlso Parametros("CVEMOVIMIENTO").ToString.ToEntero > 0 Then
|
|
|
|
|
Dim Exten As String = If(Parametros("EXT").ToString.ToLower = "xml", "xml", "pdf")
|
|
|
|
|
@@ -798,12 +798,12 @@ Partial Class PopUpVerFactura
|
|
|
|
|
End If
|
|
|
|
|
Archivo = Nothing
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'DesPdfTra' - IMPRIME PDF TRASLADO"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Private Sub DescargaPDFTraslado(Parametros As Hashtable)
|
|
|
|
|
If Parametros("CVEMOVIMIENTO") IsNot Nothing AndAlso Parametros("CVEMOVIMIENTO").ToString.ToEntero > 0 Then
|
|
|
|
|
Dim Exten As String = If(Parametros("EXT").ToString.ToLower = "xml", "xml", "pdf")
|
|
|
|
|
@@ -822,10 +822,10 @@ Partial Class PopUpVerFactura
|
|
|
|
|
End If
|
|
|
|
|
Archivo = Nothing
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region " OP = 'Vta,Fact' - IMPRIME PDF VENTAS"
|
|
|
|
|
Private Sub DescargaFacturaVenta(Parametros As Hashtable)
|
|
|
|
|
If Parametros("CVEVENTA") IsNot Nothing AndAlso Parametros("CVEVENTA").ToString.ToEntero > 0 Then
|
|
|
|
|
@@ -1184,7 +1184,7 @@ Partial Class PopUpVerFactura
|
|
|
|
|
Dim DepartamentoEntrega As String = ObjInventarios.DepartamentoEntrega
|
|
|
|
|
Dim FechaMovimiento As Date = ObjInventarios.FechaRegistro
|
|
|
|
|
|
|
|
|
|
If CveConcepto = 3 Or CveConcepto = 18 Or CveConcepto = 30 Or CveConcepto = 34 Or CveConcepto = 35 Or CveConcepto = 16 Then 'SALIDA Y DEVOLUCION DEL CLIENTE
|
|
|
|
|
If CveConcepto = 3 Or CveConcepto = 18 Or CveConcepto = 30 Or CveConcepto = 34 Or CveConcepto = 35 Or CveConcepto = 16 Or CveConcepto = 7 Then 'SALIDA Y DEVOLUCION DEL CLIENTE
|
|
|
|
|
If ObjInventarios.GetMovimientosDetalleImpresion(CveMovimiento, UsuarioActual.CveEmpresa) Then
|
|
|
|
|
DtMovimientos = ObjInventarios.DtResultados
|
|
|
|
|
|
|
|
|
|
@@ -2362,6 +2362,37 @@ Partial Class PopUpVerFactura
|
|
|
|
|
End If
|
|
|
|
|
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/DevolucionCliente.rdlc", DtMovimientos, params, String.Format("Devolucion del Cliente - {0}", Folio.ToString), RDSName:="DsInventarios")
|
|
|
|
|
'End If
|
|
|
|
|
Else
|
|
|
|
|
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
|
|
|
|
If Imagen.Exists Then
|
|
|
|
|
params.Add(New ReportParameter("LogoPath", logouri))
|
|
|
|
|
Else
|
|
|
|
|
params.Add(New ReportParameter("LogoPath", ""))
|
|
|
|
|
End If
|
|
|
|
|
Dim CiudadSucursal As String = ""
|
|
|
|
|
Dim DomicilioSucursal As String = ""
|
|
|
|
|
|
|
|
|
|
If DtMovimientos(0)("CveVenta").ToString <> "" Then
|
|
|
|
|
CiudadSucursal = String.Format("{0}, {1}", DtMovimientos(0)("Municipio").ToString, DtMovimientos(0)("Estado").ToString)
|
|
|
|
|
DomicilioSucursal = String.Format("{0} #{1}, {2}, Col. {3}, CP: {4}, {5}, {6}", DtMovimientos(0)("Calle").ToString, DtMovimientos(0)("NoExt").ToString, DtMovimientos(0)("NoInt").ToString, DtMovimientos(0)("Colonia"), DtMovimientos(0)("CP").ToString, CiudadSucursal, DtMovimientos(0)("Pais").ToString)
|
|
|
|
|
End If
|
|
|
|
|
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
|
|
|
|
|
params.Add(New ReportParameter("Folio", Folio))
|
|
|
|
|
params.Add(New ReportParameter("Concepto", "DEVOLUCIÓN DEL CLIENTE"))
|
|
|
|
|
params.Add(New ReportParameter("Fecha", Fecha))
|
|
|
|
|
params.Add(New ReportParameter("Almacen", Almacen))
|
|
|
|
|
params.Add(New ReportParameter("FacturaProveedor", FolioVenta))
|
|
|
|
|
params.Add(New ReportParameter("NombreEntrego", String.Format("ENTREGÓ{0}{1}", vbCrLf, Capturo)))
|
|
|
|
|
params.Add(New ReportParameter("NombreRecibio", Recibio))
|
|
|
|
|
params.Add(New ReportParameter("ExpedidoEn", DomicilioSucursal))
|
|
|
|
|
params.Add(New ReportParameter("FacturadoA", DtMovimientos(0)("Nombre").ToString))
|
|
|
|
|
params.Add(New ReportParameter("EnviarA", DtMovimientos(0)("Mail").ToString))
|
|
|
|
|
params.Add(New ReportParameter("Entrega", DtMovimientos(0)("Entrega").ToString))
|
|
|
|
|
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
|
|
|
|
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
|
|
|
|
|
|
|
|
|
ImprimirPDF("Empresas/Grales/Formatos/DevolucionCliente.rdlc", DtMovimientos, params, String.Format("Devolucion del Cliente - {0}", Folio.ToString), RDSName:="DsInventarios")
|
|
|
|
|
'End If
|
|
|
|
|
End If
|
|
|
|
|
|
|
|
|
|
Case 19 'ARMADO DE PAQUETE
|
|
|
|
|
@@ -2929,8 +2960,34 @@ Partial Class PopUpVerFactura
|
|
|
|
|
params.Add(New ReportParameter("Sucursal", "Sucursal"))
|
|
|
|
|
params.Add(New ReportParameter("Cliente", NombreCliente))
|
|
|
|
|
|
|
|
|
|
ImprimirPDF(String.Format("Empresas/{0}/Formatos/RepUsadosEntradas.rdlc", UsuarioActual.CveEmpresa), DtMovimientos, params, "Reporte entrada usados", "PDF", "DsInventarios")
|
|
|
|
|
|
|
|
|
|
ImprimirPDF(String.Format("Empresas/{0}/Formatos/RepUsadosEntradas.rdlc", UsuarioActual.CveEmpresa), DtMovimientos, params, "Reporte entrada usados", "PDF", "DsInventarios")
|
|
|
|
|
Case 7
|
|
|
|
|
Dim params As New List(Of ReportParameter)
|
|
|
|
|
Dim CiudadSucursal As String = ""
|
|
|
|
|
Dim DomicilioSucursal As String = ""
|
|
|
|
|
|
|
|
|
|
If DtMovimientos(0)("CveVenta").ToString <> "" Then
|
|
|
|
|
CiudadSucursal = String.Format("{0}, {1}", DtMovimientos(0)("Municipio").ToString, DtMovimientos(0)("Estado").ToString)
|
|
|
|
|
DomicilioSucursal = String.Format("{0} #{1}, {2}, Col. {3}, CP: {4}, {5}, {6}", DtMovimientos(0)("Calle").ToString, DtMovimientos(0)("NoExt").ToString, DtMovimientos(0)("NoInt").ToString, DtMovimientos(0)("Colonia"), DtMovimientos(0)("CP").ToString, CiudadSucursal, DtMovimientos(0)("Pais").ToString)
|
|
|
|
|
End If
|
|
|
|
|
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
|
|
|
|
|
params.Add(New ReportParameter("Folio", Folio))
|
|
|
|
|
params.Add(New ReportParameter("Concepto", "DEVOLUCIÓN DEL CLIENTE"))
|
|
|
|
|
params.Add(New ReportParameter("Fecha", Fecha))
|
|
|
|
|
params.Add(New ReportParameter("Almacen", Almacen))
|
|
|
|
|
params.Add(New ReportParameter("FacturaProveedor", FolioVenta))
|
|
|
|
|
params.Add(New ReportParameter("NombreEntrego", String.Format("ENTREGÓ{0}{1}", vbCrLf, Capturo)))
|
|
|
|
|
params.Add(New ReportParameter("NombreRecibio", Recibio))
|
|
|
|
|
params.Add(New ReportParameter("ExpedidoEn", DomicilioSucursal))
|
|
|
|
|
params.Add(New ReportParameter("FacturadoA", DtMovimientos(0)("Nombre").ToString))
|
|
|
|
|
params.Add(New ReportParameter("EnviarA", DtMovimientos(0)("Mail").ToString))
|
|
|
|
|
params.Add(New ReportParameter("Entrega", DtMovimientos(0)("Entrega").ToString))
|
|
|
|
|
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
|
|
|
|
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
|
|
|
|
|
|
|
|
|
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/DevolucionCliente.rdlc", DtMovimientos, params, String.Format("Devolucion del Cliente - {0}", Folio.ToString), RDSName:="DsInventarios")
|
|
|
|
|
'End If
|
|
|
|
|
|
|
|
|
|
End Select
|
|
|
|
|
|
|
|
|
|
If CveConcepto = 2 Then
|
|
|
|
|
@@ -3130,9 +3187,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
TmpDTMaterialesOS.Columns.Add("Clasificacion", GetType(String))
|
|
|
|
|
TmpDTMaterialesOS.Columns.Add("PS", GetType(String))
|
|
|
|
|
TmpDTMaterialesOS.Columns.Add("UM", GetType(String))
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'OI' - Crear Archivo "
|
|
|
|
|
Private Sub CrearArchivo(Archivo As String)
|
|
|
|
|
Dim ObjEventos As New ClsOIEventos
|
|
|
|
|
@@ -3141,11 +3198,11 @@ Partial Class PopUpVerFactura
|
|
|
|
|
Dim file As System.IO.FileInfo = New System.IO.FileInfo(path) '-- if the file exists on the server
|
|
|
|
|
|
|
|
|
|
DescargarArchivo(file)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'Contratos' - Crear Archivo "
|
|
|
|
|
Private Sub CrearArchivoContratos(Archivo As String)
|
|
|
|
|
|
|
|
|
|
@@ -3153,11 +3210,11 @@ Partial Class PopUpVerFactura
|
|
|
|
|
Dim file As System.IO.FileInfo = New System.IO.FileInfo(Archivo) '-- if the file exists on the server
|
|
|
|
|
|
|
|
|
|
DescargarArchivo(file)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'OI' - Descargar Archivo "
|
|
|
|
|
Private Sub DescargarArchivo(File As System.IO.FileInfo)
|
|
|
|
|
If File.Exists Then 'set appropriate headers
|
|
|
|
|
@@ -3187,11 +3244,11 @@ Partial Class PopUpVerFactura
|
|
|
|
|
Alert("Ocurrio un error al descargar el archivo", TipoMensaje.MsgAdvertencia, "window.close()")
|
|
|
|
|
|
|
|
|
|
End If 'nothing in the URL as HTTP GET
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'AFR' - AF"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Private Sub ImprimirPDFAFR(CveAFR As Integer, Tipo As Integer)
|
|
|
|
|
Dim ObjAF As New ClsAF
|
|
|
|
|
'Dim ObjSubProyecto As New ClsSubProyectos
|
|
|
|
|
@@ -3377,9 +3434,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
|
|
|
|
|
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/ResguardoAF.rdlc", dtVC, params, NomArchivo)
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'POL' "
|
|
|
|
|
Private Sub ImprimirPolizaPDF(IdPoliza As Integer)
|
|
|
|
|
'Dim ObjConta As New ClsContabilidad
|
|
|
|
|
@@ -3418,9 +3475,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
|
|
|
|
|
ObjPoliza.Dispose()
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'CAN' - CANCELACION"
|
|
|
|
|
Public Sub ImprimeCancelacion(CveVenta As Integer)
|
|
|
|
|
Dim ObjVentas As New ClsVentas
|
|
|
|
|
@@ -3445,9 +3502,9 @@ Partial Class PopUpVerFactura
|
|
|
|
|
|
|
|
|
|
End If
|
|
|
|
|
ObjVentas.Dispose()
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = 'DC' - DEPOSITOS CAJA"
|
|
|
|
|
Private Sub CargaDepositosCaja(CveIE As Integer, CuentaCaja As String, CuentaDeposito As String)
|
|
|
|
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/DepositoCaja.rdlc", UsuarioActual.Empresa.Ruta))
|
|
|
|
|
@@ -3474,11 +3531,11 @@ Partial Class PopUpVerFactura
|
|
|
|
|
|
|
|
|
|
ObjIE.Dispose()
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "I E C H E Q U E S"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Private Sub ImprimirIE(CveIE As Integer, CveEmpresa As Integer)
|
|
|
|
|
Dim CveTipoTransaccion = -1
|
|
|
|
|
Dim ObjIE As New ClsBancos()
|
|
|
|
|
@@ -3724,21 +3781,21 @@ Partial Class PopUpVerFactura
|
|
|
|
|
|
|
|
|
|
ObjIE.Dispose()
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = RECIBO DE PAGOS"
|
|
|
|
|
Private Sub ImprimirReciboDePagos(CveIE As Integer, CveVenta As Integer)
|
|
|
|
|
|
|
|
|
|
PDFReciboDePagos(CveVenta, CveIE, -1)
|
|
|
|
|
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Region "OP = VTA - PyME"
|
|
|
|
|
|
|
|
|
|
' 04/05/2018 - Pruebas de impresion de factura PyME
|
|
|
|
|
|
|
|
|
|
' 04/05/2018 - Pruebas de impresion de factura PyME
|
|
|
|
|
Private Sub GeneraPDFVtaPyMe(Venta As Modelos.Factura, Optional Formato As String = "PDF")
|
|
|
|
|
Dim Directorio1 As String = String.Format("{0}Empresas\{1}\Formatos\Factura.mrt", AppDomain.CurrentDomain.BaseDirectory, UsuarioActual.CveEmpresa)
|
|
|
|
|
Dim File As FileInfo = New FileInfo(Directorio1)
|
|
|
|
|
@@ -3793,7 +3850,7 @@ Partial Class PopUpVerFactura
|
|
|
|
|
Else
|
|
|
|
|
RegistraScript("alert('No hay un formato de factura predefinido,favor de comunicar a soporte tecnico')")
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
End Sub
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
End Class
|
|
|
|
|
|