diff --git a/App_Code/ClsContabilidad.vb b/App_Code/ClsContabilidad.vb index 6b6fce855..07ef0da67 100644 --- a/App_Code/ClsContabilidad.vb +++ b/App_Code/ClsContabilidad.vb @@ -4062,6 +4062,29 @@ Public Class ClsContabilidad Dim Retorno As Boolean = False DataAdapter("PA_Sis_InconsistenciasGet") + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch ex As Exception + OnError("Ocurrió un error al obtener inconsistencias.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + End Try + + Return Retorno + End Function + + + Public Function GetPolizasDescuadre(Optional Ejercicio As Integer = -1, Optional Periodo As Integer = -1, Optional CveEmpresa As Integer = -1) As Boolean + Dim Retorno As Boolean = False + + DataAdapter("PA_Sis_PolizasConDescuadreGet") + + + With SqlAdapter.SelectCommand.Parameters + .Add("@Ejercicio", SqlDbType.Int).Value = Ejercicio + .Add("@Periodo", SqlDbType.Int).Value = Periodo + .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + End With + Try SqlAdapter.Fill(Data) @@ -6685,6 +6708,53 @@ Public Class ClsContabilidad End Function + + + Public Function GetLibroMayorSIG(CveCuentaPadre As Integer, FechaInicio As Date, FechaFin As Date, CveMoneda As Integer, CveEmpresa As Integer) As Boolean + Dim Retorno As Boolean = False + DataAdapter("PA_LibroMayorSIGGet") + + With SqlAdapter.SelectCommand.Parameters + .Add("@CveCuentaPadre ", SqlDbType.Int).Value = CveCuentaPadre + .Add("@FechaI", SqlDbType.Date).Value = FechaInicio + .Add("@FechaF", SqlDbType.Date).Value = FechaFin + .Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda + .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 Libro Mayor.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End Try + + Return Retorno + End Function + + + Public Function GetLibroDiarioSIG(FechaInicio As Date, FechaFin As Date, CveEmpresa As Integer) As Boolean + + Dim Retorno As Boolean = False + DataAdapter("PA_LibroDiarioSIGGet") + + With SqlAdapter.SelectCommand.Parameters + .Add("@FechaI", SqlDbType.Date).Value = FechaInicio + .Add("@FechaF", 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 Libro Diario.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End Try + + Return Retorno + End Function + + #Region "IDisposable Support" ' IDisposable Protected Overridable Sub Dispose(disposing As Boolean) diff --git a/App_Code/ClsInventarios.vb b/App_Code/ClsInventarios.vb index 8f576a8d9..d33475899 100644 --- a/App_Code/ClsInventarios.vb +++ b/App_Code/ClsInventarios.vb @@ -5176,7 +5176,7 @@ Public Class ClsInventarios #Region "INVENTARIOS - REPORTE DE MOVIMIENTOS DE PROVEEDOR" - Public Function GetRepMovimientosProveedor(CveEmpresa As Integer, CveConcepto As Integer, CveProveedor As Integer, FechaI As Date, FechaF As Date) As Boolean + Public Function GetRepMovimientosProveedor(CveEmpresa As Integer, CveConcepto As Integer, CveProveedor As Integer, CvePS As Integer, CveAlmacenOrigen As Integer, CveAlmacenDestino As Integer, FechaI As Date, FechaF As Date) As Boolean Dim Retorno As Boolean = False DataAdapter("PA_Inv_ProductosProveedor") @@ -5184,6 +5184,9 @@ Public Class ClsInventarios .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa .Add("@CveConcepto", SqlDbType.Int).Value = CveConcepto .Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor + .Add("@CvePS", SqlDbType.Int).Value = CvePS + .Add("@CveAlmacenOrigen", SqlDbType.Int).Value = CveAlmacenOrigen + .Add("@CveAlmacenDestino", SqlDbType.Int).Value = CveAlmacenDestino .Add("@FechaI", SqlDbType.Date).Value = FechaI .Add("@FechaF", SqlDbType.Date).Value = FechaF End With diff --git a/App_Code/ClsPV.vb b/App_Code/ClsPV.vb index 382f34065..62724f041 100644 --- a/App_Code/ClsPV.vb +++ b/App_Code/ClsPV.vb @@ -152,53 +152,53 @@ Public Class ClsPV End Function 'Reporte de Compras - Public Function GetRepPVCompras(FechaI As String, FechaF As String, CveProveedor As Integer, CveUsuario As Integer, CveMoneda As Integer, CveEmpresa As Integer, Gpo As Integer) As Boolean - Dim Retorno As Boolean = False - DataAdapter("PA_PV_ComprasGetRep") + 'Public Function GetRepPVCompras(FechaI As String, FechaF As String, CveProveedor As Integer, CveUsuario As Integer, CveMoneda As Integer, CveEmpresa As Integer, Gpo As Integer) As Boolean + ' Dim Retorno As Boolean = False + ' DataAdapter("PA_PV_ComprasGetRep") - With SqlAdapter.SelectCommand.Parameters - .Add("@FechaI", SqlDbType.VarChar).Value = FechaI - .Add("@FechaF", SqlDbType.VarChar).Value = FechaF - .Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor - .Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario - .Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda - .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa - .Add("@GPO", SqlDbType.Int).Value = Gpo - End With + ' With SqlAdapter.SelectCommand.Parameters + ' .Add("@FechaI", SqlDbType.VarChar).Value = FechaI + ' .Add("@FechaF", SqlDbType.VarChar).Value = FechaF + ' .Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor + ' .Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario + ' .Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda + ' .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + ' .Add("@GPO", SqlDbType.Int).Value = Gpo + ' End With - Try - SqlAdapter.Fill(Data) - Retorno = True - Catch ex As Exception - OnError("Ocurrió un error al obtener el Reporte de Compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) - End Try + ' Try + ' SqlAdapter.Fill(Data) + ' Retorno = True + ' Catch ex As Exception + ' OnError("Ocurrió un error al obtener el Reporte de Compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + ' End Try - Return Retorno - End Function + ' Return Retorno + 'End Function 'Reporte de Ventas VS Compras - Public Function GetRepPVVentasCompras(FechaI As String, FechaF As String, CveSubProyecto As Integer, CveEmpresa As Integer, Gpo As Integer) As Boolean - Dim Retorno As Boolean = False - DataAdapter("PA_PV_VentasComprasGetRep") + 'Public Function GetRepPVVentasCompras(FechaI As String, FechaF As String, CveSubProyecto As Integer, CveEmpresa As Integer, Gpo As Integer) As Boolean + ' Dim Retorno As Boolean = False + ' DataAdapter("PA_PV_VentasComprasGetRep") - With SqlAdapter.SelectCommand.Parameters - '.Add("@CveVenta", SqlDbType.Int).Value = CveVenta - .Add("@FechaI", SqlDbType.VarChar).Value = FechaI - .Add("@FechaF", SqlDbType.VarChar).Value = FechaF - .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto - .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa - .Add("@GPO", SqlDbType.Int).Value = Gpo - End With + ' With SqlAdapter.SelectCommand.Parameters + ' '.Add("@CveVenta", SqlDbType.Int).Value = CveVenta + ' .Add("@FechaI", SqlDbType.VarChar).Value = FechaI + ' .Add("@FechaF", SqlDbType.VarChar).Value = FechaF + ' .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto + ' .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + ' .Add("@GPO", SqlDbType.Int).Value = Gpo + ' End With - Try - SqlAdapter.Fill(Data) - Retorno = True - Catch ex As Exception - OnError("Ocurrió un error al obtener el Reporte de Ventas y Compras.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) - End Try + ' Try + ' SqlAdapter.Fill(Data) + ' Retorno = True + ' Catch ex As Exception + ' OnError("Ocurrió un error al obtener el Reporte de Ventas y Compras.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + ' End Try - Return Retorno - End Function + ' Return Retorno + 'End Function #Region "IDisposable Support" diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb index e3b6570c4..875e14c20 100644 --- a/App_Code/ClsPaginas.vb +++ b/App_Code/ClsPaginas.vb @@ -5538,9 +5538,9 @@ Public Class ClsPaginas PaginaDict.Add("/Proveedores/LogInProveedores.aspx".ToUpper(), -1) 'Punto de Venta - PaginaDict.Add("/PV/PVRepVentas.aspx".ToUpper(), 270) - PaginaDict.Add("/PV/PVRepCompras.aspx".ToUpper(), 272) - PaginaDict.Add("/PV/PVRepVentasCompras.aspx".ToUpper(), 273) + 'PaginaDict.Add("/PV/PVRepVentas.aspx".ToUpper(), 270) + 'PaginaDict.Add("/PV/PVRepCompras.aspx".ToUpper(), 272) + 'PaginaDict.Add("/PV/PVRepVentasCompras.aspx".ToUpper(), 273) PaginaDict.Add("/Contratos/ContratoObra.aspx".ToUpper(), 911) PaginaDict.Add("/Contratos/RepContratosObraAvances.aspx".ToUpper(), 914) @@ -5999,7 +5999,7 @@ Public Class ClsPaginas Dim bdir As String = If(RutaReporte.Contains("Empresas"), ModExtensiones.DirectorioBaseEmpresas, AppDomain.CurrentDomain.BaseDirectory) 'TOMAR LA RUTA BASE PARA EL DIRECTORIO DE LA EMPRESA - If Not String.IsNullOrEmpty(RutaEmpresa) AndAlso Not RutaReporte.Contains("Grales") AndAlso Not RutaReporte.Contains("Contabilidad/Reportes/") Then + If Not String.IsNullOrEmpty(RutaEmpresa) AndAlso Not RutaReporte.Contains("Grales") AndAlso Not RutaReporte.Contains("Contabilidad/Reportes/") AndAlso Not RutaReporte.Contains("AC/Reportes/") Then bdir = RutaEmpresa.Replace($"{CveEmpresa}/", "") End If diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb index 28d1e9af0..7167697c1 100644 --- a/App_Code/Modelos.vb +++ b/App_Code/Modelos.vb @@ -5215,15 +5215,18 @@ Namespace Modelos Dim CveMovimientoDevolucion As Integer = 0 Dim Folio As Integer = 0 + Dim CveMovimientoSalida As Integer = -1 + Select Case RowMovimiento("CveConcepto").ToString().ToEntero() Case 3 CveConceptoMovimiento = 18 'DEVOLUCION DEL CLIENTE CveAlmacenMovimiento = RowMovimiento("CveAlmacen").ToString().ToEntero() + CveMovimientoSalida = RowMovimiento("CveMovimiento").ToString().ToEntero() Case 40 CveConceptoMovimiento = 41 'DEVOLUCIÓN DEL CLIENTE DIRECTA CveAlmacenMovimiento = RowMovimiento("CveAlmacen").ToString().ToEntero() Case 18 - CveConceptoMovimiento = 3 'DEVOLUCIÓN DEL CLIENTE DIRECTA + CveConceptoMovimiento = 3 'SALIDA DE ALMACEN CveAlmacenMovimiento = RowMovimiento("CveAlmacen").ToString().ToEntero() ''SI TIENE REMISIONES RELACIONADAS 'If DtRemisionesFacturadas.Rows.Count > 0 Then @@ -5248,7 +5251,7 @@ Namespace Modelos 'SI TIENE SALDO PENDIENTE POR DEVOLVER GENERA UN MOVIMIENTO DE DEVOLUCION If ObjFactura.SaldoAlmacen <> 0 Then 'SALIDA DE ALMACEN - SALIDA POR TRASPASO CUANDO ES REMISION - DEVOLUCION (SI ES TRASPASO Y TIENE CONTRATO NO HACE DEVOLUCIóN) - CveMovimientoDevolucion = ObjInventario.AddMovimiento(CveAlmacenMovimiento, CveConceptoMovimiento, 1, Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVenta, -1, -1, Observaciones:="", Guia:="", CveContrato:=CveContrato, CveAlmacenDestino:=-1, Modulo:="Mod/CV1") + CveMovimientoDevolucion = ObjInventario.AddMovimiento(CveAlmacenMovimiento, CveConceptoMovimiento, 1, Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVenta, -1, -1, Observaciones:="", Guia:="", CveContrato:=CveContrato, CveAlmacenDestino:=-1, CveMovimientoRelacionado:=CveMovimientoSalida, Modulo:="Mod/CV1") Folio = ObjInventario.Folio If CveMovimientoDevolucion > 0 Then diff --git a/App_Code/Timbrado.vb b/App_Code/Timbrado.vb index 2499c1de1..466e394c5 100644 --- a/App_Code/Timbrado.vb +++ b/App_Code/Timbrado.vb @@ -3479,9 +3479,17 @@ Public Class Timbrado Try Dim RutaCBB As String = $"{UsuarioActual.Empresa.Ruta}CBB\{ObjCFDITimbre.Comprobante.SerieFolio}.jpg" - Dim CBB As New ClbNegBICFDv3_2.ClsNegCBBGenerar() - CBB.GenerarCBB(UsuarioActual.Empresa.RFC, ObjCFDITimbre.Receptor.RFC, ObjCFDITimbre.Comprobante.Total, FolioFiscal, RutaCBB) - CBB = Nothing + 'Dim CBB As New ClbNegBICFDv3_2.ClsNegCBBGenerar() + 'CBB.GenerarCBB(UsuarioActual.Empresa.RFC, ObjCFDITimbre.Receptor.RFC, ObjCFDITimbre.Comprobante.Total, FolioFiscal, RutaCBB) + 'CBB = Nothing + + Dim qrCode As New GoFac.QrCode() + 'String cadenaqrCode = qrCode.GenerarCadenaQrCode(txtXml.Text) + + Dim bCBB As Byte() = qrCode.GenerarQrCode($"{LigaVerificacionSAT}?re={UsuarioActual.Empresa.RFC}&rr={ObjCFDITimbre.Receptor.RFC}&tt={String.Format("{0,12:F6}", ObjCFDITimbre.Comprobante.Total).Trim()}&id={FolioFiscal}&fe=ELleDg==") + File.WriteAllBytes(RutaCBB, bCBB) + bCBB = Nothing + Catch ex As Exception OnError("Ocurrió un error al generar el QR", ex) End Try diff --git a/Bancos/CuentasBancariasDetalle.aspx.vb b/Bancos/CuentasBancariasDetalle.aspx.vb index ddfc4d03c..707282855 100644 --- a/Bancos/CuentasBancariasDetalle.aspx.vb +++ b/Bancos/CuentasBancariasDetalle.aspx.vb @@ -106,7 +106,7 @@ Partial Class Bancos_CuentasBancariasDetalle DDlCuentaContable.DataSource = ObjContabilidad.DtResultados DDlCuentaContable.DataBind() DDlCuentaContable.Items.Insert(0, New ListItem("Selecione", "-1")) - DDlCuentaContable.DataTextField = "Cuenta" + DDlCuentaContable.DataTextField = "CtaCodigo" DDlCuentaContable.DataValueField = "CveCuenta" End If End Using diff --git a/Bancos/PrestamoPersonal.aspx.cs b/Bancos/PrestamoPersonal.aspx.cs index 61470b145..038100bf5 100644 --- a/Bancos/PrestamoPersonal.aspx.cs +++ b/Bancos/PrestamoPersonal.aspx.cs @@ -106,15 +106,15 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas txtFechaF.Text = DateTime.Now.ToShortDateString(); TxtImporte.Attributes.Add("disabled", "disabled"); - if (UsuarioActual.Empresa.Funcionalidad(281).ToEntero() == 1) - { - TxtFechaPrestamo.Enabled = false; - ImgCalendarioPrestamo.Visible = false; + //if (UsuarioActual.Empresa.Funcionalidad(281).ToEntero() == 1) + //{ + // TxtFechaPrestamo.Enabled = false; + // ImgCalendarioPrestamo.Visible = false; - TxtFechaDocumento.Enabled = false; - ImgCalendario.Visible = false; + // TxtFechaDocumento.Enabled = false; + // ImgCalendario.Visible = false; - } + //} } diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb index c4e0fa5cd..caed3305f 100644 --- a/Compras/Compras.aspx.vb +++ b/Compras/Compras.aspx.vb @@ -20229,6 +20229,8 @@ Partial Class Compras_Compras If FleteImportacionOpcion > 0 Then RblFleteImportacionOpcion.SelectedValue = FleteImportacionOpcion.ToString RegistraScript("$('#ModalFletesImportaciones').modal()") UpModalFletesImportaciones.Update() + + End Sub Protected Sub RblTipo_SelectedIndexChanged(sender As Object, e As EventArgs) CambiaTipo() diff --git a/Contabilidad/LibroDiario.aspx b/Contabilidad/LibroDiario.aspx index c1e178af6..1c7f57634 100644 --- a/Contabilidad/LibroDiario.aspx +++ b/Contabilidad/LibroDiario.aspx @@ -3,7 +3,7 @@ diff --git a/Contabilidad/LibroMayor.aspx.vb b/Contabilidad/LibroMayor.aspx.vb index d3df61d1e..d605ab9d5 100644 --- a/Contabilidad/LibroMayor.aspx.vb +++ b/Contabilidad/LibroMayor.aspx.vb @@ -44,9 +44,17 @@ Partial Class Contabilidad_LibroMayor If UsuarioActual.Empresa.UsaAC Then BtnConsultar.Enabled = True Else - Alert("La empresa no usa Armonización Contable", TipoMensaje.MsgError) + + If UsuarioActual.Empresa.TipoContabilidad = 1 Then + BtnConsultar.Enabled = True + Else + Alert("La empresa no usa Armonización Contable", TipoMensaje.MsgError) + End If + End If + + End If End Sub @@ -70,13 +78,32 @@ Partial Class Contabilidad_LibroMayor FechaInicio = If(IsDate(TxtFechaDel.Text), TxtFechaDel.Text.ToDate, MinFecha) FechaFin = If(IsDate(TxtFechaAl.Text), TxtFechaAl.Text.ToDate, MaxFecha) - Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa) - If ObjConta.GetLibroMayor(1, FechaInicio, FechaFin, 1) Then - DtDatos = ObjConta.DtResultados + '140 + Dim CvecuentaPadre As Integer = 57416 '140 + + If UsuarioActual.Empresa.TipoContabilidad = 1 Then + + + Dim ObjConta As New ClsContabilidad + If ObjConta.GetLibroMayorSIG(CvecuentaPadre, FechaInicio, FechaFin, 1, UsuarioActual.CveEmpresa) Then + DtDatos = ObjConta.DtResultados + Else + DtDatos = Nothing + End If + ObjConta.Dispose() + + Else - DtDatos = Nothing + Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa) + If ObjConta.GetLibroMayor(1, FechaInicio, FechaFin, 1) Then + DtDatos = ObjConta.DtResultados + Else + DtDatos = Nothing + End If + ObjConta.Dispose() End If - ObjConta.Dispose() + + If DtDatos IsNot Nothing Then ImgExcel.Visible = True @@ -159,6 +186,7 @@ Partial Class Contabilidad_LibroMayor #Region " IMPRIMIR " #End Region + Protected Sub Imprimir_click(sender As Object, e As EventArgs) Handles Imprimir.Click FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", Date.Now, TxtFechaDel.Text.ToDate) FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", Date.Now, TxtFechaAl.Text.ToDate) diff --git a/Contabilidad/RegPrePolizaS.aspx b/Contabilidad/RegPrePolizaS.aspx index 4a679b342..17a24c725 100644 --- a/Contabilidad/RegPrePolizaS.aspx +++ b/Contabilidad/RegPrePolizaS.aspx @@ -1,13 +1,9 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RegPrePolizaS.aspx.vb" Inherits="ContabilidadC_RegPrePolizaS" EnableEventValidation="false" %> +<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RegPrePolizaS.aspx.vb" Inherits="ContabilidadC_RegPrePolizaS" EnableEventValidation="false" %> @@ -951,7 +951,6 @@ 2pt - true @@ -1811,31 +1810,28 @@ Normal + + - - =Parameters!Fecha.Value - - - - true - true - - - - - VERSION 3.3 - - - - - - - Textbox5 - 2.32303cm - 17.39754cm - 0.6cm - 3.32021cm - 4 - - - 2pt - 2pt - 2pt - 2pt - - true 20.92547cm 0.13424cm - 2.97096cm + 2.25247cm 20.89818cm 42 @@ -3945,8 +3905,44 @@ + + true + true + + + + + VERSION 3.3 + + + + + + + Textbox5 + 23.28377cm + 17.70088cm + 0.6cm + 3.32021cm + 45 + + + 2pt + 2pt + 2pt + 2pt + + - 27.70336cm + 27.49699cm - Reparto de Utilidades + PTU @@ -88,11 +85,22 @@ + + + + + + + + + + + diff --git a/OC/OC.aspx b/OC/OC.aspx index 3f8652f2d..7bbbc6911 100644 --- a/OC/OC.aspx +++ b/OC/OC.aspx @@ -890,6 +890,8 @@ + + <%-- 0 --%> @@ -904,6 +906,7 @@ + <%-- 1 --%> @@ -924,6 +927,7 @@ + <%-- 2 --%> <%--DataTextField--%> @@ -935,6 +939,7 @@ + <%-- 3 --%> @@ -943,6 +948,7 @@ + <%-- 4 --%> @@ -972,28 +978,22 @@ + <%-- 5 --%> - - <%--Activo Fijo--%> + - - <%--Maquinaria--%> + - <%-- - - - - - --%> + <%-- 6 --%> @@ -1007,6 +1007,8 @@ + + <%-- 7 --%> @@ -1020,7 +1022,7 @@ - + <%-- 8 --%> @@ -1028,18 +1030,18 @@ - + <%-- 9 --%> + <%-- 10 --%> - - <%-- --%> +
@@ -1054,27 +1056,30 @@
- <%-- - --%> +
+ <%-- 11 --%> - - <%----%> + + <%-- 12 --%> Ver + <%-- 13 --%> + + <%-- 14 --%> @@ -1085,27 +1090,29 @@ + + <%-- 15 --%> + <%-- 16 --%> + <%-- 17 --%> - <%-- - --%> +
- <%-- - --%> +
diff --git a/OC/OC.aspx.vb b/OC/OC.aspx.vb index ed899c1ce..d9425c0b0 100644 --- a/OC/OC.aspx.vb +++ b/OC/OC.aspx.vb @@ -862,7 +862,7 @@ Partial Class OC If (UsuarioActual.TienePermisoProceso(203)) AndAlso Dr("TipoTermino").ToString.ToEntero = 3 AndAlso Dr("Tipo").ToString = "OC" Then CargaClasificaciones() If Not UsuarioActual.TienePermisoProceso(131) Then DesHabilitar() - GvD.Columns(9).Visible = True + GvD.Columns(10).Visible = True LbAgregar.Enabled = True txtPrecioUnitario.Enabled = True DdlProyecto.Enabled = True @@ -1599,7 +1599,7 @@ Partial Class OC SubProyectosNoAutorizados.Add(Row("SubProyecto").ToString) CboE.BackColor = Drawing.Color.Silver CboE.Enabled = False - GvD.Columns(9).Visible = False 'No permitir la edicion + GvD.Columns(10).Visible = False 'No permitir la edicion 'GvD.Columns(9).Visible = True ChkCotizacion.Enabled = False TxtDescrip.Enabled = False @@ -1635,7 +1635,7 @@ Partial Class OC 'EDICION 'CUANDO EL LA REGISRO Y TIENE ACCESO A ESE ESTATUS If objOC.CveUsuario = UsuarioActual.CveUsuario AndAlso (DtEstatusUsuarios.FiltraParametros(String.Format(" CveEstatus = {0}", CveEstatus)).Rows.Count >= 1 Or CveEstatus = 0) Then - GvD.Columns(9).Visible = True 'No permitir la edicion + GvD.Columns(10).Visible = True 'No permitir la edicion If ChkCotizacion.Checked AndAlso UsuarioActual.Empresa.Funcionalidad(565) = "1" Then ChkCotizacion.Enabled = False Else @@ -1720,7 +1720,7 @@ Partial Class OC If EditarOC Then CboE.Enabled = True - GvD.Columns(9).Visible = True 'Permitir la edicion + GvD.Columns(10).Visible = True 'Permitir la edicion ChkCotizacion.Enabled = True TxtDescrip.Enabled = True TxtJustificacion.Enabled = True @@ -3684,11 +3684,11 @@ Partial Class OC 'If DtEstatusUsuarios.FiltraParametros(String.Format("CveSubProyecto = {0}", e.Row.DBCampo("CveSubProyecto"))).Rows.Count = 0 Then e.Row.FCImageButton("ImgEdit").Visible = False : e.Row.FCImageButton("ImgDelete").Visible = False If TipoOC = "OC" AndAlso Not IsDBNull(e.Row.DBCampo("CveOrdenCompraPadre")) AndAlso IsNumeric(e.Row.DBCampo("CveOrdenCompraPadre")) Then - GvD.Columns(10).Visible = True + GvD.Columns(11).Visible = True lblTipoPadreHijo.Visible = True e.Row.FCLiteral("LtlLiga").Text = String.Format("{1}", e.Row.DBCampo("CveOrdenCompraPadre"), e.Row.DBCampo("FolioOrdenCompraPadre")) ElseIf TipoOC = "REQ" AndAlso Not IsDBNull(e.Row.DBCampo("CveOrdenCompraHija")) AndAlso IsNumeric(e.Row.DBCampo("CveOrdenCompraHija")) Then - GvD.Columns(10).Visible = True + GvD.Columns(11).Visible = True lblTipoPadreHijo.Visible = True e.Row.FCLiteral("LtlLiga").Text = String.Format("{1}", e.Row.DBCampo("CveOrdenCompraHija"), e.Row.DBCampo("FolioOrdenCompraHija")) End If @@ -3702,7 +3702,7 @@ Partial Class OC If ObjOC.DtResultados.Rows.Count = 1 Then e.Row.FCLiteral("LtlCompra").Text = String.Format("{1}", ObjOC.DtResultados.FiltroPrimeroValor("CveCompra"), e.Row.DBCampo("FolioCompra")) LblCompra.Visible = True - GvD.Columns(11).Visible = True + GvD.Columns(12).Visible = True ElseIf ObjOC.DtResultados.Rows.Count > 1 Then LblCompra.Visible = True e.Row.FCLiteral("LtlCompra").Visible = False @@ -3711,7 +3711,7 @@ Partial Class OC 'e.Row.FCLinkButton("LnkCompra").CausesValidation = False 'e.Row.FCLinkButton("LnkCompra").OnClientClick = "return true;" 'return true; e.Row.FCLinkButton("LnkCompra").CommandArgument = e.Row.DBCampo("CveOrdenCompraDetalle") - GvD.Columns(11).Visible = True + GvD.Columns(12).Visible = True Else e.Row.FCLiteral("LtlCompra").Text = "" LblCompra.Visible = True @@ -4134,8 +4134,8 @@ Partial Class OC DdlProveedorSucursal.Enabled = False DdlProveedorContacto.Enabled = False - GvD.Columns(9).Visible = False - GvD.Columns(10).Visible = True + GvD.Columns(10).Visible = False + GvD.Columns(11).Visible = True If Not (BtnCancelarPrevio.Enabled And (CveEstatus <> CveEstatusFinalError OrElse CveEstatus <> CveEstatusFinalOK OrElse UsuarioActual.TienePermisoProceso(148).ToEntero > 0)) Then BtnCancelarPrevio.Enabled = False @@ -4299,11 +4299,11 @@ Partial Class OC 'Seccion Grid If VerificaPresupuesto Then GvD.Width = 1750 - GvD.Columns(12).Visible = True GvD.Columns(13).Visible = True GvD.Columns(14).Visible = True GvD.Columns(15).Visible = True GvD.Columns(16).Visible = True + GvD.Columns(17).Visible = True 'Panel General UpPresupuestosAC.Visible = True @@ -4330,11 +4330,11 @@ Partial Class OC Else 'GvD.Width = Width.ToEntero - GvD.Columns(12).Visible = False GvD.Columns(13).Visible = False GvD.Columns(14).Visible = False GvD.Columns(15).Visible = False GvD.Columns(16).Visible = False + GvD.Columns(17).Visible = False UpPresupuestosAC.Visible = False End If @@ -6685,11 +6685,11 @@ Partial Class OC CboE_SelectedIndexChanged(CboE, EventArgs.Empty) - GvD.Columns(9).Visible = True 'Permitir la edicion + GvD.Columns(10).Visible = True 'Permitir la edicion lblTipoPadreHijo.Visible = False - GvD.Columns(10).Visible = False - LblCompra.Visible = False GvD.Columns(11).Visible = False + LblCompra.Visible = False + GvD.Columns(12).Visible = False ChkCotizacion.Visible = True ChkCotizacion.Enabled = True @@ -6818,7 +6818,7 @@ Partial Class OC ScriptManager.RegisterStartupScript(Me, GetType(Page), "anioactual", script, True) VerificaPresupuesto = False RVSubProyecto.Enabled = If(RequiereSubProyecto = True, True, False) - GvD.Columns(10).Visible = False + GvD.Columns(11).Visible = False CargaComboCFDI() CargaMonedas() 'CargaClasificaciones() diff --git a/PV/PVRepCompras.aspx b/PV/PVRepCompras.aspx deleted file mode 100644 index 74c5ff043..000000000 --- a/PV/PVRepCompras.aspx +++ /dev/null @@ -1,180 +0,0 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PVRepCompras.aspx.vb" Inherits="PV_PVRepCompras" %> - - - - - - - - -
  • - Imprimir - <%----%> -
  • -
  • - Generar - <%----%> -
  • -
  • - Personalizar - <%----%> -
  • -
    -
    - <%-- - - --%> -
    - - Reporte de Compras - - - - - - -
    -
    -
    -
      -
    • Proveedor: - - - -
    • -
    • Responsable: - - - -
    • -
    • Moneda: - - - -
    • -
    -
    -
    - - - -
    -
    - -
    -
    -
    -
    - - - - - - -
     
    - - - - - Grupo - - - - - - - - - -
    -
    - - - - - -
    - - diff --git a/PV/PVRepCompras.aspx.vb b/PV/PVRepCompras.aspx.vb deleted file mode 100644 index 667d6845b..000000000 --- a/PV/PVRepCompras.aspx.vb +++ /dev/null @@ -1,307 +0,0 @@ -Option Explicit On -Option Strict On - -Imports Extensiones -Imports System.Data - -Partial Class PV_PVRepCompras - Inherits ClsPaginas - -#Region "Propiedades" - 'Local - Private Property TmpDT As DataTable - Get - Return CType(ViewState("TmpDT"), DataTable) - End Get - Set(value As DataTable) - ViewState("TmpDT") = value - End Set - End Property -#End Region - - Protected Sub Page_Init(sender As Object, e As EventArgs) Handles Me.Init - CreaGrid() - End Sub - - Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load - If Not IsPostBack Then - CargaCombos() - 'ImgPersonalizar.Attributes.Add("onclick", "javascript:$('#DivPersonalizar').show(1000); PosicionaObjeto(this.id,'DivPersonalizar');") - End If - End Sub - - Private Sub CargaCombos() - 'CargaProveedores - 'Dim ObjProveedores As New ClsCompProveedores - 'If ObjProveedores.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, -1, "-1", "-1", "-1", "-1", "-1", "-1", "-1", UsuarioActual.CveEmpresa) Then - ' DdlProveedores.DataSource = ObjProveedores.DtResultados - 'Else - ' DdlProveedores.DataSource = Nothing - 'End If - 'ObjProveedores.Dispose() - DdlProveedores.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa) - DdlProveedores.DataBind() - - 'CargaUsuarios - DdlUsuario.DataSource = GlobalDTUsuarioResponsable.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa) - DdlUsuario.DataBind() - - DdlMonedas.DataSource = GlobalDTMonedas() - DdlMonedas.DataBind() - - End Sub - - Protected Sub BtnConsultar_Click(sender As Object, e As System.EventArgs) Handles BtnConsultar.Click - CargaDatos() - UPDatos.Update() - End Sub - - Private Sub CreaGrid() - Dim TotalAncho As Integer = 150 - Dim TotalAnchoSucursal As Integer = 0 - Dim SucursalTitulo As String = "" - - TmpDT = New DataTable - TmpDT.Columns.Add("GPO", GetType(String)) - - Dim ObjCompras As New ClsPV() - - Dim FechaI, FechaF As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - If ObjCompras.GetRepPVCompras(FechaI, FechaF, DdlProveedores.SelectedValue.ToEntero, DdlUsuario.SelectedValue.ToEntero, DdlMonedas.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero) Then - Dim gv As New GridView - - For Each Col As DataColumn In ObjCompras.DtResultados.Columns - If Col.ColumnName.Split(CChar("_")).Length = 3 AndAlso Col.ColumnName.Substring(0, 2).ToUpper = "T_" Then - Dim Sucursal As String = Col.ColumnName.Split(CChar("_"))(1).ToUpper() - Dim Categoria As String = Col.ColumnName.Split(CChar("_"))(2).ToUpper() - - - Dim bfield As New TemplateField - ' Dim iTemplate As System.Web.UI.ITemplate - bfield.HeaderText = Categoria - 'bfield.FooterText = Row("CveEstatus").ToString - bfield.ItemStyle.HorizontalAlign = HorizontalAlign.Right - - If Sucursal = "TOTAL" Or Categoria = "TOTAL" Then - bfield.ItemStyle.Width = 97 - TotalAnchoSucursal = TotalAnchoSucursal + 100 - TotalAncho = TotalAncho + 100 - Else - bfield.ItemStyle.Width = 87 - TotalAnchoSucursal = TotalAnchoSucursal + 90 - TotalAncho = TotalAncho + 90 - End If - - bfield.ItemTemplate = New GridViewTemplate(ListItemType.Item, Col.ColumnName) - gv.Columns.Add(bfield) - - TmpDT.Columns.Add(Col.ColumnName, GetType(Integer)) - - If SucursalTitulo <> Sucursal And Categoria.ToUpper = "TOTAL" Then - SucursalTitulo = Sucursal - Dim Celda As New HtmlTableCell() - Celda.InnerText = SucursalTitulo - Celda.Attributes.Add("class", "Titulos") - Celda.Attributes.Add("style", "border-width: 1px;border-right-style: solid;") - Celda.Width = TotalAnchoSucursal.ToString - tblSucursales.Rows(0).Cells.Add(Celda) - TotalAnchoSucursal = 0 - End If - End If - Next - - For Each Columna In gv.Columns - GvDatos.Columns.Add(CType(Columna, DataControlField)) - Next - GvDatos.Width = TotalAncho - Else - GvDatos.DataSource = Nothing - End If - ObjCompras.Dispose() - UPDatos.Update() - End Sub - - Private Sub CargaDatos() - Dim ObjCompras As New ClsPV() - - Dim FechaI, FechaF As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - 'FechaI, FechaF, -1, UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero - If ObjCompras.GetRepPVCompras(FechaI, FechaF, DdlProveedores.SelectedValue.ToEntero, DdlUsuario.SelectedValue.ToEntero, DdlMonedas.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero) Then - GvDatos.DataSource = ObjCompras.DtResultados - tblSucursales.Visible = True - Else - GvDatos.DataSource = Nothing - End If - ObjCompras.Dispose() - GvDatos.DataBind() - - End Sub - - Public Class GridViewTemplate - Implements ITemplate - 'A variable to hold the type of ListItemType. - Private _templateType As ListItemType - - 'A variable to hold the column name. - Private _columnName As String - - 'Constructor where we define the template type and column name. - Public Sub New(type As ListItemType, colname As String) - 'Stores the template type. - _templateType = type - - 'Stores the column name. - _columnName = colname - End Sub - - Private Sub ITemplate_InstantiateIn(container As System.Web.UI.Control) Implements ITemplate.InstantiateIn - Select Case _templateType - Case ListItemType.Header - 'Creates a new label control and add it to the container. - Dim lbl As New Label() - 'Allocates the new label object. - lbl.Text = _columnName - 'Assigns the name of the column in the lable. - container.Controls.Add(lbl) - 'Adds the newly created label control to the container. - Exit Select - - Case ListItemType.Item - 'Creates a new text box control and add it to the container. - Dim ltl1 As New Literal - - ltl1.ID = String.Format("ltl{0}", _columnName) - AddHandler ltl1.DataBinding, AddressOf ltl_DataBinding - - 'Creates a column with size 4. - container.Controls.Add(ltl1) - 'Adds the newly created textbox to the container. - Exit Select - - Case ListItemType.EditItem - 'As, I am not using any EditItem, I didnot added any code here. - Exit Select - - Case ListItemType.Footer - Dim chkColumn As New CheckBox() - chkColumn.ID = Convert.ToString("Chk") & _columnName - container.Controls.Add(chkColumn) - Exit Select - End Select - End Sub - - Private Sub hdn_DataBinding(sender As Object, e As EventArgs) - Dim hidden As HiddenField = DirectCast(sender, HiddenField) - Dim row As GridViewRow = DirectCast(hidden.NamingContainer, GridViewRow) - Dim value As String = DataBinder.Eval(row.DataItem, _columnName).ToString() - hidden.Value = If(value Is Nothing OrElse value = String.Empty, "-1", value) - End Sub - - Private Sub ltl_DataBinding(sender As Object, e As EventArgs) - Dim ltl As Literal = DirectCast(sender, Literal) - Dim row As GridViewRow = DirectCast(ltl.NamingContainer, GridViewRow) - Dim celda As DataControlFieldCell = DirectCast(ltl.Parent, DataControlFieldCell) - Dim value As String = DataBinder.Eval(row.DataItem, _columnName).ToString() - ltl.Text = value.FormatoNumero - End Sub - - ''' - ''' This is the event, which will be raised when the binding happens. - ''' - ''' - ''' - Private Sub tb1_DataBinding(sender As Object, e As EventArgs) - Dim txtdata As TextBox = DirectCast(sender, TextBox) - Dim container As GridViewRow = DirectCast(txtdata.NamingContainer, GridViewRow) - Dim dataValue As Object = DataBinder.Eval(container.DataItem, _columnName) - If dataValue Is DBNull.Value Then - txtdata.Text = dataValue.ToString() - End If - End Sub - End Class - - Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound - If e.Row.RowType = DataControlRowType.DataRow Then - Dim Css As String = "Texto" - If e.Row.RowIndex = 0 Then - e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Center - e.Row.CssClass = "Totales" - Css = "Totales" - End If - - 'If e.Row.DBCampo("Orden") = "" Then - ' e.Row.BackColor = Drawing.Color.LightGray - 'End If - - Dim FechaI, FechaF As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - - Dim Liga As String = String.Format("/Compras/RepComprasDetalle.aspx?GPO={0}&Anio={1}&Mes={2}&AnioMes={3}&Fecha={4}&CveProveedor={5}&CveUsuario={6}&FechaI={7}&FechaF={8}&CveMoneda={9}", - DdlGrupo.SelectedValue, e.Row.DBCampo("Anio"), e.Row.DBCampo("Mes"), e.Row.DBCampo("AnioMes"), e.Row.DBCampo("Fecha"), e.Row.DBCampo("CveProveedor"), e.Row.DBCampo("CveUsuario"), FechaI, FechaF, e.Row.DBCampo("CveMoneda")) - - e.Row.FCLiteral("LtlGrupo").Text = String.Format("{2}", Css, Liga, e.Row.FCLiteral("LtlGrupo").Text) - End If - End Sub - - Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click - If ChkRetIVA.Checked Then - GvDatos.Columns(6).Visible = True - Else - GvDatos.Columns(6).Visible = False - End If - - If ChkRetISR.Checked Then - GvDatos.Columns(7).Visible = True - Else - GvDatos.Columns(7).Visible = False - End If - - If ChkMinSub.Checked Then - GvDatos.Columns(9).Visible = True - Else - GvDatos.Columns(9).Visible = False - End If - - If ChkAVGSub.Checked Then - GvDatos.Columns(10).Visible = True - Else - GvDatos.Columns(10).Visible = False - End If - - If ChkMaxSub.Checked Then - GvDatos.Columns(11).Visible = True - Else - GvDatos.Columns(11).Visible = False - End If - - If ChkMinTot.Checked Then - GvDatos.Columns(12).Visible = True - Else - GvDatos.Columns(12).Visible = False - End If - - If ChkAvgTot.Checked Then - GvDatos.Columns(13).Visible = True - Else - GvDatos.Columns(13).Visible = False - End If - - If ChkMaxTot.Checked Then - GvDatos.Columns(14).Visible = True - Else - GvDatos.Columns(14).Visible = False - End If - - UPDatos.Update() - End Sub - - Protected Sub ImgExcel_Click(sender As Object, e As System.EventArgs) Handles ImgExcel.Click - GvDatos.ExportToExcel("ReporteCompras" & Now.ToShortDateString) - End Sub - -End Class diff --git a/PV/PVRepVentas.aspx b/PV/PVRepVentas.aspx deleted file mode 100644 index b443b2a01..000000000 --- a/PV/PVRepVentas.aspx +++ /dev/null @@ -1,229 +0,0 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PVRepVentas.aspx.vb" Inherits="PV_PVRepVentas" %> - - - - - - - - -
  • - Imprimir - <%----%> -
  • -
  • - Generar - <%----%> -
  • -
  • - Personalizar - <%----%> -
  • -
    -
    - <%-- - - --%> -
    - - Reporte de Ventas - - - - - - -
    -
    -
    -
      -
    • Cliente: - - - -
    • -
    • Sucursal: - - - -
    • -
    • Vendedor: - - - -
    • -
    • Usuario: - - - -
    • -
    -
    -
    - - - -
    -
    - -
    -
    -
    -
    -
    -
    - - - - - - -
     
    - - - - - Grupo - - - - - - - - - -
    -
    - - - - - -
    -
    -
    - - diff --git a/PV/PVRepVentas.aspx.vb b/PV/PVRepVentas.aspx.vb deleted file mode 100644 index cc0205015..000000000 --- a/PV/PVRepVentas.aspx.vb +++ /dev/null @@ -1,365 +0,0 @@ -Option Explicit On -Option Strict On - -Imports System.Data -Imports Extensiones - -Partial Class PV_PVRepVentas - Inherits ClsPaginas - -#Region "Propiedades" - 'Local - Private Property TmpDT As DataTable - Get - Return CType(ViewState("TmpDT"), DataTable) - End Get - Set(value As DataTable) - ViewState("TmpDT") = value - End Set - End Property -#End Region - - Protected Sub Page_Init(sender As Object, e As EventArgs) Handles Me.Init - CreaGrid() - End Sub - - Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load - If Not IsPostBack Then - ' If UsuarioActual.CveEmpresa = 2 AndAlso UsuarioActual.CveUsuario.Contiene(77, 21) Then Response.Redirect("/Inicio.aspx") - CargaCombos() - 'ImgPersonalizar.Attributes.Add("onclick", "javascript:$('#DivPersonalizar').show(1000); PosicionaObjeto(this.id,'DivPersonalizar');") - End If - End Sub - - Private Sub CargaCombos() - 'CargaClientes - Dim ObjClientes As New ClsClientes - If ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa) Then - DdlClientes.DataSource = ObjClientes.DtResultados - Else - DdlClientes.DataSource = Nothing - End If - ObjClientes.Dispose() - DdlClientes.DataBind() - - 'CargaSucursales - DdlSubProyecto.DataSource = GlobalDTSubProyectos(-1).FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa) - DdlSubProyecto.DataBind() - DdlSubProyectoEjecucion.DataSource = GlobalDTSubProyectos(-1).FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa) - DdlSubProyectoEjecucion.DataBind() - - 'Vendedor - - 'CargaUsuarios - DdlUsuario.DataSource = GlobalDTUsuarios.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa) - DdlUsuario.DataBind() - - 'CargaEstatus - DdlEstatus.DataSource = GlobalDTEstatusFactura.FiltraParametros(" CveEstatusFactura NOT IN (1, 4, 5) ") - DdlEstatus.DataBind() - DdlEstatus.Items.Add(New ListItem("Canceladas", "4")) - 'If UsuarioActual.Empresa.TipoFacturacion = "CFDi" Then - ' DdlEstatus.SelectedIndex = 2 - 'Else - DdlEstatus.SelectedIndex = 1 - 'End If - End Sub - - Protected Sub BtnConsultar_Click(sender As Object, e As System.EventArgs) Handles BtnConsultar.Click - CargaDatos() - ConfiguraEmpresa() - UPDatos.Update() - End Sub - - Private Sub CreaGrid() - Dim TotalAncho As Integer = 150 - Dim TotalAnchoSucursal As Integer = 0 - Dim SucursalTitulo As String = "" - - TmpDT = New DataTable - TmpDT.Columns.Add("GPO", GetType(String)) - - Dim ObjVentas As New ClsPV() - - Dim FechaI, FechaF, FechaIEjec, FechaFEjec As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - FechaIEjec = If(IsDate(TxtFechaIEjec.Text.Trim()), TxtFechaIEjec.Text.Trim(), "-1") - FechaFEjec = If(IsDate(TxtFechaFEjec.Text.Trim()), TxtFechaFEjec.Text.Trim(), "-1") - If ObjVentas.GetRepPVVentas(FechaI, FechaF, FechaIEjec, FechaFEjec, DdlClientes.SelectedValue.ToEntero, DdlSubProyecto.SelectedValue.ToEntero, DdlSubProyectoEjecucion.SelectedValue.ToEntero, DdlVendedor.SelectedValue, - DdlUsuario.SelectedValue.ToEntero, DdlEstatus.SelectedValue.ToEntero, "-1", UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero) Then - Dim gv As New GridView - - For Each Col As DataColumn In ObjVentas.DtResultados.Columns - If Col.ColumnName.Split(CChar("_")).Length >= 3 AndAlso Col.ColumnName.Substring(0, 2).ToUpper = "T_" Then - Dim Sucursal As String = Col.ColumnName.Split(CChar("_"))(1).ToUpper() - Dim Categoria As String = Col.ColumnName.Split(CChar("_"))(2).ToUpper() - ' Dim CveSucursal As Integer = Col.ColumnName.Split(CChar("_"))(3).ToEntero - - - Dim bfield As New TemplateField - ' Dim iTemplate As System.Web.UI.ITemplate - bfield.HeaderText = Categoria - 'bfield.FooterText = Row("CveEstatus").ToString - bfield.ItemStyle.HorizontalAlign = HorizontalAlign.Right - - If Sucursal = "TOTAL" Or Categoria = "TOTAL" Then - bfield.ItemStyle.Width = 97 - TotalAnchoSucursal = TotalAnchoSucursal + 100 - TotalAncho = TotalAncho + 100 - Else - bfield.ItemStyle.Width = 87 - TotalAnchoSucursal = TotalAnchoSucursal + 90 - TotalAncho = TotalAncho + 90 - End If - - bfield.ItemTemplate = New GridViewTemplate(ListItemType.Item, Col.ColumnName) - ' bfield.ItemTemplate - gv.Columns.Add(bfield) - - TmpDT.Columns.Add(Col.ColumnName, GetType(Integer)) - - If SucursalTitulo <> Sucursal And Categoria.ToUpper = "TOTAL" Then - SucursalTitulo = Sucursal - Dim Celda As New HtmlTableCell() - 'Celda.InnerHtml = String.Format("{0}", SucursalTitulo) - Celda.InnerText = SucursalTitulo - 'Celda.BorderColor = "White" - 'Celda.BgColor = "Gray" - Celda.Attributes.Add("class", "Titulos") - Celda.Attributes.Add("style", "border-width: 1px;border-right-style: solid;") - Celda.Width = TotalAnchoSucursal.ToString - tblSucursales.Rows(0).Cells.Add(Celda) - TotalAnchoSucursal = 0 - End If - End If - Next - - For Each Columna In gv.Columns - GvDatos.Columns.Add(CType(Columna, DataControlField)) - Next - GvDatos.Width = TotalAncho - Else - GvDatos.DataSource = Nothing - End If - ObjVentas.Dispose() - UPDatos.Update() - End Sub - - Private Sub CargaDatos() - Dim ObjVentas As New ClsPV() - - Dim FechaI, FechaF, FechaIEjec, FechaFEjec As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - FechaIEjec = If(IsDate(TxtFechaIEjec.Text.Trim()), TxtFechaIEjec.Text.Trim(), "-1") - FechaFEjec = If(IsDate(TxtFechaFEjec.Text.Trim()), TxtFechaFEjec.Text.Trim(), "-1") - If ObjVentas.GetRepPVVentas(FechaI, FechaF, FechaIEjec, FechaFEjec, DdlClientes.SelectedValue.ToEntero, DdlSubProyecto.SelectedValue.ToEntero, DdlSubProyectoEjecucion.SelectedValue.ToEntero, DdlVendedor.SelectedValue, - DdlUsuario.SelectedValue.ToEntero, DdlEstatus.SelectedValue.ToEntero, "-1", UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero) Then - GvDatos.DataSource = ObjVentas.DtResultados - tblSucursales.Visible = True - Else - GvDatos.DataSource = Nothing - End If - ObjVentas.Dispose() - GvDatos.DataBind() - - End Sub - - Private Sub ConfiguraEmpresa() - 'If Not UsuarioActual.Empresa.MostrarRetIVA Then GvDatos.Columns(6).Visible = False - 'If Not UsuarioActual.Empresa.MostrarRetISR Then GvDatos.Columns(7).Visible = False - End Sub - - Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click - If ChkRetIVA.Checked Then - GvDatos.Columns(6).Visible = True - Else - GvDatos.Columns(6).Visible = False - End If - - If ChkRetISR.Checked Then - GvDatos.Columns(7).Visible = True - Else - GvDatos.Columns(7).Visible = False - End If - - If ChkMinSub.Checked Then - GvDatos.Columns(9).Visible = True - Else - GvDatos.Columns(9).Visible = False - End If - - If ChkAVGSub.Checked Then - GvDatos.Columns(10).Visible = True - Else - GvDatos.Columns(10).Visible = False - End If - - If ChkMaxSub.Checked Then - GvDatos.Columns(11).Visible = True - Else - GvDatos.Columns(11).Visible = False - End If - - If ChkMinTot.Checked Then - GvDatos.Columns(12).Visible = True - Else - GvDatos.Columns(12).Visible = False - End If - - If ChkAvgTot.Checked Then - GvDatos.Columns(13).Visible = True - Else - GvDatos.Columns(13).Visible = False - End If - - If ChkMaxTot.Checked Then - GvDatos.Columns(14).Visible = True - Else - GvDatos.Columns(14).Visible = False - End If - - UPDatos.Update() - End Sub - - Protected Sub ImgExcel_Click(sender As Object, e As System.EventArgs) Handles ImgExcel.Click - GvDatos.ExportToExcel("ReporteVentas" & Now.ToShortDateString) - End Sub - - - 'Region "TEMPLATE" - Public Class GridViewTemplate - Implements ITemplate - 'A variable to hold the type of ListItemType. - Private _templateType As ListItemType - - 'A variable to hold the column name. - Private _columnName As String - - - 'Constructor where we define the template type and column name. - Public Sub New(type As ListItemType, colname As String) - 'Stores the template type. - _templateType = type - - 'Stores the column name. - _columnName = colname - - End Sub - - Private Sub ITemplate_InstantiateIn(container As System.Web.UI.Control) Implements ITemplate.InstantiateIn - Select Case _templateType - Case ListItemType.Header - 'Creates a new label control and add it to the container. - Dim lbl As New Label() - 'Allocates the new label object. - lbl.Text = _columnName - 'Assigns the name of the column in the lable. - container.Controls.Add(lbl) - 'Adds the newly created label control to the container. - Exit Select - - Case ListItemType.Item - 'Creates a new text box control and add it to the container. - Dim ltl1 As New Literal - ltl1.ID = String.Format("ltl{0}", _columnName) - AddHandler ltl1.DataBinding, AddressOf ltl_DataBinding - - 'AddHandler hdn1.DataBinding, AddressOf hdn_DataBinding - - 'Creates a column with size 4. - container.Controls.Add(ltl1) - 'Adds the newly created textbox to the container. - Exit Select - - Case ListItemType.EditItem - 'As, I am not using any EditItem, I didnot added any code here. - Exit Select - - Case ListItemType.Footer - Dim chkColumn As New CheckBox() - chkColumn.ID = Convert.ToString("Chk") & _columnName - container.Controls.Add(chkColumn) - Exit Select - End Select - End Sub - - Private Sub hdn_DataBinding(sender As Object, e As EventArgs) - Dim hidden As HiddenField = DirectCast(sender, HiddenField) - Dim row As GridViewRow = DirectCast(hidden.NamingContainer, GridViewRow) - Dim value As String = DataBinder.Eval(row.DataItem, _columnName).ToString() - hidden.Value = If(value Is Nothing OrElse value = String.Empty, "-1", value) - End Sub - - Private Sub ltl_DataBinding(sender As Object, e As EventArgs) - Dim ltl As Literal = DirectCast(sender, Literal) - Dim row As GridViewRow = DirectCast(ltl.NamingContainer, GridViewRow) - Dim celda As DataControlFieldCell = DirectCast(ltl.Parent, DataControlFieldCell) - Dim value As String = DataBinder.Eval(row.DataItem, _columnName).ToString() - ltl.Text = value.FormatoNumero - End Sub - - ''' - ''' This is the event, which will be raised when the binding happens. - ''' - ''' - ''' - Private Sub tb1_DataBinding(sender As Object, e As EventArgs) - Dim txtdata As TextBox = DirectCast(sender, TextBox) - Dim container As GridViewRow = DirectCast(txtdata.NamingContainer, GridViewRow) - Dim dataValue As Object = DataBinder.Eval(container.DataItem, _columnName) - If dataValue Is DBNull.Value Then - txtdata.Text = dataValue.ToString() - End If - End Sub - End Class - - Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound - If e.Row.RowType = DataControlRowType.DataRow Then - Dim Css As String = "Texto" - If e.Row.RowIndex = 0 Then - e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Center - ' e.Row.Cells(0).Width = Unit.Pixel(150) - e.Row.CssClass = "Totales" - Css = "Totales" - End If - - Dim FechaI, FechaF As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - - Dim Liga As String = String.Format("/Ventas/RepVentaDetalle.aspx?GPO={0}&Anio={1}&Mes={2}&AnioMes={3}&Fecha={4}&CveCliente={5}&CveSucursal={6}&Vendedor={7}&CveUsuario={8}&CveEstatusFactura={9}&FechaI={10}&FechaF={11}&IVA={12}&CveCorte={13}", - DdlGrupo.SelectedValue, e.Row.DBCampo("Anio"), e.Row.DBCampo("Mes"), e.Row.DBCampo("AnioMes"), e.Row.DBCampo("Fecha"), e.Row.DBCampo("CveCliente"), e.Row.DBCampo("CveSubProyecto"), - e.Row.DBCampo("Vendedor"), e.Row.DBCampo("CveUsuario"), e.Row.DBCampo("CveEstatusFactura"), FechaI, FechaF, e.Row.DBCampo("GPO_IVA"), e.Row.DBCampo("CveCorte")) - - e.Row.FCLiteral("LtlGrupo").Text = "" & e.Row.FCLiteral("LtlGrupo").Text & "" - 'e.Row.FCLiteral("LtlCantidad").Text = "" & e.Row.FCLiteral("LtlCantidad").Text & "" - - For Each Col As DataColumn In DirectCast(e.Row.DataItem, System.Data.DataRowView).Row.Table.Columns - If Col.ColumnName.Split(CChar("_")).Count = 4 Then - Dim CveSubProyecto As Integer = Col.ColumnName.Split(CChar("_"))(3).ToEntero - Liga = String.Format("/Ventas/RepVentaDetalle.aspx?GPO={0}&Anio={1}&Mes={2}&AnioMes={3}&Fecha={4}&CveCliente={5}&CveSucursal={6}&Vendedor={7}&CveUsuario={8}&CveEstatusFactura={9}&FechaI={10}&FechaF={11}&IVA={12}&CveCorte={13}", - DdlGrupo.SelectedValue, e.Row.DBCampo("Anio"), e.Row.DBCampo("Mes"), e.Row.DBCampo("AnioMes"), e.Row.DBCampo("Fecha"), e.Row.DBCampo("CveCliente"), CveSubProyecto, - e.Row.DBCampo("Vendedor"), e.Row.DBCampo("CveUsuario"), e.Row.DBCampo("CveEstatusFactura"), FechaI, FechaF, e.Row.DBCampo("GPO_IVA"), e.Row.DBCampo("CveCorte")) - - e.Row.FCLiteral(String.Format("ltl{0}", Col.ColumnName)).Text = "" & e.Row.FCLiteral(String.Format("ltl{0}", Col.ColumnName)).Text & "" - End If - Next - - 'If e.Row.DBCampo("SubTotal").ToDouble = 0 Then e.Row.FCLiteral("LtlSubTotal").Text = "" - 'If e.Row.DBCampo("Descuento").ToDouble = 0 Then e.Row.FCLiteral("LtlDescuento").Text = "" - 'If e.Row.DBCampo("Amortizacion").ToDouble = 0 Then e.Row.FCLiteral("LtlAmortizacion").Text = "" - 'If e.Row.DBCampo("IVA").ToDouble = 0 Then e.Row.FCLiteral("LtlIVA").Text = "" - 'If e.Row.DBCampo("RetIVA").ToDouble = 0 Then e.Row.FCLiteral("LtlRetIVA").Text = "" - 'If e.Row.DBCampo("RetISR").ToDouble = 0 Then e.Row.FCLiteral("LtlRetISR").Text = "" - 'If e.Row.DBCampo("Total").ToDouble = 0 Then e.Row.FCLiteral("LtlTotal").Text = "" - 'If e.Row.DBCampo("MAX_SubTotal").ToDouble = 0 Then e.Row.FCLiteral("LtlMaxSubTotal").Text = "" - 'If e.Row.DBCampo("AVG_SubTotal").ToDouble = 0 Then e.Row.FCLiteral("LtlAVGSubTotal").Text = "" - 'If e.Row.DBCampo("MIN_SubTotal").ToDouble = 0 Then e.Row.FCLiteral("LtlMinSubTotal").Text = "" - 'If e.Row.DBCampo("MAX_Total").ToDouble = 0 Then e.Row.FCLiteral("LtlMaxTotal").Text = "" - 'If e.Row.DBCampo("AVG_Total").ToDouble = 0 Then e.Row.FCLiteral("LtlAVGTotal").Text = "" - 'If e.Row.DBCampo("MIN_Total").ToDouble = 0 Then e.Row.FCLiteral("LtlMinTotal").Text = "" - End If - End Sub -End Class diff --git a/PV/PVRepVentasCompras.aspx b/PV/PVRepVentasCompras.aspx deleted file mode 100644 index 22e249b8d..000000000 --- a/PV/PVRepVentasCompras.aspx +++ /dev/null @@ -1,164 +0,0 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PVRepVentasCompras.aspx.vb" Inherits="PV_PVRepVentasCompras" %> - - - - - - - - - - - - Reporte de Ventas y Compras - - - - - - -
    -
    -
    -
      -
    • Sucursal - - - -
    • -
    • Fecha Inicial: - -   - - - - - - -
    • -
    • Fecha Final: - -   - - - - - - -
    • -
    • Grupo: - - - - - - - - -
    • -
    -
    -
    - -
    -
    -
    -
    -
    -
    - - - - - - -
     
    - - - - - Grupo - - - - - - - - Ventas - - - - - - - - - Compras - - - - - - - - - - -
    -
    - - - - - -
    - - diff --git a/PV/PVRepVentasCompras.aspx.vb b/PV/PVRepVentasCompras.aspx.vb deleted file mode 100644 index c26b12cc3..000000000 --- a/PV/PVRepVentasCompras.aspx.vb +++ /dev/null @@ -1,238 +0,0 @@ -Option Explicit On -Option Strict On - -Imports System.Data -Imports Extensiones - -Partial Class PV_PVRepVentasCompras - Inherits ClsPaginas - -#Region "Propiedades" - 'Local - Private Property TmpDT As DataTable - Get - Return CType(ViewState("TmpDT"), DataTable) - End Get - Set(value As DataTable) - ViewState("TmpDT") = 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 - ' If UsuarioActual.CveEmpresa = 2 AndAlso UsuarioActual.CveUsuario.Contiene(77, 21) Then Response.Redirect("/Inicio.aspx") - CargaCombos() - ImgPersonalizar.Attributes.Add("onclick", "javascript:$('#DivPersonalizar').show(1000); PosicionaObjeto(this.id,'DivPersonalizar');") - End If - End Sub - - Private Sub CargaCombos() - 'CargaSucursales - DdlSubProyecto.DataSource = GlobalDTSubProyectos(-1).FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa) - DdlSubProyecto.DataBind() - End Sub - - Protected Sub BtnConsultar_Click(sender As Object, e As System.EventArgs) Handles BtnConsultar.Click - CargaDatos() - ConfiguraEmpresa() - UPDatos.Update() - End Sub - - Private Sub CargaDatos() - Dim ObjVentas As New ClsPV() - - Dim FechaI, FechaF As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - - If ObjVentas.GetRepPVVentasCompras(FechaI, FechaF, DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero) Then - GvDatos.DataSource = ObjVentas.DtResultados - tblSucursales.Visible = True - Else - GvDatos.DataSource = Nothing - End If - ObjVentas.Dispose() - GvDatos.DataBind() - - End Sub - - Private Sub ConfiguraEmpresa() - 'If Not UsuarioActual.Empresa.MostrarRetIVA Then GvDatos.Columns(6).Visible = False - 'If Not UsuarioActual.Empresa.MostrarRetISR Then GvDatos.Columns(7).Visible = False - End Sub - - Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click - If ChkRetIVA.Checked Then - GvDatos.Columns(6).Visible = True - Else - GvDatos.Columns(6).Visible = False - End If - - If ChkRetISR.Checked Then - GvDatos.Columns(7).Visible = True - Else - GvDatos.Columns(7).Visible = False - End If - - If ChkMinSub.Checked Then - GvDatos.Columns(9).Visible = True - Else - GvDatos.Columns(9).Visible = False - End If - - If ChkAVGSub.Checked Then - GvDatos.Columns(10).Visible = True - Else - GvDatos.Columns(10).Visible = False - End If - - If ChkMaxSub.Checked Then - GvDatos.Columns(11).Visible = True - Else - GvDatos.Columns(11).Visible = False - End If - - If ChkMinTot.Checked Then - GvDatos.Columns(12).Visible = True - Else - GvDatos.Columns(12).Visible = False - End If - - If ChkAvgTot.Checked Then - GvDatos.Columns(13).Visible = True - Else - GvDatos.Columns(13).Visible = False - End If - - If ChkMaxTot.Checked Then - GvDatos.Columns(14).Visible = True - Else - GvDatos.Columns(14).Visible = False - End If - - UPDatos.Update() - End Sub - - Protected Sub ImgExcel_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExcel.Click - GvDatos.ExportToExcel("ReporteVentas" & Now.ToShortDateString) - End Sub - - - 'Region "TEMPLATE" - Public Class GridViewTemplate - Implements ITemplate - 'A variable to hold the type of ListItemType. - Private _templateType As ListItemType - - 'A variable to hold the column name. - Private _columnName As String - - - 'Constructor where we define the template type and column name. - Public Sub New(type As ListItemType, colname As String) - 'Stores the template type. - _templateType = type - - 'Stores the column name. - _columnName = colname - - End Sub - - Private Sub ITemplate_InstantiateIn(container As System.Web.UI.Control) Implements ITemplate.InstantiateIn - Select Case _templateType - Case ListItemType.Header - 'Creates a new label control and add it to the container. - Dim lbl As New Label() - 'Allocates the new label object. - lbl.Text = _columnName - 'Assigns the name of the column in the lable. - container.Controls.Add(lbl) - 'Adds the newly created label control to the container. - Exit Select - - Case ListItemType.Item - 'Creates a new text box control and add it to the container. - Dim ltl1 As New Literal - ltl1.ID = String.Format("ltl{0}", _columnName) - AddHandler ltl1.DataBinding, AddressOf ltl_DataBinding - - 'AddHandler hdn1.DataBinding, AddressOf hdn_DataBinding - - 'Creates a column with size 4. - container.Controls.Add(ltl1) - 'Adds the newly created textbox to the container. - Exit Select - - Case ListItemType.EditItem - 'As, I am not using any EditItem, I didnot added any code here. - Exit Select - - Case ListItemType.Footer - Dim chkColumn As New CheckBox() - chkColumn.ID = Convert.ToString("Chk") & _columnName - container.Controls.Add(chkColumn) - Exit Select - End Select - End Sub - - Private Sub hdn_DataBinding(sender As Object, e As EventArgs) - Dim hidden As HiddenField = DirectCast(sender, HiddenField) - Dim row As GridViewRow = DirectCast(hidden.NamingContainer, GridViewRow) - Dim value As String = DataBinder.Eval(row.DataItem, _columnName).ToString() - hidden.Value = If(value Is Nothing OrElse value = String.Empty, "-1", value) - End Sub - - Private Sub ltl_DataBinding(sender As Object, e As EventArgs) - Dim ltl As Literal = DirectCast(sender, Literal) - Dim row As GridViewRow = DirectCast(ltl.NamingContainer, GridViewRow) - Dim celda As DataControlFieldCell = DirectCast(ltl.Parent, DataControlFieldCell) - Dim value As String = DataBinder.Eval(row.DataItem, _columnName).ToString() - ltl.Text = value.FormatoNumero - End Sub - - ''' - ''' This is the event, which will be raised when the binding happens. - ''' - ''' - ''' - Private Sub tb1_DataBinding(sender As Object, e As EventArgs) - Dim txtdata As TextBox = DirectCast(sender, TextBox) - Dim container As GridViewRow = DirectCast(txtdata.NamingContainer, GridViewRow) - Dim dataValue As Object = DataBinder.Eval(container.DataItem, _columnName) - If dataValue Is DBNull.Value Then - txtdata.Text = dataValue.ToString() - End If - End Sub - End Class - - Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound - If e.Row.RowType = DataControlRowType.DataRow Then - Dim Css As String = "Texto" - If e.Row.RowIndex = 0 Then - e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Center - e.Row.Cells(0).Width = Unit.Pixel(150) - e.Row.Cells(1).Width = Unit.Pixel(100) - e.Row.Cells(2).Width = Unit.Pixel(100) - - e.Row.CssClass = "Totales" - - - Css = "Totales" - End If - - Dim FechaI, FechaF As String - FechaI = If(IsDate(txtFechaI.Text.Trim()), txtFechaI.Text.Trim(), "-1") - FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.Trim(), "-1") - - Dim LigaV As String = String.Format("/Ventas/RepVentaDetalle.aspx?GPO={0}&Anio={1}&Mes={2}&AnioMes={3}&Fecha={4}&CveCliente=-1&CveSucursal={5}&Vendedor=-1&CveUsuario=-1&CveEstatusFactura=-1&FechaI={6}&FechaF={7}&IVA=-1&CveCorte=-1", - DdlGrupo.SelectedValue, e.Row.DBCampo("Anio"), e.Row.DBCampo("Mes"), e.Row.DBCampo("AnioMes"), e.Row.DBCampo("Fecha"), e.Row.DBCampo("CveSucursal"), FechaI, FechaF) - Dim LigaC As String = String.Format("/Compras/RepComprasDetalle.aspx?GPO={0}&Anio={1}&Mes={2}&AnioMes={3}&Fecha={4}&CveProveedor=-1&CveUsuario=-1&FechaI={5}&FechaF={6}", - DdlGrupo.SelectedValue, e.Row.DBCampo("Anio"), e.Row.DBCampo("Mes"), e.Row.DBCampo("AnioMes"), e.Row.DBCampo("Fecha"), FechaI, FechaF) - - e.Row.FCLiteral("LtlVentas").Text = "" & e.Row.FCLiteral("LtlVentas").Text & "" - e.Row.FCLiteral("LtlCompras").Text = String.Format("{2}", Css, LigaC, e.Row.FCLiteral("LtlCompras").Text) - End If - End Sub -End Class - diff --git a/Site.master b/Site.master index bfa552c03..5431b7312 100644 --- a/Site.master +++ b/Site.master @@ -257,6 +257,15 @@ Buscar Acercamientos + +
  • + + + Buscar Activo Fijo + +
  • + +