-- mejora activación E119-Zona
This commit is contained in:
@@ -204,6 +204,7 @@ Partial Class RepVentasDetalle
|
|||||||
|
|
||||||
DdlProyecto.SelectedValueExist(CveProyecto)
|
DdlProyecto.SelectedValueExist(CveProyecto)
|
||||||
'If DivProyecto.Visible Then CargaSubProyecto()
|
'If DivProyecto.Visible Then CargaSubProyecto()
|
||||||
|
If CveProyecto.ToEntero > 0 Then CargarSubProyecto(DdlSubProyecto, DdlProyecto.SelectedValue, AplicaTodos:="Todos")
|
||||||
DdlSubProyecto.SelectedValuesIfExistM(CveSubProyecto)
|
DdlSubProyecto.SelectedValuesIfExistM(CveSubProyecto)
|
||||||
DdlSubProyectoEjecucion.SelectedValueExist(CveSubProyectoEjecucion)
|
DdlSubProyectoEjecucion.SelectedValueExist(CveSubProyectoEjecucion)
|
||||||
DdlVendedor.SelectedValuesIfExistM(CveVendedor)
|
DdlVendedor.SelectedValuesIfExistM(CveVendedor)
|
||||||
@@ -317,7 +318,7 @@ Partial Class RepVentasDetalle
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaCombos()
|
Private Sub CargaCombos()
|
||||||
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyecto, LblSubProyecto, divProyecto:=DivProyecto)
|
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyecto, LblSubProyecto, divProyecto:=DivProyecto, VisualizacionReporte:=1)
|
||||||
CargaClientes()
|
CargaClientes()
|
||||||
|
|
||||||
|
|
||||||
@@ -371,7 +372,7 @@ Partial Class RepVentasDetalle
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub DdlProyecto_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlProyecto.SelectedIndexChanged
|
Protected Sub DdlProyecto_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlProyecto.SelectedIndexChanged
|
||||||
CargarSubProyecto(DdlSubProyecto, DdlProyecto.SelectedValue)
|
CargarSubProyecto(DdlSubProyecto, DdlProyecto.SelectedValue, AplicaTodos:="Todos")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub DdlClienteClasificacion_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlClienteClasificacion_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
@@ -432,6 +433,7 @@ Partial Class RepVentasDetalle
|
|||||||
Dim ModalidadContable As Boolean = CBool(If(Request("ModalidadContable") IsNot Nothing, Request("ModalidadContable").ToEntero(), 0))
|
Dim ModalidadContable As Boolean = CBool(If(Request("ModalidadContable") IsNot Nothing, Request("ModalidadContable").ToEntero(), 0))
|
||||||
|
|
||||||
ChkLecturaAdmin.Checked = Not ModalidadContable
|
ChkLecturaAdmin.Checked = Not ModalidadContable
|
||||||
|
CveProyecto = DdlProyecto.SelectedValue.ToEntero
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas()
|
Dim ObjVentas As New ClsVentas()
|
||||||
'FechaI, FechaF, -1, UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero
|
'FechaI, FechaF, -1, UsuarioActual.CveEmpresa, DdlGrupo.SelectedValue.ToEntero
|
||||||
@@ -1211,14 +1213,10 @@ Partial Class RepVentasDetalle
|
|||||||
CveEstatusFactura = If(DdlEstatus.GetSelectedText = "", "", $" <b>Estatus:</b> {DdlEstatus.GetSelectedText}")
|
CveEstatusFactura = If(DdlEstatus.GetSelectedText = "", "", $" <b>Estatus:</b> {DdlEstatus.GetSelectedText}")
|
||||||
CondicionesPago = If(DdlCondicionesPago.SelectedValue = "-1", "", String.Format(" <b>Condiciones Pago</b>: {0}", DdlCondicionesPago.SelectedItem.Text))
|
CondicionesPago = If(DdlCondicionesPago.SelectedValue = "-1", "", String.Format(" <b>Condiciones Pago</b>: {0}", DdlCondicionesPago.SelectedItem.Text))
|
||||||
|
|
||||||
|
|
||||||
Dim RutaFormato As String = String.Format("{0}Formatos\RepVentaDetalle.rdlc", UsuarioActual.Empresa.Ruta)
|
Dim RutaFormato As String = String.Format("{0}Formatos\RepVentaDetalle.rdlc", UsuarioActual.Empresa.Ruta)
|
||||||
|
|
||||||
Dim Archivo As New System.IO.FileInfo(RutaFormato)
|
Dim Archivo As New System.IO.FileInfo(RutaFormato)
|
||||||
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||||
|
|
||||||
Dim logouri As String = String.Format("file://{0}", Imagen.FullName)
|
Dim logouri As String = String.Format("file://{0}", Imagen.FullName)
|
||||||
|
|
||||||
Dim dt As DataTable = DtVentas.FiltraParametros("(GPO IS NULL AND Cantidad IS NOT NULL) OR (GPO IS NOT NULL AND Cantidad IS NOT NULL)")
|
Dim dt As DataTable = DtVentas.FiltraParametros("(GPO IS NULL AND Cantidad IS NOT NULL) OR (GPO IS NOT NULL AND Cantidad IS NOT NULL)")
|
||||||
|
|
||||||
Dim params As New List(Of ReportParameter)
|
Dim params As New List(Of ReportParameter)
|
||||||
@@ -1229,11 +1227,8 @@ Partial Class RepVentasDetalle
|
|||||||
params.Add(New ReportParameter("FechaImpresion", NowADS().ToDateTime.ToShortDateString))
|
params.Add(New ReportParameter("FechaImpresion", NowADS().ToDateTime.ToShortDateString))
|
||||||
params.Add(New ReportParameter("TipoDocto", TipoDocto))
|
params.Add(New ReportParameter("TipoDocto", TipoDocto))
|
||||||
params.Add(New ReportParameter("AgrupadoPor", $"<b>Agrupado Por:</b> {Grupo} {TipoDocto} {FechaIn} {FechaFn} {FechaIEjec} {FechaFEjec} {CveCliente} {CveSucursal} {CveSucursalEjec} {Vendedor} {CveUsuario} {CveEstatusFactura} {CondicionesPago} "))
|
params.Add(New ReportParameter("AgrupadoPor", $"<b>Agrupado Por:</b> {Grupo} {TipoDocto} {FechaIn} {FechaFn} {FechaIEjec} {FechaFEjec} {CveCliente} {CveSucursal} {CveSucursalEjec} {Vendedor} {CveUsuario} {CveEstatusFactura} {CondicionesPago} "))
|
||||||
|
|
||||||
params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
|
params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Not Archivo.Exists Then
|
If Not Archivo.Exists Then
|
||||||
RutaFormato = "Empresas/Grales/Formatos/RepVentaDetalle.rdlc"
|
RutaFormato = "Empresas/Grales/Formatos/RepVentaDetalle.rdlc"
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user