Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -72,22 +72,12 @@ Partial Class Acumuladores_CatFoliosGarantia
|
|||||||
|
|
||||||
Private Sub CargaCombos()
|
Private Sub CargaCombos()
|
||||||
|
|
||||||
'Dim ObjPS As New ClsProductosServicios
|
|
||||||
|
|
||||||
'If ObjPS.GetMarcas(UsuarioActual.CveEmpresa) Then
|
|
||||||
' DdlMarca.DataSource = ObjPS.DtResultados
|
|
||||||
' DdlMarca.DataBind()
|
|
||||||
' DdlMarca.Items.Insert(0, New ListItem("Todos", "-1"))
|
|
||||||
' DdlMarca.SelectedValue = "-1"
|
|
||||||
'End If
|
|
||||||
'ObjPS.Dispose()
|
|
||||||
|
|
||||||
DdlMarca.DataSource = GlobalDTGralMarcas(UsuarioActual.CveEmpresa)
|
DdlMarca.DataSource = GlobalDTGralMarcas(UsuarioActual.CveEmpresa)
|
||||||
DdlMarca.DataBind()
|
DdlMarca.DataBind()
|
||||||
DdlMarca.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlMarca.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
DdlMarca.SelectedValue = "-1"
|
DdlMarca.SelectedValue = "-1"
|
||||||
|
|
||||||
DdlTipoUso.DataSource = GlobalDTAcumTiposUso()
|
DdlTipoUso.DataSource = GlobalDTAcumTiposUso(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoUso.DataBind()
|
DdlTipoUso.DataBind()
|
||||||
DdlTipoUso.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlTipoUso.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
DdlTipoUso.SelectedValue = "-1"
|
DdlTipoUso.SelectedValue = "-1"
|
||||||
@@ -124,7 +114,7 @@ Partial Class Acumuladores_CatFoliosGarantia
|
|||||||
DdlMarca.DataSource = GlobalDTGralMarcas(UsuarioActual.CveEmpresa)
|
DdlMarca.DataSource = GlobalDTGralMarcas(UsuarioActual.CveEmpresa)
|
||||||
DdlMarcaM.DataBind()
|
DdlMarcaM.DataBind()
|
||||||
|
|
||||||
DdlTipoUsoM.DataSource = GlobalDTAcumTiposUso()
|
DdlTipoUsoM.DataSource = GlobalDTAcumTiposUso(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoUsoM.DataBind()
|
DdlTipoUsoM.DataBind()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ Public Class ClsMovimientos
|
|||||||
TipoCambio As Integer, Optional TCEspecifico As Double = -1, Optional TipoDocto As String = "-1",
|
TipoCambio As Integer, Optional TCEspecifico As Double = -1, Optional TipoDocto As String = "-1",
|
||||||
Optional FechaVI As String = "-1", Optional FechaVF As String = "-1", Optional FechaCorte As Date = Nothing, Optional EstatusCliente As Integer = -1, Optional CveUsuarioConsulta As Integer = -1,
|
Optional FechaVI As String = "-1", Optional FechaVF As String = "-1", Optional FechaCorte As Date = Nothing, Optional EstatusCliente As Integer = -1, Optional CveUsuarioConsulta As Integer = -1,
|
||||||
Optional CveCobranzaEstatus As Integer = -1, Optional CveClienteClasificacion As Integer = -1, Optional TipoCliente As Integer = -1, Optional AplicaAnticiposPagados As Integer = 1, Optional CveMoneda As Integer = -1,
|
Optional CveCobranzaEstatus As Integer = -1, Optional CveClienteClasificacion As Integer = -1, Optional TipoCliente As Integer = -1, Optional AplicaAnticiposPagados As Integer = 1, Optional CveMoneda As Integer = -1,
|
||||||
Optional TieneLineaAdicional As Integer = -1) As Boolean
|
Optional TieneLineaAdicional As Integer = -1, Optional CveContrato As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
'Data = New DataTable
|
'Data = New DataTable
|
||||||
@@ -287,7 +287,8 @@ Public Class ClsMovimientos
|
|||||||
.Add("@TipoCliente", SqlDbType.Int).Value = TipoCliente
|
.Add("@TipoCliente", SqlDbType.Int).Value = TipoCliente
|
||||||
.Add("@AplicaAnticiposPagados", SqlDbType.Int).Value = AplicaAnticiposPagados
|
.Add("@AplicaAnticiposPagados", SqlDbType.Int).Value = AplicaAnticiposPagados
|
||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@TieneLineaAdicional", SqlDbType.Int).Value = TieneLineaAdicional
|
.Add("@TieneLineaAdicional", SqlDbType.Int).Value = TieneLineaAdicional
|
||||||
|
.Add("@CveContrato", SqlDbType.Int).Value = CveContrato
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -338,7 +339,8 @@ Public Class ClsMovimientos
|
|||||||
CveResponsable As Integer, TipoCambio As Integer, Optional TCEspecifico As Double = -1, Optional TipoDocto As String = "-1",
|
CveResponsable As Integer, TipoCambio As Integer, Optional TCEspecifico As Double = -1, Optional TipoDocto As String = "-1",
|
||||||
Optional FechaVI As String = "-1", Optional FechaVF As String = "1", Optional FechaCorte As Date = Nothing, Optional CveUsuarioConsulta As Integer = -1,
|
Optional FechaVI As String = "-1", Optional FechaVF As String = "1", Optional FechaCorte As Date = Nothing, Optional CveUsuarioConsulta As Integer = -1,
|
||||||
Optional CveCobranzaEstatus As Integer = -1, Optional CveClienteClasificacion As Integer = -1, Optional LimiteCredito As Decimal = -1,
|
Optional CveCobranzaEstatus As Integer = -1, Optional CveClienteClasificacion As Integer = -1, Optional LimiteCredito As Decimal = -1,
|
||||||
Optional TipoCliente As Integer = -1, Optional CveMoneda As Integer = -1, Optional EstatusCliente As Integer = -1, Optional AplicaAnticiposPagados As Integer = 1, Optional TieneLineaAdicional As Integer = -1) As Boolean
|
Optional TipoCliente As Integer = -1, Optional CveMoneda As Integer = -1, Optional EstatusCliente As Integer = -1, Optional AplicaAnticiposPagados As Integer = 1,
|
||||||
|
Optional TieneLineaAdicional As Integer = -1, Optional CveContrato As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DS = New DataSet
|
DS = New DataSet
|
||||||
@@ -382,6 +384,7 @@ Public Class ClsMovimientos
|
|||||||
.Add("@EstatusCliente", SqlDbType.Int).Value = EstatusCliente
|
.Add("@EstatusCliente", SqlDbType.Int).Value = EstatusCliente
|
||||||
.Add("@AplicaAnticiposPagados", SqlDbType.Int).Value = AplicaAnticiposPagados
|
.Add("@AplicaAnticiposPagados", SqlDbType.Int).Value = AplicaAnticiposPagados
|
||||||
.Add("@TieneLineaAdicional", SqlDbType.Int).Value = TieneLineaAdicional
|
.Add("@TieneLineaAdicional", SqlDbType.Int).Value = TieneLineaAdicional
|
||||||
|
.Add("@CveContrato", SqlDbType.Int).Value = CveContrato
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -227,23 +227,24 @@ Public Class ClsPaginas
|
|||||||
End Property
|
End Property
|
||||||
Property GlobalDTNomConceptos(CveEmpresa As Integer) As DataTable
|
Property GlobalDTNomConceptos(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
If CveEmpresa <> -1 Then
|
Dim AppNombre As String = String.Format("GlobalDTNomConceptos-{0}", CveEmpresa)
|
||||||
Dim Dv As New DataView(DirectCast(Application("GlobalDTNomConceptos"), DataTable), String.Format("CveEmpresa = {0}", CveEmpresa), "", DataViewRowState.CurrentRows)
|
If Application("GlobalDTNomConceptos") Is Nothing Then
|
||||||
GlobalDTNomConceptos = Dv.ToTable
|
Dim ObjNom As New ClsNominas
|
||||||
Dv.Dispose()
|
If ObjNom.GetConceptos(CveEmpresa) Then Application(AppNombre) = ObjNom.DtResultados
|
||||||
Else
|
ObjNom.Dispose()
|
||||||
GlobalDTNomConceptos = DirectCast(Application("GlobalDTNomConceptos"), DataTable)
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
GlobalDTNomConceptos = DirectCast(Application(AppNombre), DataTable)
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Application("GlobalDTNomConceptos") = value
|
Dim AppNombre As String = String.Format("GlobalDTNomConceptos-{0}", CveEmpresa)
|
||||||
|
Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTTiposGastos(CveEmpresa As Integer, Optional Estatus As Integer = 1) As DataTable
|
Property GlobalDTTiposGastos(CveEmpresa As Integer, Optional Estatus As Integer = 1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = String.Format("GlobalDTTiposGastos-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTTiposGastos-{0}", CveEmpresa)
|
||||||
'sino existe, recarga los datos
|
|
||||||
If Application(AppNombre) Is Nothing Then
|
If Application(AppNombre) Is Nothing Then
|
||||||
Dim ObjCompra As New ClsCompras()
|
Dim ObjCompra As New ClsCompras()
|
||||||
If ObjCompra.GetTipoGasto(-1, -1) Then Application(AppNombre) = ObjCompra.DtResultados Else Application(AppNombre) = Nothing
|
If ObjCompra.GetTipoGasto(-1, -1) Then Application(AppNombre) = ObjCompra.DtResultados Else Application(AppNombre) = Nothing
|
||||||
@@ -382,7 +383,7 @@ Public Class ClsPaginas
|
|||||||
Public Shared Property GlobalDTFraccionArancelaria() As EnumerableRowCollection(Of DataRow)
|
Public Shared Property GlobalDTFraccionArancelaria() As EnumerableRowCollection(Of DataRow)
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = "GlobalDTFraccionArancelaria"
|
Dim AppNombre As String = "GlobalDTFraccionArancelaria"
|
||||||
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
|
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
Dim ObjGrales As New ClsGenerales
|
Dim ObjGrales As New ClsGenerales
|
||||||
If ObjGrales.GetSATFraccionArancelaria() Then HttpContext.Current.Application(AppNombre) = ObjGrales.DtResultados.AsEnumerable()
|
If ObjGrales.GetSATFraccionArancelaria() Then HttpContext.Current.Application(AppNombre) = ObjGrales.DtResultados.AsEnumerable()
|
||||||
ObjGrales.Dispose()
|
ObjGrales.Dispose()
|
||||||
@@ -597,27 +598,28 @@ Public Class ClsPaginas
|
|||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Property GlobalDTPSATUM() As DataTable
|
Public Shared Property GlobalDTPSATUM() As EnumerableRowCollection(Of DataRow)
|
||||||
Get
|
Get
|
||||||
If Application("GlobalDTPSATUM") Is Nothing Then
|
If HttpContext.Current.Application("GlobalDTPSATUM") Is Nothing Then
|
||||||
Dim ObjGrales As New ClsGenerales
|
Dim ObjGrales As New ClsGenerales
|
||||||
If ObjGrales.GetSATUnidadMedida Then Application("GlobalDTPSATUM") = ObjGrales.DtResultados.AsEnumerable()
|
If ObjGrales.GetSATUnidadMedida Then HttpContext.Current.Application("GlobalDTPSATUM") = ObjGrales.DtResultados.AsEnumerable()
|
||||||
ObjGrales.Dispose()
|
ObjGrales.Dispose()
|
||||||
End If
|
End If
|
||||||
|
Return DirectCast(HttpContext.Current.Application("GlobalDTPSATUM"), EnumerableRowCollection(Of DataRow))
|
||||||
|
|
||||||
'System.Data.EnumerableRowCollection
|
''System.Data.EnumerableRowCollection
|
||||||
If Not IsNothing(Application("GlobalDTPSATUM")) Then
|
'If Not IsNothing(HttpContext.Current.Application("GlobalDTPSATUM")) Then
|
||||||
If Application("GlobalDTPSATUM").GetType().IsSubclassOf(GetType(EnumerableRowCollection)) Then
|
' If HttpContext.Current.Application("GlobalDTPSATUM").GetType().IsSubclassOf(GetType(EnumerableRowCollection)) Then
|
||||||
Return DirectCast(Application("GlobalDTPSATUM"), EnumerableRowCollection(Of DataRow)).CopyToDataTable()
|
' Return DirectCast(HttpContext.Current.Application("GlobalDTPSATUM"), EnumerableRowCollection(Of DataRow))
|
||||||
Else
|
' Else
|
||||||
Return DirectCast(Application("GlobalDTPSATUM"), DataTable)
|
' Return DirectCast(HttpContext.Current.Application("GlobalDTPSATUM"), EnumerableRowCollection(Of DataRow))
|
||||||
End If
|
' End If
|
||||||
Else
|
'Else
|
||||||
Return Nothing
|
' Return Nothing
|
||||||
End If
|
'End If
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As EnumerableRowCollection(Of DataRow))
|
||||||
Application("GlobalDTPSATUM") = value
|
HttpContext.Current.Application("GlobalDTPSATUM") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTNomConceptosFunciones() As DataTable
|
Property GlobalDTNomConceptosFunciones() As DataTable
|
||||||
@@ -1127,43 +1129,45 @@ Public Class ClsPaginas
|
|||||||
Application("GlobalDTModulos") = value
|
Application("GlobalDTModulos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTMonedas() As DataTable
|
Public Shared Property GlobalDTMonedas() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTMonedas = DirectCast(Application("GlobalDTMonedas"), DataTable)
|
Dim AppNombre As String = "GlobalDTMonedas"
|
||||||
|
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
|
||||||
|
Dim ObjMonedas As New ClsMonedas
|
||||||
|
If ObjMonedas.GetMonedas() Then HttpContext.Current.Application(AppNombre) = ObjMonedas.DtResultados Else HttpContext.Current.Application(AppNombre) = Nothing
|
||||||
|
ObjMonedas.Dispose()
|
||||||
|
End If
|
||||||
|
GlobalDTMonedas = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Application("GlobalDTMonedas") = value
|
Dim AppNombre As String = "GlobalDTMonedas"
|
||||||
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTMonedasAlias() As DataTable
|
Property GlobalDTMonedasAlias() As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTMonedasAlias = DirectCast(Application("GlobalDTMonedasAlias"), DataTable)
|
Dim AppNombre As String = "GlobalDTMonedasAlias"
|
||||||
|
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
|
||||||
|
Dim ObjMonedas As New ClsMonedas
|
||||||
|
If ObjMonedas.GetMonedasAlias() Then HttpContext.Current.Application(AppNombre) = ObjMonedas.DtResultados Else HttpContext.Current.Application(AppNombre) = Nothing
|
||||||
|
ObjMonedas.Dispose()
|
||||||
|
End If
|
||||||
|
GlobalDTMonedasAlias = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Application("GlobalDTMonedasAlias") = value
|
Dim AppNombre As String = "GlobalDTMonedasAlias"
|
||||||
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
|
|
||||||
End Property
|
End Property
|
||||||
'Property GlobalDTSucursales(Optional CveEmpresa As Integer = -1) As DataTable
|
|
||||||
' Get
|
|
||||||
' If CveEmpresa <> -1 Then
|
Public Shared Property GlobalDTSATUsosCFDI(Optional EsPersonaFisica As Integer = -1, Optional RegimenFiscalReceptor As String = "-1") As DataTable
|
||||||
' Dim Dv As New DataView(DirectCast(Application("GlobalDTSucursales"), DataTable), String.Format("CveEmpresa = {0}", CveEmpresa), " Sucursal", DataViewRowState.CurrentRows)
|
|
||||||
' GlobalDTSucursales = Dv.ToTable
|
|
||||||
' Dv.Dispose()
|
|
||||||
' Else
|
|
||||||
' GlobalDTSucursales = DirectCast(Application("GlobalDTSucursales"), DataTable)
|
|
||||||
' End If
|
|
||||||
' End Get
|
|
||||||
' Set(value As DataTable)
|
|
||||||
' Application("GlobalDTSucursales") = value
|
|
||||||
' End Set
|
|
||||||
'End Property
|
|
||||||
Property GlobalDTSATUsosCFDI(Optional EsPersonaFisica As Integer = -1, Optional RegimenFiscalReceptor As String = "-1") As DataTable
|
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = "GlobalDTSATUsosCFDI"
|
Dim AppNombre As String = "GlobalDTSATUsosCFDI"
|
||||||
'sino existe, recarga los datos
|
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Then
|
||||||
If DirectCast(Application(AppNombre), DataTable) Is Nothing Then
|
|
||||||
Dim ObjGrales As New ClsGenerales
|
Dim ObjGrales As New ClsGenerales
|
||||||
If ObjGrales.GetSATUsosCFDI() Then Application(AppNombre) = ObjGrales.DtResultados
|
If ObjGrales.GetSATUsosCFDI() Then HttpContext.Current.Application(AppNombre) = ObjGrales.DtResultados
|
||||||
ObjGrales.Dispose()
|
ObjGrales.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -1175,40 +1179,40 @@ Public Class ClsPaginas
|
|||||||
Tipo.AppendFormat("AND RegimenFiscalReceptor LIKE '%{0}%'", RegimenFiscalReceptor)
|
Tipo.AppendFormat("AND RegimenFiscalReceptor LIKE '%{0}%'", RegimenFiscalReceptor)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), Tipo.ToString(), " UsoCFDIDescripcion", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Tipo.ToString(), " UsoCFDIDescripcion", DataViewRowState.CurrentRows)
|
||||||
GlobalDTSATUsosCFDI = Dv.ToTable
|
GlobalDTSATUsosCFDI = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
Else
|
Else
|
||||||
GlobalDTSATUsosCFDI = DirectCast(Application(AppNombre), DataTable)
|
GlobalDTSATUsosCFDI = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Dim AppNombre As String = "GlobalDTSATUsosCFDI"
|
Dim AppNombre As String = "GlobalDTSATUsosCFDI"
|
||||||
Application(AppNombre) = value
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Property GlobalDTUnidadesMedida(Optional CveEmpresa As Integer = -1) As DataTable
|
Public Shared Property GlobalDTUnidadesMedida(Optional CveEmpresa As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = String.Format("GlobalDTUnidadesMedida-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTUnidadesMedida-{0}", CveEmpresa)
|
||||||
'sino existe, recarga los datos
|
'sino existe, recarga los datos
|
||||||
If DirectCast(Application(AppNombre), DataTable) Is Nothing Or (DirectCast(Application(AppNombre), DataTable) IsNot Nothing AndAlso DirectCast(Application(AppNombre), DataTable).Rows.Count = 0) Then
|
If DirectCast(HttpContext.Current.Application(AppNombre), DataTable) Is Nothing Or (DirectCast(HttpContext.Current.Application(AppNombre), DataTable) IsNot Nothing AndAlso DirectCast(HttpContext.Current.Application(AppNombre), DataTable).Rows.Count = 0) Then
|
||||||
Dim ObjUnidadesMedida As New ClsUnidadesMedida()
|
Dim ObjUnidadesMedida As New ClsUnidadesMedida()
|
||||||
If ObjUnidadesMedida.GetUnidadesMedida(CveEmpresa) Then Application(AppNombre) = ObjUnidadesMedida.DtResultados
|
If ObjUnidadesMedida.GetUnidadesMedida(CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjUnidadesMedida.DtResultados
|
||||||
ObjUnidadesMedida.Dispose()
|
ObjUnidadesMedida.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CveEmpresa <> -1 Then
|
If CveEmpresa <> -1 Then
|
||||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), String.Format("CveEmpresa = {0}", CveEmpresa), " UnidadMedida", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), String.Format("CveEmpresa = {0}", CveEmpresa), " UnidadMedida", DataViewRowState.CurrentRows)
|
||||||
GlobalDTUnidadesMedida = Dv.ToTable
|
GlobalDTUnidadesMedida = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
Else
|
Else
|
||||||
GlobalDTUnidadesMedida = DirectCast(Application(AppNombre), DataTable)
|
GlobalDTUnidadesMedida = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
End If
|
End If
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Dim AppNombre As String = String.Format("GlobalDTUnidadesMedida-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTUnidadesMedida-{0}", CveEmpresa)
|
||||||
Application(AppNombre) = value
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTUnidadesMedidaAlias(Optional CveEmpresa As Integer = -1) As DataTable
|
Property GlobalDTUnidadesMedidaAlias(Optional CveEmpresa As Integer = -1) As DataTable
|
||||||
@@ -2051,7 +2055,6 @@ Public Class ClsPaginas
|
|||||||
ObjClientes.Dispose()
|
ObjClientes.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If CveEmpresa <> -1 Then
|
If CveEmpresa <> -1 Then
|
||||||
|
|
||||||
Dim StrSQL As New StringBuilder
|
Dim StrSQL As New StringBuilder
|
||||||
@@ -4133,30 +4136,45 @@ Public Class ClsPaginas
|
|||||||
Application(AppNombre) = value
|
Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Property GlobalDTAcumTiposDefecto() As DataTable
|
Public Shared Property GlobalDTAcumTiposDefecto(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
GlobalDTAcumTiposDefecto = DirectCast(Application("GlobalDTAcumTiposDefecto"), DataTable)
|
Dim AppNombre As String = String.Format("GlobalDTAcumTiposDefecto-{0}", CveEmpresa)
|
||||||
End Get
|
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
Set(value As DataTable)
|
Dim ObjAcumuladores As New ClsAcumuladores()
|
||||||
Application("GlobalDTAcumTiposDefecto") = value
|
If ObjAcumuladores.TiposDefectoGet(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjAcumuladores.DtResultados
|
||||||
End Set
|
ObjAcumuladores.Dispose()
|
||||||
End Property
|
End If
|
||||||
Property GlobalDTAcumTiposUso() As DataTable
|
GlobalDTAcumTiposDefecto = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
Get
|
|
||||||
GlobalDTAcumTiposUso = DirectCast(Application("GlobalDTAcumTiposUso"), DataTable)
|
|
||||||
End Get
|
|
||||||
Set(value As DataTable)
|
|
||||||
Application("GlobalDTAcumTiposUso") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
Dim AppNombre As String = String.Format("GlobalDTAcumTiposDefecto-{0}", CveEmpresa)
|
||||||
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Public Shared Property GlobalDTAcumTiposUso(CveEmpresa As Integer) As DataTable
|
||||||
|
Get
|
||||||
|
Dim AppNombre As String = String.Format("GlobalDTAcumTiposUso-{0}", CveEmpresa)
|
||||||
|
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
|
Dim ObjAcumuladores As New ClsAcumuladores()
|
||||||
|
If ObjAcumuladores.TiposUsoGet(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjAcumuladores.DtResultados
|
||||||
|
ObjAcumuladores.Dispose()
|
||||||
|
End If
|
||||||
|
GlobalDTAcumTiposUso = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
Dim AppNombre As String = String.Format("GlobalDTAcumTiposUso-{0}", CveEmpresa)
|
||||||
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Property GlobalDTAcumGarantiasMesesTipoUso(CveEmpresa As Integer, CveMarca As Integer) As DataTable
|
Property GlobalDTAcumGarantiasMesesTipoUso(CveEmpresa As Integer, CveMarca As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = String.Format("GlobalDTAcumGarantiasMesesTipoUso-{0}", CveEmpresa)
|
Dim AppNombre As String = String.Format("GlobalDTAcumGarantiasMesesTipoUso-{0}", CveEmpresa)
|
||||||
If Application(AppNombre) Is Nothing Then
|
If Application(AppNombre) Is Nothing Then
|
||||||
Dim ObjAcumuladores As New ClsAcumuladores()
|
Dim ObjAcumuladores As New ClsAcumuladores()
|
||||||
If ObjAcumuladores.GarantiasMesesGet(-1, -1) Then Application(AppNombre) = ObjAcumuladores.DtResultados.FiltraParametros("", DistinctColumns:={"CveMarca", "CveTipoUso", "TipoUso"})
|
If ObjAcumuladores.GarantiasMesesGet(-1, CveEmpresa) Then Application(AppNombre) = ObjAcumuladores.DtResultados.FiltraParametros("", DistinctColumns:={"CveMarca", "CveTipoUso", "TipoUso"})
|
||||||
ObjAcumuladores.Dispose()
|
ObjAcumuladores.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -4191,17 +4209,6 @@ Public Class ClsPaginas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'If CveMarca <> -1 Then
|
|
||||||
' Dim Str As StringBuilder = New StringBuilder()
|
|
||||||
' If CveMarca <> -1 Then Str.AppendFormat("CveMarca = {0}", CveMarca)
|
|
||||||
|
|
||||||
' Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
|
||||||
' GlobalDTCultivosCuadro = Dv.ToTable
|
|
||||||
' Dv.Dispose()
|
|
||||||
'Else
|
|
||||||
|
|
||||||
'End If
|
|
||||||
|
|
||||||
GlobalDTCultivosCuadro = DirectCast(Application(AppNombre), DataTable)
|
GlobalDTCultivosCuadro = DirectCast(Application(AppNombre), DataTable)
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
@@ -4211,79 +4218,23 @@ Public Class ClsPaginas
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Shared Property GlobalDTAcumTamaños(CveEmpresa As Integer) As DataTable
|
||||||
|
|
||||||
|
|
||||||
Property GlobalDTAcumTamaños() As DataTable
|
|
||||||
Get
|
Get
|
||||||
GlobalDTAcumTamaños = DirectCast(Application("GlobalDTAcumTamaños"), DataTable)
|
Dim AppNombre As String = String.Format("GlobalDTAcumTamaños-{0}", CveEmpresa)
|
||||||
|
|
||||||
|
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
|
Using ObjAcumuladores As New ClsAcumuladores()
|
||||||
|
If ObjAcumuladores.TamañoGet(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjAcumuladores.DtResultados Else HttpContext.Current.Application(AppNombre) = Nothing
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
GlobalDTAcumTamaños = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Application("GlobalDTAcumTamaños") = value
|
Dim AppNombre As String = String.Format("GlobalDTAcumTamaños-{0}", CveEmpresa)
|
||||||
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#Region "GDT'S RASTREO"
|
|
||||||
Property GlobalDTDispositivos(CveCliente As Integer) As DataTable
|
|
||||||
Get
|
|
||||||
Dim Str As StringBuilder = New StringBuilder()
|
|
||||||
|
|
||||||
If CveCliente <> -1 Then Str.AppendFormat(" {0} CveCliente = {1}", If(Str.Length > 0, "AND", ""), CveCliente)
|
|
||||||
|
|
||||||
|
|
||||||
If CveCliente <> -1 Then
|
|
||||||
Dim Dv As New DataView(DirectCast(Application("GlobalDTDispositivos"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
|
||||||
GlobalDTDispositivos = Dv.ToTable
|
|
||||||
Dv.Dispose()
|
|
||||||
Else
|
|
||||||
GlobalDTDispositivos = DirectCast(Application("GlobalDTDispositivos"), DataTable)
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Get
|
|
||||||
Set(value As DataTable)
|
|
||||||
Application("GlobalDTDispositivos") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub RecargaGlobalDTDispositivos(GPS As ClsGPS)
|
|
||||||
If GPS.DispositivosGet(-1, -1, -1, -1) Then
|
|
||||||
GlobalDTDispositivos(-1) = GPS.DtResultados
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Property GlobalDTDispositivosUsuarios(CveCliente As Integer, Optional CveUsuario As Integer = -1) As DataTable
|
|
||||||
Get
|
|
||||||
If Application("GlobalDTDispositivosUsuarios") Is Nothing Then
|
|
||||||
Dim ObjGPS As New ClsGPS
|
|
||||||
If ObjGPS.DispositivosUsuariosGet(-1, -1, -1, -1, -1) Then
|
|
||||||
Application("GlobalDTDispositivosUsuarios") = ObjGPS.DtResultados
|
|
||||||
End If
|
|
||||||
ObjGPS.Dispose()
|
|
||||||
End If
|
|
||||||
|
|
||||||
Dim Str As StringBuilder = New StringBuilder()
|
|
||||||
|
|
||||||
If CveUsuario <> -1 Then Str.AppendFormat("CveUsuario = {0}", CveUsuario)
|
|
||||||
If CveCliente <> -1 Then Str.AppendFormat(" {0} CveCliente = {1}", If(Str.Length > 0, "AND", ""), CveCliente)
|
|
||||||
|
|
||||||
|
|
||||||
If CveUsuario <> -1 OrElse CveCliente <> -1 Then
|
|
||||||
Dim Dv As New DataView(DirectCast(Application("GlobalDTDispositivosUsuarios"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
|
||||||
GlobalDTDispositivosUsuarios = Dv.ToTable
|
|
||||||
Dv.Dispose()
|
|
||||||
Else
|
|
||||||
GlobalDTDispositivosUsuarios = DirectCast(Application("GlobalDTDispositivosUsuarios"), DataTable)
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Get
|
|
||||||
Set(value As DataTable)
|
|
||||||
Application("GlobalDTDispositivosUsuarios") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Property GlobalDTClientesVendedoresSubProyectos(CveEmpresa As Integer, Optional CveCliente As Integer = -1, Optional CveSubProyecto As Integer = -1) As DataTable
|
Property GlobalDTClientesVendedoresSubProyectos(CveEmpresa As Integer, Optional CveCliente As Integer = -1, Optional CveSubProyecto As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -4345,6 +4296,66 @@ Public Class ClsPaginas
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
#Region "GDT'S RASTREO"
|
||||||
|
Property GlobalDTDispositivos(CveCliente As Integer) As DataTable
|
||||||
|
Get
|
||||||
|
Dim Str As StringBuilder = New StringBuilder()
|
||||||
|
|
||||||
|
If CveCliente <> -1 Then Str.AppendFormat(" {0} CveCliente = {1}", If(Str.Length > 0, "AND", ""), CveCliente)
|
||||||
|
|
||||||
|
|
||||||
|
If CveCliente <> -1 Then
|
||||||
|
Dim Dv As New DataView(DirectCast(Application("GlobalDTDispositivos"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||||
|
GlobalDTDispositivos = Dv.ToTable
|
||||||
|
Dv.Dispose()
|
||||||
|
Else
|
||||||
|
GlobalDTDispositivos = DirectCast(Application("GlobalDTDispositivos"), DataTable)
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
Application("GlobalDTDispositivos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Sub RecargaGlobalDTDispositivos(GPS As ClsGPS)
|
||||||
|
If GPS.DispositivosGet(-1, -1, -1, -1) Then
|
||||||
|
GlobalDTDispositivos(-1) = GPS.DtResultados
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Property GlobalDTDispositivosUsuarios(CveCliente As Integer, Optional CveUsuario As Integer = -1) As DataTable
|
||||||
|
Get
|
||||||
|
If Application("GlobalDTDispositivosUsuarios") Is Nothing Then
|
||||||
|
Dim ObjGPS As New ClsGPS
|
||||||
|
If ObjGPS.DispositivosUsuariosGet(-1, -1, -1, -1, -1) Then
|
||||||
|
Application("GlobalDTDispositivosUsuarios") = ObjGPS.DtResultados
|
||||||
|
End If
|
||||||
|
ObjGPS.Dispose()
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim Str As StringBuilder = New StringBuilder()
|
||||||
|
|
||||||
|
If CveUsuario <> -1 Then Str.AppendFormat("CveUsuario = {0}", CveUsuario)
|
||||||
|
If CveCliente <> -1 Then Str.AppendFormat(" {0} CveCliente = {1}", If(Str.Length > 0, "AND", ""), CveCliente)
|
||||||
|
|
||||||
|
|
||||||
|
If CveUsuario <> -1 OrElse CveCliente <> -1 Then
|
||||||
|
Dim Dv As New DataView(DirectCast(Application("GlobalDTDispositivosUsuarios"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||||
|
GlobalDTDispositivosUsuarios = Dv.ToTable
|
||||||
|
Dv.Dispose()
|
||||||
|
Else
|
||||||
|
GlobalDTDispositivosUsuarios = DirectCast(Application("GlobalDTDispositivosUsuarios"), DataTable)
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
Application("GlobalDTDispositivosUsuarios") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
Public Enum SisParametros As Integer
|
Public Enum SisParametros As Integer
|
||||||
URL = 1
|
URL = 1
|
||||||
DirectorioSitio = 2
|
DirectorioSitio = 2
|
||||||
@@ -10514,8 +10525,8 @@ Public Class ClsPaginas
|
|||||||
If Pago.TipoPago = "I" AndAlso Not ErrorMovtos Then ' I N G R E S O S X C O M P R O B A R
|
If Pago.TipoPago = "I" AndAlso Not ErrorMovtos Then ' I N G R E S O S X C O M P R O B A R
|
||||||
Dim Ret As New ConceptosRetenciones
|
Dim Ret As New ConceptosRetenciones
|
||||||
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
If ObjConta.GetRetCuenta(66, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContableAcreditable = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSAcreditable").ToString.ToEntero
|
'If ObjConta.GetRetCuenta(66, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContableAcreditable = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSAcreditable").ToString.ToEntero
|
||||||
If Pago.CveMonedaPago > 1 AndAlso ObjConta.GetRetCuenta(207, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContablexAcreditar = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
|
'If Pago.CveMonedaPago > 1 AndAlso ObjConta.GetRetCuenta(207, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContablexAcreditar = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa.Contiene(119) Then
|
If UsuarioActual.CveEmpresa.Contiene(119) Then
|
||||||
If Pago.FechaDocumentoRelacionado.Year <= 2017 Then
|
If Pago.FechaDocumentoRelacionado.Year <= 2017 Then
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ Public Class ClsVentas
|
|||||||
Optional CveTipoAmortizacionAnticipo As Integer = -1, Optional CveVentaRelacion As Integer = -1, Optional ImporteRelacion As Decimal = -1, Optional CveEmpresaCRM As Integer = -1, Optional EsInterno As Integer = -1, Optional CveAcercamientoCRM As Integer = -1,
|
Optional CveTipoAmortizacionAnticipo As Integer = -1, Optional CveVentaRelacion As Integer = -1, Optional ImporteRelacion As Decimal = -1, Optional CveEmpresaCRM As Integer = -1, Optional EsInterno As Integer = -1, Optional CveAcercamientoCRM As Integer = -1,
|
||||||
Optional DiasCredito As Integer = 0, Optional EsDiasCreditoFijo As Boolean = False, Optional AnticipoEspecial As Boolean = False, Optional Kilometraje As Double = 0, Optional EsAmortizacion As Boolean = False, Optional CveTipoRetencion As Integer = 0,
|
Optional DiasCredito As Integer = 0, Optional EsDiasCreditoFijo As Boolean = False, Optional AnticipoEspecial As Boolean = False, Optional Kilometraje As Double = 0, Optional EsAmortizacion As Boolean = False, Optional CveTipoRetencion As Integer = 0,
|
||||||
Optional CorreoNotificacion As String = "", Optional FormaPaqueteria As Integer = 1, Optional FacturarSucursal As Boolean = False, Optional VentaDesglosaIEPS As Boolean = False, Optional ServicioDomicilio As Boolean = False, Optional RFCReceptor As String = "", Optional Adjunto As String = "-1",
|
Optional CorreoNotificacion As String = "", Optional FormaPaqueteria As Integer = 1, Optional FacturarSucursal As Boolean = False, Optional VentaDesglosaIEPS As Boolean = False, Optional ServicioDomicilio As Boolean = False, Optional RFCReceptor As String = "", Optional Adjunto As String = "-1",
|
||||||
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1) As Boolean
|
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1, Optional DescripcionVenta As String = "") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_VentasAdd")
|
DataAdapter("PA_VentasAdd")
|
||||||
@@ -517,6 +517,7 @@ Public Class ClsVentas
|
|||||||
.Add("@DevolucionImportePagado", SqlDbType.Money).Value = DevolucionImportePagado
|
.Add("@DevolucionImportePagado", SqlDbType.Money).Value = DevolucionImportePagado
|
||||||
.Add("@EsGarantia", SqlDbType.Bit).Value = EsGarantia
|
.Add("@EsGarantia", SqlDbType.Bit).Value = EsGarantia
|
||||||
.Add("@CveLineaAdicional", SqlDbType.Int).Value = CveLineaAdicional
|
.Add("@CveLineaAdicional", SqlDbType.Int).Value = CveLineaAdicional
|
||||||
|
.Add("@DescripcionVenta", SqlDbType.VarChar).Value = DescripcionVenta
|
||||||
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue
|
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue
|
||||||
End With
|
End With
|
||||||
'SqlTypes.SqlDateTime.Null
|
'SqlTypes.SqlDateTime.Null
|
||||||
|
|||||||
2360
App_Code/Modelos.vb
2360
App_Code/Modelos.vb
File diff suppressed because it is too large
Load Diff
@@ -383,7 +383,10 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
'TAREAS PROGRAMADAS
|
'TAREAS PROGRAMADAS
|
||||||
Select Case Metodo
|
Select Case Metodo
|
||||||
Case "CrearActualizarProductos"
|
Case "CrearActualizarProductos"
|
||||||
|
|
||||||
|
GuardaLogAD("NP-Inicia actualizacion de productos", "LogE141")
|
||||||
respuesta = CrearActualizarProductos(If(FiltrarTodos = "1", True, False))
|
respuesta = CrearActualizarProductos(If(FiltrarTodos = "1", True, False))
|
||||||
|
GuardaLogAD("NP-Finaliza actualizacion de productos", "LogE141")
|
||||||
If respuesta Then
|
If respuesta Then
|
||||||
retorno = "True"
|
retorno = "True"
|
||||||
Else
|
Else
|
||||||
@@ -392,7 +395,9 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Case "CrearActualizarProductosJson"
|
Case "CrearActualizarProductosJson"
|
||||||
retorno = CrearActualizarProductosJson(If(FiltrarTodos = "1", True, False))
|
retorno = CrearActualizarProductosJson(If(FiltrarTodos = "1", True, False))
|
||||||
Case "ActualizarPrecios"
|
Case "ActualizarPrecios"
|
||||||
|
GuardaLogAD("AP-Inicia actualizacion de precios", "LogE141")
|
||||||
respuesta = ActualizarPrecios(If(FiltrarTodos = "1", True, False))
|
respuesta = ActualizarPrecios(If(FiltrarTodos = "1", True, False))
|
||||||
|
GuardaLogAD("AP-Finaliza actualizacion de precios", "LogE141")
|
||||||
If respuesta Then
|
If respuesta Then
|
||||||
retorno = "True"
|
retorno = "True"
|
||||||
Else
|
Else
|
||||||
@@ -401,7 +406,9 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Case "ActualizarPreciosJson"
|
Case "ActualizarPreciosJson"
|
||||||
retorno = ActualizarPreciosJson(If(FiltrarTodos = "1", True, False))
|
retorno = ActualizarPreciosJson(If(FiltrarTodos = "1", True, False))
|
||||||
Case "ActualizarExistencias"
|
Case "ActualizarExistencias"
|
||||||
|
GuardaLogAD("AE-Inicia actualizacion de existencias", "LogE141")
|
||||||
respuesta = ActualizarExistencias()
|
respuesta = ActualizarExistencias()
|
||||||
|
GuardaLogAD("AE-Finaliza actualizacion de existencias", "LogE141")
|
||||||
If respuesta Then
|
If respuesta Then
|
||||||
retorno = "True"
|
retorno = "True"
|
||||||
Else
|
Else
|
||||||
@@ -410,7 +417,9 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Case "ActualizarExistenciasJson"
|
Case "ActualizarExistenciasJson"
|
||||||
retorno = ActualizarExistenciasJson(If(FiltrarTodos = "1", True, False))
|
retorno = ActualizarExistenciasJson(If(FiltrarTodos = "1", True, False))
|
||||||
Case "ActualizarVendedores"
|
Case "ActualizarVendedores"
|
||||||
|
GuardaLogAD("AV-Inicia actualizacion de vendedores", "LogE141")
|
||||||
respuesta = ActualizarVendedores(If(FiltrarTodos = "1", True, False))
|
respuesta = ActualizarVendedores(If(FiltrarTodos = "1", True, False))
|
||||||
|
GuardaLogAD("AV-Finaliza actualizacion de vendedores", "LogE141")
|
||||||
If respuesta Then
|
If respuesta Then
|
||||||
retorno = "True"
|
retorno = "True"
|
||||||
Else
|
Else
|
||||||
@@ -1923,7 +1932,12 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
GuardaLogAD("NP-Creacion/actualizacion de productos exitosa", "LogE141")
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"NP-No se pudo realizar la Creacion/actualizacion de productos ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"NP-No se pudo realizar la Creacion/actualizacion de productos ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -1958,7 +1972,12 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
GuardaLogAD("NP-Creacion/actualizacion de productos exitosa", "LogE141")
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"NP-No se pudo realizar la Creacion/actualizacion de productos ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"NP-No se pudo realizar la Creacion/actualizacion de productos ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Threading.Thread.Sleep(1000)
|
Threading.Thread.Sleep(1000)
|
||||||
@@ -2071,8 +2090,13 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
If IsValidJson(resp) Then
|
If IsValidJson(resp) Then
|
||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
|
GuardaLogAD("AP-Actualizacion de precios exitosa", "LogE141")
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AP-No se pudo actualizar precios ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AP-No se pudo actualizar precios ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -2103,7 +2127,12 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
GuardaLogAD("AP-Actualizacion de precios exitosa", "LogE141")
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AP-No se pudo actualizar precios ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AP-No se pudo actualizar precios ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Threading.Thread.Sleep(1000)
|
Threading.Thread.Sleep(1000)
|
||||||
@@ -2186,7 +2215,12 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
GuardaLogAD("AE-Actualizacion de existencias exitosa", "LogE141")
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AE-No se pudo actualizar existencias ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AE-No se pudo actualizar existencias ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -2217,7 +2251,12 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
GuardaLogAD("AE-Actualizacion de existencias exitosa", "LogE141")
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AE-No se pudo actualizar existencias ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AE-No se pudo actualizar existencias ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
Threading.Thread.Sleep(1000)
|
Threading.Thread.Sleep(1000)
|
||||||
End While
|
End While
|
||||||
@@ -2338,7 +2377,12 @@ Public Class E141 : Implements IHttpHandler
|
|||||||
Dim respuesta = JObject.Parse(resp)
|
Dim respuesta = JObject.Parse(resp)
|
||||||
If respuesta("status").ToString() = "success" Then
|
If respuesta("status").ToString() = "success" Then
|
||||||
CountPeticionesExitosas += 1
|
CountPeticionesExitosas += 1
|
||||||
|
GuardaLogAD("AV-Actualizacion de vendedores exitosa", "LogE141")
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AV-No se pudo actualizar vendedores ${respuesta.ToString()}", "LogE141")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GuardaLogAD($"AV-No se pudo actualizar vendedores ${resp}", "LogE141")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -1232,14 +1232,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Private Function GETUMSAT(ByVal context As HttpContext) As String
|
Private Function GETUMSAT(ByVal context As HttpContext) As String
|
||||||
Dim retorno As String = ""
|
Dim retorno As String = ""
|
||||||
|
|
||||||
|
Dim DTUM = ClsPaginas.GlobalDTPSATUM 'DirectCast(context.Application("GlobalDTPSATUM"), EnumerableRowCollection(Of DataRow))
|
||||||
If context.Application("GlobalDTPSATUM") Is Nothing Then
|
|
||||||
Dim ObjGrales As New ClsGenerales
|
|
||||||
If ObjGrales.GetSATUnidadMedida Then context.Application("GlobalDTPSATUM") = ObjGrales.DtResultados.AsEnumerable() Else context.Application("GlobalDTPSATUM") = Nothing
|
|
||||||
ObjGrales.Dispose()
|
|
||||||
End If
|
|
||||||
|
|
||||||
Dim DTUM = DirectCast(context.Application("GlobalDTPSATUM"), EnumerableRowCollection(Of DataRow))
|
|
||||||
Dim DtPSRetorno As DataTable
|
Dim DtPSRetorno As DataTable
|
||||||
|
|
||||||
Dim Name = IfNull(context.Request("Name"), "-1").ToString
|
Dim Name = IfNull(context.Request("Name"), "-1").ToString
|
||||||
|
|||||||
@@ -362,6 +362,14 @@
|
|||||||
<asp:ListItem Text="Sin lineas adicionales" Value="0"></asp:ListItem>
|
<asp:ListItem Text="Sin lineas adicionales" Value="0"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
||||||
|
Contrato:
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlContrato" runat="server" AppendDataBoundItems="true" DataTextField="TituloInfo" DataValueField="CveContrato" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -172,6 +172,20 @@ Partial Class RepCxC
|
|||||||
' Next
|
' Next
|
||||||
'End If
|
'End If
|
||||||
'ObjSisUsuarios.Dispose()
|
'ObjSisUsuarios.Dispose()
|
||||||
|
If UsuarioActual.CveEmpresa = 13 Then
|
||||||
|
CargaContratos()
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaContratos()
|
||||||
|
Dim ObjContratos As New ClsContratos
|
||||||
|
If ObjContratos.GetContratos(-1, UsuarioActual.CveEmpresa, CveCliente:=-1) Then
|
||||||
|
DdlContrato.DataSource = ObjContratos.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjContratos.Dispose()
|
||||||
|
DdlContrato.DataBind()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
'C A R G A - N O M
|
'C A R G A - N O M
|
||||||
|
|
||||||
Using ObjNom As New ClsNominas()
|
Using ObjNom As New ClsNominas()
|
||||||
If ObjNom.GetConceptos(-1) Then Application("GlobalDTNomConceptos") = ObjNom.DtResultados Else Application("GlobalDTNomConceptos") = Nothing
|
'If ObjNom.GetConceptos(-1) Then Application("GlobalDTNomConceptos") = ObjNom.DtResultados Else Application("GlobalDTNomConceptos") = Nothing
|
||||||
If ObjNom.GetConceptosFunciones() Then Application("GlobalDTNomConceptosFunciones") = ObjNom.DtResultados Else Application("GlobalDTNomConceptosFunciones") = Nothing
|
If ObjNom.GetConceptosFunciones() Then Application("GlobalDTNomConceptosFunciones") = ObjNom.DtResultados Else Application("GlobalDTNomConceptosFunciones") = Nothing
|
||||||
If ObjNom.GetTiposPeriodos() Then Application("GlobalDTTipoPeriodo") = ObjNom.DtResultados Else Application("GlobalDTTipoPeriodo") = Nothing
|
If ObjNom.GetTiposPeriodos() Then Application("GlobalDTTipoPeriodo") = ObjNom.DtResultados Else Application("GlobalDTTipoPeriodo") = Nothing
|
||||||
If ObjNom.GetPeriodos(-1, -1, -1, -1, -1) Then Application("GlobalDTNominasPeriodos") = ObjNom.DtResultados Else Application("GlobalDTNominasPeriodos") = Nothing
|
If ObjNom.GetPeriodos(-1, -1, -1, -1, -1) Then Application("GlobalDTNominasPeriodos") = ObjNom.DtResultados Else Application("GlobalDTNominasPeriodos") = Nothing
|
||||||
|
|||||||
@@ -3968,6 +3968,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
ObjConta.RollBack()
|
||||||
ObjInventario.Dispose()
|
ObjInventario.Dispose()
|
||||||
ObjConta.Dispose()
|
ObjConta.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
Dim CveTamanio As Integer = 1
|
Dim CveTamanio As Integer = 1
|
||||||
Dim CveUM As Integer = -1
|
Dim CveUM As Integer = -1
|
||||||
Dim PU As Decimal = 0
|
Dim PU As Decimal = 0
|
||||||
Dim RowTamanio As DataRow = GlobalDTAcumTamaños.FiltroPrimero($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo > 0 AND CvePSCargo={CvePS}")
|
Dim RowTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($" CvePSCargo > 0 AND CvePSCargo={CvePS}")
|
||||||
Dim CodigoPS As String = ""
|
Dim CodigoPS As String = ""
|
||||||
Dim UnidaMedida As String = ""
|
Dim UnidaMedida As String = ""
|
||||||
|
|
||||||
@@ -1044,8 +1044,8 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim PU As Decimal = 0
|
Dim PU As Decimal = 0
|
||||||
If GlobalDTAcumTamaños.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo > 0 AND CvePSCargo={DdlProducto2.SelectedValue}").Rows.Count > 0 Then
|
If GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltraParametros($" CvePSCargo > 0 AND CvePSCargo={DdlProducto2.SelectedValue}").Rows.Count > 0 Then
|
||||||
PU = GlobalDTAcumTamaños.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo > 0 AND CvePSCargo={DdlProducto2.SelectedValue}").Rows(0)("Cargo").ToString.ToDecimal
|
PU = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltraParametros($" CvePSCargo > 0 AND CvePSCargo={DdlProducto2.SelectedValue}").Rows(0)("Cargo").ToString.ToDecimal
|
||||||
End If
|
End If
|
||||||
|
|
||||||
AddNew(DdlProducto2.SelectedValue.ToEntero, DdlProducto2.SelectedItem.Text, DdlUnidad.SelectedValue.ToEntero, DdlUnidad.SelectedItem.Text, txtCantidad.Text.ToDouble, PU,
|
AddNew(DdlProducto2.SelectedValue.ToEntero, DdlProducto2.SelectedItem.Text, DdlUnidad.SelectedValue.ToEntero, DdlUnidad.SelectedItem.Text, txtCantidad.Text.ToDouble, PU,
|
||||||
@@ -1318,7 +1318,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
|
|
||||||
If EsDistribuidor AndAlso RBLOpcion.SelectedValue.ToEntero = 42 AndAlso Dr("CveTamaño").ToString.ToEntero > 0 Then
|
If EsDistribuidor AndAlso RBLOpcion.SelectedValue.ToEntero = 42 AndAlso Dr("CveTamaño").ToString.ToEntero > 0 Then
|
||||||
|
|
||||||
Dim DrTamanio As DataRow = GlobalDTAcumTamaños().FiltroPrimero($"CveTamaño={Dr("CveTamaño").ToString.ToEntero}")
|
Dim DrTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($"CveTamaño={Dr("CveTamaño").ToString.ToEntero}")
|
||||||
If DrTamanio IsNot Nothing Then
|
If DrTamanio IsNot Nothing Then
|
||||||
Dim Cargo As Decimal = DrTamanio("Cargo").ToString().ToDecimal() * Dr("Cantidad").ToString.ToDecimal()
|
Dim Cargo As Decimal = DrTamanio("Cargo").ToString().ToDecimal() * Dr("Cantidad").ToString.ToDecimal()
|
||||||
Dim Bonificacion As Decimal = DrTamanio("Bonificacion").ToString().ToDecimal() * Dr("Cantidad").ToString.ToDecimal()
|
Dim Bonificacion As Decimal = DrTamanio("Bonificacion").ToString().ToDecimal() * Dr("Cantidad").ToString.ToDecimal()
|
||||||
@@ -2815,7 +2815,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
IVA = SubTotal * PorcentajeIVA
|
IVA = SubTotal * PorcentajeIVA
|
||||||
Dim Descuento As Decimal = 0
|
Dim Descuento As Decimal = 0
|
||||||
|
|
||||||
Dim ImporteCargo As Decimal = GlobalDTAcumTamaños().FiltroPrimeroValor("Cargo", String.Format("CveTamaño = {0} AND CveEmpresa = {1}", CveTamaño, UsuarioActual.CveEmpresa)).ToDecimal()
|
Dim ImporteCargo As Decimal = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimeroValor("Cargo", String.Format("CveTamaño = {0} ", CveTamaño)).ToDecimal()
|
||||||
|
|
||||||
'SI ES AJUSTE O GARANTIA SOLO DEBE SUMAR EL IMPORTE DE LA GARANTIA SI NO RECIBIO USADO
|
'SI ES AJUSTE O GARANTIA SOLO DEBE SUMAR EL IMPORTE DE LA GARANTIA SI NO RECIBIO USADO
|
||||||
If RblUsadosAjuste.SelectedValue = "1" AndAlso ImporteCargo <= 0 Then
|
If RblUsadosAjuste.SelectedValue = "1" AndAlso ImporteCargo <= 0 Then
|
||||||
@@ -3207,7 +3207,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
|
|
||||||
Protected Sub CargaTipoDeUso()
|
Protected Sub CargaTipoDeUso()
|
||||||
DdlTipoUso.Items.Clear()
|
DdlTipoUso.Items.Clear()
|
||||||
DdlTipoUso.DataSource = GlobalDTAcumTiposUso.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
DdlTipoUso.DataSource = GlobalDTAcumTiposUso(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlTipoUso.DataBind()
|
DdlTipoUso.DataBind()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -3217,7 +3217,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub CargaTipoDefecto()
|
Protected Sub CargaTipoDefecto()
|
||||||
DdlTipoDefecto.DataSource = GlobalDTAcumTiposDefecto.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
DdlTipoDefecto.DataSource = GlobalDTAcumTiposDefecto(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoDefecto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlTipoDefecto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlTipoDefecto.DataBind()
|
DdlTipoDefecto.DataBind()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -3259,7 +3259,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim DrCargo As DataRow = GlobalDTAcumTamaños.FiltroPrimero($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CveTamaño = {CveTamaño}")
|
Dim DrCargo As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($" CveTamaño = {CveTamaño}")
|
||||||
If DrCargo IsNot Nothing Then
|
If DrCargo IsNot Nothing Then
|
||||||
|
|
||||||
CargoVendido = DrCargo("Cargo").ToString.ToDecimal
|
CargoVendido = DrCargo("Cargo").ToString.ToDecimal
|
||||||
@@ -3386,7 +3386,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
If ObjPS.GetPS(CvePS, -1, UsuarioActual.CveEmpresa) Then
|
If ObjPS.GetPS(CvePS, -1, UsuarioActual.CveEmpresa) Then
|
||||||
CveTamaño = ObjPS.DtResultados.FiltroPrimeroValor("CveTamaño").ToEntero
|
CveTamaño = ObjPS.DtResultados.FiltroPrimeroValor("CveTamaño").ToEntero
|
||||||
End If
|
End If
|
||||||
Dim drDatos As DataRow = GlobalDTAcumTamaños().FiltroPrimero(String.Format("CveTamaño = {0} AND CveEmpresa = {1}", CveTamaño, UsuarioActual.CveEmpresa))
|
Dim drDatos As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveTamaño = {0} ", CveTamaño))
|
||||||
|
|
||||||
Dim Importe As Decimal = 0
|
Dim Importe As Decimal = 0
|
||||||
Dim drTamañoPS As DataRow = Nothing
|
Dim drTamañoPS As DataRow = Nothing
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
<asp:ListItem Text="GlobalDTClasificacionPorcentaje" Value="GlobalDTClasificacionPorcentaje"></asp:ListItem>
|
<asp:ListItem Text="GlobalDTClasificacionPorcentaje" Value="GlobalDTClasificacionPorcentaje"></asp:ListItem>
|
||||||
<asp:ListItem Text="GlobalDTInvPSSeccionesAlmacen" Value="GlobalDTInvPSSeccionesAlmacen"></asp:ListItem>
|
<asp:ListItem Text="GlobalDTInvPSSeccionesAlmacen" Value="GlobalDTInvPSSeccionesAlmacen"></asp:ListItem>
|
||||||
<asp:ListItem Text="GlobalDTTipoTransacciones" Value="GlobalDTTipoTransacciones"></asp:ListItem>
|
<asp:ListItem Text="GlobalDTTipoTransacciones" Value="GlobalDTTipoTransacciones"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="GlobalSATGenerales" Value="GlobalSATGenerales"></asp:ListItem>
|
||||||
|
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
|
|
||||||
|
|||||||
@@ -99,12 +99,26 @@ Partial Class Sistemas_CatSesiones
|
|||||||
CargaDTInvPSSeccionesAlmacen()
|
CargaDTInvPSSeccionesAlmacen()
|
||||||
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTTipoTransacciones" Then
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTTipoTransacciones" Then
|
||||||
CargaGlobalDTTipoTransacciones()
|
CargaGlobalDTTipoTransacciones()
|
||||||
|
ElseIf DdlVariable.SelectedItem.Value = "GlobalSATGenerales" Then
|
||||||
|
CargaSATGenerales()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
Private Sub CargaSATGenerales()
|
||||||
|
Using ObjGrales As New ClsGenerales
|
||||||
|
If ObjGrales.GetSATUsosCFDI Then Application("GlobalDTSATUsosCFDI") = ObjGrales.DtResultados
|
||||||
|
If ObjGrales.GetSATFraccionArancelaria Then Application("GlobalDTFraccionArancelaria") = ObjGrales.DtResultados.AsEnumerable()
|
||||||
|
If ObjGrales.GetSATIncoterm Then Application("GlobalDTIncoterm") = ObjGrales.DtResultados
|
||||||
|
If ObjGrales.GetSATTipoOperacion Then Application("GlobalDTTipoOperacion") = ObjGrales.DtResultados
|
||||||
|
If ObjGrales.GetSATMotivoTraslado Then Application("GlobalDTSATMotivoTraslado") = ObjGrales.DtResultados
|
||||||
|
If ObjGrales.GetSATUnidadesAduana Then Application("GlobalDTUnidadAduana") = ObjGrales.DtResultados
|
||||||
|
If ObjGrales.GetSATClavePedimento Then Application("GlobalDTClavePedimento") = ObjGrales.DtResultados
|
||||||
|
End Using
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaGlobalDTTipoTransacciones()
|
Private Sub CargaGlobalDTTipoTransacciones()
|
||||||
Using ObjBancos As New ClsBancos
|
Using ObjBancos As New ClsBancos
|
||||||
If ObjBancos.GetBancos_TiposTransaccion(-1) Then Application("GlobalDTTipoTransacciones") = ObjBancos.DtResultados Else Application("GlobalDTTipoTransacciones") = Nothing
|
If ObjBancos.GetBancos_TiposTransaccion(-1) Then Application("GlobalDTTipoTransacciones") = ObjBancos.DtResultados Else Application("GlobalDTTipoTransacciones") = Nothing
|
||||||
|
|||||||
@@ -1644,20 +1644,20 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
<div class="portlet light bordered xspadding">
|
<div class="portlet light bordered xspadding">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
<span class="caption-subject bold uppercase">Parametros</span>
|
<span class="caption-subject bold uppercase">Parametros</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:CheckBox ID="ChkPermiteCredito" runat="server" Text="Permite Crédito" />
|
<asp:CheckBox ID="ChkPermiteCredito" runat="server" Text="Permite Crédito" />
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<asp:UpdatePanel ID="UpParametros" UpdateMode="Conditional" runat="server">
|
<asp:UpdatePanel ID="UpParametros" UpdateMode="Conditional" runat="server">
|
||||||
@@ -1675,15 +1675,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="min-width: 135px">
|
||||||
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="width:150px">
|
<label for="<%= TxtFechaLimiteCredito.ClientID.ToString()%>" style="color: #888888;">F. Limite Crédito: </label>
|
||||||
<asp:TextBox ID="TxtFechaLimiteCredito" CssClass="form-control" runat="server" Width="150px"></asp:TextBox>
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;">
|
<asp:TextBox ID="TxtFechaLimiteCredito" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" Width="100px"></asp:TextBox>
|
||||||
<asp:LinkButton ID="LnkTxtFechaLimiteCredito" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<span class="input-group-btn ">
|
||||||
</span>
|
<asp:LinkButton ID="LnkTxtFechaLimiteCredito" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<ajax:MaskedEditExtender ID="METxtFechaLimiteCredito" runat="server" TargetControlID="TxtFechaLimiteCredito" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="METxtFechaLimiteCredito" runat="server" TargetControlID="TxtFechaLimiteCredito" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CETxtFechaLimiteCredito" TargetControlID="TxtFechaLimiteCredito" PopupButtonID="LnkTxtFechaLimiteCredito" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<ajax:CalendarExtender runat="server" ID="CETxtFechaLimiteCredito" TargetControlID="TxtFechaLimiteCredito" PopupButtonID="LnkTxtFechaLimiteCredito" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
<label for="<%= TxtFechaLimiteCredito.ClientID.ToString()%>">F. Limite Crédito: </label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1782,7 +1783,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCobranzaContacto" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<asp:TextBox ID="TxtCobranzaContacto" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<label for="<%= TxtCobranzaContacto.ClientID.ToString()%>">Nombre Contacto de Pagos: </label>
|
<label for="<%= TxtCobranzaContacto.ClientID.ToString()%>">Nombre Contacto de Pagos: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1790,7 +1791,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCobranzaTelefono" CssClass="form-control" runat="server" MaxLength="13"></asp:TextBox>
|
<asp:TextBox ID="TxtCobranzaTelefono" CssClass="form-control" runat="server" MaxLength="13"></asp:TextBox>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtCobranzaTelefono" ClearMaskOnLostFocus="false" MaskType="None" Mask="(999) 999-9999" MessageValidatorTip="true" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtCobranzaTelefono" ClearMaskOnLostFocus="false" MaskType="None" Mask="(999) 999-9999" MessageValidatorTip="true" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
||||||
<label for="<%= TxtCobranzaTelefono.ClientID.ToString()%>">Tel. Pagos: </label>
|
<label for="<%= TxtCobranzaTelefono.ClientID.ToString()%>">Tel. Pagos: </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1820,7 +1821,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -1836,25 +1837,25 @@
|
|||||||
<label for="<%= TxtPortalFacturacion.ClientID.ToString()%>">Portal de Facturas: </label>
|
<label for="<%= TxtPortalFacturacion.ClientID.ToString()%>">Portal de Facturas: </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row" id="DivPortal" runat="server" visible="false" >
|
|
||||||
<div class="col-md-6">
|
<div class="row" id="DivPortal" runat="server" visible="false">
|
||||||
<div class="form-group form-md-line-input">
|
|
||||||
<asp:TextBox ID="TxtUsuarioPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
||||||
<label for="<%= TxtUsuarioPortalFacturacion.ClientID.ToString()%>">Usuario Portal: </label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtContraseñaPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<asp:TextBox ID="TxtUsuarioPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<label for="<%= TxtContraseñaPortalFacturacion.ClientID.ToString()%>">Contraseña Portal: </label>
|
<label for="<%= TxtUsuarioPortalFacturacion.ClientID.ToString()%>">Usuario Portal: </label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:TextBox ID="TxtContraseñaPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
|
<label for="<%= TxtContraseñaPortalFacturacion.ClientID.ToString()%>">Contraseña Portal: </label>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1877,54 +1878,61 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkAntIXCNC" Text="Anticipos / NC / IXC" runat="server" Checked="true" OnCheckedChanged="ChkAntIXCNC_CheckedChanged" AutoPostBack="true" />
|
<asp:CheckBox ID="ChkAntIXCNC" Text="Anticipos / NC / IXC" runat="server" Checked="true" OnCheckedChanged="ChkAntIXCNC_CheckedChanged" AutoPostBack="true" />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="min-width: 135px">
|
||||||
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker " style="width:120px">
|
|
||||||
<asp:TextBox ID="TxtFechaInicioCxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;">
|
|
||||||
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaDel" runat="server" TargetControlID="TxtFechaInicioCxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender ID="CalendarioDel" runat="server" TargetControlID="TxtFechaInicioCxP" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<label for="<%= TxtFechaInicioCxP.ClientID.ToString()%>">Fecha Inicio: </label>
|
<label for="<%= TxtFechaInicioCxP.ClientID.ToString()%>">Fecha Inicio: </label>
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
|
<asp:TextBox ID="TxtFechaInicioCxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" Width="100px"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaDel" runat="server" TargetControlID="TxtFechaInicioCxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CalendarioDel" TargetControlID="TxtFechaInicioCxP" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker " style="width:120px">
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="min-width: 135px">
|
||||||
<asp:TextBox ID="TxtFechaFinCxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;" >
|
|
||||||
<asp:LinkButton ID="ImgCalendarioAl" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaAl" runat="server" TargetControlID="TxtFechaFinCxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender ID="CalendarioAl" runat="server" TargetControlID="TxtFechaFinCxP" PopupButtonID="ImgCalendarioAl" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<label for="<%= TxtFechaFinCxP.ClientID.ToString()%>">Fecha Fin: </label>
|
<label for="<%= TxtFechaFinCxP.ClientID.ToString()%>">Fecha Fin: </label>
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
|
<asp:TextBox Width="100px" ID="TxtFechaFinCxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgCalendarioAl" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaAl" runat="server" TargetControlID="TxtFechaFinCxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CalendarioAl" TargetControlID="TxtFechaFinCxP" PopupButtonID="ImgCalendarioAl" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker " style="width:120px">
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="min-width: 135px">
|
||||||
<asp:TextBox ID="TxtFechaVICxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<label for="<%= TxtFechaVICxP.ClientID.ToString()%>">Fecha V. Inicio: </label>
|
||||||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
<asp:LinkButton ID="ImgCalendarioFIV" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:TextBox ID="TxtFechaVICxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" Width="100px"></asp:TextBox>
|
||||||
</span>
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgCalendarioFIV" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<ajax:MaskedEditExtender ID="MEEFIV" runat="server" TargetControlID="TxtFechaVICxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="MEEFIV" runat="server" TargetControlID="TxtFechaVICxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<ajax:CalendarExtender ID="CalendarioFIV" runat="server" TargetControlID="TxtFechaVICxP" PopupButtonID="ImgCalendarioFIV" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<ajax:CalendarExtender runat="server" ID="CalendarioFIV" TargetControlID="TxtFechaVICxP" PopupButtonID="ImgCalendarioFIV" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
<label for="<%= TxtFechaVICxP.ClientID.ToString()%>">Fecha V. Inicio: </label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker " style="width:120px">
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="min-width: 135px">
|
||||||
<asp:TextBox ID="TxtFechaVFCxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;">
|
|
||||||
<asp:LinkButton ID="ImgCalendarioFFV" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFFV" runat="server" TargetControlID="TxtFechaVFCxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender ID="CalendarioFFV" runat="server" TargetControlID="TxtFechaVFCxP" PopupButtonID="ImgCalendarioFFV" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<label for="<%= TxtFechaVFCxP.ClientID.ToString()%>">Fecha V. Fin: </label>
|
<label for="<%= TxtFechaVFCxP.ClientID.ToString()%>">Fecha V. Fin: </label>
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||||
|
<asp:TextBox ID="TxtFechaVFCxP" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" Width="100px"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgCalendarioFFV" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFFV" runat="server" TargetControlID="TxtFechaVFCxP" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CalendarioFFV" TargetControlID="TxtFechaVFCxP" PopupButtonID="ImgCalendarioFFV" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1932,7 +1940,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label>Movimientos</label>
|
<label>Movimientos</label>
|
||||||
<asp:DropDownList CssClass="form-control input-sm" ID="DdlTipoCuentasCxC" runat="server" Width="120px">
|
<asp:DropDownList CssClass="form-control input-sm" ID="DdlTipoCuentasCxC" runat="server" Width="100%">
|
||||||
<asp:ListItem Value="-1" Text="Todas" />
|
<asp:ListItem Value="-1" Text="Todas" />
|
||||||
<asp:ListItem Selected="True" Value="1" Text="Con Saldo" />
|
<asp:ListItem Selected="True" Value="1" Text="Con Saldo" />
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
@@ -1940,7 +1948,7 @@
|
|||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label>Tipo Docto</label>
|
<label>Tipo Docto</label>
|
||||||
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Width="150px" runat="server">
|
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Width="100%" runat="server">
|
||||||
<asp:ListItem Selected="True" Value="Ing" Text="Ingresos"></asp:ListItem>
|
<asp:ListItem Selected="True" Value="Ing" Text="Ingresos"></asp:ListItem>
|
||||||
<asp:ListItem Selected="True" Value="Rem" Text="Remisión"></asp:ListItem>
|
<asp:ListItem Selected="True" Value="Rem" Text="Remisión"></asp:ListItem>
|
||||||
<asp:ListItem Selected="True" Value="Ant" Text="Anticipos"></asp:ListItem>
|
<asp:ListItem Selected="True" Value="Ant" Text="Anticipos"></asp:ListItem>
|
||||||
@@ -1949,12 +1957,6 @@
|
|||||||
<asp:ListItem Selected="True" Value="Dev" Text="Devolución"></asp:ListItem>
|
<asp:ListItem Selected="True" Value="Dev" Text="Devolución"></asp:ListItem>
|
||||||
<asp:ListItem Selected="True" Value="RNC" Text="Remisión de Nota de crédito"></asp:ListItem>
|
<asp:ListItem Selected="True" Value="RNC" Text="Remisión de Nota de crédito"></asp:ListItem>
|
||||||
</asp:ListBox>
|
</asp:ListBox>
|
||||||
<%-- <asp:DropDownList CssClass="form-control input-sm" ID="DdlTipoDocto" runat="server" Width="120px">
|
|
||||||
<asp:ListItem Selected="True" Value="-1" Text="Todos" />
|
|
||||||
<asp:ListItem Value="Ing" Text="Factura" />
|
|
||||||
<asp:ListItem Value="Rem" Text="Remisión " />
|
|
||||||
<asp:ListItem Value="Ant" Text="Anticipo" />
|
|
||||||
</asp:DropDownList>--%>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -1975,13 +1977,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-footer" >
|
<div class="portlet-footer">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="portlet light bordered xspadding">
|
<div class="portlet light bordered xspadding">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
@@ -1992,8 +1994,16 @@
|
|||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<asp:UpdatePanel UpdateMode="Conditional" runat="server" ID="UpdatePanel2">
|
<asp:UpdatePanel UpdateMode="Conditional" runat="server" ID="UpdatePanel2">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
<asp:HyperLink ID="HplAbonarMasivo" Visible="True" runat="server" NavigateUrl="#" ToolTip="Pago de múltiples facturas">Pago múltiples facturas <img src="/Imagenes/Money_Add.png" alt="Pagar múltiples facturas" /></asp:HyperLink>
|
||||||
|
|
||||||
<asp:LinkButton ID="LnkCxCActivasPDF" runat="server" data-toggle="tooltip" Title="PDF"> <i class="fa fa-file-pdf-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
<asp:LinkButton ID="LnkCxCActivasPDF" runat="server" data-toggle="tooltip" Title="PDF"> <i class="fa fa-file-pdf-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
||||||
<asp:LinkButton ID="LnkCxCActivasExcel" runat="server" data-toggle="tooltip" Title="Excel"><i class="fa fa-file-excel-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
<asp:LinkButton ID="LnkCxCActivasExcel" runat="server" data-toggle="tooltip" Title="Excel"><i class="fa fa-file-excel-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
||||||
|
<input type="text" id="TxtCxCActivas" class="form-control input-sm"
|
||||||
|
onkeyup="<%= String.Format("FiltrarTabla('TxtCxCActivas','{0}')", GvCxC.ClientID) %>"
|
||||||
|
style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtCxCActivas','{0}')", GVHistorial.ClientID) %>"
|
||||||
|
style="margin-top: -3px; float: inherit;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
<Triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkCxCActivasPDF" />
|
<asp:PostBackTrigger ControlID="LnkCxCActivasPDF" />
|
||||||
@@ -2004,11 +2014,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="row">
|
<%--<div class="row">
|
||||||
<div class="pull-right">
|
|
||||||
<asp:HyperLink ID="HplAbonarMasivo" Visible="True" runat="server" NavigateUrl="#" ToolTip="Pago de múltiples facturas">Pago múltiples facturas <img src="/Imagenes/Money_Add.png" alt="Pagar múltiples facturas" /></asp:HyperLink>  
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -2017,7 +2023,7 @@
|
|||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtCxCActivas','{0}')", GvCxC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtCxCActivas','{0}')", GvCxC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>--%>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -2069,7 +2075,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Abonar">
|
<asp:TemplateField HeaderText="Abonar">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|
||||||
<asp:HyperLink ID="ImgAbonar" CssClass="Texto thickbox" runat="server" ImageUrl="~/Imagenes/Money_add.png" ToolTip="Registrar Pago/Abono"></asp:HyperLink>
|
<asp:HyperLink ID="ImgAbonar" CssClass="Texto thickbox" runat="server" ImageUrl="~/Imagenes/Money_add.png" ToolTip="Registrar Pago/Abono"></asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -2087,10 +2093,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
||||||
<div class="portlet light bordered xspadding">
|
<div class="portlet light bordered xspadding">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
@@ -2103,6 +2106,11 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:LinkButton ID="LnkHistorialCxCPDF" runat="server" data-toggle="tooltip" Title="PDF"> <i class="fa fa-file-pdf-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
<asp:LinkButton ID="LnkHistorialCxCPDF" runat="server" data-toggle="tooltip" Title="PDF"> <i class="fa fa-file-pdf-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
||||||
<asp:LinkButton ID="LnkHistorialCxCExcel" runat="server" data-toggle="tooltip" Title="Excel"><i class="fa fa-file-excel-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
<asp:LinkButton ID="LnkHistorialCxCExcel" runat="server" data-toggle="tooltip" Title="Excel"><i class="fa fa-file-excel-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i> </asp:LinkButton>
|
||||||
|
<input type="text" id="TxtCxCHistorial" class="form-control input-sm"
|
||||||
|
onkeyup="<%= String.Format("FiltrarTabla('TxtCxCHistorial','{0}')", GvCxCHistorial.ClientID) %>"
|
||||||
|
style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtCxCHistorial','{0}')", GVHistorial.ClientID) %>"
|
||||||
|
style="margin-top: -3px; float: inherit;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
<Triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkHistorialCxCPDF" />
|
<asp:PostBackTrigger ControlID="LnkHistorialCxCPDF" />
|
||||||
@@ -2112,15 +2120,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="col-md-12" align="right">
|
|
||||||
<input type="text" id="TxtCxCHistorial" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtCxCHistorial','{0}')", GvCxCHistorial.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtCxCHistorial','{0}')", GvCxCHistorial.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<asp:GridView ID="GvCxCHistorial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró Historial de Cuentas X Cobrar"
|
<asp:GridView ID="GvCxCHistorial" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró Historial de Cuentas X Cobrar"
|
||||||
@@ -6761,7 +6761,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -513,7 +513,7 @@ Partial Class Clientes
|
|||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
ViewState("CveLineaAdicional") = value
|
ViewState("CveLineaAdicional") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Private Property FechaIngLineaAdicional As DateTime
|
Private Property FechaIngLineaAdicional As DateTime
|
||||||
Get
|
Get
|
||||||
If ViewState("FechaIngLineaAdicional") Is Nothing Then
|
If ViewState("FechaIngLineaAdicional") Is Nothing Then
|
||||||
@@ -526,13 +526,13 @@ Partial Class Clientes
|
|||||||
Set(value As DateTime)
|
Set(value As DateTime)
|
||||||
ViewState("FechaIngLineaAdicional") = value
|
ViewState("FechaIngLineaAdicional") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Documentacion"
|
#Region "Documentacion"
|
||||||
Private Property DTDocumentacion As DataTable
|
Private Property DTDocumentacion As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -2958,14 +2958,14 @@ Partial Class Clientes
|
|||||||
#Region "G R I D V I E W S"
|
#Region "G R I D V I E W S"
|
||||||
Protected Sub GVHistorial_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVHistorial.RowDataBound
|
Protected Sub GVHistorial_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVHistorial.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
Dim HLSendMail As HtmlAnchor = DirectCast(e.Row.FindControl("HLSendMail"), HtmlAnchor)
|
Dim HLSendMail As HtmlAnchor = DirectCast(e.Row.FindControl("HLSendMail"), HtmlAnchor)
|
||||||
'Dim HLRemision As HtmlAnchor = DirectCast(e.Row.FindControl("HLRemision"), HtmlAnchor)
|
'Dim HLRemision As HtmlAnchor = DirectCast(e.Row.FindControl("HLRemision"), HtmlAnchor)
|
||||||
|
|
||||||
If e.Row.RowIndex = 0 Then
|
If e.Row.RowIndex = 0 Then
|
||||||
e.Row.BackColor = Drawing.Color.LightGray
|
e.Row.BackColor = Drawing.Color.LightGray
|
||||||
HLSendMail.Visible = False
|
HLSendMail.Visible = False
|
||||||
'HLRemision.Visible = False
|
'HLRemision.Visible = False
|
||||||
End If
|
End If
|
||||||
Dim Liga As String = String.Format("< a class=""Texto"" href=""/Ventas/Ventas.aspx?CveVenta={0}"">", e.Row.DBCampo("CveVenta"))
|
Dim Liga As String = String.Format("< a class=""Texto"" href=""/Ventas/Ventas.aspx?CveVenta={0}"">", e.Row.DBCampo("CveVenta"))
|
||||||
HLSendMail.HRef = String.Format("javascript:(function mail(){{$get('HdnTipoDocto').value='{0}';$get('HdnCveVenta').value='{1}';$get('HdnFolioVenta').value='{2}';$get('TxtParaMail').value='{3}';$get('HdnSerieFolio').value='{4}';$get('HdnSubProyecto').value='{5}';$('#ModalDivMail').modal();void(0);}})();", e.Row.DBCampo("TipoDocto"), e.Row.DBCampo("CveVenta"), e.Row.DBCampo("folio"), e.Row.DBCampo("Correo"), e.Row.DBCampo("SerieFolio"), e.Row.DBCampo("SubProyecto"))
|
HLSendMail.HRef = String.Format("javascript:(function mail(){{$get('HdnTipoDocto').value='{0}';$get('HdnCveVenta').value='{1}';$get('HdnFolioVenta').value='{2}';$get('TxtParaMail').value='{3}';$get('HdnSerieFolio').value='{4}';$get('HdnSubProyecto').value='{5}';$('#ModalDivMail').modal();void(0);}})();", e.Row.DBCampo("TipoDocto"), e.Row.DBCampo("CveVenta"), e.Row.DBCampo("folio"), e.Row.DBCampo("Correo"), e.Row.DBCampo("SerieFolio"), e.Row.DBCampo("SubProyecto"))
|
||||||
e.Row.FCLiteral("LtlFactura").Text = String.Format("<a class=""Texto"" href=""/Ventas/Ventas.aspx?CveVenta={0}"">{1}</a>", e.Row.DBCampo("CveVenta"), e.Row.DBCampo("Folio"))
|
e.Row.FCLiteral("LtlFactura").Text = String.Format("<a class=""Texto"" href=""/Ventas/Ventas.aspx?CveVenta={0}"">{1}</a>", e.Row.DBCampo("CveVenta"), e.Row.DBCampo("Folio"))
|
||||||
@@ -2986,8 +2986,8 @@ Partial Class Clientes
|
|||||||
e.Row.Cells(7).Width = Unit.Pixel(90)
|
e.Row.Cells(7).Width = Unit.Pixel(90)
|
||||||
e.Row.Cells(8).Width = Unit.Pixel(80)
|
e.Row.Cells(8).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(9).Width = Unit.Pixel(70)
|
e.Row.Cells(9).Width = Unit.Pixel(70)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.DBCampo("Saldo").ToDouble < 0 Then e.Row.Cells(6).ForeColor = Drawing.Color.Red
|
If e.Row.DBCampo("Saldo").ToDouble < 0 Then e.Row.Cells(6).ForeColor = Drawing.Color.Red
|
||||||
If e.Row.DBCampo("DiasVencidos").ToDouble > 0 AndAlso CType(sender, GridView).ID = "GvCxC" Then e.Row.Cells(4).ForeColor = Drawing.Color.Red
|
If e.Row.DBCampo("DiasVencidos").ToDouble > 0 AndAlso CType(sender, GridView).ID = "GvCxC" Then e.Row.Cells(4).ForeColor = Drawing.Color.Red
|
||||||
If e.Row.DBCampo("Original").ToDouble = 0 Then DirectCast(e.Row.FindControl("LtlSaldoOriginal"), Literal).Text = ""
|
If e.Row.DBCampo("Original").ToDouble = 0 Then DirectCast(e.Row.FindControl("LtlSaldoOriginal"), Literal).Text = ""
|
||||||
@@ -4238,23 +4238,23 @@ Partial Class Clientes
|
|||||||
Try
|
Try
|
||||||
Dim File As Byte()
|
Dim File As Byte()
|
||||||
If Archivo.Exists Then
|
If Archivo.Exists Then
|
||||||
Dim ArchivoSti As New System.IO.FileInfo(String.Format("{0}Formatos/RepClientesCxC.mrt", UsuarioActual.Empresa.Ruta))
|
Dim ArchivoSti As New System.IO.FileInfo(String.Format("{0}Formatos/RepClientesCxC.mrt", UsuarioActual.Empresa.Ruta))
|
||||||
If ArchivoSti.Exists Then
|
If ArchivoSti.Exists Then
|
||||||
Dim listass As New List(Of ReportParameter)
|
Dim listass As New List(Of ReportParameter)
|
||||||
For Each item As CrystalParametro In lista
|
For Each item As CrystalParametro In lista
|
||||||
listass.Add(New ReportParameter(item.Nombre, item.Valor.ToString()))
|
listass.Add(New ReportParameter(item.Nombre, item.Valor.ToString()))
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Dim lrds As New List(Of ReportDataSource)
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
Dim rds As New ReportDataSource
|
Dim rds As New ReportDataSource
|
||||||
rds.Name = "Datos"
|
rds.Name = "Datos"
|
||||||
rds.Value = DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha")
|
rds.Value = DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha")
|
||||||
lrds.Add(rds)
|
lrds.Add(rds)
|
||||||
|
|
||||||
File = StreamBytesStimulsoft("Facturas", $"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.mrt", lrds, listass, NombreArchivo:="Estado de cuenta", Formato:=Formato)
|
File = StreamBytesStimulsoft("Facturas", $"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.mrt", lrds, listass, NombreArchivo:="Estado de cuenta", Formato:=Formato)
|
||||||
Else
|
Else
|
||||||
File = ImprimirPDFCrystal($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.rpt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato)
|
File = ImprimirPDFCrystal($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.rpt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
File = ImprimirPDFCrystal(RutaReporteGrales.FullName, DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato)
|
File = ImprimirPDFCrystal(RutaReporteGrales.FullName, DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato)
|
||||||
End If
|
End If
|
||||||
@@ -4299,8 +4299,8 @@ Partial Class Clientes
|
|||||||
Dim listass As New List(Of ReportParameter)
|
Dim listass As New List(Of ReportParameter)
|
||||||
For Each item As CrystalParametro In lista
|
For Each item As CrystalParametro In lista
|
||||||
listass.Add(New ReportParameter(item.Nombre, item.Valor.ToString()))
|
listass.Add(New ReportParameter(item.Nombre, item.Valor.ToString()))
|
||||||
Next
|
Next
|
||||||
ImprimirPDFStimulsoft($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.mrt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), listass, "Estado de cuenta", Formato)
|
ImprimirPDFStimulsoft($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.mrt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), listass, "Estado de cuenta", Formato)
|
||||||
Else
|
Else
|
||||||
ImprimirbytesPDF(ImprimirPDFCrystal($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.rpt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato), "Estado de cuenta", Formato)
|
ImprimirbytesPDF(ImprimirPDFCrystal($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.rpt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato), "Estado de cuenta", Formato)
|
||||||
End If
|
End If
|
||||||
@@ -4352,8 +4352,8 @@ Partial Class Clientes
|
|||||||
Dim listass As New List(Of ReportParameter)
|
Dim listass As New List(Of ReportParameter)
|
||||||
For Each item As CrystalParametro In lista
|
For Each item As CrystalParametro In lista
|
||||||
listass.Add(New ReportParameter(item.Nombre, item.Valor.ToString()))
|
listass.Add(New ReportParameter(item.Nombre, item.Valor.ToString()))
|
||||||
Next
|
Next
|
||||||
ImprimirPDFStimulsoft($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.mrt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), listass, "Estado de cuenta", Formato)
|
ImprimirPDFStimulsoft($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.mrt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), listass, "Estado de cuenta", Formato)
|
||||||
Else
|
Else
|
||||||
ImprimirbytesPDF(ImprimirPDFCrystal($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.rpt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato), "Estado de cuenta", Formato)
|
ImprimirbytesPDF(ImprimirPDFCrystal($"{UsuarioActual.Empresa.Ruta}Formatos/RepClientesCxC.rpt", DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato), "Estado de cuenta", Formato)
|
||||||
End If
|
End If
|
||||||
@@ -4361,56 +4361,6 @@ Partial Class Clientes
|
|||||||
ImprimirbytesPDF(ImprimirPDFCrystal(RutaReporteGrales.FullName, DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato), "Estado de cuenta", Formato)
|
ImprimirbytesPDF(ImprimirPDFCrystal(RutaReporteGrales.FullName, DtCxCFact2.FiltraParametros("", "CveMoneda,Fecha"), lista, "Estado de cuenta", Formato), "Estado de cuenta", Formato)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Sub ImprimirExcelStimulsoft(RutaReporte As String, DtDatos As DataTable, Parametros As List(Of ReportParameter), Optional NombreArchivo As String = "Reporte", Optional RDSName As String = "Datos", Optional Content_Disposition As String = "attachment")
|
|
||||||
Dim lrds As New List(Of ReportDataSource)
|
|
||||||
Dim rds As New ReportDataSource
|
|
||||||
rds.Name = RDSName
|
|
||||||
rds.Value = DtDatos
|
|
||||||
lrds.Add(rds)
|
|
||||||
|
|
||||||
ImprimirbytesExcel(StreamBytesStimulsoft("Facturas", RutaReporte, lrds, Parametros, NombreArchivo:=NombreArchivo, Formato:="EXCEL"), NombreArchivo, "EXCEL", Content_Disposition:=Content_Disposition)
|
|
||||||
End Sub
|
|
||||||
Public Sub ImprimirbytesExcel(bytes As Byte(), Optional NombreArchivo As String = "Reporte", Optional Formato As String = "PDF", Optional Descarga As Boolean = False, Optional Content_Disposition As String = "attachment")
|
|
||||||
'limpio ReportViwer
|
|
||||||
Dim mimeType As String = Nothing
|
|
||||||
Dim extension As String = Nothing
|
|
||||||
|
|
||||||
'If Descarga Then
|
|
||||||
' Try
|
|
||||||
' bytes = bytes
|
|
||||||
' File.WriteAllBytes(String.Format("{0}PDF/whatever.gif", UsuarioActual.Empresa.Ruta), img)
|
|
||||||
' Catch ex As Exception
|
|
||||||
' If UsuarioActual.CveRol = 1 Then
|
|
||||||
' Alert(ex.Message, TipoMensaje.MsgAdvertencia)
|
|
||||||
' Else
|
|
||||||
' Alert("Ocurrió un error al generar la descarga. Favor de contactar a soporte tecnico cod'IMPDFclspag'", TipoMensaje.MsgAdvertencia)
|
|
||||||
' End If
|
|
||||||
' End Try
|
|
||||||
'End If
|
|
||||||
|
|
||||||
Try
|
|
||||||
bytes = bytes
|
|
||||||
Response.Buffer = True
|
|
||||||
Response.Clear()
|
|
||||||
Response.ContentType = "application/vnd.ms-excel"
|
|
||||||
Response.ClearHeaders()
|
|
||||||
Response.AddHeader("content-disposition", String.Format("{0}; filename=""{1}.{2}""", Content_Disposition, NombreArchivo, If(Formato = "PDF", "pdf", "xlsx")))
|
|
||||||
Response.BinaryWrite(bytes) ' create the file
|
|
||||||
Response.Flush() ' send it to the client to download
|
|
||||||
bytes = Nothing
|
|
||||||
HttpContext.Current.Response.SuppressContent = True
|
|
||||||
HttpContext.Current.ApplicationInstance.CompleteRequest()
|
|
||||||
'HttpContext.Current.Response.End()
|
|
||||||
Catch ex As Exception
|
|
||||||
|
|
||||||
If UsuarioActual.CveRol = 1 Then
|
|
||||||
Alert($"Error: {ex.Message} | Descripcion: {If(ex.InnerException IsNot Nothing AndAlso ex.InnerException.InnerException IsNot Nothing AndAlso ex.InnerException.InnerException.Message IsNot Nothing, ex.InnerException.InnerException.Message, If(ex.InnerException IsNot Nothing AndAlso ex.InnerException.Message IsNot Nothing, ex.InnerException.Message, "Sin descripcion"))}", TipoMensaje.MsgAdvertencia)
|
|
||||||
Else
|
|
||||||
Alert("Ocurrió un error al generar la descarga. Favor de contactar a soporte tecnico cod:'IMPDFclspag'", TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
|
||||||
End Try
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub MandaCorreoEstadoCuenta(CveUsuario As Integer, CveEmpresa As Integer, CveCliente As Integer, File As Byte(), Para As String, Asunto As String, Body As String, Optional GuardarBitacora As Boolean = False)
|
Private Sub MandaCorreoEstadoCuenta(CveUsuario As Integer, CveEmpresa As Integer, CveCliente As Integer, File As Byte(), Para As String, Asunto As String, Body As String, Optional GuardarBitacora As Boolean = False)
|
||||||
|
|
||||||
@@ -7123,10 +7073,9 @@ Partial Class Clientes
|
|||||||
DdlIncoterm.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlIncoterm.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlIncoterm.DataBind()
|
DdlIncoterm.DataBind()
|
||||||
|
|
||||||
DdlClavePedimento.Items.Clear()
|
DdlClavePedimento.Items.Clear()
|
||||||
DdlClavePedimento.DataSource = GlobalDTClavePedimento()
|
DdlClavePedimento.DataSource = GlobalDTClavePedimento()
|
||||||
DdlClavePedimento.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlClavePedimento.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlClavePedimento.DataBind()
|
|
||||||
|
|
||||||
DdlMotivoTraslado.Items.Clear()
|
DdlMotivoTraslado.Items.Clear()
|
||||||
DdlMotivoTraslado.DataSource = GlobalDTSATMotivoTraslado()
|
DdlMotivoTraslado.DataSource = GlobalDTSATMotivoTraslado()
|
||||||
@@ -9963,7 +9912,7 @@ Partial Class Clientes
|
|||||||
Alert("Puntuación Inicializada")
|
Alert("Puntuación Inicializada")
|
||||||
End If
|
End If
|
||||||
Acum.Dispose()
|
Acum.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
Protected Sub DdlTipoRetencion_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlTipoRetencion_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
If UsuarioActual.Empresa.Funcionalidad(579) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(579) = "1" Then
|
||||||
@@ -10490,11 +10439,16 @@ Partial Class Clientes
|
|||||||
' Exit Sub
|
' Exit Sub
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
|
If DdlTipoLineaAdicionalModal.SelectedValue.ToEntero() <= 0 Then
|
||||||
|
Alert("Debe seleccionar el tipo de linea adicional", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If CveLineaAdicional > 0 Then
|
If CveLineaAdicional > 0 Then
|
||||||
|
|
||||||
If DdlTipoLineaAdicionalModal.SelectedValue = "2" Then
|
If DdlTipoLineaAdicionalModal.SelectedValue = "2" Then
|
||||||
TxtFechaVencimientoLineaAdicionalModal.Text = FechaIngLineaAdicional.AddDays(TxtDiasVencimientoLineaAdicionalModal.Text.ToEntero()).ToString("dd/MM/yyyy")
|
TxtFechaVencimientoLineaAdicionalModal.Text = FechaIngLineaAdicional.AddDays(TxtDiasVencimientoLineaAdicionalModal.Text.ToEntero()).ToString("dd/MM/yyyy")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjVentas.UpdateLineasAdicionales(CveLineaAdicional, TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
If Not ObjVentas.UpdateLineasAdicionales(CveLineaAdicional, TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
||||||
@@ -10504,9 +10458,9 @@ Partial Class Clientes
|
|||||||
Else
|
Else
|
||||||
Alert("Linea Adicional Actualizada Correctamente")
|
Alert("Linea Adicional Actualizada Correctamente")
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If DdlTipoLineaAdicionalModal.SelectedValue = "2" Then
|
If DdlTipoLineaAdicionalModal.SelectedValue = "2" Then
|
||||||
TxtFechaVencimientoLineaAdicionalModal.Text = Now.AddDays(TxtDiasVencimientoLineaAdicionalModal.Text.ToEntero()).ToString("dd/MM/yyyy")
|
TxtFechaVencimientoLineaAdicionalModal.Text = Now.AddDays(TxtDiasVencimientoLineaAdicionalModal.Text.ToEntero()).ToString("dd/MM/yyyy")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjVentas.AddLineasAdicionales(TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
If Not ObjVentas.AddLineasAdicionales(TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
||||||
@@ -10535,7 +10489,7 @@ Partial Class Clientes
|
|||||||
|
|
||||||
CveLineaAdicional = GvRow.DataKey("CveLineaAdicional").ToEntero
|
CveLineaAdicional = GvRow.DataKey("CveLineaAdicional").ToEntero
|
||||||
|
|
||||||
FechaIngLineaAdicional = GvRow.DataKey("FechaIng").ToDateTime()
|
FechaIngLineaAdicional = GvRow.DataKey("FechaIng").ToDateTime()
|
||||||
TxtLineaAdicionalModal.Text = GvRow.DataKey("LineaAdicional")
|
TxtLineaAdicionalModal.Text = GvRow.DataKey("LineaAdicional")
|
||||||
DdlProveedorLineaAdicionalModal.txtText.Value = GvRow.DataKey("Proveedor")
|
DdlProveedorLineaAdicionalModal.txtText.Value = GvRow.DataKey("Proveedor")
|
||||||
DdlProveedorLineaAdicionalModal.txtValue.Value = GvRow.DataKey("CveProveedor")
|
DdlProveedorLineaAdicionalModal.txtValue.Value = GvRow.DataKey("CveProveedor")
|
||||||
@@ -10580,7 +10534,7 @@ Partial Class Clientes
|
|||||||
Protected Sub DdlTipoLineaAdicionalModal_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlTipoLineaAdicionalModal_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
DvLineaAdicionalDiasVenciemientoModal.Visible = If(DdlTipoLineaAdicionalModal.SelectedValue.ToEntero = 2, True, False)
|
DvLineaAdicionalDiasVenciemientoModal.Visible = If(DdlTipoLineaAdicionalModal.SelectedValue.ToEntero = 2, True, False)
|
||||||
DvFechaVencimiento.Visible = If(DdlTipoLineaAdicionalModal.SelectedValue.ToEntero = 2, False, True)
|
DvFechaVencimiento.Visible = If(DdlTipoLineaAdicionalModal.SelectedValue.ToEntero = 2, False, True)
|
||||||
UpLineaAdicionalmodal.Update()
|
UpLineaAdicionalmodal.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -913,8 +913,9 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If TxtPrestamoIntereses.Text.ToDecimal <> 0 AndAlso MsgError = "" Then
|
If TxtPrestamoIntereses.Text.ToDecimal <> 0 AndAlso MsgError = "" Then
|
||||||
|
tipoCambioPago = If(TxtTCDolares.Visible, TxtTCDolares.Text.ToDecimal, TxtTCDolaresDolares.Text.ToDecimal)
|
||||||
Dim ImporteIntereses As Decimal = (TxtPrestamoIntereses.Text.ToDecimal * tipoCambioPago).RoundSQL
|
Dim ImporteIntereses As Decimal = (TxtPrestamoIntereses.Text.ToDecimal * tipoCambioPago).RoundSQL
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteIntereses, ImporteIntereses, 6, TxtFolio.Text, TxtObservaciones.Text, 0, CveIE:=DdlPrestamo.SelectedValue.ToEntero, CveSubProyecto:=CveSubProyecto, TipoCambio:=tipoCambioPago, CveClasificacion:=21927) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteIntereses, ImporteIntereses, 51, TxtFolio.Text, TxtObservaciones.Text, 0, CveIE:=DdlPrestamo.SelectedValue.ToEntero, CveSubProyecto:=11881, TipoCambio:=tipoCambioPago, CveClasificacion:=21927) Then
|
||||||
MsgError = "No se pudo insertar la póliza"
|
MsgError = "No se pudo insertar la póliza"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -950,6 +951,8 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
VentaActual.PorcentajeIVA = gvr.DataKey("PorcentajeIVA").ToDecimal
|
VentaActual.PorcentajeIVA = gvr.DataKey("PorcentajeIVA").ToDecimal
|
||||||
VentaActual.UsuarioActual = UsuarioActual
|
VentaActual.UsuarioActual = UsuarioActual
|
||||||
VentaActual.CveSubProyecto = gvr.DataKey("CveSubProyecto").ToEntero
|
VentaActual.CveSubProyecto = gvr.DataKey("CveSubProyecto").ToEntero
|
||||||
|
VentaActual.IdCtaContableCliente = IIf(VentaActual.CveMoneda = 1, IdCuentaCliente, IdCtaContMonedaExtranjera)
|
||||||
|
VentaActual.IdCtaContableClienteComplementaria = IdCtaContComplementaria
|
||||||
|
|
||||||
'Importe de pago
|
'Importe de pago
|
||||||
Dim Pago As New VentaPago
|
Dim Pago As New VentaPago
|
||||||
|
|||||||
@@ -5182,7 +5182,7 @@ Partial Class PV
|
|||||||
' End If
|
' End If
|
||||||
'Next
|
'Next
|
||||||
If DdlRecepcionUsados.SelectedValue.ToEntero() > 0 Then
|
If DdlRecepcionUsados.SelectedValue.ToEntero() > 0 Then
|
||||||
Dim DrTamanio As DataRow = GlobalDTAcumTamaños.FiltroPrimero($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo = {DdlRecepcionUsados.SelectedValue}")
|
Dim DrTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($" CvePSCargo = {DdlRecepcionUsados.SelectedValue}")
|
||||||
|
|
||||||
Entregado += (1D * DrTamanio("Cargo").ToString().ToDecimal)
|
Entregado += (1D * DrTamanio("Cargo").ToString().ToDecimal)
|
||||||
UltimoEntregado += (DrTamanio("Cargo").ToString().ToDecimal)
|
UltimoEntregado += (DrTamanio("Cargo").ToString().ToDecimal)
|
||||||
@@ -7049,13 +7049,13 @@ Partial Class PV
|
|||||||
|
|
||||||
DdlFacturas.Items.Insert(0, New ListItem("Sin Factura", "-1"))
|
DdlFacturas.Items.Insert(0, New ListItem("Sin Factura", "-1"))
|
||||||
|
|
||||||
DdlTipoUso.DataSource = GlobalDTAcumTiposUso.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
DdlTipoUso.DataSource = GlobalDTAcumTiposUso(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
DdlTipoDefecto.DataSource = GlobalDTAcumTiposDefecto.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
DdlTipoDefecto.DataSource = GlobalDTAcumTiposDefecto(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoDefecto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlTipoDefecto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
Dim DtTamanios = GlobalDTAcumTamaños.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo > 0")
|
Dim DtTamanios = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltraParametros($" CvePSCargo > 0")
|
||||||
|
|
||||||
CargaModelos()
|
CargaModelos()
|
||||||
CargaBCIAjuste()
|
CargaBCIAjuste()
|
||||||
@@ -7448,7 +7448,7 @@ Partial Class PV
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim DrCargo As DataRow = GlobalDTAcumTamaños.FiltroPrimero($"CveEmpresa = {UsuarioActual.CveEmpresa} And CveTamaño = {CveTamaño}")
|
Dim DrCargo As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($" CveTamaño = {CveTamaño}")
|
||||||
If DrCargo IsNot Nothing Then
|
If DrCargo IsNot Nothing Then
|
||||||
|
|
||||||
CargoVendido = DrCargo("Cargo").ToString.ToDecimal
|
CargoVendido = DrCargo("Cargo").ToString.ToDecimal
|
||||||
@@ -7577,7 +7577,7 @@ Partial Class PV
|
|||||||
If TmpDT.Select($"Consec={ConsecutivoVenta}").Length > 0 Then
|
If TmpDT.Select($"Consec={ConsecutivoVenta}").Length > 0 Then
|
||||||
Dim Dr As DataRow = TmpDT.Select($"Consec={ConsecutivoVenta}")(0)
|
Dim Dr As DataRow = TmpDT.Select($"Consec={ConsecutivoVenta}")(0)
|
||||||
Dim CvePSCargo As Integer = -1
|
Dim CvePSCargo As Integer = -1
|
||||||
Dim DrCargo As DataRow = GlobalDTAcumTamaños.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CveTamaño = {Dr("CveTamaño").ToString.ToEntero}").FiltroPrimero("")
|
Dim DrCargo As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltraParametros($" CveTamaño = {Dr("CveTamaño").ToString.ToEntero}").FiltroPrimero("")
|
||||||
If DrCargo IsNot Nothing Then
|
If DrCargo IsNot Nothing Then
|
||||||
CvePSCargo = DrCargo("CvePSCargo").ToString.ToEntero
|
CvePSCargo = DrCargo("CvePSCargo").ToString.ToEntero
|
||||||
CargoActual = DrCargo("Cargo").ToString.ToDouble
|
CargoActual = DrCargo("Cargo").ToString.ToDouble
|
||||||
@@ -7875,7 +7875,7 @@ Partial Class PV
|
|||||||
' End If
|
' End If
|
||||||
'Next
|
'Next
|
||||||
|
|
||||||
Dim DrTamanio As DataRow = GlobalDTAcumTamaños.FiltroPrimero($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo = {DdlRecepcionUsados.SelectedValue}")
|
Dim DrTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($" CvePSCargo = {DdlRecepcionUsados.SelectedValue}")
|
||||||
|
|
||||||
If DdlRecepcionUsados.SelectedValue.ToEntero() > 0 Then
|
If DdlRecepcionUsados.SelectedValue.ToEntero() > 0 Then
|
||||||
TotalCargos += CantidadUsado * DrTamanio("Cargo").ToString().ToDecimal
|
TotalCargos += CantidadUsado * DrTamanio("Cargo").ToString().ToDecimal
|
||||||
@@ -8039,7 +8039,7 @@ Partial Class PV
|
|||||||
|
|
||||||
Dim ListaPScargo As New List(Of MConceptoUsado)
|
Dim ListaPScargo As New List(Of MConceptoUsado)
|
||||||
|
|
||||||
Dim DTTamanios As DataTable = GlobalDTAcumTamaños()
|
Dim DTTamanios As DataTable = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa)
|
||||||
Dim DTCvePSCostos = DTTamanios.FiltraParametros("", "", {"CvePSCargo"})
|
Dim DTCvePSCostos = DTTamanios.FiltraParametros("", "", {"CvePSCargo"})
|
||||||
|
|
||||||
|
|
||||||
@@ -8470,7 +8470,7 @@ Partial Class PV
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub DdlRecepcionUsados_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlRecepcionUsados_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
If DdlRecepcionUsados.SelectedValue.ToEntero() > 0 Then
|
If DdlRecepcionUsados.SelectedValue.ToEntero() > 0 Then
|
||||||
Dim DrTamanio As DataRow = GlobalDTAcumTamaños.FiltroPrimero($"CveEmpresa = {UsuarioActual.CveEmpresa} AND CvePSCargo = {DdlRecepcionUsados.SelectedValue}")
|
Dim DrTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($" CvePSCargo = {DdlRecepcionUsados.SelectedValue}")
|
||||||
DdlBCIUsado.DataSource = DTBCIUsados.FiltraParametros(String.Format("CveTamaño = {0}", DrTamanio("CveTamaño")))
|
DdlBCIUsado.DataSource = DTBCIUsados.FiltraParametros(String.Format("CveTamaño = {0}", DrTamanio("CveTamaño")))
|
||||||
Else
|
Else
|
||||||
DdlBCIUsado.Items.Clear()
|
DdlBCIUsado.Items.Clear()
|
||||||
|
|||||||
@@ -2380,7 +2380,7 @@ Partial Class ProductosyServicios
|
|||||||
|
|
||||||
Protected Sub DdlFraccionArancelaria_selectedindexchange(sender As Object, e As EventArgs)
|
Protected Sub DdlFraccionArancelaria_selectedindexchange(sender As Object, e As EventArgs)
|
||||||
If DdlFraccionArancelaria.SelectedValue.ToEntero > 0 Then
|
If DdlFraccionArancelaria.SelectedValue.ToEntero > 0 Then
|
||||||
LblUnidadAduana.Text = GlobalDTFraccionArancelaria().FiltraParametros($"CveFraccionArancelaria = {DdlFraccionArancelaria.SelectedValue}")(0)("ClaveSATUnidadAduanaDescripcion").ToString
|
LblUnidadAduana.Text = GlobalDTFraccionArancelaria().CopyToDataTable.FiltraParametros($"CveFraccionArancelaria = {DdlFraccionArancelaria.SelectedValue}")(0)("ClaveSATUnidadAduanaDescripcion").ToString
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -599,16 +599,16 @@ public partial class Ventas_RepCancelacionesPorRespuesta : ClsPaginas
|
|||||||
if (e.Row.DBCampo("PuedeRefacturar").ToString().ToEntero() == 1 && e.Row.DBCampo("CveEstatusFactura").ToString().ToEntero() == 23)
|
if (e.Row.DBCampo("PuedeRefacturar").ToString().ToEntero() == 1 && e.Row.DBCampo("CveEstatusFactura").ToString().ToEntero() == 23)
|
||||||
{
|
{
|
||||||
e.Row.FCLinkButton("LnkValidarRefac").Visible = false;
|
e.Row.FCLinkButton("LnkValidarRefac").Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.Row.DBCampo("PuedeRefacturar") == "0" && e.Row.DBCampo("CveEstatusFactura") == "23" && e.Row.DBCampo("CveVentaSustitucion").ToEntero() > 0)
|
if (e.Row.DBCampo("PuedeRefacturar") == "0" && e.Row.DBCampo("CveEstatusFactura") == "23" && e.Row.DBCampo("CveVentaSustitucion").ToEntero() > 0)
|
||||||
{
|
{
|
||||||
if (e.Row.FCLinkButton("LnkCancelar")!= null) e.Row.FCLinkButton("LnkCancelar").Visible = true;
|
if (e.Row.FCLinkButton("LnkCancelar") != null) e.Row.FCLinkButton("LnkCancelar").Visible = true;
|
||||||
//SOLO MOSTRAR SI LA FACTURA NUEVA ESTA EMITIDA
|
//SOLO MOSTRAR SI LA FACTURA NUEVA ESTA EMITIDA
|
||||||
if (e.Row.DBCampo("CveEstatusRefacturacion") != "4" && e.Row.DBCampo("CveEstatusFacturaSustitucion") == "3")
|
//if (e.Row.DBCampo("CveEstatusRefacturacion") != "4" && e.Row.DBCampo("CveEstatusFacturaSustitucion") == "3")
|
||||||
{
|
//{
|
||||||
if (e.Row.FCLinkButton("LnkCancelarFolioSustitucion") != null) e.Row.FCLinkButton("LnkCancelarFolioSustitucion").Visible = true;
|
// if (e.Row.FCLinkButton("LnkCancelarFolioSustitucion") != null) e.Row.FCLinkButton("LnkCancelarFolioSustitucion").Visible = true;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -512,7 +512,7 @@
|
|||||||
<td width="95px"><b>Empresa:</b> </td>
|
<td width="95px"><b>Empresa:</b> </td>
|
||||||
<td width="200px">
|
<td width="200px">
|
||||||
<asp:Label ID="LblEmpresaCRM" runat="server" Text="Cliente"></asp:Label></td>
|
<asp:Label ID="LblEmpresaCRM" runat="server" Text="Cliente"></asp:Label></td>
|
||||||
<td width="135px" runat="server" id="Td5"><b>Enviar Mail:</b></td>
|
<td width="135px" runat="server" id="Td5"><b>Enviar Mail:</b></td>
|
||||||
<td width="85px">
|
<td width="85px">
|
||||||
<asp:CheckBox ID="ChkEnviarFacturaCRM" runat="server" /></td>
|
<asp:CheckBox ID="ChkEnviarFacturaCRM" runat="server" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -907,6 +907,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UpDescripcionVenta" runat="server" class="portlet light xspadding bordered whitoutcol" style="margin-left: auto" UpdateMode="Conditional" Visible="false">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="icon-pin font-green"></i>
|
||||||
|
<span id="Span1" runat="server" class="caption-subject bold uppercase">Descripción </span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse"></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body formnombottom">
|
||||||
|
<table border="0" width="250px">
|
||||||
|
<tr align="left">
|
||||||
|
<td>
|
||||||
|
<asp:TextBox ID="TxtDescripcionVenta" runat="server" Rows="3" TextMode="MultiLine" Width="250px" MaxLength="800" CssClass="form-control input-sm" Enabled="false"></asp:TextBox></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<asp:UpdatePanel ID="Updatetabs" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="Updatetabs" runat="server" UpdateMode="Conditional">
|
||||||
@@ -2578,7 +2604,7 @@
|
|||||||
<div class="row rowpadding">
|
<div class="row rowpadding">
|
||||||
<div class="col-md-2 form-group form-md-line-input" id="DivLblDestino" runat="server" visible="false"><span>Destino:</span></div>
|
<div class="col-md-2 form-group form-md-line-input" id="DivLblDestino" runat="server" visible="false"><span>Destino:</span></div>
|
||||||
<div class="col-md-4 form-group form-md-line-input" id="DivDdlDestino" runat="server" visible="false">
|
<div class="col-md-4 form-group form-md-line-input" id="DivDdlDestino" runat="server" visible="false">
|
||||||
<asp:DropDownList ID="DdlDirecionDestinatario" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="DireccionEnvioContacto" DataValueField="CveDireccionEnvio"></asp:DropDownList>
|
<asp:DropDownList ID="DdlDirecionDestinatario" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="DireccionEnvioContacto" DataValueField="CveDireccionEnvio"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -2615,7 +2641,7 @@
|
|||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2280,6 +2280,14 @@ Partial Class Ventas
|
|||||||
ViewState("SaldoLineaAdicional") = value
|
ViewState("SaldoLineaAdicional") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property SaldoIngresosLineaAdicional As Decimal
|
||||||
|
Get
|
||||||
|
Return (IfNull(ViewState("SaldoIngresosLineaAdicional"), "0", ViewState("SaldoIngresosLineaAdicional"))).ToString().ToDecimal()
|
||||||
|
End Get
|
||||||
|
Set(value As Decimal)
|
||||||
|
ViewState("SaldoIngresosLineaAdicional") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Private Property CveCategoriaLineaAdicional As Integer
|
Private Property CveCategoriaLineaAdicional As Integer
|
||||||
Get
|
Get
|
||||||
@@ -2298,6 +2306,14 @@ Partial Class Ventas
|
|||||||
ViewState("CveMonedaLineaAdicional") = value
|
ViewState("CveMonedaLineaAdicional") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property HabilitoFacturacionIngresoLineaAdicional As Boolean
|
||||||
|
Get
|
||||||
|
Return If(IsNothing(ViewState("HabilitoFacturacionIngresoLineaAdicional")), False, CType(ViewState("HabilitoFacturacionIngresoLineaAdicional"), Boolean))
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
ViewState("HabilitoFacturacionIngresoLineaAdicional") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -3447,6 +3463,13 @@ Partial Class Ventas
|
|||||||
UPObservaciones.Update()
|
UPObservaciones.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.CveEmpresa = 13 Then
|
||||||
|
UpDescripcionVenta.Visible = True
|
||||||
|
If CveVenta <= 0 Then
|
||||||
|
TxtDescripcionVenta.Enabled = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -4797,6 +4820,11 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.CveEmpresa = 13 Then
|
||||||
|
UpDescripcionVenta.Visible = True
|
||||||
|
TxtDescripcionVenta.Text = DbRowVenta("DescripcionVenta").ToString()
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
||||||
Case "Egs"
|
Case "Egs"
|
||||||
@@ -8839,6 +8867,11 @@ Partial Class Ventas
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If DdlLineaAdicional.SelectedValue.ToEntero() > 0 AndAlso Not DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem") Then
|
||||||
|
Alert("No se puede seleccionar una linea adicional de crédito si no se genera una remisón.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
'SI TIENE ANTICIPOS Y ESTA AMORTIZADO AL 100% EL DOCUMENTO (SALDO = 0) | NO VALIDA PU DEL CONCEPTO
|
'SI TIENE ANTICIPOS Y ESTA AMORTIZADO AL 100% EL DOCUMENTO (SALDO = 0) | NO VALIDA PU DEL CONCEPTO
|
||||||
If Not (LblAmortizacion.Text.ToDouble > 0 And TxtTotal.Text.ToDouble <= 0) Then
|
If Not (LblAmortizacion.Text.ToDouble > 0 And TxtTotal.Text.ToDouble <= 0) Then
|
||||||
If Not DdlTipoComprobante.SelectedValue.Contiene("Ped", "Ant", "DPe") Then
|
If Not DdlTipoComprobante.SelectedValue.Contiene("Ped", "Ant", "DPe") Then
|
||||||
@@ -9057,18 +9090,6 @@ Partial Class Ventas
|
|||||||
Alert("El saldo de la linea adicional debe ser mayor a cero", TipoMensaje.MsgAdvertencia)
|
Alert("El saldo de la linea adicional debe ser mayor a cero", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'VERIFICA QUE LA MONEDA DE LA LINEA ADICIONAL SEA LA MISMA QUE LA VENTA
|
|
||||||
If Me.CveMonedaLineaAdicional <> DdlMoneda.SelectedValue.ToEntero() Then
|
|
||||||
Alert("La moneda de la linea adicional de crédito debe ser la misma que la factura.", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
|
|
||||||
'VERIFICA QUE EL SALDO DISPONIBLE SEA MENOR AL IMPORTE
|
|
||||||
If Me.SaldoLineaAdicional <= TxtTotal.Text.ToDecimal() Then
|
|
||||||
Alert("El saldo de la linea adicional debe ser mayor o igual al de la factura", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -9406,6 +9427,38 @@ Partial Class Ventas
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(705) = "1" AndAlso DdlLineaAdicional.SelectedValue.ToEntero() > 0 Then
|
||||||
|
'VERIFICA QUE LA MONEDA DE LA LINEA ADICIONAL SEA LA MISMA QUE LA VENTA
|
||||||
|
If Me.CveMonedaLineaAdicional <> ObjFactura.CveMoneda Then
|
||||||
|
TmpDT = TmpDTError.Copy()
|
||||||
|
CalculaTotalesVenta(RecalcularTotalOriginal:=False)
|
||||||
|
Alert("La moneda de la linea adicional de crédito debe ser la misma que la factura.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
'VERIFICA QUE EL SALDO DISPONIBLE SEA MENOR AL IMPORTE
|
||||||
|
If ObjFactura.TipoDocto = "Rem" AndAlso Me.SaldoLineaAdicional <= ObjFactura.Total Then
|
||||||
|
TmpDT = TmpDTError.Copy()
|
||||||
|
CalculaTotalesVenta(RecalcularTotalOriginal:=False)
|
||||||
|
Alert("El saldo de la linea adicional debe ser mayor o igual al de la remisión", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjFactura.TipoDocto = "Ing" AndAlso (DtRemisionesPS Is Nothing OrElse DtRemisionesPS.Rows.Count = 0) Then
|
||||||
|
TmpDT = TmpDTError.Copy()
|
||||||
|
CalculaTotalesVenta(RecalcularTotalOriginal:=False)
|
||||||
|
Alert("No se puede generar un ingreso con una linea adicional de credito si este no viene de una remisión", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjFactura.TipoDocto = "Ing" AndAlso Me.SaldoIngresosLineaAdicional <= ObjFactura.Total Then
|
||||||
|
TmpDT = TmpDTError.Copy()
|
||||||
|
CalculaTotalesVenta(RecalcularTotalOriginal:=False)
|
||||||
|
Alert("El saldo de la linea adicional debe ser mayor o igual al de la factura", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
'If Not CveEmpresaCRM > 0 Then
|
'If Not CveEmpresaCRM > 0 Then
|
||||||
' If ObjFactura.Cliente.AplicaComercioExterior Then
|
' If ObjFactura.Cliente.AplicaComercioExterior Then
|
||||||
' If Not ValidaComercioExterior() Then
|
' If Not ValidaComercioExterior() Then
|
||||||
@@ -9742,6 +9795,24 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(558) = "1" AndAlso ErrorList.Count = 0 AndAlso ObjFactura.TipoDocto = "Ing" Then
|
||||||
|
Dim RowVenta As DataRow = Nothing
|
||||||
|
If ObjVentas.GetVenta(ObjFactura.CveVenta, UsuarioActual.CveEmpresa, VerificaAlmacen:=False) Then
|
||||||
|
RowVenta = ObjVentas.DtResultados.Rows(0)
|
||||||
|
Else
|
||||||
|
ErrorList.Add("No se pudieron validar los datos de la venta")
|
||||||
|
End If
|
||||||
|
|
||||||
|
If RowVenta IsNot Nothing Then
|
||||||
|
'SI FUE VENTA DE CONTADO VALIDA QUE SE HAYA PAGADO EN SU TOTALIDAD
|
||||||
|
If RowVenta("CondicionesPago").ToString().ToEntero() = 0 AndAlso RowVenta("Saldo").ToString().ToDecimal() > 0.01D Then
|
||||||
|
ErrorList.Add("La venta no fue pagada en su totalidad")
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ErrorList.Add("No se pudieron validar los datos de la venta")
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
'MARCA PARA NO SURTIR VENTA DE COTNRATO DE CONSIGNACION DE VENTA | [IPP] : PARCHE
|
'MARCA PARA NO SURTIR VENTA DE COTNRATO DE CONSIGNACION DE VENTA | [IPP] : PARCHE
|
||||||
If ErrorList.Count = 0 Then
|
If ErrorList.Count = 0 Then
|
||||||
If ObjFactura.CveVenta > 0 And CveAlmacenExistenciasContrato > 0 And DdlTipoComprobante.SelectedValue = "Ing" Then
|
If ObjFactura.CveVenta > 0 And CveAlmacenExistenciasContrato > 0 And DdlTipoComprobante.SelectedValue = "Ing" Then
|
||||||
@@ -13008,6 +13079,11 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim DescripcionVenta As String = ""
|
||||||
|
If factura.TipoDocto = "Ing" AndAlso UsuarioActual.CveEmpresa = 13 Then
|
||||||
|
DescripcionVenta = TxtDescripcionVenta.Text
|
||||||
|
End If
|
||||||
|
|
||||||
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
||||||
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
||||||
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, factura.FormaPago, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, factura.FormaPago, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
||||||
@@ -13024,7 +13100,7 @@ Partial Class Ventas
|
|||||||
DiasCredito:=factura.DiasCredito, EsDiasCreditoFijo:=factura.EsDiasCreditoFijo, AnticipoEspecial:=If(TrAntEspecial.Visible, ChkAntEspecial.Checked, False),
|
DiasCredito:=factura.DiasCredito, EsDiasCreditoFijo:=factura.EsDiasCreditoFijo, AnticipoEspecial:=If(TrAntEspecial.Visible, ChkAntEspecial.Checked, False),
|
||||||
Kilometraje:=TxtKilometraje.Text.ToDouble, EsAmortizacion:=EsNCAmortizacion, CveTipoRetencion:=factura.CveTipoRetencion, CorreoNotificacion:=TxtCorreoNotificaciones.Text,
|
Kilometraje:=TxtKilometraje.Text.ToDouble, EsAmortizacion:=EsNCAmortizacion, CveTipoRetencion:=factura.CveTipoRetencion, CorreoNotificacion:=TxtCorreoNotificaciones.Text,
|
||||||
FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero, FacturarSucursal:=factura.FacturarSucursal, VentaDesglosaIEPS:=factura.VentaDesglosaIEPS, RFCReceptor:=RFCReceptor, Adjunto:=Adjunto, DevolucionImportePagado:=factura.DevolucionImportePagado, EsGarantia:=factura.EsGarantia, ServicioDomicilio:=TrServicioDomicilio.Visible,
|
FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero, FacturarSucursal:=factura.FacturarSucursal, VentaDesglosaIEPS:=factura.VentaDesglosaIEPS, RFCReceptor:=RFCReceptor, Adjunto:=Adjunto, DevolucionImportePagado:=factura.DevolucionImportePagado, EsGarantia:=factura.EsGarantia, ServicioDomicilio:=TrServicioDomicilio.Visible,
|
||||||
CveLineaAdicional:=DdlLineaAdicional.SelectedValue.ToEntero()) Then
|
CveLineaAdicional:=DdlLineaAdicional.SelectedValue.ToEntero(), DescripcionVenta:=DescripcionVenta) Then
|
||||||
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
Else
|
Else
|
||||||
If factura.TipoDocto.Contiene("Dev", "Egs") OrElse DtVentasNC IsNot Nothing OrElse CveEstatusRefacturacion > 0 OrElse CveAnticipoPadre > 0 Then
|
If factura.TipoDocto.Contiene("Dev", "Egs") OrElse DtVentasNC IsNot Nothing OrElse CveEstatusRefacturacion > 0 OrElse CveAnticipoPadre > 0 Then
|
||||||
@@ -18659,28 +18735,40 @@ Partial Class Ventas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CalculaLineasAdicionales()
|
Private Sub CalculaLineasAdicionales()
|
||||||
If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem") AndAlso UsuarioActual.Empresa.Funcionalidad(705) = "1" Then
|
If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "PA") AndAlso UsuarioActual.Empresa.Funcionalidad(705) = "1" Then
|
||||||
DdlLineaAdicional.DataSource = Nothing
|
DdlLineaAdicional.DataSource = Nothing
|
||||||
|
|
||||||
Using ObjVentas As New ClsVentas
|
Using ObjVentas As New ClsVentas
|
||||||
|
'SI ES VENTA EXISTENTE , SI SE VA EDITAR SOLO MOSTRAR LAS CON SALDO, FECHA DE VENCIMIENTO VIGENTE O LA LINEA ACTUAL
|
||||||
If CveVenta > 0 Then
|
If CveVenta > 0 Then
|
||||||
If ObjVentas.GetLineasAdicionalesSaldo(-1, CveCliente, -1, DdlMoneda.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, ConSaldo:=-1, FechaVencimientoConsulta:=MinFecha) Then
|
If ObjVentas.GetLineasAdicionalesSaldo(-1, CveCliente, -1, -1, UsuarioActual.CveEmpresa, ConSaldo:=-1, FechaVencimientoConsulta:=MinFecha) Then
|
||||||
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
||||||
TrLineaAdicional.Visible = True
|
TrLineaAdicional.Visible = True
|
||||||
DdlLineaAdicional.DataSource = ObjVentas.DtResultados.FiltraParametros($"(Saldo > 0 AND FechaVencimiento <= '{Now.ToString("dd/MM/yyyy")}') OR CveLineaAdicional = {Me.CveLineaAdicionalVenta}")
|
DdlLineaAdicional.DataSource = ObjVentas.DtResultados.FiltraParametros($"(Saldo > 0 AND FechaVencimiento <= '{Now.ToString("dd/MM/yyyy")}') OR CveLineaAdicional = {Me.CveLineaAdicionalVenta}")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If ObjVentas.GetLineasAdicionalesSaldo(-1, CveCliente, -1, DdlMoneda.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, ConSaldo:=1, FechaVencimientoConsulta:=Now) Then
|
'SI SE ESTA FACTURANDO UNA REMISION DEBE SELECCIONAR LA LINEA ADICIONAL DE ESTA
|
||||||
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
If Me.CveLineaAdicionalVenta > 0 Then
|
||||||
TrLineaAdicional.Visible = True
|
If ObjVentas.GetLineasAdicionalesSaldo(Me.CveLineaAdicionalVenta, CveCliente, -1, -1, UsuarioActual.CveEmpresa, ConSaldo:=-1, FechaVencimientoConsulta:=MinFecha) Then
|
||||||
DdlLineaAdicional.DataSource = ObjVentas.DtResultados
|
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
||||||
|
TrLineaAdicional.Visible = True
|
||||||
|
DdlLineaAdicional.DataSource = ObjVentas.DtResultados
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If ObjVentas.GetLineasAdicionalesSaldo(-1, CveCliente, -1, -1, UsuarioActual.CveEmpresa, ConSaldo:=1, FechaVencimientoConsulta:=Now) Then
|
||||||
|
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
||||||
|
TrLineaAdicional.Visible = True
|
||||||
|
DdlLineaAdicional.DataSource = ObjVentas.DtResultados
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
DdlLineaAdicional.DataBind()
|
DdlLineaAdicional.DataBind()
|
||||||
|
|
||||||
DdlLineaAdicional.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlLineaAdicional.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
If Me.CveLineaAdicionalVenta > 0 Then
|
If Me.CveLineaAdicionalVenta > 0 Then
|
||||||
@@ -22296,9 +22384,9 @@ Partial Class Ventas
|
|||||||
CargaAnticipos(CveCliente)
|
CargaAnticipos(CveCliente)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CveVenta <= 0 Then
|
'If CveVenta <= 0 Then
|
||||||
CalculaLineasAdicionales()
|
' CalculaLineasAdicionales()
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub btnBuscarPrecio_Click(sender As Object, e As EventArgs) Handles btnBuscarPrecio.Click
|
Private Sub btnBuscarPrecio_Click(sender As Object, e As EventArgs) Handles btnBuscarPrecio.Click
|
||||||
@@ -31616,6 +31704,13 @@ Partial Class Ventas
|
|||||||
DdlMoneda.SelectedValue = GlobalDTMonedas.FiltroPrimeroValor("CveMoneda", $"Abreviatura = '{dtSeleccionadas.FiltroPrimeroValor("Abreviatura")}'")
|
DdlMoneda.SelectedValue = GlobalDTMonedas.FiltroPrimeroValor("CveMoneda", $"Abreviatura = '{dtSeleccionadas.FiltroPrimeroValor("Abreviatura")}'")
|
||||||
DdlMoneda.Enabled = False
|
DdlMoneda.Enabled = False
|
||||||
CambiaMoneda()
|
CambiaMoneda()
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(705) = "1" Then
|
||||||
|
Me.CveLineaAdicionalVenta = dtSeleccionadas.FiltroPrimeroValor("CveLineaAdicional", "CveLineaAdicional > 0").ToEntero()
|
||||||
|
CalculaLineasAdicionales()
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
DdlUsoCFDI.SelectedValueExist(dtSeleccionadas.FiltroPrimeroValor("CveUsoCFDI"))
|
DdlUsoCFDI.SelectedValueExist(dtSeleccionadas.FiltroPrimeroValor("CveUsoCFDI"))
|
||||||
DdlMetodoPago33.SelectedValueExist(dtSeleccionadas.FiltroPrimeroValor("CveMetodoPago"))
|
DdlMetodoPago33.SelectedValueExist(dtSeleccionadas.FiltroPrimeroValor("CveMetodoPago"))
|
||||||
CargaFormaPago(DdlMetodoPago33.SelectedValue.ToEntero())
|
CargaFormaPago(DdlMetodoPago33.SelectedValue.ToEntero())
|
||||||
@@ -36097,42 +36192,76 @@ Partial Class Ventas
|
|||||||
RBLPago.Enabled = False
|
RBLPago.Enabled = False
|
||||||
|
|
||||||
Using ObjVentas As New ClsVentas
|
Using ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetLineasAdicionalesSaldo(DdlLineaAdicional.SelectedValue.ToEntero(), CveCliente, -1, DdlMoneda.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, FechaVencimientoConsulta:=MinFecha) Then
|
If ObjVentas.GetLineasAdicionalesSaldo(DdlLineaAdicional.SelectedValue.ToEntero(), CveCliente, -1, -1, UsuarioActual.CveEmpresa, FechaVencimientoConsulta:=MinFecha) Then
|
||||||
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
||||||
Dim RowLinea As DataRow = ObjVentas.DtResultados.Rows(0)
|
Dim RowLinea As DataRow = ObjVentas.DtResultados.Rows(0)
|
||||||
If RowLinea IsNot Nothing Then
|
If RowLinea IsNot Nothing Then
|
||||||
TxtFechaPago.Text = RowLinea("FechaVencimiento").ToString().ToDateTime().ToString("dd/MM/yyyy")
|
If CveVenta <= 0 Then
|
||||||
|
TxtFechaPago.Text = RowLinea("FechaVencimiento").ToString().ToDateTime().ToString("dd/MM/yyyy")
|
||||||
|
|
||||||
'AL FACTURAR CON LINEA ADICIONAL TIPO PO, SE SUMARÁN LOS DIAS DE VENCIMIENTO A LA FECHA ACTUAL
|
'AL FACTURAR CON LINEA ADICIONAL TIPO PO, SE SUMARÁN LOS DIAS DE VENCIMIENTO A LA FECHA ACTUAL
|
||||||
If RowLinea("TipoLinea").ToString() = "2" Then
|
If RowLinea("TipoLinea").ToString() = "2" Then
|
||||||
TxtFechaPago.Text = Now.AddDays(RowLinea("DiasVencimiento").ToString().ToEntero()).ToString("dd/MM/yyyy")
|
TxtFechaPago.Text = Now.AddDays(RowLinea("DiasVencimiento").ToString().ToEntero()).ToString("dd/MM/yyyy")
|
||||||
TxtFechaPago.Enabled = False
|
TxtFechaPago.Enabled = False
|
||||||
imgCalendario.Visible = False
|
imgCalendario.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
TxtOrdenCompra.Text = RowLinea("LineaAdicionalComercializador").ToString()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Me.CveCategoriaLineaAdicional = RowLinea("CveCategoria").ToString().ToEntero()
|
Me.CveCategoriaLineaAdicional = RowLinea("CveCategoria").ToString().ToEntero()
|
||||||
Me.CveMonedaLineaAdicional = RowLinea("CveMoneda").ToString().ToEntero()
|
Me.CveMonedaLineaAdicional = RowLinea("CveMoneda").ToString().ToEntero()
|
||||||
Me.SaldoLineaAdicional = RowLinea("Saldo").ToString().ToDecimal()
|
Me.SaldoLineaAdicional = RowLinea("Saldo").ToString().ToDecimal()
|
||||||
|
Me.SaldoIngresosLineaAdicional = RowLinea("SaldoIngresos").ToString().ToDecimal()
|
||||||
|
|
||||||
|
If CveVenta <= 0 Then
|
||||||
|
If DdlTipoComprobante.SelectedValue.Contiene("PA") Then
|
||||||
|
'SI NO TIENE LA OPCION DE FACTURAR LA PERMITE
|
||||||
|
If DdlTipoComprobante.Items.FindByValue("Rem") Is Nothing Then
|
||||||
|
DdlTipoComprobante.Items.Insert(0, New ListItem("Remisión", "Rem"))
|
||||||
|
HabilitoFacturacionIngresoLineaAdicional = True
|
||||||
|
End If
|
||||||
|
DdlTipoComprobante.SelectedValueExist("Rem")
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Alert("No se pudieron obtener datos de la linea adicional", TipoMensaje.MsgAdvertencia)
|
Alert("No se pudieron obtener datos de la linea adicional", TipoMensaje.MsgAdvertencia)
|
||||||
Me.SaldoLineaAdicional = 0
|
Me.SaldoLineaAdicional = 0
|
||||||
|
Me.SaldoIngresosLineaAdicional = 0
|
||||||
Me.CveCategoriaLineaAdicional = 0
|
Me.CveCategoriaLineaAdicional = 0
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Alert("No se pudieron obtener datos de la linea adicional", TipoMensaje.MsgAdvertencia)
|
Alert("No se pudieron obtener datos de la linea adicional", TipoMensaje.MsgAdvertencia)
|
||||||
Me.SaldoLineaAdicional = 0
|
Me.SaldoLineaAdicional = 0
|
||||||
|
Me.SaldoIngresosLineaAdicional = 0
|
||||||
Me.CveCategoriaLineaAdicional = 0
|
Me.CveCategoriaLineaAdicional = 0
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
Else
|
Else
|
||||||
Me.SaldoLineaAdicional = 0
|
Me.SaldoLineaAdicional = 0
|
||||||
|
Me.SaldoIngresosLineaAdicional = 0
|
||||||
Me.CveCategoriaLineaAdicional = 0
|
Me.CveCategoriaLineaAdicional = 0
|
||||||
TxtFechaPago.Text = Now.ToString("dd/MM/yyyy")
|
|
||||||
|
If CveVenta <= 0 Then
|
||||||
|
TxtFechaPago.Text = Now.ToString("dd/MM/yyyy")
|
||||||
|
TxtOrdenCompra.Text = ""
|
||||||
|
|
||||||
|
'SI SE HABILITO LA FACTURACION DESDE LA LINEA ADICIONAL DEBE QUITARLO
|
||||||
|
If HabilitoFacturacionIngresoLineaAdicional Then
|
||||||
|
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("Rem"))
|
||||||
|
DdlTipoComprobante.SelectedValueExist("PA")
|
||||||
|
|
||||||
|
UpParametros.Update()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
UPCondicionesPago.Update()
|
UPCondicionesPago.Update()
|
||||||
|
UPObservaciones.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkUpdateLineaAdicional_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkUpdateLineaAdicional_Click(sender As Object, e As EventArgs)
|
||||||
'VALIDAR LINEAS ADICIONALES
|
'VALIDAR LINEAS ADICIONALES
|
||||||
|
|||||||
Reference in New Issue
Block a user