From 93cfe2e391ea587d0cc2102e3ddbf76cdb7425c5 Mon Sep 17 00:00:00 2001 From: rrene Date: Fri, 13 Dec 2024 12:58:15 -0700 Subject: [PATCH 1/3] -- filtro por vendedor. --- App_Code/ClsVentas.vb | 3 ++- Ventas/RepCotizacionesxFacturar.aspx | 4 ++++ Ventas/RepCotizacionesxFacturar.aspx.vb | 24 +++++++++++++++--------- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb index 99877e120..180e2b830 100644 --- a/App_Code/ClsVentas.vb +++ b/App_Code/ClsVentas.vb @@ -3292,7 +3292,7 @@ Public Class ClsVentas Return Retorno End Function - Public Function GetRepCotizacionesSinFacturar(FechaI As Date, FechaF As Date, CveSubProyecto As String, CveCliente As Integer, CveEmpresa As Integer, Optional CveUsuarioConsulta As Integer = -1, Optional CveEstatusFactura As Integer = -1) As Boolean + Public Function GetRepCotizacionesSinFacturar(FechaI As Date, FechaF As Date, CveSubProyecto As String, CveCliente As Integer, CvesVendedores As String, CveEmpresa As Integer, Optional CveUsuarioConsulta As Integer = -1, Optional CveEstatusFactura As Integer = -1) As Boolean Dim Retorno As Boolean = False DataAdapter("PA_Vta_RepCotizacionesSinFacturarGet") @@ -3302,6 +3302,7 @@ Public Class ClsVentas .Add("@CveSubProyecto", SqlDbType.VarChar).Value = CveSubProyecto .Add("@CveCliente", SqlDbType.Int).Value = CveCliente .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + .Add("@CvesVendedores", SqlDbType.Int).Value = CvesVendedores .Add("@CveEstatusFactura", SqlDbType.Int).Value = CveEstatusFactura .Add("@CveUsuarioConsulta", SqlDbType.Int).Value = CveUsuarioConsulta End With diff --git a/Ventas/RepCotizacionesxFacturar.aspx b/Ventas/RepCotizacionesxFacturar.aspx index f475fb070..276429a95 100644 --- a/Ventas/RepCotizacionesxFacturar.aspx +++ b/Ventas/RepCotizacionesxFacturar.aspx @@ -170,6 +170,10 @@
+
+ +
+
diff --git a/Ventas/RepCotizacionesxFacturar.aspx.vb b/Ventas/RepCotizacionesxFacturar.aspx.vb index 6f734ab3f..754cd2c6f 100644 --- a/Ventas/RepCotizacionesxFacturar.aspx.vb +++ b/Ventas/RepCotizacionesxFacturar.aspx.vb @@ -2,11 +2,9 @@ Option Strict On Imports System.Data -Imports Microsoft.Reporting.WebForms Imports Extensiones Partial Class RepCotizacionesxFacturar Inherits ClsPaginas - Private Shared missing As Object = System.Reflection.Missing.Value #Region "PROPIEDADES" Private Property FechaI As String @@ -55,9 +53,7 @@ Partial Class RepCotizacionesxFacturar If Not Page.IsPostBack Then txtFechaI.Text = NowADS().ToShortDateString txtFechaF.Text = NowADS().ToShortDateString - - CargaSucursales() - CargaCliente() + CargaCombos() CargaDatos() OrdenaDatos() @@ -73,8 +69,9 @@ Partial Class RepCotizacionesxFacturar CveCliente = If(DdlClientes.SelectedValue.ToEntero > 0, DdlClientes.SelectedValue.ToEntero, -1) Sucursales = IIf(DdlSubProyectos.GetSelectedValuesM = "", "-1", DdlSubProyectos.GetSelectedValuesM).ToString + Dim Vendedores As String = If(DdlVendedor.GetSelectedValuesM = "", "-1", DdlVendedor.GetSelectedValuesM) - If ObjVentas.GetRepCotizacionesSinFacturar(FechaI.ToDate, FechaF.ToDate, Sucursales, CveCliente, UsuarioActual.CveEmpresa, CveUsuarioConsulta:=UsuarioActual.CveUsuario, CveEstatusFactura:=DdlEstatusFactura.SelectedValue.ToEntero) Then + If ObjVentas.GetRepCotizacionesSinFacturar(FechaI.ToDate, FechaF.ToDate, Sucursales, CveCliente, Vendedores, UsuarioActual.CveEmpresa, CveUsuarioConsulta:=UsuarioActual.CveUsuario, CveEstatusFactura:=DdlEstatusFactura.SelectedValue.ToEntero) Then GvDatos.DataSource = ObjVentas.DtResultados DtVentas = ObjVentas.DtResultados GvDatos.DataBind() @@ -121,7 +118,7 @@ Partial Class RepCotizacionesxFacturar #End Region #Region "CARGA COMBOS FILTRO" - Private Sub CargaCliente() + Private Sub CargaCombos() 'CargaClientes Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False) If EsWS Then @@ -133,8 +130,17 @@ Partial Class RepCotizacionesxFacturar DdlClientes.ddl.Items.Insert(0, New ListItem("Todos", "-1")) End If - End Sub - Private Sub CargaSucursales() + 'Vendedor + DdlVendedor.DataSource = GlobalDTVendedores(UsuarioActual.CveEmpresa, VendedorTipo:=-1).FiltraParametros("VendedorTipo in (1,4)") 'vendedores y vendedores de piso + DdlVendedor.DataBind() + DdlVendedor.Items.Insert(0, New ListItem("Todos", "-1")) + DdlVendedor.Items.Insert(1, New ListItem("Sin Vendedor", "-2")) + + If UsuarioActual.CveVendedor > 0 AndAlso Not UsuarioActual.TienePermisoProceso(263) Then + DdlVendedor.SelectedValuesIfExistM(UsuarioActual.CveVendedor.ToString()) + DdlVendedor.Attributes.Add("disabled", "disabled") + DdlVendedor.Enabled = False + End If DdlSubProyectos.DataSource() = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1) DdlSubProyectos.DataBind() From 125dd5ce0909d2669554b0f5018dfd7261646c1d Mon Sep 17 00:00:00 2001 From: rakcsle Date: Sat, 14 Dec 2024 11:28:37 -0700 Subject: [PATCH 2/3] Emd RepOC, Emd valida no registra Compras de 2024 dede 28 de Diciembre --- Empresas/140/Formatos/Traspaso.rdlc | 2405 +++++++++++++++++++++++++++ 1 file changed, 2405 insertions(+) create mode 100644 Empresas/140/Formatos/Traspaso.rdlc diff --git a/Empresas/140/Formatos/Traspaso.rdlc b/Empresas/140/Formatos/Traspaso.rdlc new file mode 100644 index 000000000..942f7c513 --- /dev/null +++ b/Empresas/140/Formatos/Traspaso.rdlc @@ -0,0 +1,2405 @@ + + + 0 + + + + System.Data.DataSet + /* Local Connection */ + + 06ae5329-8ff5-42b5-b7f4-6d68e5186420 + + + + System.Data.DataSet + /* Local Connection */ + + 3fde81d4-b9ca-4175-9160-5293ca8b9aa9 + + + + System.Data.DataSet + /* Local Connection */ + + c220a38d-e45b-4e04-917e-7dfd9cc3345f + + + + System.Data.DataSet + /* Local Connection */ + + c220a38d-e45b-4e04-917e-7dfd9cc3345f + + + + System.Data.DataSet + /* Local Connection */ + + c220a38d-e45b-4e04-917e-7dfd9cc3345f + + + + System.Data.DataSet + /* Local Connection */ + + c220a38d-e45b-4e04-917e-7dfd9cc3345f + + + + + + DsOC + /* Local Query */ + + + + ImporteIEPS + System.Decimal + + + ImporteIVA + System.Decimal + + + PorcentajeIEPS + System.Decimal + + + PorcentajeIVA + System.Decimal + + + Cantidad + System.Double + + + CveUnidadMedida + System.Int64 + + + Abreviatura + System.String + + + PS + System.String + + + CveClasificacion + System.Int64 + + + Clasificacion + System.String + + + CveActivoFijo + System.Int64 + + + Codigo + System.String + + + TipoDato + System.Int64 + + + CodigoAF + System.String + + + CodigoPS + System.String + + + UnidadMedida + System.String + + + Importe + System.Decimal + + + Total + System.Decimal + + + UM + System.String + + + Obs + System.String + + + SubProyecto + System.String + + + PU + System.String + + + Descuento + System.String + + + Marca + System.String + + + SATClaveProdServ + System.String + + + Noidentificacion + System.String + + + + DsOC + C:\Users\Orlando Bojorquez\Documents\Visual Studio 2013\WebSites\WebSite1\App_Code\DsOC.xsd + DtOCDetalle + + + + + + + + DataSet2 + /* Local Query */ + + + + ImpuestoLocal + System.String + + + Importe + System.Double + + + Nombre + System.String + + + ImporteT + System.String + + + Orden + System.String + + + + DataSet2 + C:\Users\jesus\Documents\Visual Studio 2015\WebSites\WebSite2\App_Code\DataSet2.xsd + DataTable1 + + + + + + + + DsFirmas + /* Local Query */ + + + + Titulo + System.String + + + Nombre + System.String + + + Puesto + System.String + + + Lado + System.String + + + + DsFirmas + C:\Users\Jesus Murua\Documents\Visual Studio 2015\WebSites\WebSite2\App_Code\DsFirmas.xsd + DataTable1 + + + + + + + + DsDesgloseImpuestos + /* Local Query */ + + + + Impuesto + System.String + + + tasa + System.String + + + Importe + System.String + + + Orden + System.String + + + + DsDesgloseImpuestos + C:\Users\Jesus Murua\Documents\Visual Studio 2015\WebSites\WebSite2\App_Code\DsFirmas.xsd + DataTable1 + + + + + + + + DsDesgloseImpuestos + /* Local Query */ + + + + SerieFolio + System.String + + + Fecha + System.String + + + Importe + System.String + + + FolioFiscal + System.String + + + + DsDocumentosRelacionados + C:\Users\Jesus Murua\Documents\Visual Studio 2015\WebSites\WebSite2\App_Code\DsFirmas.xsd + DataTable1 + + + + + + + + DsDesgloseImpuestos + /* Local Query */ + + + + SerieFolio + System.String + + + Fecha + System.String + + + SubTotal + System.String + + + Importe + System.String + + + Moneda + System.String + + + + DsNCVinculadas + C:\Users\Jesus Murua\Documents\Visual Studio 2015\WebSites\WebSite2\App_Code\DsFirmas.xsd + DataTable1 + + + + + + + + + + + + + + true + true + + + + + "Este documento es una representación impresa de un CFDI" + + + + + + + + + Folio fiscal: + + + + =Parameters!FolioFiscal.Value + + + + + + + =Parameters!FechaCertificacion.Value + + + + Número de serie del Certificado de Sello Digital: + + + + =Parameters!CertificadoContribuyente.Value + + + + + + + =Parameters!SerieCertificadoSAT.Value + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + External + =Parameters!QR.Value + FitProportional + 0.0444in + 6.56374in + 1.13974in + 1.53682in + 1 + + + + + + true + 3.53788in + 0.03589in + 1.21305in + 8.22763in + + + + + + true + true + + + + + Domicilio fiscal: + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + + + + TIPO DE DOCUMENTO: Traslado + + + + + + + + + + + + + Serie: + + + + =Parameters!Serie.Value + + + + Folio: + + + + =Parameters!Folio.Value + + + + + + + + + Fecha: + + + + + + + + = Parameters!Fecha.Value + + + + + + + + + Régimen fiscal: + + + + Regimen General de Ley Personas Morales + + + + + + + + + + + Textbox4 + 0.05022in + 4.90719in + 1.00267in + 3.35633in + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + 0.54927in + + + 1.05064in + + + 0.98425in + + + 1.11327in + + + 4.57762in + + + + + 0.19645in + + + + + true + true + + + + + CANT + + + + + + + Textbox22 + + + + Black + + + + Black + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + UNIDAD + + + + + + + Black + + + + Black + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + CÓDIGO + + + + + + + Black + + + + Black + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + CLAVE SAT + + + + + + + Textbox29 + + + + Black + + + + Black + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + DESCRIPCIÓN + + + + + + + Textbox17 + + + + Black + + + + Black + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.14436in + + + + + true + true + + + + + =Fields!Cantidad.Value + + + + + + + Cantidad1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!UM.Value + + + + + + + UM + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Noidentificacion.Value + + + + + + + Noidentificacion + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SATClaveProdServ.Value + + + + + + + SATClaveProdServ + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!PS.Value & " " & Fields!Obs.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + After + + + + + + + DsOC + 2.25503in + 0.04048in + 0.34081in + 8.27505in + 3 + + + + + + true + true + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Parameters!Observaciones.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Almacén Origen: + + + + =Parameters!AlmOrigen.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Almacén Destino: + + + + =Parameters!AlmDestino.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Parameters!DireccionOrigen.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Parameters!DireccionDestino.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + Embedded + Logo1 + FitProportional + 0.12756cm + 0.10283cm + 2.00271cm + 4.28301cm + 12 + + + + + + 12.81558cm + + + + + 21.12145cm + + + 0.5327cm + true + true + + + true + true + + + + + Fecha Impresión: + + + + =Parameters!FechaImpresion.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + ="Página " & Globals.PageNumber & " de " & Globals.TotalPages + + + + + + + Textbox35 + 0.11289cm + 18.37079cm + 0.41981cm + 2.5cm + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 27.94cm + 21.59cm + 0cm + 0cm + 0.5cm + 0.5cm + 1.27cm + - - Embedded - Logo - FitProportional - 0.16887cm - 0.0579in - 0.91907in - 1.74231in - 1 - - - - true true @@ -1136,7 +1121,7 @@ 0.18166cm 2.14341cm 10.47411cm - 2 + 1 =Parameters!CveTipoAlmacen.Value="19" @@ -1259,7 +1244,7 @@ 4.57254cm 1.86797cm 14.64707cm - 3 + 2 @@ -1270,6 +1255,21 @@ 2pt + + Embedded + Logo2 + FitProportional + 0.20415cm + 0.05091in + 0.91907in + 1.74231in + 3 + + + + - 2.45738cm + 2.58967cm true true @@ -1350,7 +1350,7 @@ 1.22061cm 1.49125cm 0.44125cm - 5.21516cm + 6.09106cm 2 @@ -1226,7 +1227,7 @@ OCIndicadorEdit Fit 23.16373cm - 2.70849cm + 2.1091cm 10.24265cm 3 @@ -1309,10 +1310,6 @@ - 2pt - 2pt - 2pt - 2pt @@ -1348,10 +1345,6 @@ - 2pt - 2pt - 2pt - 2pt @@ -1387,10 +1380,6 @@ - 2pt - 2pt - 2pt - 2pt @@ -1426,10 +1415,6 @@ - 2pt - 2pt - 2pt - 2pt @@ -1440,7 +1425,7 @@ Cantidad - 2pt - 2pt - 2pt - 2pt @@ -1479,7 +1460,7 @@ Total @@ -1493,7 +1474,7 @@ Textbox29 0.75cm 28.64175cm - 0.4cm + 0.35271cm 4.3566cm 10 @@ -1503,10 +1484,6 @@ - 2pt - 2pt - 2pt - 2pt @@ -1517,7 +1494,7 @@ Pesos @@ -1531,17 +1508,13 @@ Textbox29 1.50271cm 25.09362cm - 0.4cm + 0.3cm 3.33647cm 11 - 2pt - 2pt - 2pt - 2pt @@ -1552,7 +1525,7 @@ Dolares @@ -1566,7 +1539,7 @@ Textbox29 1.50271cm 28.60648cm - 0.4cm + 0.3cm 4.39187cm 12 @@ -1576,10 +1549,6 @@ - 2pt - 2pt - 2pt - 2pt diff --git a/Empresas/Grales/Formatos/Traslado.rdlc b/Empresas/Grales/Formatos/Traslado.rdlc index 891ee3351..2c51a13d9 100644 --- a/Empresas/Grales/Formatos/Traslado.rdlc +++ b/Empresas/Grales/Formatos/Traslado.rdlc @@ -75,13 +75,13 @@ 1.09771cm - 3.27787cm + 2.48746cm - 1.5514cm + 2.35965cm - 10.76955cm + 10.68821cm 1.41521cm @@ -105,6 +105,7 @@ Cant. @@ -145,8 +146,9 @@ - Código + U.M. @@ -187,8 +189,9 @@ - U.M. + Código @@ -231,6 +234,7 @@ Descripción @@ -273,6 +277,7 @@ Costo @@ -315,6 +320,7 @@ Valor @@ -362,7 +368,8 @@ =Fields!Cantidad.Value @@ -395,9 +402,10 @@ - =Fields!Codigo.Value + =Fields!UnidadMedida.Value @@ -428,9 +436,17 @@ - =Fields!UnidadMedida.Value + + + + =Fields!Codigo.Value + @@ -464,7 +480,8 @@ =Fields!PS.Value @@ -497,7 +514,8 @@ =Fields!PU.Value @@ -531,7 +549,8 @@ =Fields!Total.Value @@ -552,7 +571,6 @@ =IIf(rownumber(nothing) = 1, "2pt", "0pt") - true @@ -571,7 +589,8 @@ =Sum(Fields!Cantidad.Value) @@ -607,7 +626,8 @@ Total Productos @@ -641,7 +661,7 @@ @@ -674,7 +694,7 @@ @@ -707,7 +727,7 @@ @@ -741,7 +761,7 @@ @@ -798,7 +818,7 @@ 0.07056cm 0.00711cm 1.17559cm - 19.56807cm + 19.50457cm @@ -809,10 +829,10 @@ 0.68252in @@ -835,9 +856,9 @@ Textbox2 0.03803cm - 4.37423cm + 4.42715cm 2.04667cm - 12.32941cm + 11.72087cm @@ -857,6 +878,8 @@ =Parameters!Fecha.Value @@ -867,8 +890,8 @@ Textbox4 - 4.48094cm - 17.3888cm + 3.24568cm + 17.73805cm 0.6cm 1.76305cm 1 @@ -889,6 +912,7 @@ Fecha: @@ -899,8 +923,8 @@ Textbox5 - 4.48092cm - 16.27404cm + 3.24566cm + 16.62329cm 0.6cm 1.11476cm 2 @@ -921,6 +945,7 @@ =Parameters!Folio.Value @@ -930,10 +955,10 @@ Textbox4 - 0.63803cm - 16.88003cm + 0.03803cm + 17.54343cm 0.6cm - 2.27182cm + 1.96825cm 3 @@ -1016,6 +1044,7 @@ =Parameters!SubProyecto.Value @@ -1040,86 +1069,6 @@ 2pt - - true - true - - - - - Origen: - - - - =Parameters!Origen.Value - - - - - - 2pt - 2pt - 2pt - 2pt - - - - true - true - - - - - Destino: - - - - =Parameters!Destino.Value - - - - - - 2pt - 2pt - 2pt - 2pt - - External =Parameters!LogoPath.Value @@ -1128,7 +1077,7 @@ 0.1121cm 2.53711cm 4.08574cm - 9 + 7 @@ -1143,7 +1092,7 @@ - 6.45758cm + 6.19829cm true true @@ -1155,7 +1104,10 @@ =Parameters!NombreEntrego.Value - @@ -1416,7 +1381,7 @@ Textbox22 1.41167cm - 2.54795cm + 0.64295cm 0.6cm 5.78664cm 8 @@ -1442,6 +1407,8 @@ =Parameters!Accion.Value @@ -1453,7 +1420,7 @@ Textbox22 1.37639cm - 11.26191cm + 13.16691cm 0.6cm 5.78664cm 9 @@ -1477,8 +1444,11 @@ - =IIF(Parameters!NombreAccion.Value=-1,"",Parameters!NombreAccion.Value) - @@ -1571,7 +1547,7 @@ Textbox22 1.37583cm - 6.89741cm + 6.96091cm 0.6cm 5.78664cm 12 @@ -1613,8 +1589,8 @@ Textbox29 - 5.90548cm - 0.00711cm + 5.77848cm + 0.06076cm 0.41981cm 5.78083cm 13 @@ -1635,28 +1611,23 @@ - Fecha Impresión: - - - - =Parameters!FechaImpresion.Value + = "Fecha Impresión: " & Format(Globals!ExecutionTime, "dd/MM/yyyy HH:mm:ss") - Textbox31 - 5.90548cm - 7.42772cm + 5.75203cm + 5.9827cm 0.41981cm - 6.04844cm + 8.76488cm 14