-
This commit is contained in:
@@ -2,11 +2,8 @@
|
|||||||
Option Strict On
|
Option Strict On
|
||||||
|
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports System.Web.Compilation
|
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports System.Xml.Serialization
|
|
||||||
Imports System.IO
|
|
||||||
Imports System.Xml
|
Imports System.Xml
|
||||||
|
|
||||||
Partial Class Ventas_RepVentas
|
Partial Class Ventas_RepVentas
|
||||||
@@ -116,20 +113,6 @@ Partial Class Ventas_RepVentas
|
|||||||
If UsuarioActual.CveEmpresa = 72 AndAlso UsuarioActual.CveUsuario.Contiene(100, 1614, 1517) Then
|
If UsuarioActual.CveEmpresa = 72 AndAlso UsuarioActual.CveUsuario.Contiene(100, 1614, 1517) Then
|
||||||
liRepHP.Visible = True
|
liRepHP.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'SI ES EL USUARIO SISTEMA MOSTRAR LA MODALIDAD CONTABLE (TEMPORAL)
|
|
||||||
'If UsuarioActual.CveUsuario = 100 Then
|
|
||||||
'divModalidadcontable.Visible = True
|
|
||||||
'End If
|
|
||||||
|
|
||||||
'Modalidad Cotizacion
|
|
||||||
If Opcion = "Cot" Then
|
|
||||||
DdlTipoComprobante.SelectedValuesIfExistM(Opcion)
|
|
||||||
DdlGrupo.SelectedValueExist("7")
|
|
||||||
DdlTipoComprobante_SelectedIndexChanged(DdlTipoComprobante, EventArgs.Empty)
|
|
||||||
'DdlEstatus.SelectedValue = "-1"
|
|
||||||
End If
|
|
||||||
|
|
||||||
CargaGrupo()
|
CargaGrupo()
|
||||||
|
|
||||||
If UsuarioActual.CveVendedor > 0 AndAlso Not UsuarioActual.TienePermisoProceso(263) Then
|
If UsuarioActual.CveVendedor > 0 AndAlso Not UsuarioActual.TienePermisoProceso(263) Then
|
||||||
@@ -147,8 +130,14 @@ Partial Class Ventas_RepVentas
|
|||||||
DVServicioDomicilio.Visible = True
|
DVServicioDomicilio.Visible = True
|
||||||
DivLblDistr.Visible = True
|
DivLblDistr.Visible = True
|
||||||
DivDistr.Visible = True
|
DivDistr.Visible = True
|
||||||
|
'Modalidad Cotizacion
|
||||||
|
If Opcion = "Cot" Then
|
||||||
|
DdlTipoComprobante.SelectedValuesIfExistM(Opcion)
|
||||||
|
DdlGrupo.SelectedValueExist("7")
|
||||||
|
DdlTipoComprobante_SelectedIndexChanged(DdlTipoComprobante, EventArgs.Empty)
|
||||||
|
DdlEstatus.ClearSelection()
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
PrePersonalizacion()
|
PrePersonalizacion()
|
||||||
CargaPersonalizacion()
|
CargaPersonalizacion()
|
||||||
|
|
||||||
@@ -297,11 +286,8 @@ Partial Class Ventas_RepVentas
|
|||||||
Agrupador = DdlGrupo.SelectedItem.Text
|
Agrupador = DdlGrupo.SelectedItem.Text
|
||||||
CveProyecto = DdlProyecto.SelectedValue.ToEntero
|
CveProyecto = DdlProyecto.SelectedValue.ToEntero
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|
||||||
|
|
||||||
GvDatosDataBind()
|
GvDatosDataBind()
|
||||||
|
|
||||||
|
|
||||||
Primeracontsulta = False
|
Primeracontsulta = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -998,22 +984,16 @@ Partial Class Ventas_RepVentas
|
|||||||
|
|
||||||
Protected Sub LnkDescargaCartaPorte_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkDescargaCartaPorte_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
Dim DTDataos As New DataTable
|
Dim DTDataos As New DataTable
|
||||||
Dim CveSubProyectos As String = If(DdlSubProyecto.GetSelectedValuesM = "", "-1", DdlSubProyecto.GetSelectedValuesM)
|
Dim CveSubProyectos As String = If(DdlSubProyecto.GetSelectedValuesM = "", "-1", DdlSubProyecto.GetSelectedValuesM)
|
||||||
|
|
||||||
|
|
||||||
If ObjVentas.GetListadoCartaPorteRep(txtFechaI.Text.ToDate, txtFechaF.Text.ToDate, CveSubProyectos, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjVentas.GetListadoCartaPorteRep(txtFechaI.Text.ToDate, txtFechaF.Text.ToDate, CveSubProyectos, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
DTDataos = ObjVentas.DtResultados
|
DTDataos = ObjVentas.DtResultados
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|
||||||
|
|
||||||
DTDataos.ExportToExcel("RepCartasPorte")
|
DTDataos.ExportToExcel("RepCartasPorte")
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub ImgExcelPersonalizado_Click(sender As Object, e As EventArgs) Handles ImgExcelPersonalizado.Click
|
Protected Sub ImgExcelPersonalizado_Click(sender As Object, e As EventArgs) Handles ImgExcelPersonalizado.Click
|
||||||
|
|||||||
Reference in New Issue
Block a user