Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -1,152 +0,0 @@
|
|||||||
Imports System.Data
|
|
||||||
Imports System.Data.SqlClient
|
|
||||||
Imports Extensiones
|
|
||||||
|
|
||||||
Public Class ClsDestinos
|
|
||||||
Implements IDisposable
|
|
||||||
|
|
||||||
#Region "Campos"
|
|
||||||
'SQL
|
|
||||||
Private SqlConexion As SqlConnection
|
|
||||||
Private SqlAdapter As SqlDataAdapter
|
|
||||||
Private SqlCommand As SqlCommand
|
|
||||||
Private SqlTransacc As SqlTransaction
|
|
||||||
Private Data As DataTable
|
|
||||||
Private DSet As New DataSet
|
|
||||||
|
|
||||||
Private disposedValue As Boolean = False ' Para detectar llamadas redundantes
|
|
||||||
'REGISTRAR CONEXIÓN
|
|
||||||
Private CveConexion As Integer = 0
|
|
||||||
Public ReadOnly Property DtResultados() As DataTable
|
|
||||||
Get
|
|
||||||
DtResultados = Data
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
#Region "Propiedades"
|
|
||||||
Public Property CveDestino As Integer
|
|
||||||
Public Property CveUsuario As Integer
|
|
||||||
Public Property CveEmpresa As Integer
|
|
||||||
Public Property Destino As String
|
|
||||||
Public Property Estatus As Boolean
|
|
||||||
Public Property EsNacional As Boolean
|
|
||||||
Public Property FechaIng As DateTime
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
#Region "Funciones básicas"
|
|
||||||
Sub New(Optional TransaccionCompartida As SqlTransaction = Nothing)
|
|
||||||
|
|
||||||
If TransaccionCompartida Is Nothing Then
|
|
||||||
SqlConexion = New SqlConnection
|
|
||||||
SqlConexion.ConnectionString = ConfigurationManager.ConnectionStrings("Conexion").ConnectionString
|
|
||||||
Try
|
|
||||||
SqlConexion.Open()
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrió un error al intentar conectarse a la base de datos.", ex)
|
|
||||||
End Try
|
|
||||||
Else
|
|
||||||
SqlConexion = TransaccionCompartida.Connection
|
|
||||||
SqlTransacc = TransaccionCompartida
|
|
||||||
End If
|
|
||||||
|
|
||||||
SqlAdapter = New SqlDataAdapter("", SqlConexion)
|
|
||||||
ConexionAdd()
|
|
||||||
End Sub
|
|
||||||
Private Sub DataAdapter(StrSQL As String, Optional TipoComando As CommandType = CommandType.StoredProcedure)
|
|
||||||
With SqlAdapter.SelectCommand
|
|
||||||
.Parameters.Clear()
|
|
||||||
.CommandText = StrSQL
|
|
||||||
.CommandType = TipoComando
|
|
||||||
End With
|
|
||||||
If Not SqlTransacc Is Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
|
|
||||||
Data = New DataTable
|
|
||||||
End Sub
|
|
||||||
#Region "Conexiones"
|
|
||||||
|
|
||||||
Private Sub ConexionAdd()
|
|
||||||
If ConfigurationManager.AppSettings("RegistraConexion") IsNot Nothing AndAlso ConfigurationManager.AppSettings("RegistraConexion").ToString() = "1" Then
|
|
||||||
Try
|
|
||||||
DataAdapter("PA_Sis_RegistrarConexion")
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
|
||||||
.Add("@Clase", SqlDbType.VarChar).Value = Me.GetType().Name
|
|
||||||
.Add("@Modulo", SqlDbType.VarChar).Value = String.Format("{0}?{1}", HttpContext.Current.Request.Url.AbsolutePath.ToString, HttpContext.Current.Request.QueryString.ToString)
|
|
||||||
.Add("@IDConexion", SqlDbType.Int).Direction = ParameterDirection.Output
|
|
||||||
End With
|
|
||||||
SqlAdapter.Fill(Data)
|
|
||||||
CveConexion = SqlAdapter.SelectCommand.Parameters("@IDConexion").Value.ToString.ToEntero
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrió un error registrar la conexión.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
|
||||||
End Try
|
|
||||||
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub ConexionClose()
|
|
||||||
If CveConexion > 0 AndAlso ConfigurationManager.AppSettings("RegistraConexion") IsNot Nothing AndAlso ConfigurationManager.AppSettings("RegistraConexion").ToString() = "1" Then
|
|
||||||
|
|
||||||
DataAdapter(String.Format("UPDATE Sis_Conexiones SET FechaCierre = GETDATE() WHERE CveConexion = {0}", CveConexion), CommandType.Text)
|
|
||||||
|
|
||||||
Try
|
|
||||||
SqlAdapter.Fill(Data)
|
|
||||||
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrió un error registrar la conexión.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
|
||||||
End Try
|
|
||||||
CveConexion = 0
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
#End Region
|
|
||||||
Public Function IniciaTransacSQL() As SqlTransaction
|
|
||||||
If SqlTransacc Is Nothing Then SqlTransacc = SqlConexion.BeginTransaction()
|
|
||||||
Return SqlTransacc
|
|
||||||
End Function
|
|
||||||
Public Sub RollBack()
|
|
||||||
SqlTransacc.Rollback()
|
|
||||||
End Sub
|
|
||||||
Public Sub Commit()
|
|
||||||
SqlTransacc.Commit()
|
|
||||||
End Sub
|
|
||||||
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
|
|
||||||
If Not disposedValue Then
|
|
||||||
If disposing Then
|
|
||||||
If Not Data Is Nothing Then Data.Dispose() : Data = Nothing
|
|
||||||
If Not DSet Is Nothing Then DSet.Dispose() : DSet = Nothing
|
|
||||||
If Not SqlAdapter Is Nothing Then SqlAdapter.Dispose() : SqlAdapter = Nothing
|
|
||||||
If Not SqlCommand Is Nothing Then SqlCommand.Dispose() : SqlCommand = Nothing
|
|
||||||
If Not SqlTransacc Is Nothing Then SqlTransacc.Dispose() : SqlTransacc = Nothing
|
|
||||||
If SqlConexion.State <> ConnectionState.Closed Then SqlConexion.Close()
|
|
||||||
If Not SqlConexion Is Nothing Then SqlConexion.Dispose() : SqlConexion = Nothing
|
|
||||||
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
disposedValue = True
|
|
||||||
End Sub
|
|
||||||
Public Sub Dispose() Implements IDisposable.Dispose
|
|
||||||
ConexionClose()
|
|
||||||
Dispose(True)
|
|
||||||
GC.SuppressFinalize(Me)
|
|
||||||
End Sub
|
|
||||||
#End Region
|
|
||||||
Public Function GetDestinos(Optional CveRuta As Integer = 0) As Boolean
|
|
||||||
Dim Retorno As Boolean = False
|
|
||||||
DataAdapter("PA_Trans_DestinosGet")
|
|
||||||
If CveRuta <> 0 Then
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
|
||||||
.Add("@CveRuta", SqlDbType.Int).Value = CveRuta
|
|
||||||
End With
|
|
||||||
End If
|
|
||||||
|
|
||||||
Try
|
|
||||||
SqlAdapter.Fill(Data)
|
|
||||||
Retorno = True
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrió un error al obtener los destino.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
|
||||||
End Try
|
|
||||||
|
|
||||||
Return Retorno
|
|
||||||
End Function
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -9631,9 +9631,9 @@ Public Class ClsPaginas
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Transportes"
|
#Region "Transportes"
|
||||||
PaginaDict.Add("/Transportes/ListadoContratos.aspx".ToUpper(), 598)
|
PaginaDict.Add("/Transportes/RepContratos.aspx".ToUpper(), 598)
|
||||||
PaginaDict.Add("/Transportes/ListadoViajes.aspx".ToUpper(), 599)
|
PaginaDict.Add("/Transportes/RepViajes.aspx".ToUpper(), 599)
|
||||||
PaginaDict.Add("/Transportes/ListadoBoletos.aspx".ToUpper(), 600)
|
PaginaDict.Add("/Transportes/RepBoletos.aspx".ToUpper(), 600)
|
||||||
PaginaDict.Add("/Transportes/Boletos.aspx".ToUpper(), 601)
|
PaginaDict.Add("/Transportes/Boletos.aspx".ToUpper(), 601)
|
||||||
#End Region
|
#End Region
|
||||||
'Antes de aquí.
|
'Antes de aquí.
|
||||||
|
|||||||
@@ -129,26 +129,6 @@ Public Class ClsRutas
|
|||||||
GC.SuppressFinalize(Me)
|
GC.SuppressFinalize(Me)
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
Public Function GetRutas(CveRuta As Integer, CveUsuario As Integer, CveEmpresa As Integer, Ruta As String, Estatus As Boolean, FechaIng As DateTime) As Boolean
|
|
||||||
Dim Retorno As Boolean = False
|
|
||||||
DataAdapter("PA_Trans_RutasGet")
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
|
||||||
.Add("@CveRuta", SqlDbType.Int).Value = CveRuta
|
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
|
||||||
.Add("@Ruta", SqlDbType.VarChar).Value = Ruta
|
|
||||||
.Add("@Estatus", SqlDbType.Bit).Value = Estatus
|
|
||||||
.Add("@FechaIng", SqlDbType.DateTime).Value = FechaIng
|
|
||||||
|
|
||||||
End With
|
|
||||||
Try
|
|
||||||
SqlAdapter.Fill(Data)
|
|
||||||
Retorno = True
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrió un error al obtener las rutas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
|
||||||
End Try
|
|
||||||
|
|
||||||
Return Retorno
|
|
||||||
End Function
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ Public Class ClsTransportes
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Boletos"
|
#Region "Boletos"
|
||||||
Public Function AddViajesPasajeros(CveViaje As Integer, CveDestinoOrigen As Integer, CveDestinoFinal As Integer, Importe As Decimal, Asiento As Integer, Nombre As String, Visa As String, Celular As String, Sexo As Boolean, Observacion As String, CveUsuario As Integer) As Integer
|
Public Function AddViajesPasajeros(CveViaje As Integer, CveDestinoOrigen As Integer, CveDestinoFinal As Integer, Importe As Decimal, Asiento As Integer, Nombre As String, Visa As String, Celular As String, Sexo As Boolean, Observacion As String, CveUsuario As Integer, CveVendedor As Integer) As Integer
|
||||||
Dim Retorno As Integer = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
DataAdapter("PA_Trans_ViajesPasajerosAdd")
|
DataAdapter("PA_Trans_ViajesPasajerosAdd")
|
||||||
@@ -259,6 +259,7 @@ Public Class ClsTransportes
|
|||||||
.Add("@Sexo", SqlDbType.Bit).Value = Sexo
|
.Add("@Sexo", SqlDbType.Bit).Value = Sexo
|
||||||
.Add("@Observacion", SqlDbType.VarChar).Value = Observacion
|
.Add("@Observacion", SqlDbType.VarChar).Value = Observacion
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -299,7 +300,7 @@ Public Class ClsTransportes
|
|||||||
Public Function UpdateViajesPasajeros(CveViajePasajero As Integer, Optional Estatus As Boolean = True, Optional Activar As Boolean = False) As Boolean
|
Public Function UpdateViajesPasajeros(CveViajePasajero As Integer, Optional Estatus As Boolean = True, Optional Activar As Boolean = False) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Trans_ViajesPasajerosUpdate")
|
DataAdapter("PA_Trans_ViajesPasajerosUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveViajePasajero", SqlDbType.Int).Value = CveViajePasajero
|
.Add("@CveViajePasajero", SqlDbType.Int).Value = CveViajePasajero
|
||||||
.Add("@Estatus", SqlDbType.Int).Value = Estatus
|
.Add("@Estatus", SqlDbType.Int).Value = Estatus
|
||||||
@@ -316,6 +317,8 @@ Public Class ClsTransportes
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
#Region "Destinos"
|
||||||
Public Function GetDestinos(Optional CveRuta As Integer = 0) As Boolean
|
Public Function GetDestinos(Optional CveRuta As Integer = 0) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Trans_DestinosGet")
|
DataAdapter("PA_Trans_DestinosGet")
|
||||||
@@ -334,6 +337,33 @@ Public Class ClsTransportes
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Rutas"
|
||||||
|
Public Function GetRutas(CveRuta As Integer, CveUsuario As Integer, CveEmpresa As Integer, Ruta As String, Estatus As Boolean, FechaIng As DateTime) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Trans_RutasGet")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveRuta", SqlDbType.Int).Value = CveRuta
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@Ruta", SqlDbType.VarChar).Value = Ruta
|
||||||
|
.Add("@Estatus", SqlDbType.Bit).Value = Estatus
|
||||||
|
.Add("@FechaIng", SqlDbType.DateTime).Value = FechaIng
|
||||||
|
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener las rutas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
|
|
||||||
#Region "Tarifas"
|
#Region "Tarifas"
|
||||||
Public Function GetDestinosTarifas(CveDestinoOrigen As Integer, CveDestinoFinal As Integer) As Boolean
|
Public Function GetDestinosTarifas(CveDestinoOrigen As Integer, CveDestinoFinal As Integer) As Boolean
|
||||||
|
|||||||
@@ -568,35 +568,33 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateVentas(SubTotal As Double, Descuento As Double, IVA As Double, IEPS As Double, Total As Double, CveMoneda As Integer, TipoCambio As Double,
|
Public Function UpdateVentas(SubTotal As Decimal, Descuento As Decimal, IVA As Decimal, IEPS As Decimal, Total As Decimal, CveMoneda As Integer, TipoCambio As Decimal,
|
||||||
Fecha As Date, Observaciones As String, CveEmpresa As Integer, CveVenta As Integer, CveMetodoPago As Integer, FormaPago As Integer,
|
Fecha As Date, Observaciones As String, CveEmpresa As Integer, CveVenta As Integer,
|
||||||
Optional TipoDocto As String = "Cot", Optional Vigencia As Date = MinFecha, Optional CondicionesPago As Integer = -1,
|
Optional TipoDocto As String = "Cot", Optional Vigencia As Date = MinFecha, Optional CondicionesPago As Integer = -1,
|
||||||
Optional AtencionA As String = "-1", Optional PedidoContrato As String = "-1", Optional CveFormaPago33 As Integer = -1, Optional CveMetodoPago33 As Integer = -1,
|
Optional AtencionA As String = "", Optional PedidoContrato As String = "", Optional CveFormaPago33 As Integer = -1, Optional CveMetodoPago33 As Integer = -1,
|
||||||
Optional CveCliente As Integer = -1, Optional CveClienteSucursal As Integer = -1, Optional OrdenCompra As String = "-1", Optional RetIVA As Double = -1,
|
Optional CveCliente As Integer = -1, Optional CveClienteSucursal As Integer = -1, Optional OrdenCompra As String = "-1", Optional RetIVA As Decimal = -1,
|
||||||
Optional RetISR As Double = -1, Optional Kilometraje As Double = 0, Optional CveUsoCFDi As Integer = -1, Optional ServicioDomicilio As Boolean = False, Optional CveVendedor As Integer = -1,
|
Optional RetISR As Decimal = -1, Optional Kilometraje As Decimal = 0, Optional CveUsoCFDi As Integer = -1, Optional ServicioDomicilio As Boolean = False, Optional CveVendedor As Integer = -1,
|
||||||
Optional RequiereOS As Boolean = False, Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1) As Boolean
|
Optional RequiereOS As Boolean = False, Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_VentasUpdate")
|
DataAdapter("PA_Vta_VentasUpdate")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@SubTotal", SqlDbType.Float).Value = SubTotal
|
.Add("@SubTotal", SqlDbType.Money).Value = SubTotal
|
||||||
.Add("@Descuento", SqlDbType.Float).Value = Descuento
|
.Add("@Descuento", SqlDbType.Money).Value = Descuento
|
||||||
.Add("@IVA", SqlDbType.Float).Value = IVA
|
.Add("@IVA", SqlDbType.Money).Value = IVA
|
||||||
.Add("@IEPS", SqlDbType.Float).Value = IEPS
|
.Add("@IEPS", SqlDbType.Money).Value = IEPS
|
||||||
.Add("@Total", SqlDbType.Float).Value = Total
|
.Add("@Total", SqlDbType.Money).Value = Total
|
||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@TipoCambio", SqlDbType.Float).Value = TipoCambio
|
.Add("@TipoCambio", SqlDbType.Money).Value = TipoCambio
|
||||||
.Add("@RetIVA", SqlDbType.Float).Value = RetIVA
|
.Add("@RetIVA", SqlDbType.Money).Value = RetIVA
|
||||||
.Add("@RetISR", SqlDbType.Float).Value = RetISR
|
.Add("@RetISR", SqlDbType.Money).Value = RetISR
|
||||||
.Add("@Fecha", SqlDbType.Date).Value = Fecha
|
.Add("@Fecha", SqlDbType.Date).Value = Fecha
|
||||||
.Add("@Observaciones", SqlDbType.VarChar).Value = Observaciones
|
.Add("@Observaciones", SqlDbType.VarChar).Value = Observaciones
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||||
.Add("@TipoDocto", SqlDbType.VarChar).Value = TipoDocto
|
.Add("@TipoDocto", SqlDbType.VarChar).Value = TipoDocto
|
||||||
.Add("@CveMetodoPago", SqlDbType.Int).Value = CveMetodoPago
|
|
||||||
.Add("@CondicionesPago", SqlDbType.Int).Value = CondicionesPago
|
.Add("@CondicionesPago", SqlDbType.Int).Value = CondicionesPago
|
||||||
.Add("@FormaPago", SqlDbType.Int).Value = FormaPago
|
|
||||||
.Add("@AtencionA", SqlDbType.VarChar).Value = AtencionA
|
.Add("@AtencionA", SqlDbType.VarChar).Value = AtencionA
|
||||||
.Add("@Vigencia", SqlDbType.Date).Value = Vigencia
|
.Add("@Vigencia", SqlDbType.Date).Value = Vigencia
|
||||||
.Add("@PedidoContrato", SqlDbType.VarChar).Value = PedidoContrato
|
.Add("@PedidoContrato", SqlDbType.VarChar).Value = PedidoContrato
|
||||||
@@ -605,7 +603,7 @@ Public Class ClsVentas
|
|||||||
.Add("@CveCliente", SqlDbType.Int).Value = CveCliente
|
.Add("@CveCliente", SqlDbType.Int).Value = CveCliente
|
||||||
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
||||||
.Add("@OrdenCompra", SqlDbType.VarChar).Value = OrdenCompra
|
.Add("@OrdenCompra", SqlDbType.VarChar).Value = OrdenCompra
|
||||||
.Add("@Kilometraje", SqlDbType.Float).Value = Kilometraje
|
.Add("@Kilometraje", SqlDbType.Money).Value = Kilometraje
|
||||||
.Add("@CveUsoCFDi", SqlDbType.SmallInt).Value = CveUsoCFDi
|
.Add("@CveUsoCFDi", SqlDbType.SmallInt).Value = CveUsoCFDi
|
||||||
.Add("@ServicioDomicilio", SqlDbType.Bit).Value = ServicioDomicilio
|
.Add("@ServicioDomicilio", SqlDbType.Bit).Value = ServicioDomicilio
|
||||||
.Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
|
.Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
|
||||||
|
|||||||
@@ -227,12 +227,12 @@ Namespace ADSSession
|
|||||||
Case OpcionSession.getListasession
|
Case OpcionSession.getListasession
|
||||||
retorno = _dicSessionobj.Values.ToList()
|
retorno = _dicSessionobj.Values.ToList()
|
||||||
Case OpcionSession.CerrarSession
|
Case OpcionSession.CerrarSession
|
||||||
Dim objlist = _dicSessionobj.Values.ToList()
|
Dim objlist As List(Of ADSSessionObj) = _dicSessionobj.Values.ToList()
|
||||||
For Each user As ADSSession.ADSSessionObj In objlist
|
For Each user As ADSSession.ADSSessionObj In objlist
|
||||||
If CveUsuario = user.CveUsuario Then 'AndAlso (CveEmpresa = -1 OrElse CveEmpresa = user.CveEmpresa) Then
|
If CveUsuario = user.CveUsuario Then 'AndAlso (CveEmpresa = -1 OrElse CveEmpresa = user.CveEmpresa) Then
|
||||||
Dim taspsig As String = user.ASPSIG '"94C6AC57E8599390A4B7B8AB41FEABEF466D9B31120BE06D78110E66265F1ACC5616297BF3B88EDCEE71EBCFE35484308F62C8017EAC29FB3F0FB45CEC09E8F03DFBB4A4DD890D45755B7A30185C6D01F20AEFA74BE3A25FD12D536B20DCB8D9940A3D95"
|
Dim taspsig As String = user.ASPSIG '"94C6AC57E8599390A4B7B8AB41FEABEF466D9B31120BE06D78110E66265F1ACC5616297BF3B88EDCEE71EBCFE35484308F62C8017EAC29FB3F0FB45CEC09E8F03DFBB4A4DD890D45755B7A30185C6D01F20AEFA74BE3A25FD12D536B20DCB8D9940A3D95"
|
||||||
Dim tsessionID As String = user.SessionID
|
Dim tsessionID As String = user.SessionID
|
||||||
Dim url = System.Configuration.ConfigurationManager.AppSettings("urlcerrarSession").ToString()
|
Dim url As String = System.Configuration.ConfigurationManager.AppSettings("urlcerrarSession").ToString()
|
||||||
Dim cookie As String = String.Format("ASP.NET_SessionId={0};.ASPXSIG={1}", tsessionID, taspsig)
|
Dim cookie As String = String.Format("ASP.NET_SessionId={0};.ASPXSIG={1}", tsessionID, taspsig)
|
||||||
sendURL(url, cookie)
|
sendURL(url, cookie)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ Imports System.Xml
|
|||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports iText.Barcodes.Dmcode
|
Imports iText.Barcodes.Dmcode
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports Stimulsoft.Report
|
|
||||||
Imports Stimulsoft.Report.Web
|
|
||||||
|
|
||||||
Partial Class PopUpVerFactura
|
Partial Class PopUpVerFactura
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -3400,12 +3399,8 @@ Partial Class PopUpVerFactura
|
|||||||
If Archivo.Exists Then
|
If Archivo.Exists Then
|
||||||
If RegenerarPDF Then
|
If RegenerarPDF Then
|
||||||
Archivo.Delete()
|
Archivo.Delete()
|
||||||
If UsuarioActual.Empresa.CvePlataforma = 2 Then
|
ImprimirbytesPDF(PdfFactura(Vta, AplicaPagare:=AplicaPagare, Guardar:=True, SubReportData:=CartaPorte, RegenerarQR:=True), Vta.SerieFolio, "PDF")
|
||||||
GeneraPDFVtaPyMe(Vta, "PDF")
|
Vta = Nothing
|
||||||
Else
|
|
||||||
ImprimirbytesPDF(PdfFactura(Vta, AplicaPagare:=AplicaPagare, Guardar:=True, SubReportData:=CartaPorte, RegenerarQR:=True), Vta.SerieFolio, "PDF")
|
|
||||||
Vta = Nothing
|
|
||||||
End If
|
|
||||||
Else
|
Else
|
||||||
HttpContext.Current.Response.Clear()
|
HttpContext.Current.Response.Clear()
|
||||||
HttpContext.Current.Response.ClearContent()
|
HttpContext.Current.Response.ClearContent()
|
||||||
@@ -3418,20 +3413,11 @@ Partial Class PopUpVerFactura
|
|||||||
Archivo = Nothing
|
Archivo = Nothing
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
|
ImprimirbytesPDF(PdfFactura(Vta, AplicaPagare:=AplicaPagare, Guardar:=Guardar, SubReportData:=CartaPorte), Vta.SerieFolio, "PDF")
|
||||||
'04/05/2018 - Se agrega seccion pruebas para generar factura venta .mrt para PyME
|
Vta = Nothing
|
||||||
If UsuarioActual.Empresa.CvePlataforma = 2 Then
|
|
||||||
GeneraPDFVtaPyMe(Vta, "PDF")
|
|
||||||
Else
|
|
||||||
ImprimirbytesPDF(PdfFactura(Vta, AplicaPagare:=AplicaPagare, Guardar:=Guardar, SubReportData:=CartaPorte), Vta.SerieFolio, "PDF")
|
|
||||||
Vta = Nothing
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -6530,65 +6516,6 @@ Partial Class PopUpVerFactura
|
|||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "OP = VTA - PyME"
|
|
||||||
|
|
||||||
' 04/05/2018 - Pruebas de impresion de factura PyME
|
|
||||||
Private Sub GeneraPDFVtaPyMe(Venta As Modelos.Factura, Optional Formato As String = "PDF")
|
|
||||||
Dim Directorio1 As String = String.Format("{0}Formatos\Factura.mrt", UsuarioActual.Empresa.Ruta)
|
|
||||||
Dim File As FileInfo = New FileInfo(Directorio1)
|
|
||||||
|
|
||||||
If File.Exists Then
|
|
||||||
Dim Reporte As StiReport = New StiReport()
|
|
||||||
Reporte.Load(Directorio1)
|
|
||||||
Reporte.Dictionary.DataSources.Clear()
|
|
||||||
|
|
||||||
Dim ds As DataSet = New DataSet()
|
|
||||||
Venta.DtDetalle.TableName = "Datos"
|
|
||||||
|
|
||||||
ds.Tables.Add(Venta.DtDetalle)
|
|
||||||
|
|
||||||
Reporte.RegData(ds)
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("Empresa").Value = UsuarioActual.Empresa.Empresa
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("Tipo").Value = "Ingreso"
|
|
||||||
Reporte.Dictionary.Variables("RFC").Value = UsuarioActual.Empresa.RFC
|
|
||||||
Reporte.Dictionary.Variables("Serie").Value = Venta.Serie
|
|
||||||
Reporte.Dictionary.Variables("Folio").Value = Venta.Folio.ToString()
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("ClienteNombre").Value = Venta.Cliente.Nombre
|
|
||||||
Reporte.Dictionary.Variables("ClienteDireccion").Value = Venta.Cliente.Direccion
|
|
||||||
Reporte.Dictionary.Variables("ClienteLugar").Value = Venta.Cliente.Ciudad
|
|
||||||
Reporte.Dictionary.Variables("ClienteRFC").Value = Venta.Cliente.RFC
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("DomicilioExpedicion").Value = Venta.SubProyecto.Direccion
|
|
||||||
|
|
||||||
Dim SubtTotal As Decimal = (Venta.DtDetalle.SUM("PU") * Venta.DtDetalle.SUM("Cantidad")) '* 0.16 lleva el IVA?
|
|
||||||
Dim IVA As Decimal = SubtTotal * 0.16D 'lleva IVA?
|
|
||||||
Dim Total As Decimal = SubtTotal + IVA
|
|
||||||
|
|
||||||
'Reporte.Dictionary.Variables("Importe").Value =
|
|
||||||
Reporte.Dictionary.Variables("ImporteLetra").Value = Total.Texto2Letras()
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("SubTotal").Value = SubtTotal.ToString()
|
|
||||||
Reporte.Dictionary.Variables("IVA").Value = IVA.ToString()
|
|
||||||
Reporte.Dictionary.Variables("Total").Value = Total.ToString()
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("UsoCFDI").Value = Venta.UsoCFDI
|
|
||||||
Reporte.Dictionary.Variables("MetodoPago").Value = Venta.MetodoPago33
|
|
||||||
Reporte.Dictionary.Variables("FormaPago").Value = Venta.FormaPago33
|
|
||||||
|
|
||||||
Reporte.Dictionary.Variables("QR").Value = "lajgkfjsldasdhjsakd229312974tedghjbsadskuuhdkjsad"
|
|
||||||
Reporte.Dictionary.Variables("SelloCFDI").Value = "lajgkfjsldasdhjsakd229312974tedghjbsadskuuhdkjsadlajgkfjsldasdhjsakd229312974tedghjbsadskuuhdkjsadlajgkfjsldasdhjsakd229312974tedghjbsadskuuhdkjsad"
|
|
||||||
Reporte.Dictionary.Variables("SelloSAT").Value = "lajgkfjsldasdhjsakd229312974tedghjbsadskuuhdkjsad"
|
|
||||||
Reporte.Dictionary.Synchronize()
|
|
||||||
|
|
||||||
StiReportResponse.ResponseAsPdf(Me, Reporte)
|
|
||||||
Else
|
|
||||||
RegistraScript("alert('No hay un formato de factura predefinido,favor de comunicar a soporte tecnico')")
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
#Region "OP = ENTREGAS - Entregas por realizar"
|
#Region "OP = ENTREGAS - Entregas por realizar"
|
||||||
Public Sub ImprimeEntregasPorRealizar(CveAsignacionEntrega As Long, pUsuarioEntregar As String)
|
Public Sub ImprimeEntregasPorRealizar(CveAsignacionEntrega As Long, pUsuarioEntregar As String)
|
||||||
|
|||||||
@@ -2070,7 +2070,10 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
Else
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovtoAlmacen, tValorInventario, tValorInventario, CveConceptoContable, TxtObservaciones.Text.Trim, TxtObservaciones.Text.Trim, CveMovimientoAlmacen:=CveMovimiento, CveClasificacion:=CveClasificacion, Contabilizable:=EsContabilizable) Then
|
||||||
|
ErrorMovInv = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
@@ -4433,7 +4436,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "GUARDAR"
|
#Region "GUARDAR CAMBIO INVENTARIO FISICO "
|
||||||
Private Sub BtnAplicarCambioInvFisico_Click(sender As Object, e As EventArgs) Handles BtnAplicarCambioInvFisico.Click
|
Private Sub BtnAplicarCambioInvFisico_Click(sender As Object, e As EventArgs) Handles BtnAplicarCambioInvFisico.Click
|
||||||
|
|
||||||
If GvEntradas.Rows.Count = 0 And GvSalidas.Rows.Count = 0 Then
|
If GvEntradas.Rows.Count = 0 And GvSalidas.Rows.Count = 0 Then
|
||||||
|
|||||||
@@ -192,7 +192,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<asp:DropDownList ID="DdlAlmacen" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlAlmacen_SelectedIndexChanged" DataTextField="Almacen" AppendDataBoundItems="true" DataValueField="CveAlmacen" CssClass="form-control input-sm select2me" Width="320px"></asp:DropDownList>
|
<asp:DropDownList ID="DdlAlmacen" runat="server" DataTextField="Almacen" AppendDataBoundItems="true" DataValueField="CveAlmacen" CssClass="form-control input-sm select2me" Width="320px"></asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVAlmacen" runat="server" ControlToValidate="DdlAlmacen" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacen''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVAlmacen" runat="server" ControlToValidate="DdlAlmacen" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacen''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacen" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCEAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacen" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
CargaPendientes()
|
CargaPendientes()
|
||||||
|
|
||||||
CargaPermisos()
|
CargaPermisos()
|
||||||
If UsuarioActual.CveEmpresa.Contiene(72, 80) Then DdlAlmacen.AutoPostBack = True
|
|
||||||
Dim PermisoEspecialCambioFecha As Boolean = False
|
Dim PermisoEspecialCambioFecha As Boolean = False
|
||||||
If UsuarioActual.CveUsuario.Contiene(100, 1937) Then PermisoEspecialCambioFecha = True
|
If UsuarioActual.CveUsuario.Contiene(100, 1937) Then PermisoEspecialCambioFecha = True
|
||||||
|
|
||||||
@@ -591,9 +591,7 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
UpGenerales.Update()
|
UpGenerales.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub DdlAlmacen_SelectedIndexChanged(sender As Object, e As EventArgs)
|
|
||||||
RecargaporAlmacenes()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub RecargaporAlmacenes()
|
Private Sub RecargaporAlmacenes()
|
||||||
CveTipoAlmacen = -1
|
CveTipoAlmacen = -1
|
||||||
|
|||||||
@@ -209,7 +209,7 @@
|
|||||||
<asp:UpdatePanel ID="UpEncabezado" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpEncabezado" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div id="dvCa" style="width:100%;visibility:hidden;top:40px">
|
<div id="dvCa" style="width:100%;visibility:hidden;top:40px">
|
||||||
<table id="dTable" class="correcto table Widthall "><tr>
|
<table id="dTable" class="correcto table Widthall " runat="server"><tr>
|
||||||
<td id="dvArt" runat="server" class="dataTables_scrollHead" style="text-align:center!important; font-size:14px;width:32.5%;"><b>Producto</b></td>
|
<td id="dvArt" runat="server" class="dataTables_scrollHead" style="text-align:center!important; font-size:14px;width:32.5%;"><b>Producto</b></td>
|
||||||
<td id="dvCan" runat="server" class="dataTables_scrollHead" style="text-align:center!important; font-size:14px; border-right-color: white!important;border-left-color: white!important;width:30%;border-style: solid;"><b>Cantidad</b></td>
|
<td id="dvCan" runat="server" class="dataTables_scrollHead" style="text-align:center!important; font-size:14px; border-right-color: white!important;border-left-color: white!important;width:30%;border-style: solid;"><b>Cantidad</b></td>
|
||||||
<td id="dvImp" runat="server" class="dataTables_scrollHead" style="text-align:center!important;width: 37.5%;font-size:14px;"><b>Importe</b></td>
|
<td id="dvImp" runat="server" class="dataTables_scrollHead" style="text-align:center!important;width: 37.5%;font-size:14px;"><b>Importe</b></td>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Option Strict On
|
|||||||
|
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
|
Imports DocumentFormat.OpenXml.Office2013.Excel
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
|
||||||
@@ -101,13 +102,31 @@ Partial Class Inventarios_ReporteEntradasSalidas
|
|||||||
Private Sub CargaPermisos()
|
Private Sub CargaPermisos()
|
||||||
Dim TienePermisoImportes As Boolean = UsuarioActual.TienePermisoProceso(201)
|
Dim TienePermisoImportes As Boolean = UsuarioActual.TienePermisoProceso(201)
|
||||||
|
|
||||||
|
If Not TienePermisoImportes Then
|
||||||
|
GvM.Columns(0).HeaderStyle.Width = 268
|
||||||
|
GvM.Columns(4).HeaderStyle.Width = 269
|
||||||
|
GvM.Columns(6).HeaderStyle.Width = 133
|
||||||
|
GvM.Columns(7).HeaderStyle.Width = 133
|
||||||
|
GvM.Columns(8).HeaderStyle.Width = 133
|
||||||
|
GvM.Columns(10).HeaderStyle.Width = 134
|
||||||
|
GvM.CssClass = "table table-smallpadding table-striped table-hover ScrollAD"
|
||||||
|
GvM.Width = 1074
|
||||||
|
dvArt.Attributes.Add("style", "text-align:center!important; font-size:14px;width:537px;")
|
||||||
|
dvCan.Attributes.Add("style", "text-align:center!important; font-size:14px; border-right-color: white!important;border-left-color: white!important;width:537px;border-style: solid;")
|
||||||
|
dTable.Attributes.Add("class", "correcto table")
|
||||||
|
dTable.Attributes.Add("style", "width:1074px;")
|
||||||
|
End If
|
||||||
|
|
||||||
dvImp.Visible = TienePermisoImportes
|
dvImp.Visible = TienePermisoImportes
|
||||||
|
|
||||||
GvM.Columns(11).Visible = TienePermisoImportes
|
GvM.Columns(11).Visible = TienePermisoImportes
|
||||||
GvM.Columns(12).Visible = TienePermisoImportes
|
GvM.Columns(12).Visible = TienePermisoImportes
|
||||||
GvM.Columns(13).Visible = TienePermisoImportes
|
GvM.Columns(13).Visible = TienePermisoImportes
|
||||||
GvM.Columns(14).Visible = TienePermisoImportes
|
GvM.Columns(14).Visible = TienePermisoImportes
|
||||||
GvM.Columns(15).Visible = TienePermisoImportes
|
GvM.Columns(15).Visible = TienePermisoImportes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||||
GvM.Columns(9).Visible = True
|
GvM.Columns(9).Visible = True
|
||||||
End If
|
End If
|
||||||
@@ -303,7 +322,7 @@ Partial Class Inventarios_ReporteEntradasSalidas
|
|||||||
|
|
||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
Dim Almacenes As String = If(DdlAlmacen.GetSelectedValuesM = "", "-1", DdlAlmacen.GetSelectedValuesM)
|
Dim Almacenes As String = If(DdlAlmacen.GetSelectedValuesM = "", "-1", DdlAlmacen.GetSelectedValuesM)
|
||||||
'e.Row.Cells(0).Text = $"<a class='Texto' href='./RepExistenciasCostos.aspx?CvePS={e.Row.DataKey("CvePS")}&CveMoneda={e.Row.DataKey("CveMoneda")}&CveProveedor={e.Row.DataKey("CveProveedor")}&CveConcepto={e.Row.DataKey("CveConcepto")}&FechaI={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&FechaF={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&CveAlmacen={e.Row.DataKey("CveAlmacen")}&CvePersonal={e.Row.DataKey("CvePersonal")}'>{e.Row.DataKey("Codigo")}</a>"
|
'e.Row.Cells(0).Text = $"<a Class='Texto' href='./RepExistenciasCostos.aspx?CvePS={e.Row.DataKey("CvePS")}&CveMoneda={e.Row.DataKey("CveMoneda")}&CveProveedor={e.Row.DataKey("CveProveedor")}&CveConcepto={e.Row.DataKey("CveConcepto")}&FechaI={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&FechaF={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&CveAlmacen={e.Row.DataKey("CveAlmacen")}&CvePersonal={e.Row.DataKey("CvePersonal")}'>{e.Row.DataKey("Codigo")}</a>"
|
||||||
e.Row.Cells(4).Text = $"<a class='Texto' href='./RepExistenciasCostos.aspx?CvePS={DdlPS.txtValue.Value}&CveMoneda={DdlMoneda.SelectedValue}&CveProveedor={DdlProveedor.txtValue.Value}&CveConcepto={DdlTipoMovimiento.SelectedValue}&FechaI={TxtFechaI.Text}&FechaF={TxtFechaF.Text}&CveAlmacen={Almacenes}&CvePersonal={DdlPersonal.SelectedValue}&Tipo={DdlMovs.SelectedValue.ToEntero}'>{e.Row.DataKey("PS")}</a>"
|
e.Row.Cells(4).Text = $"<a class='Texto' href='./RepExistenciasCostos.aspx?CvePS={DdlPS.txtValue.Value}&CveMoneda={DdlMoneda.SelectedValue}&CveProveedor={DdlProveedor.txtValue.Value}&CveConcepto={DdlTipoMovimiento.SelectedValue}&FechaI={TxtFechaI.Text}&FechaF={TxtFechaF.Text}&CveAlmacen={Almacenes}&CvePersonal={DdlPersonal.SelectedValue}&Tipo={DdlMovs.SelectedValue.ToEntero}'>{e.Row.DataKey("PS")}</a>"
|
||||||
'e.Row.Cells(4).Text = $"<a class='Texto' href='./RepExistenciasCostos.aspx?CvePS={e.Row.DataKey("CvePS")}&CveMoneda={e.Row.DataKey("CveMoneda")}&CveProveedor={e.Row.DataKey("CveProveedor")}&CveConcepto={e.Row.DataKey("CveConcepto")}&FechaI={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&FechaF={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&CveAlmacen={e.Row.DataKey("CveAlmacen")}&CvePersonal={e.Row.DataKey("CvePersonal")}'>{e.Row.DataKey("PS")}</a>"
|
'e.Row.Cells(4).Text = $"<a class='Texto' href='./RepExistenciasCostos.aspx?CvePS={e.Row.DataKey("CvePS")}&CveMoneda={e.Row.DataKey("CveMoneda")}&CveProveedor={e.Row.DataKey("CveProveedor")}&CveConcepto={e.Row.DataKey("CveConcepto")}&FechaI={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&FechaF={e.Row.DataKey("FechaF").ToDate().ToString("dd/MM/yyyy")}&CveAlmacen={e.Row.DataKey("CveAlmacen")}&CvePersonal={e.Row.DataKey("CvePersonal")}'>{e.Row.DataKey("PS")}</a>"
|
||||||
|
|
||||||
|
|||||||
@@ -2932,6 +2932,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
Dim RowsCargados As Integer = 0
|
Dim RowsCargados As Integer = 0
|
||||||
Dim RowsNoCargados As Integer = 0
|
Dim RowsNoCargados As Integer = 0
|
||||||
Dim NoPSConSerie As Integer = 0
|
Dim NoPSConSerie As Integer = 0
|
||||||
|
DtMovimientos.Clear()
|
||||||
Try
|
Try
|
||||||
Dim DtPS As DataTable = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa)
|
Dim DtPS As DataTable = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa)
|
||||||
For Each RowExcel As DataRow In dt.Rows
|
For Each RowExcel As DataRow In dt.Rows
|
||||||
@@ -2970,23 +2971,23 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Valido AndAlso (Cantidad > 0 AndAlso RowPS("VentaMinima").ToString.ToDecimal > 0) Then
|
If Valido AndAlso (Cantidad > 0 AndAlso RowPS("VentaMinima").ToString.ToDecimal > 0) Then
|
||||||
If Cantidad Mod RowPS("VentaMinima").ToString.ToDecimal <> 0 Then
|
If Cantidad Mod RowPS("VentaMinima").ToString.ToDecimal <> 0 Then
|
||||||
Valido = False
|
Valido = False
|
||||||
ProductosNoCargados.AppendFormat("{0},", RowPS("PS").ToString())
|
ProductosNoCargados.AppendFormat("{0},", RowPS("PSCodigo").ToString())
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If Valido Then
|
If Valido Then
|
||||||
Valido = ValidaExistencia(Cantidad, CveProducto, CveUnidadMedida, -1, If(Not String.IsNullOrEmpty(Serie), Serie, "-1"), If(Not String.IsNullOrEmpty(Lote), Lote, "-1"), FechaCaducidad)
|
Valido = ValidaExistencia(Cantidad, CveProducto, CveUnidadMedida, -1, If(Not String.IsNullOrEmpty(Serie), Serie, "-1"), If(Not String.IsNullOrEmpty(Lote), Lote, "-1"), FechaCaducidad)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Valido Then
|
If Valido Then
|
||||||
AgregarPS(Cantidad, CveProducto, CveUnidadMedida, Observaciones, CveSeccionAlmacen:=DdlSeccionAlmacen.SelectedValue.ToEntero, SeccionAlmacen:=DdlSeccionAlmacen.SelectedItem.Text, Serie:=If(Not String.IsNullOrEmpty(Serie), Serie, ""), Lote:=Lote, FechaCaducidad:=FechaCaducidad, Limpia:=False)
|
AgregarPS(Cantidad, CveProducto, CveUnidadMedida, Observaciones, CveSeccionAlmacen:=DdlSeccionAlmacen.SelectedValue.ToEntero, SeccionAlmacen:=DdlSeccionAlmacen.SelectedItem.Text, Serie:=If(Not String.IsNullOrEmpty(Serie), Serie, ""), Lote:=Lote, FechaCaducidad:=FechaCaducidad, Limpia:=False)
|
||||||
RowsCargados = RowsCargados + 1
|
RowsCargados = RowsCargados + 1
|
||||||
Else
|
Else
|
||||||
RowsNoCargados = RowsNoCargados + 1
|
RowsNoCargados = RowsNoCargados + 1
|
||||||
ProductosNoCargados.AppendFormat("{0},", RowPS("PS").ToString())
|
ProductosNoCargados.AppendFormat("{0},", RowPS("PSCodigo").ToString())
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
RowsNoCargados = RowsNoCargados + 1
|
RowsNoCargados = RowsNoCargados + 1
|
||||||
|
|||||||
@@ -203,10 +203,7 @@
|
|||||||
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="EstatusOrdenServicio" HeaderText="Estatus" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="EstatusOrdenServicio" HeaderText="Estatus" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="FechaIng" HeaderText="Fecha Ingreso" DataFormatString="{0:d}" ItemStyle-Width="130px" />
|
<asp:BoundField DataField="FechaIng" HeaderText="Fecha Ingreso" DataFormatString="{0:d}" ItemStyle-Width="130px" />
|
||||||
<asp:TemplateField ItemStyle-Width="120px">
|
<asp:TemplateField ItemStyle-Width="120px" HeaderText="Fecha Servicio">
|
||||||
<HeaderTemplate>
|
|
||||||
Fecha Servicio
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFechaServicio" runat="server" Visible="false" Text='<%# Eval("FechaCita", "{0:d}")%>'> ></asp:Literal>
|
<asp:Literal ID="LtlFechaServicio" runat="server" Visible="false" Text='<%# Eval("FechaCita", "{0:d}")%>'> ></asp:Literal>
|
||||||
|
|
||||||
@@ -224,10 +221,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="60px">
|
<asp:TemplateField ItemStyle-Width="60px" HeaderText="Hora Servicio">
|
||||||
<HeaderTemplate>
|
|
||||||
Hora Servicio
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlHoraServicio" runat="server" Visible="false" Text='<%# Eval("HoraCita", "{0:t}")%>'> ></asp:Literal>
|
<asp:Literal ID="LtlHoraServicio" runat="server" Visible="false" Text='<%# Eval("HoraCita", "{0:t}")%>'> ></asp:Literal>
|
||||||
<cc1:TimeSelector ID="TimeSelector" runat="server" DisplaySeconds="false" DisplayButtons="false" Visible="false" SelectedTimeFormat="TwentyFour" Width="60px" Height="20px" CssClass="test" >
|
<cc1:TimeSelector ID="TimeSelector" runat="server" DisplaySeconds="false" DisplayButtons="false" Visible="false" SelectedTimeFormat="TwentyFour" Width="60px" Height="20px" CssClass="test" >
|
||||||
|
|||||||
@@ -45,6 +45,12 @@ Partial Class OS_Asignaciones
|
|||||||
CargaClientes()
|
CargaClientes()
|
||||||
CargaSubProyecto()
|
CargaSubProyecto()
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(578) = "1" Then
|
||||||
|
GvNA.Columns(2).HeaderText = "Hospital"
|
||||||
|
GvNA.Columns(7).HeaderText = "Fecha Cirugía"
|
||||||
|
GvNA.Columns(8).HeaderText = "Hora Cirugía"
|
||||||
|
End If
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoProceso(171) Then
|
If UsuarioActual.TienePermisoProceso(171) Then
|
||||||
CargaOrdenesServiciosAsignadasXPersona()
|
CargaOrdenesServiciosAsignadasXPersona()
|
||||||
CargaOrdenesServiciosNoAsignadas()
|
CargaOrdenesServiciosNoAsignadas()
|
||||||
|
|||||||
@@ -2,16 +2,10 @@
|
|||||||
Option Strict On
|
Option Strict On
|
||||||
|
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
'Imports System.Runtime.InteropServices
|
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
'Imports Word = Microsoft.Office.Interop.Word
|
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports System.Globalization
|
Imports System.Globalization
|
||||||
Imports System.Xml
|
|
||||||
Imports System.Web.Script.Services
|
|
||||||
Imports System.Linq
|
|
||||||
|
|
||||||
|
|
||||||
Partial Class RH_Personal
|
Partial Class RH_Personal
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -1149,6 +1143,11 @@ Partial Class RH_Personal
|
|||||||
GVAsistencia.Columns(1).Visible = True
|
GVAsistencia.Columns(1).Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.TienePermisoProceso(372) Then
|
||||||
|
TxtSalarioDiarioImSS.Enabled = True
|
||||||
|
TxtSalarioDiarioIntegrado.Enabled = True
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub SetPermisos()
|
Private Sub SetPermisos()
|
||||||
'Permisos
|
'Permisos
|
||||||
|
|||||||
@@ -67,14 +67,14 @@
|
|||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="HB" runat="Server">
|
<%--<asp:Content ID="Content1" ContentPlaceHolderID="HB" runat="Server">
|
||||||
<contenttemplate>
|
<contenttemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="LBListadoViajes" runat="server" NavigateUrl="ListadoViajes.aspx"
|
<asp:HyperLink ID="LBListadoViajes" runat="server" NavigateUrl="ListadoViajes.aspx"
|
||||||
Target="_blank"><i class='fa fa-road'></i>Viajes</asp:HyperLink>
|
Target="_blank"><i class='fa fa-road'></i>Viajes</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
</contenttemplate>
|
</contenttemplate>
|
||||||
</asp:Content>
|
</asp:Content>--%>
|
||||||
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ Partial Class Boletos
|
|||||||
|
|
||||||
Try
|
Try
|
||||||
AsientoSeleccionado = AsientoSeleccionado.Replace("A", "")
|
AsientoSeleccionado = AsientoSeleccionado.Replace("A", "")
|
||||||
Dim retorno As Integer = ObjTransporte.AddViajesPasajeros(CveViaje, DdlPartida.SelectedValue.ToEntero, DdlDestino.SelectedValue.ToEntero, Importe, AsientoSeleccionado.ToEntero, TxtNombre.Text, TxtVisa.Text, TxtCelular.Text, CBool(RblSexo.SelectedValue), TxtObservaciones.Text, UsuarioActual.CveUsuario)
|
Dim retorno As Integer = ObjTransporte.AddViajesPasajeros(CveViaje, DdlPartida.SelectedValue.ToEntero, DdlDestino.SelectedValue.ToEntero, Importe, AsientoSeleccionado.ToEntero, TxtNombre.Text, TxtVisa.Text, TxtCelular.Text, CBool(RblSexo.SelectedValue), TxtObservaciones.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
If retorno > 1 Then
|
If retorno > 1 Then
|
||||||
ObjTransporte.Commit()
|
ObjTransporte.Commit()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<%@ Page Language="VB" Title="Transportes V&A - Boletos" AutoEventWireup="false"
|
<%@ Page Language="VB" Title="Transportes V&A - Boletos" AutoEventWireup="false"
|
||||||
MasterPageFile="~/Site.master" CodeFile="ListadoBoletos.aspx.vb"
|
MasterPageFile="~/Site.master" CodeFile="RepBoletos.aspx.vb"
|
||||||
Inherits="ListadoBoletos" EnableEventValidation="true" %>
|
Inherits="ListadoBoletos" EnableEventValidation="true" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="HB" runat="Server">
|
<%--<asp:Content ID="Content1" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>--%>
|
||||||
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<div class="row my-1" style="margin-right: 10px; margin-top: 10px;" align="right">
|
<div class="row my-1" style="margin-right: 10px; margin-top: 10px;" align="right">
|
||||||
@@ -107,8 +107,6 @@
|
|||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ Partial Class ListadoBoletos
|
|||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
If Request.QueryString("CveViaje") Is Nothing Then
|
If Request.QueryString("CveViaje") Is Nothing Then
|
||||||
Response.Redirect("/Transportes/ListadoViajes.aspx")
|
Response.Redirect("/Transportes/RepViajes.aspx")
|
||||||
End If
|
End If
|
||||||
CveViaje = Request.QueryString("CveViaje").ToEntero
|
CveViaje = Request.QueryString("CveViaje").ToEntero
|
||||||
Ruta = Request.QueryString("Ruta")
|
Ruta = Request.QueryString("Ruta")
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" Title="Transportes V&A - Contratos" MasterPageFile="~/Site.master"
|
<%@ Page Language="VB" AutoEventWireup="false" Title="Transportes V&A - Contratos" MasterPageFile="~/Site.master"
|
||||||
CodeFile="ListadoContratos.aspx.vb"
|
CodeFile="RepContratos.aspx.vb"
|
||||||
Inherits="ListadoContratos" %>
|
Inherits="ListadoContratos" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
@@ -38,14 +38,14 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LBAgregarContrato" runat="server"><i class='fa fa-plus'></i>Agregar Contrato</asp:LinkButton>
|
<asp:LinkButton ID="LBAgregarContrato" runat="server"><i class='fa fa-plus'></i>Agregar Contrato</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<%-- <li>
|
||||||
<asp:HyperLink ID="LBListadoContratos" runat="server" NavigateUrl="ListadoContratos.aspx"
|
<asp:HyperLink ID="LBListadoContratos" runat="server" NavigateUrl="RepContratos.aspx"
|
||||||
Target="_blank"><i class='fa fa-file'></i>Contratos</asp:HyperLink>
|
Target="_blank"><i class='fa fa-file'></i>Contratos</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="LBListadoViajes" runat="server" NavigateUrl="ListadoViajes.aspx"
|
<asp:HyperLink ID="LBListadoViajes" runat="server" NavigateUrl="RepViajes.aspx"
|
||||||
Target="_blank"><i class='fa fa-road'></i>Viajes</asp:HyperLink>
|
Target="_blank"><i class='fa fa-road'></i>Viajes</asp:HyperLink>
|
||||||
</li>
|
</li>--%>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<%@ Page Language="VB" Title="Transportes V&A - Viajes" AutoEventWireup="false" MasterPageFile="~/Site.master"
|
<%@ Page Language="VB" Title="Transportes V&A - Viajes" AutoEventWireup="false" MasterPageFile="~/Site.master"
|
||||||
CodeFile="ListadoViajes.aspx.vb"
|
CodeFile="RepViajes.aspx.vb"
|
||||||
Inherits="ListadoViajes" %>
|
Inherits="ListadoViajes" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
@@ -27,14 +27,14 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LBAgregarViaje" runat="server"><i class='fa fa-plus'></i>Agregar viaje</asp:LinkButton>
|
<asp:LinkButton ID="LBAgregarViaje" runat="server"><i class='fa fa-plus'></i>Agregar viaje</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<%-- <li>
|
||||||
<asp:HyperLink ID="LBListadoContratos" runat="server" NavigateUrl="ListadoContratos.aspx"
|
<asp:HyperLink ID="LBListadoContratos" runat="server" NavigateUrl="ListadoContratos.aspx"
|
||||||
Target="_blank"><i class='fa fa-file'></i>Contratos</asp:HyperLink>
|
Target="_blank"><i class='fa fa-file'></i>Contratos</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="LBListadoViajes" runat="server" NavigateUrl="ListadoViajes.aspx"
|
<asp:HyperLink ID="LBListadoViajes" runat="server" NavigateUrl="ListadoViajes.aspx"
|
||||||
Target="_blank"><i class='fa fa-road'></i>Viajes</asp:HyperLink>
|
Target="_blank"><i class='fa fa-road'></i>Viajes</asp:HyperLink>
|
||||||
</li>
|
</li>--%>
|
||||||
</contenttemplate>
|
</contenttemplate>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
Option Explicit On
|
Option Explicit On
|
||||||
Option Strict On
|
Option Strict On
|
||||||
Imports ADSNetLibrary.SIGAPI.Helpers
|
|
||||||
Imports Extensiones.ModExtensiones
|
Imports Extensiones.ModExtensiones
|
||||||
|
|
||||||
Partial Class ListadoViajes
|
Partial Class ListadoViajes
|
||||||
@@ -46,7 +45,7 @@ Partial Class ListadoViajes
|
|||||||
ObjAF.Dispose()
|
ObjAF.Dispose()
|
||||||
|
|
||||||
'Lista Rutas'
|
'Lista Rutas'
|
||||||
Dim ObjRutas As New ClsRutas()
|
Dim ObjRutas As New ClsTransportes()
|
||||||
If ObjRutas.GetRutas(-1, -1, -1, "", True, DateTime.Now) Then
|
If ObjRutas.GetRutas(-1, -1, -1, "", True, DateTime.Now) Then
|
||||||
|
|
||||||
If ObjRutas.DtResultados.Rows.Count > 0 Then
|
If ObjRutas.DtResultados.Rows.Count > 0 Then
|
||||||
@@ -55,25 +54,24 @@ Partial Class ListadoViajes
|
|||||||
DdlRutas.Items.Insert(0, New ListItem("Seleccione Ruta", ""))
|
DdlRutas.Items.Insert(0, New ListItem("Seleccione Ruta", ""))
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjRutas.Dispose()
|
|
||||||
|
|
||||||
'Lista Destinos'
|
'Lista Destinos'
|
||||||
Dim ObjDestinos As New ClsDestinos()
|
|
||||||
If ObjDestinos.GetDestinos() Then
|
|
||||||
|
|
||||||
If ObjDestinos.DtResultados.Rows.Count > 0 Then
|
If ObjRutas.GetDestinos() Then
|
||||||
DdlPartida.DataSource = ObjDestinos.DtResultados
|
|
||||||
|
If ObjRutas.DtResultados.Rows.Count > 0 Then
|
||||||
|
DdlPartida.DataSource = ObjRutas.DtResultados
|
||||||
DdlPartida.DataBind()
|
DdlPartida.DataBind()
|
||||||
DdlPartida.Items.Insert(0, New ListItem("Seleccione Partida", ""))
|
DdlPartida.Items.Insert(0, New ListItem("Seleccione Partida", ""))
|
||||||
|
|
||||||
DdlDestino.DataSource = ObjDestinos.DtResultados
|
DdlDestino.DataSource = ObjRutas.DtResultados
|
||||||
DdlDestino.DataBind()
|
DdlDestino.DataBind()
|
||||||
DdlDestino.Items.Insert(0, New ListItem("Seleccione Destino", ""))
|
DdlDestino.Items.Insert(0, New ListItem("Seleccione Destino", ""))
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjRutas.Dispose()
|
ObjRutas.Dispose()
|
||||||
|
|
||||||
'Lista Chofer'
|
'Lista Chofer'
|
||||||
DdlChofer.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa)
|
DdlChofer.DataSource = GlobalDTRHPersonal(185)
|
||||||
DdlChofer.DataBind()
|
DdlChofer.DataBind()
|
||||||
DdlChofer.Items.Insert(0, New ListItem("Seleccione Chofer", ""))
|
DdlChofer.Items.Insert(0, New ListItem("Seleccione Chofer", ""))
|
||||||
|
|
||||||
@@ -256,7 +254,7 @@ Partial Class ListadoViajes
|
|||||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
Dim CveViaje As String = GvRow.DataKey("CveViaje")
|
Dim CveViaje As String = GvRow.DataKey("CveViaje")
|
||||||
Dim Ruta As String = GvRow.DataKey("Ruta")
|
Dim Ruta As String = GvRow.DataKey("Ruta")
|
||||||
Response.Redirect(String.Format("~/Transportes/ListadoBoletos.aspx?CveViaje={0}&Ruta={1}", CveViaje, Ruta))
|
Response.Redirect(String.Format("~/Transportes/RepBoletos.aspx?CveViaje={0}&Ruta={1}", CveViaje, Ruta))
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
@@ -258,20 +258,15 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
|
|
||||||
Private Sub CargaCuentas()
|
Private Sub CargaCuentas()
|
||||||
DdlCuenta.Items.Clear()
|
DdlCuenta.Items.Clear()
|
||||||
Dim CveTipoCuenta As Integer = 2
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then CveTipoCuenta = -1 'que se muestren todas, para empresa acumuladores
|
|
||||||
|
|
||||||
|
|
||||||
Dim dt As DataTable
|
Dim dt As DataTable
|
||||||
|
Dim CveTipoCuenta As Integer = -1
|
||||||
|
If UsuarioActual.CveEmpresa = 119 Then CveTipoCuenta = 2 'solo las cuentas de cheques
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa.Contiene(7, 11, 12, 122, 145) Then
|
If UsuarioActual.CveEmpresa.Contiene(7, 11, 12, 122, 145) Then
|
||||||
dt = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa, CveTipoCuenta:=-1).FiltraParametros(" CveTipoCuenta in (1,2) ")
|
dt = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa, CveTipoCuenta:=-1).FiltraParametros(" CveTipoCuenta in (1,2) ")
|
||||||
Else
|
Else
|
||||||
dt = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa, CveTipoCuenta:=CveTipoCuenta)
|
dt = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa, CveTipoCuenta:=CveTipoCuenta)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ChkPagarPesos.Checked Then
|
If ChkPagarPesos.Checked Then
|
||||||
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", 1))
|
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", 1))
|
||||||
RegistraScript("CambiaPesosDolares();")
|
RegistraScript("CambiaPesosDolares();")
|
||||||
|
|||||||
@@ -1871,7 +1871,7 @@ Partial Class PV
|
|||||||
Dim ObjAC As ClsContPAQi = Nothing
|
Dim ObjAC As ClsContPAQi = Nothing
|
||||||
|
|
||||||
Dim Moneda As Integer = DdlMoneda.SelectedValue.ToEntero
|
Dim Moneda As Integer = DdlMoneda.SelectedValue.ToEntero
|
||||||
Dim TipoCambio As Double = TxtTipoCambio.Text.ToDouble
|
Dim TipoCambio As Decimal = TxtTipoCambio.Text.ToDecimal
|
||||||
Try
|
Try
|
||||||
'CONVERTIR REMISION - TIPO MONEDA -DOLARES A PESOS
|
'CONVERTIR REMISION - TIPO MONEDA -DOLARES A PESOS
|
||||||
If DdlMoneda.SelectedValue.ToEntero <> 2 AndAlso ChkConvertirDolares.Checked Then
|
If DdlMoneda.SelectedValue.ToEntero <> 2 AndAlso ChkConvertirDolares.Checked Then
|
||||||
@@ -1960,7 +1960,7 @@ Partial Class PV
|
|||||||
|
|
||||||
'Actualizo los parametros de la venta
|
'Actualizo los parametros de la venta
|
||||||
If Not ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDecimal, LblDescuentos.Text.ToDecimal, TxtIVA.Text.ToDecimal, TxtIEPS.Text.ToDecimal, TxtTotal.Text.ToDecimal, Moneda, TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim,
|
If Not ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDecimal, LblDescuentos.Text.ToDecimal, TxtIVA.Text.ToDecimal, TxtIEPS.Text.ToDecimal, TxtTotal.Text.ToDecimal, Moneda, TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim,
|
||||||
UsuarioActual.CveEmpresa, CveVenta, 0, 0,
|
UsuarioActual.CveEmpresa, CveVenta,
|
||||||
Vigencia:=TxtFechaVencimientoCotizacion.Text.Trim.ToDate, CondicionesPago:=If(RBLPago.SelectedValue = "2", 0, 1),
|
Vigencia:=TxtFechaVencimientoCotizacion.Text.Trim.ToDate, CondicionesPago:=If(RBLPago.SelectedValue = "2", 0, 1),
|
||||||
PedidoContrato:="", AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero,
|
PedidoContrato:="", AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero,
|
||||||
CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero, TipoDocto:="Rem", CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal,
|
CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero, TipoDocto:="Rem", CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal,
|
||||||
|
|||||||
@@ -389,13 +389,14 @@
|
|||||||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="Sub Total" DataField="SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Sub Total" DataField="SubTotal" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Descuento" DataField="Descuento" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Descuento" DataField="Descuento" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--<asp:BoundField HeaderText="Amortización" DataField="Amortizacion" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />--%>
|
<%--<asp:BoundField HeaderText="Amortización" DataField="Amortizacion" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />--%>
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="IEPS" DataField="IEPS" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
<%--<asp:BoundField HeaderText="Ret. IVA" DataField="RetIVA" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />--%>
|
<%--<asp:BoundField HeaderText="Ret. IVA" DataField="RetIVA" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />--%>
|
||||||
<%--<asp:BoundField HeaderText="Ret. ISR" DataField="RetISR" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />--%>
|
<%--<asp:BoundField HeaderText="Ret. ISR" DataField="RetISR" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />--%>
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Sub. Máximo" DataField="MAX_SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
<asp:BoundField HeaderText="Sub. Máximo" DataField="MAX_SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Sub. Promedio" DataField="AVG_SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
<asp:BoundField HeaderText="Sub. Promedio" DataField="AVG_SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Sub. Mínimo" DataField="MIN_SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
<asp:BoundField HeaderText="Sub. Mínimo" DataField="MIN_SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
@@ -423,7 +424,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<table class="table table-striped table-advance table-hover Widthall">
|
<table class="table table-striped table-advance table-hover Widthall">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkMaxSub" runat="server" Text="SubTotal Máximo" />
|
<asp:CheckBox ID="ChkMaxSub" runat="server" Text="SubTotal Máximo" />
|
||||||
@@ -444,6 +445,12 @@
|
|||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkMinTot" runat="server" Text="Total Mínimo" /></td>
|
<asp:CheckBox ID="ChkMinTot" runat="server" Text="Total Mínimo" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: left;">
|
||||||
|
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" Visible ="false" />
|
||||||
|
</td>
|
||||||
|
<td style="text-align: left;"> </td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -53,8 +53,6 @@ Partial Class Ventas_RepProductosServicios
|
|||||||
If UsuarioActual.CveEmpresa = 2 AndAlso UsuarioActual.CveUsuario.Contiene(77, 21) Then Response.Redirect("/Inicio.aspx")
|
If UsuarioActual.CveEmpresa = 2 AndAlso UsuarioActual.CveUsuario.Contiene(77, 21) Then Response.Redirect("/Inicio.aspx")
|
||||||
CargarMarcas()
|
CargarMarcas()
|
||||||
SetValues()
|
SetValues()
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -115,8 +113,6 @@ Partial Class Ventas_RepProductosServicios
|
|||||||
divClasif2.Visible = True
|
divClasif2.Visible = True
|
||||||
|
|
||||||
DdlGrupo.Items.Add(New ListItem("Clasificacion2", "25"))
|
DdlGrupo.Items.Add(New ListItem("Clasificacion2", "25"))
|
||||||
|
|
||||||
|
|
||||||
LblServicioDomicilioFiltro.Visible = True
|
LblServicioDomicilioFiltro.Visible = True
|
||||||
DVServicioDomicilio.Visible = True
|
DVServicioDomicilio.Visible = True
|
||||||
|
|
||||||
@@ -142,6 +138,12 @@ Partial Class Ventas_RepProductosServicios
|
|||||||
DdlPS.ddl.DataSource = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CveClasificacion:=DdlClasificacion.SelectedValue.ToEntero)
|
DdlPS.ddl.DataSource = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CveClasificacion:=DdlClasificacion.SelectedValue.ToEntero)
|
||||||
DdlPS.ddl.DataBind()
|
DdlPS.ddl.DataBind()
|
||||||
DdlPS.ddl.Items.Insert(0, New ListItem("Seleccione el Producto", "-1"))
|
DdlPS.ddl.Items.Insert(0, New ListItem("Seleccione el Producto", "-1"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(713) = "1" Then
|
||||||
|
ChkIEPS.Visible = True
|
||||||
|
ChkIEPS.Checked = True
|
||||||
|
GvDatos.Columns(6).Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'CargaEstatus
|
'CargaEstatus
|
||||||
@@ -334,43 +336,48 @@ Partial Class Ventas_RepProductosServicios
|
|||||||
|
|
||||||
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
||||||
|
|
||||||
|
If ChkIEPS.Checked Then
|
||||||
If ChkMaxSub.Checked Then
|
|
||||||
GvDatos.Columns(6).Visible = True
|
GvDatos.Columns(6).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(6).Visible = False
|
GvDatos.Columns(6).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkAVGSub.Checked Then
|
If ChkMaxSub.Checked Then
|
||||||
GvDatos.Columns(7).Visible = True
|
GvDatos.Columns(7).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(7).Visible = False
|
GvDatos.Columns(7).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMinSub.Checked Then
|
If ChkAVGSub.Checked Then
|
||||||
GvDatos.Columns(8).Visible = True
|
GvDatos.Columns(8).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(8).Visible = False
|
GvDatos.Columns(8).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMaxTot.Checked Then
|
If ChkMinSub.Checked Then
|
||||||
GvDatos.Columns(9).Visible = True
|
GvDatos.Columns(9).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(9).Visible = False
|
GvDatos.Columns(9).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkAvgTot.Checked Then
|
If ChkMaxTot.Checked Then
|
||||||
GvDatos.Columns(10).Visible = True
|
GvDatos.Columns(10).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(10).Visible = False
|
GvDatos.Columns(10).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMinTot.Checked Then
|
If ChkAvgTot.Checked Then
|
||||||
GvDatos.Columns(11).Visible = True
|
GvDatos.Columns(11).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(11).Visible = False
|
GvDatos.Columns(11).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If ChkMinTot.Checked Then
|
||||||
|
GvDatos.Columns(12).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(12).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|||||||
@@ -399,13 +399,13 @@
|
|||||||
<%--3--%>
|
<%--3--%>
|
||||||
<asp:BoundField HeaderText="Suc. Cob." DataField="SubProyectoCobranza" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left" Visible="false" />
|
<asp:BoundField HeaderText="Suc. Cob." DataField="SubProyectoCobranza" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left" Visible="false" />
|
||||||
<%--4--%>
|
<%--4--%>
|
||||||
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-Width="2.5%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<%--5--%>
|
<%--5--%>
|
||||||
<asp:BoundField HeaderText="Cliente" DataField="Nombre" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Cliente" DataField="Nombre" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<%--6--%>
|
<%--6--%>
|
||||||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="2.5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--7--%>
|
<%--7--%>
|
||||||
<asp:BoundField HeaderText="Código" DataField="CodigoProducto" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Código" DataField="CodigoProducto" ItemStyle-Width="2.5%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<%--8--%>
|
<%--8--%>
|
||||||
<asp:BoundField HeaderText="Producto/Servicio" DataField="PS" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField HeaderText="Producto/Servicio" DataField="PS" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<%--9--%>
|
<%--9--%>
|
||||||
@@ -413,13 +413,13 @@
|
|||||||
<%--10--%>
|
<%--10--%>
|
||||||
<asp:BoundField HeaderText="PU" DataField="PU" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="PU" DataField="PU" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--11--%>
|
<%--11--%>
|
||||||
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--12--%>
|
<%--12--%>
|
||||||
<asp:BoundField HeaderText="Desc" DataField="Descuento" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Desc" DataField="Descuento" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--13--%>
|
<%--13--%>
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--14--%>
|
<%--14--%>
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:###,###,###,###.##}" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--15--%>
|
<%--15--%>
|
||||||
<asp:BoundField HeaderText="RFC" DataField="RFC" ItemStyle-Width="5%" Visible="false" />
|
<asp:BoundField HeaderText="RFC" DataField="RFC" ItemStyle-Width="5%" Visible="false" />
|
||||||
<%--16--%>
|
<%--16--%>
|
||||||
|
|||||||
@@ -579,12 +579,18 @@
|
|||||||
<asp:Literal ID="LtlKm" runat="server" Text='<%# Eval("Kilometraje") %>'></asp:Literal>
|
<asp:Literal ID="LtlKm" runat="server" Text='<%# Eval("Kilometraje") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%-- 39--%>
|
<%-- 40--%>
|
||||||
<asp:TemplateField HeaderText="TC" Visible="false">
|
<asp:TemplateField HeaderText="TC" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlTC" runat="server" Text='<%# Eval("TipoCambio") %>'></asp:Literal>
|
<asp:Literal ID="LtlTC" runat="server" Text='<%# Eval("TipoCambio") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<%-- 41--%>
|
||||||
|
<asp:TemplateField HeaderText="Descripción Venta" Visible="false">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlDescripcionVenta" runat="server" Text='<%# Eval("DescripcionVenta") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
@@ -732,6 +738,11 @@
|
|||||||
<td style="text-align: left;"> </td>
|
<td style="text-align: left;"> </td>
|
||||||
<td style="text-align: left;"><asp:CheckBox ID="ChkKilometraje" runat="server" Visible="False" Text=" Kilometraje" /></td>
|
<td style="text-align: left;"><asp:CheckBox ID="ChkKilometraje" runat="server" Visible="False" Text=" Kilometraje" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: left;"></td>
|
||||||
|
<td style="text-align: left;"> </td>
|
||||||
|
<td style="text-align: left;"><asp:CheckBox ID="ChkDescripcionVenta" runat="server" Visible="true" Text=" Descripción Venta" /></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -705,6 +705,8 @@ Partial Class RepVentaDetalle
|
|||||||
|
|
||||||
If ChkTC.Checked Then ListPersonalizada.Add("TC")
|
If ChkTC.Checked Then ListPersonalizada.Add("TC")
|
||||||
|
|
||||||
|
If ChkDescripcionVenta.Checked Then ListPersonalizada.Add("DescripcionVenta")
|
||||||
|
|
||||||
If objUsuario.AddUsuariosPersonalizaciones(UsuarioActual, "RepVentaDetalles.aspx", String.Join("|", ListPersonalizada)) Then
|
If objUsuario.AddUsuariosPersonalizaciones(UsuarioActual, "RepVentaDetalles.aspx", String.Join("|", ListPersonalizada)) Then
|
||||||
'Alert("Personalizacion guardada")
|
'Alert("Personalizacion guardada")
|
||||||
End If
|
End If
|
||||||
@@ -889,6 +891,9 @@ Partial Class RepVentaDetalle
|
|||||||
Case "Kilometraje"
|
Case "Kilometraje"
|
||||||
ChkKilometraje.Checked = True
|
ChkKilometraje.Checked = True
|
||||||
Exit Select
|
Exit Select
|
||||||
|
Case "DescripcionVenta"
|
||||||
|
ChkDescripcionVenta.Checked = True
|
||||||
|
Exit Select
|
||||||
Case Else
|
Case Else
|
||||||
Exit Select
|
Exit Select
|
||||||
End Select
|
End Select
|
||||||
@@ -947,6 +952,8 @@ Partial Class RepVentaDetalle
|
|||||||
GvDatos.Columns(38).Visible = ChkUsoCFDI.Checked
|
GvDatos.Columns(38).Visible = ChkUsoCFDI.Checked
|
||||||
GvDatos.Columns(39).Visible = ChkKilometraje.Checked
|
GvDatos.Columns(39).Visible = ChkKilometraje.Checked
|
||||||
GvDatos.Columns(40).Visible = ChkTC.Checked
|
GvDatos.Columns(40).Visible = ChkTC.Checked
|
||||||
|
GvDatos.Columns(41).Visible = ChkDescripcionVenta.Checked
|
||||||
|
|
||||||
|
|
||||||
Personalizo = 1
|
Personalizo = 1
|
||||||
If Personalizo = 1 Then
|
If Personalizo = 1 Then
|
||||||
|
|||||||
@@ -366,13 +366,13 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%--2--%>
|
<%--2--%>
|
||||||
<asp:BoundField HeaderText="Sub Total" DataField="SubTotal" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Sub Total" DataField="SubTotal" ItemStyle-Width="7.5%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--3--%>
|
<%--3--%>
|
||||||
<asp:BoundField HeaderText="Descuento" DataField="Descuento" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Descuento" DataField="Descuento" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--4--%>
|
<%--4--%>
|
||||||
<asp:BoundField HeaderText="Amortización" DataField="Amortizacion" Visible="false" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Amortización" DataField="Amortizacion" Visible="false" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--5--%>
|
<%--5--%>
|
||||||
<asp:BoundField HeaderText="Sub Total 2" DataField="SubTotal2" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Sub Total 2" DataField="SubTotal2" ItemStyle-Width="7.5%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--6--%>
|
<%--6--%>
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--7--%>
|
<%--7--%>
|
||||||
@@ -384,7 +384,7 @@
|
|||||||
<%--10--%>
|
<%--10--%>
|
||||||
<asp:BoundField HeaderText="Imp. Locales" DataField="TotalImpuestos" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Imp. Locales" DataField="TotalImpuestos" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--11--%>
|
<%--11--%>
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--12--%>
|
<%--12--%>
|
||||||
<asp:BoundField HeaderText="Sub. Máximo" DataField="MAX_SubTotal" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Sub. Máximo" DataField="MAX_SubTotal" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<%--13--%>
|
<%--13--%>
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ Partial Class Ventas_RepVentas
|
|||||||
CveMoneda = e.Row.DBCampo("CveMoneda").ToString.ToEntero
|
CveMoneda = e.Row.DBCampo("CveMoneda").ToString.ToEntero
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim CveSubProyecto = "-1", CveProyecto = "-1"
|
Dim CveSubProyecto As String = "-1", CveProyecto As String = "-1"
|
||||||
If DdlGrupo.SelectedValue.ToEntero = 19 Then
|
If DdlGrupo.SelectedValue.ToEntero = 19 Then
|
||||||
CveSubProyecto = e.Row.DBCampo("CveCentroCosto")
|
CveSubProyecto = e.Row.DBCampo("CveCentroCosto")
|
||||||
CveProyecto = e.Row.DBCampo("CveCentroCostoProyecto")
|
CveProyecto = e.Row.DBCampo("CveCentroCostoProyecto")
|
||||||
@@ -411,7 +411,7 @@ Partial Class Ventas_RepVentas
|
|||||||
If e.Row.DBCampo("Mes").ToEntero() > 0 Then
|
If e.Row.DBCampo("Mes").ToEntero() > 0 Then
|
||||||
Dim Anio As Integer = FechaFRef.Year
|
Dim Anio As Integer = FechaFRef.Year
|
||||||
Dim Mes As Integer = e.Row.DBCampo("Mes").ToEntero()
|
Dim Mes As Integer = e.Row.DBCampo("Mes").ToEntero()
|
||||||
Dim lastDayOfMonth = DateTime.DaysInMonth(Anio, Mes)
|
Dim lastDayOfMonth As Integer = DateTime.DaysInMonth(Anio, Mes)
|
||||||
|
|
||||||
Dim Dia As Integer = FechaFRef.Day
|
Dim Dia As Integer = FechaFRef.Day
|
||||||
|
|
||||||
@@ -423,7 +423,7 @@ Partial Class Ventas_RepVentas
|
|||||||
FechaInicial = New DateTime(Anio, Mes, 1).ToString("dd/MM/yyyy")
|
FechaInicial = New DateTime(Anio, Mes, 1).ToString("dd/MM/yyyy")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim FechaFinalRef = New DateTime(Anio, Mes, Dia)
|
Dim FechaFinalRef As New DateTime(Anio, Mes, Dia)
|
||||||
|
|
||||||
'ASIGNAR LA FECHA FINAL DEL GRUPO, SI ES MENOR A LA FECHA DEL FILTRO
|
'ASIGNAR LA FECHA FINAL DEL GRUPO, SI ES MENOR A LA FECHA DEL FILTRO
|
||||||
If FechaF <> "-1" Then
|
If FechaF <> "-1" Then
|
||||||
@@ -435,9 +435,6 @@ Partial Class Ventas_RepVentas
|
|||||||
Else
|
Else
|
||||||
FechaFinal = FechaFinalRef.ToString("dd/MM/yyyy")
|
FechaFinal = FechaFinalRef.ToString("dd/MM/yyyy")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Case 3 ' AÑO/MES
|
Case 3 ' AÑO/MES
|
||||||
@@ -445,13 +442,13 @@ Partial Class Ventas_RepVentas
|
|||||||
Dim FechaFRef As DateTime = FechaF.ToDateTime()
|
Dim FechaFRef As DateTime = FechaF.ToDateTime()
|
||||||
|
|
||||||
Dim separator As Char = "/".ToCharArray().FirstOrDefault()
|
Dim separator As Char = "/".ToCharArray().FirstOrDefault()
|
||||||
Dim AnioMes = e.Row.DBCampo("AnioMes").Split(separator)
|
Dim AnioMes As String() = e.Row.DBCampo("AnioMes").Split(separator)
|
||||||
|
|
||||||
Dim Anio As Integer = AnioMes(0).ToEntero()
|
Dim Anio As Integer = AnioMes(0).ToEntero()
|
||||||
Dim Mes As Integer = AnioMes(1).ToEntero()
|
Dim Mes As Integer = AnioMes(1).ToEntero()
|
||||||
|
|
||||||
If Anio > 0 AndAlso Mes > 0 Then
|
If Anio > 0 AndAlso Mes > 0 Then
|
||||||
Dim lastDayOfMonth = DateTime.DaysInMonth(Anio, Mes)
|
Dim lastDayOfMonth As Integer = DateTime.DaysInMonth(Anio, Mes)
|
||||||
|
|
||||||
Dim DiaFinal As Integer = FechaFRef.Day
|
Dim DiaFinal As Integer = FechaFRef.Day
|
||||||
|
|
||||||
@@ -469,8 +466,7 @@ Partial Class Ventas_RepVentas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim FechaFinalRef = New DateTime(Anio, Mes, DiaFinal)
|
Dim FechaFinalRef As New DateTime(Anio, Mes, DiaFinal)
|
||||||
|
|
||||||
'ASIGNAR LA FECHA FINAL DEL GRUPO, SI ES MENOR A LA FECHA DEL FILTRO
|
'ASIGNAR LA FECHA FINAL DEL GRUPO, SI ES MENOR A LA FECHA DEL FILTRO
|
||||||
If FechaF <> "-1" Then
|
If FechaF <> "-1" Then
|
||||||
If FechaFRef < FechaFinalRef Then
|
If FechaFRef < FechaFinalRef Then
|
||||||
@@ -504,7 +500,6 @@ Partial Class Ventas_RepVentas
|
|||||||
e.Row.Attributes.Add("style", "background:#CCCCCC !important")
|
e.Row.Attributes.Add("style", "background:#CCCCCC !important")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If DdlGrupo.SelectedValue.ToEntero = 21 Then
|
If DdlGrupo.SelectedValue.ToEntero = 21 Then
|
||||||
If e.Row.DBCampo("GPO").Contains("Total") Then
|
If e.Row.DBCampo("GPO").Contains("Total") Then
|
||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
@@ -517,8 +512,6 @@ Partial Class Ventas_RepVentas
|
|||||||
e.Row.Cells(6).BackColor = Drawing.Color.Transparent
|
e.Row.Cells(6).BackColor = Drawing.Color.Transparent
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -818,9 +811,8 @@ Partial Class Ventas_RepVentas
|
|||||||
If DdlClienteClasificacion.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Clasificación Cliente</b>: {0}", DdlClienteClasificacion.SelectedItem.Text)
|
If DdlClienteClasificacion.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Clasificación Cliente</b>: {0}", DdlClienteClasificacion.SelectedItem.Text)
|
||||||
If DdlCondicionesPago.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Condiciones Pago</b>: {0}", DdlCondicionesPago.SelectedItem.Text)
|
If DdlCondicionesPago.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Condiciones Pago</b>: {0}", DdlCondicionesPago.SelectedItem.Text)
|
||||||
|
|
||||||
|
|
||||||
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||||
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
Dim logouri As String = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
||||||
Dim dt As DataTable = DtVentas '.FiltraParametros("", "Orden") '.FiltraParametros("Total > 0", DistinctColumns:={"GPO", "Cantidad", "SubTotal", "Descuento", "Amortizacion", "IVA", "Total"})
|
Dim dt As DataTable = DtVentas '.FiltraParametros("", "Orden") '.FiltraParametros("Total > 0", DistinctColumns:={"GPO", "Cantidad", "SubTotal", "Descuento", "Amortizacion", "IVA", "Total"})
|
||||||
Dim FechaI, FechaF As String
|
Dim FechaI, FechaF As String
|
||||||
FechaI = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", "-1", txtFechaI.Text)
|
FechaI = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", "-1", txtFechaI.Text)
|
||||||
@@ -964,7 +956,7 @@ Partial Class Ventas_RepVentas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CalcularIntervaloRepHP()
|
Private Sub CalcularIntervaloRepHP()
|
||||||
Dim PrevMondayDate = DateTime.Today.AddDays(-Weekday(Today.AddDays(-1), Microsoft.VisualBasic.FirstDayOfWeek.Monday))
|
Dim PrevMondayDate As Date = DateTime.Today.AddDays(-Weekday(Today.AddDays(-1), Microsoft.VisualBasic.FirstDayOfWeek.Monday))
|
||||||
Dim Sunday As DateTime = PrevMondayDate.AddDays(6)
|
Dim Sunday As DateTime = PrevMondayDate.AddDays(6)
|
||||||
|
|
||||||
txtFechaIHP.Text = PrevMondayDate.ToString("dd/MM/yyyy")
|
txtFechaIHP.Text = PrevMondayDate.ToString("dd/MM/yyyy")
|
||||||
|
|||||||
@@ -446,16 +446,14 @@
|
|||||||
:</b></td>
|
:</b></td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<div class="row align-items-start">
|
<div class="row align-items-start">
|
||||||
<div class="col-md-10">
|
<div class="col-md-12">
|
||||||
<asp:DropDownList ID="DdlSucursalCliente" runat="server" AutoPostBack="true" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="SucursalCliente" DataValueField="CveClienteSucursal">
|
<asp:DropDownList ID="DdlSucursalCliente" runat="server" Width="100%" AutoPostBack="true" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="SucursalCliente" DataValueField="CveClienteSucursal">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" style="padding: inherit;">
|
|
||||||
<asp:LinkButton ID="LnkAgregarSucursal" Visible="false" runat="server" CssClass="btn btn-primary btn-circle btn-xs" Text="<i class='fa fa-plus' aria-hidden='true'></i>" OnClick="LnkAgregarSucursal_Click"></asp:LinkButton>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
|
<asp:LinkButton ID="LnkAgregarSucursal" Visible="false" runat="server" CssClass="btn btn-primary btn-circle btn-xs" Text="<i class='fa fa-plus' aria-hidden='true'></i>" OnClick="LnkAgregarSucursal_Click"></asp:LinkButton>
|
||||||
<b>
|
<b>
|
||||||
<asp:Label ID="LtlTitleRFCSucursal" runat="server" Text=""></asp:Label></b>
|
<asp:Label ID="LtlTitleRFCSucursal" runat="server" Text=""></asp:Label></b>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -3391,7 +3391,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
If UsuarioActual.Empresa.Funcionalidad(578) = "1" Then
|
||||||
If CveVenta <= 0 Then
|
If CveVenta <= 0 Then
|
||||||
EsVentaMedica = True
|
EsVentaMedica = True
|
||||||
CargaTiposVenta()
|
CargaTiposVenta()
|
||||||
@@ -13189,6 +13189,23 @@ Partial Class Ventas
|
|||||||
Dim DescripcionVenta As String = ""
|
Dim DescripcionVenta As String = ""
|
||||||
If TxtDescripcionVenta.Text <> "" Then DescripcionVenta = TxtDescripcionVenta.Text
|
If TxtDescripcionVenta.Text <> "" Then DescripcionVenta = TxtDescripcionVenta.Text
|
||||||
|
|
||||||
|
|
||||||
|
Dim CveMedico As Integer = -1
|
||||||
|
Dim CveProcedimiento As Integer = -1
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
||||||
|
If SeEstaFActurandoVentaMedica Then
|
||||||
|
CveMedico = DdlMedicoObservaciones.SelectedValue.ToEntero
|
||||||
|
CveProcedimiento = DdlProcedimientoObservaciones.SelectedValue.ToEntero
|
||||||
|
Else
|
||||||
|
CveMedico = DdlMedico.SelectedValue.ToEntero
|
||||||
|
CveProcedimiento = DdlProcedimiento.SelectedValue.ToEntero
|
||||||
|
End If
|
||||||
|
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,
|
||||||
@@ -13206,7 +13223,7 @@ Partial Class Ventas
|
|||||||
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(), DescripcionVenta:=DescripcionVenta,
|
CveLineaAdicional:=DdlLineaAdicional.SelectedValue.ToEntero(), DescripcionVenta:=DescripcionVenta,
|
||||||
CveMedico:=DdlMedico.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero, CveTipoVenta:=RBLTipoVenta.SelectedValue.ToEntero, RequiereOS:=ChkRequiereTecnico.Checked) Then
|
CveMedico:=CveMedico, CveProcedimiento:=CveProcedimiento, CveTipoVenta:=RBLTipoVenta.SelectedValue.ToEntero, RequiereOS:=ChkRequiereTecnico.Checked) 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
|
||||||
@@ -21685,6 +21702,7 @@ Partial Class Ventas
|
|||||||
BtnEditarRemision.Visible = True
|
BtnEditarRemision.Visible = True
|
||||||
BtnPermisoEditarRemision.Visible = False
|
BtnPermisoEditarRemision.Visible = False
|
||||||
BtnCrearApartirDe.Visible = False
|
BtnCrearApartirDe.Visible = False
|
||||||
|
DdlSucursalCliente.Enabled = True
|
||||||
TxtObsFact.Enabled = True
|
TxtObsFact.Enabled = True
|
||||||
TxtOrdenCompra.Enabled = True
|
TxtOrdenCompra.Enabled = True
|
||||||
TxtPedidoContrato.Enabled = True
|
TxtPedidoContrato.Enabled = True
|
||||||
@@ -21695,7 +21713,6 @@ Partial Class Ventas
|
|||||||
UPCondicionesPago.Update()
|
UPCondicionesPago.Update()
|
||||||
If Me.PermiteCredito Then RBLPago.Enabled = True
|
If Me.PermiteCredito Then RBLPago.Enabled = True
|
||||||
DdlVendedor.Enabled = True
|
DdlVendedor.Enabled = True
|
||||||
|
|
||||||
ModalidadEdicion = True
|
ModalidadEdicion = True
|
||||||
|
|
||||||
ViewState("CveClienteAnterior") = CveCliente
|
ViewState("CveClienteAnterior") = CveCliente
|
||||||
@@ -21750,7 +21767,6 @@ Partial Class Ventas
|
|||||||
TxtPrecio.Enabled = True
|
TxtPrecio.Enabled = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
LbAgregar.Enabled = True
|
LbAgregar.Enabled = True
|
||||||
ImgDescTotal.Attributes.Add("onclick", "javascript:$('#ModalDescuento').modal(); $get('LblTitulo1').style.display = ''; $get('LblTitulo2').style.display = 'none'; $get('LblTituloTipo1').style.display = ''; $get('LblTituloTipo2').style.display = 'none'; $get('HdnTipoDescuento').value = '2'; $get('LblPrecio1').style.display = 'none'; $get('LblTotalPS1').style.display = 'none'; $get('LblSubTotal1').style.display = ''; $get('LblAmort').style.display = 'none'; $get('BtnAplicarDescP').style.display = 'none'; $get('BtnAplicarDescG').style.display = ''; $get('TrMotivoDescuento').style.display = '';")
|
ImgDescTotal.Attributes.Add("onclick", "javascript:$('#ModalDescuento').modal(); $get('LblTitulo1').style.display = ''; $get('LblTitulo2').style.display = 'none'; $get('LblTituloTipo1').style.display = ''; $get('LblTituloTipo2').style.display = 'none'; $get('HdnTipoDescuento').value = '2'; $get('LblPrecio1').style.display = 'none'; $get('LblTotalPS1').style.display = 'none'; $get('LblSubTotal1').style.display = ''; $get('LblAmort').style.display = 'none'; $get('BtnAplicarDescP').style.display = 'none'; $get('BtnAplicarDescG').style.display = ''; $get('TrMotivoDescuento').style.display = '';")
|
||||||
LblSubTotal1.Text = TxtSubTotal.Text
|
LblSubTotal1.Text = TxtSubTotal.Text
|
||||||
@@ -21777,8 +21793,9 @@ Partial Class Ventas
|
|||||||
Dim ObjCGame As New ClsCGame(ObjVentas.IniciaTransacSQL())
|
Dim ObjCGame As New ClsCGame(ObjVentas.IniciaTransacSQL())
|
||||||
|
|
||||||
Dim Moneda As Integer = DdlMoneda.SelectedValue.ToEntero()
|
Dim Moneda As Integer = DdlMoneda.SelectedValue.ToEntero()
|
||||||
Dim TipoCambio As Double = TxtTipoCambio.Text.ToDouble
|
Dim TipoCambio As Decimal = TxtTipoCambio.Text.ToDecimal
|
||||||
EditoRemision = True
|
EditoRemision = True
|
||||||
|
CveClienteSucursal = DdlSucursalCliente.SelectedValue.ToEntero
|
||||||
Try
|
Try
|
||||||
'CONVERTIR REMISION - TIPO MONEDA -DOLARES A PESOS
|
'CONVERTIR REMISION - TIPO MONEDA -DOLARES A PESOS
|
||||||
If DdlMoneda.SelectedValue.ToEntero() <> 2 AndAlso ChkConvertirDolares.Checked Then
|
If DdlMoneda.SelectedValue.ToEntero() <> 2 AndAlso ChkConvertirDolares.Checked Then
|
||||||
@@ -21855,11 +21872,11 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'Actualizo los parametros de la venta
|
'Actualizo los parametros de la venta
|
||||||
If Not ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDecimal, LblDescuentos.Text.ToDecimal, TxtIVA.Text.ToDecimal, TxtIEPS.Text.ToDecimal, TxtTotal.Text.ToDecimal, Moneda, TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim,
|
If Not ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDecimal, LblDescuentos.Text.ToDecimal, TxtIVA.Text.ToDecimal, TxtIEPS.Text.ToDecimal, TxtTotal.Text.ToDecimal, Moneda, TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim,
|
||||||
UsuarioActual.CveEmpresa, CveVenta, 0, 0,
|
UsuarioActual.CveEmpresa, CveVenta,
|
||||||
Vigencia:=TxtFechaVencimientoCotizacion.Text.Trim.ToDate, CondicionesPago:=If(RBLPago.SelectedValue = "2", 0, 1),
|
Vigencia:=TxtFechaVencimientoCotizacion.Text.Trim.ToDate, CondicionesPago:=If(RBLPago.SelectedValue = "2", 0, 1),
|
||||||
PedidoContrato:=TxtPedidoContrato.Text, AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero(),
|
PedidoContrato:=TxtPedidoContrato.Text, AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero(),
|
||||||
CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero(), TipoDocto:="Rem", CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal,
|
CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero(), TipoDocto:=DdlTipoComprobante.SelectedValue, CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal,
|
||||||
OrdenCompra:=TxtOrdenCompra.Text, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, Kilometraje:=TxtKilometraje.Text.ToDouble, CveUsoCFDi:=DdlUsoCFDI.SelectedValue.ToEntero(),
|
OrdenCompra:=TxtOrdenCompra.Text, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, Kilometraje:=TxtKilometraje.Text.ToDecimal, CveUsoCFDi:=DdlUsoCFDI.SelectedValue.ToEntero(),
|
||||||
CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), ServicioDomicilio:=TrServicioDomicilio.Visible, CveMedico:=DdlMedicoObservaciones.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimientoObservaciones.SelectedValue.ToEntero) Then
|
CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), ServicioDomicilio:=TrServicioDomicilio.Visible, CveMedico:=DdlMedicoObservaciones.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimientoObservaciones.SelectedValue.ToEntero) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
@@ -30295,7 +30312,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim Moneda As Integer = DdlMoneda.SelectedValue.ToEntero()
|
Dim Moneda As Integer = DdlMoneda.SelectedValue.ToEntero()
|
||||||
Dim TipoCambio As Double = TxtTipoCambio.Text.Trim.ToDecimal
|
Dim TipoCambio As Decimal = TxtTipoCambio.Text.Trim.ToDecimal
|
||||||
If DdlMoneda.SelectedValue.ToEntero() <> 1 AndAlso ChkConvertirDoctoPesos.Checked Then
|
If DdlMoneda.SelectedValue.ToEntero() <> 1 AndAlso ChkConvertirDoctoPesos.Checked Then
|
||||||
TipoCambio = 1
|
TipoCambio = 1
|
||||||
Moneda = 1
|
Moneda = 1
|
||||||
@@ -30382,15 +30399,14 @@ Partial Class Ventas
|
|||||||
Moneda = 1
|
Moneda = 1
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
'ACTUALIZA VENTA
|
'ACTUALIZA VENTA
|
||||||
If Not ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDouble(), LblDescuentos.Text.ToDouble(), TxtIVA.Text.ToDouble(), TxtIEPS.Text.ToDouble(), TxtTotal.Text.ToDouble(),
|
If Not ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDecimal, LblDescuentos.Text.ToDecimal(), TxtIVA.Text.ToDecimal(), TxtIEPS.Text.ToDecimal(), TxtTotal.Text.ToDecimal(),
|
||||||
Moneda, TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim,
|
Moneda, TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim,
|
||||||
UsuarioActual.CveEmpresa, CveVenta, 0, 0,
|
UsuarioActual.CveEmpresa, CveVenta,
|
||||||
Vigencia:=TxtFechaVencimientoCotizacion.Text.Trim.ToDate, CondicionesPago:=If(RBLPago.SelectedValue = "2", 0, 1),
|
Vigencia:=TxtFechaVencimientoCotizacion.Text.Trim.ToDate, CondicionesPago:=If(RBLPago.SelectedValue = "2", 0, 1),
|
||||||
PedidoContrato:=TxtPedidoContrato.Text, AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero(), CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero(),
|
PedidoContrato:=TxtPedidoContrato.Text, AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero(), CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero(),
|
||||||
CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal, OrdenCompra:=TxtOrdenCompra.Text, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal,
|
CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal, OrdenCompra:=TxtOrdenCompra.Text, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal,
|
||||||
TipoDocto:=DdlTipoComprobante.SelectedValue, Kilometraje:=TxtKilometraje.Text.ToDouble, CveUsoCFDi:=DdlUsoCFDI.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero()) Then
|
TipoDocto:=DdlTipoComprobante.SelectedValue, Kilometraje:=TxtKilometraje.Text.ToDecimal, CveUsoCFDi:=DdlUsoCFDI.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero()) Then
|
||||||
MensajeError = "Ocurrió un error al actualizar la información de la cotización"
|
MensajeError = "Ocurrió un error al actualizar la información de la cotización"
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
@@ -32179,6 +32195,8 @@ Partial Class Ventas
|
|||||||
End Function
|
End Function
|
||||||
Private Sub EmitirDocumentoNuevo(TipoDoctoNuevo As String)
|
Private Sub EmitirDocumentoNuevo(TipoDoctoNuevo As String)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If DdlVendedor.SelectedValue.ToEntero() <= 0 AndAlso UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso TipoDoctoNuevo = "Ing" Then
|
If DdlVendedor.SelectedValue.ToEntero() <= 0 AndAlso UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso TipoDoctoNuevo = "Ing" Then
|
||||||
Alert("Debe seleccionar un vendedor.", TipoMensaje.MsgAdvertencia)
|
Alert("Debe seleccionar un vendedor.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
@@ -32212,6 +32230,9 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(578) = "1" AndAlso DdlTipoComprobante.SelectedValue = "Rem" AndAlso TipoDoctoNuevo = "Ing" Then
|
||||||
|
SeEstaFActurandoVentaMedica = True
|
||||||
|
End If
|
||||||
|
|
||||||
If GvPagos.Rows.Count = 0 And UsuarioActual.Empresa.Funcionalidad(558).ToEntero() = 1 And RBLPago.SelectedValue.ToEntero() = 2 Then
|
If GvPagos.Rows.Count = 0 And UsuarioActual.Empresa.Funcionalidad(558).ToEntero() = 1 And RBLPago.SelectedValue.ToEntero() = 2 Then
|
||||||
Alert("No se puede facturar hasta que se haya especificado detalladamente la forma de pago", TipoMensaje.MsgAdvertencia)
|
Alert("No se puede facturar hasta que se haya especificado detalladamente la forma de pago", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -33655,6 +33676,11 @@ Partial Class Ventas
|
|||||||
DdlUsoCFDI.Enabled = True
|
DdlUsoCFDI.Enabled = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(578) = "1" Then
|
||||||
|
DdlMedicoObservaciones.Enabled = True
|
||||||
|
DdlProcedimientoObservaciones.Enabled = True
|
||||||
|
End If
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoProceso(289) Then
|
If UsuarioActual.TienePermisoProceso(289) Then
|
||||||
If LblSeTimbro.Text = "No" Then
|
If LblSeTimbro.Text = "No" Then
|
||||||
DdlUsoCFDI.Enabled = False
|
DdlUsoCFDI.Enabled = False
|
||||||
@@ -33693,8 +33719,12 @@ Partial Class Ventas
|
|||||||
Dim ObjVentas As New ClsVentas()
|
Dim ObjVentas As New ClsVentas()
|
||||||
ObjVentas.IniciaTransacSQL()
|
ObjVentas.IniciaTransacSQL()
|
||||||
|
|
||||||
|
DdlMedicoObservaciones.Enabled = True
|
||||||
|
DdlProcedimientoObservaciones.Enabled = True
|
||||||
|
|
||||||
If Not ObjVentas.UpdateObservacionesVenta(Me.CveVenta, UsuarioActual.CveEmpresa, DdlVendedor.SelectedValue.ToEntero(), TxtObsFact.Text, RblPaqueteria.SelectedValue.ToEntero(), TxtCorreoNotificaciones.Text,
|
If Not ObjVentas.UpdateObservacionesVenta(Me.CveVenta, UsuarioActual.CveEmpresa, DdlVendedor.SelectedValue.ToEntero(), TxtObsFact.Text, RblPaqueteria.SelectedValue.ToEntero(), TxtCorreoNotificaciones.Text,
|
||||||
TxtObsAlmacen.Text, TxtPedidoContrato.Text, TxtOrdenCompra.Text, TxtFechaPago.Text, DdlUsoCFDI.SelectedValue.ToEntero, DescripcionVenta:=TxtDescripcionVenta.Text.Trim) Then
|
TxtObsAlmacen.Text, TxtPedidoContrato.Text, TxtOrdenCompra.Text, TxtFechaPago.Text, DdlUsoCFDI.SelectedValue.ToEntero, DescripcionVenta:=TxtDescripcionVenta.Text.Trim,
|
||||||
|
CveMedico:=DdlMedicoObservaciones.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimientoObservaciones.SelectedValue.ToEntero) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -35030,6 +35060,20 @@ Partial Class Ventas
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Property SeEstaFActurandoVentaMedica As Boolean
|
||||||
|
Get
|
||||||
|
If ViewState("SeEstaFActurandoVentaMedica") Is Nothing Then
|
||||||
|
ViewState("SeEstaFActurandoVentaMedica") = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return Boolean.Parse(ViewState("SeEstaFActurandoVentaMedica").ToString)
|
||||||
|
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
ViewState("SeEstaFActurandoVentaMedica") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -36274,21 +36318,21 @@ Partial Class Ventas
|
|||||||
DdlMedico.SelectedValueExist(DdlMedicoModal.SelectedValue)
|
DdlMedico.SelectedValueExist(DdlMedicoModal.SelectedValue)
|
||||||
DdlProcedimiento.SelectedValueExist(DdlProcedimientoModal.SelectedValue)
|
DdlProcedimiento.SelectedValueExist(DdlProcedimientoModal.SelectedValue)
|
||||||
|
|
||||||
|
|
||||||
'si es pago directo es factura
|
'si es pago directo es factura
|
||||||
If RBLTipoVenta.SelectedValue.Contiene("2") Then
|
If RBLTipoVenta.SelectedValue.Contiene("2") Then ' Pago Directo
|
||||||
DdlTipoComprobante.SelectedValueExist("Ing")
|
DdlTipoComprobante.SelectedValueExist("Ing")
|
||||||
TdRequiereTecnico1.Visible = True
|
TdRequiereTecnico1.Visible = True
|
||||||
TdRequiereTecnico2.Visible = True
|
TdRequiereTecnico2.Visible = True
|
||||||
Else
|
ElseIf RBLTipoVenta.SelectedValue.Contiene("4") Then ' Consigna
|
||||||
TdFechaOS1.Visible = True
|
DdlTipoComprobante.SelectedValueExist("Ing")
|
||||||
TdFechaOS2.Visible = True
|
Else
|
||||||
ChkRequiereTecnico.Checked = True
|
TdFechaOS1.Visible = True
|
||||||
ChkRequiereTecnico.Enabled = False
|
TdFechaOS2.Visible = True
|
||||||
DdlTipoComprobante.Items.Insert(DdlTipoComprobante.Items.Count, New ListItem("Pedido", "Ped"))
|
ChkRequiereTecnico.Checked = True
|
||||||
DdlTipoComprobante.SelectedValueExist("Ped")
|
ChkRequiereTecnico.Enabled = False
|
||||||
|
DdlTipoComprobante.Items.Insert(DdlTipoComprobante.Items.Count, New ListItem("Pedido", "Ped"))
|
||||||
End If
|
DdlTipoComprobante.SelectedValueExist("Ped")
|
||||||
|
End If
|
||||||
DdlTipoComprobante.Enabled = False
|
DdlTipoComprobante.Enabled = False
|
||||||
|
|
||||||
CargaCliente(CveCliente)
|
CargaCliente(CveCliente)
|
||||||
|
|||||||
Reference in New Issue
Block a user