Merge branch 'master' of http://jperez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -777,6 +777,7 @@ Public Class ClsMovimientos
|
|||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
SqlAdapter.SelectCommand.CommandTimeout = 0
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -1393,6 +1394,7 @@ Public Class ClsMovimientos
|
|||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
SqlAdapter.SelectCommand.CommandTimeout = 0
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
@@ -940,6 +940,10 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
MostrarTodosAlmacenes = True
|
MostrarTodosAlmacenes = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If (usuario.Empresa.Funcionalidad(578) = "1") AndAlso Pagina.Contiene("ventas/ventas") Then 'sms
|
||||||
|
MostrarTodosAlmacenes = True
|
||||||
|
End If
|
||||||
|
|
||||||
Dim objInv As New ClsInventarios
|
Dim objInv As New ClsInventarios
|
||||||
Try
|
Try
|
||||||
If objInv.GetExistenciasProductosLike(Name, CveClasificacion, CveSubProyecto, Estatus.ToEntero, AplicaParaVenta, CveEmpresa, CveMarca, MostrarTodosAlmacenes:=MostrarTodosAlmacenes, CveAlmacen:=CveAlmacen) Then
|
If objInv.GetExistenciasProductosLike(Name, CveClasificacion, CveSubProyecto, Estatus.ToEntero, AplicaParaVenta, CveEmpresa, CveMarca, MostrarTodosAlmacenes:=MostrarTodosAlmacenes, CveAlmacen:=CveAlmacen) Then
|
||||||
|
|||||||
@@ -354,6 +354,7 @@ Public Class TareasProgramadas : Implements IHttpHandler
|
|||||||
Dim Contrasenia As String = ObjUsuarios.DtResultados.Rows(0)("Contraseña").ToString()
|
Dim Contrasenia As String = ObjUsuarios.DtResultados.Rows(0)("Contraseña").ToString()
|
||||||
UsuarioActual = ObjUsuarios.ValidaUsuario(Usuario, Contrasenia, CveEmpresa:=CveEmpresa)
|
UsuarioActual = ObjUsuarios.ValidaUsuario(Usuario, Contrasenia, CveEmpresa:=CveEmpresa)
|
||||||
UsuarioActual.CveEmpresa = CveEmpresa
|
UsuarioActual.CveEmpresa = CveEmpresa
|
||||||
|
HttpContext.Current.Session("UsuarioSIG") = UsuarioActual
|
||||||
CreaObjetoEmpresa(UsuarioActual)
|
CreaObjetoEmpresa(UsuarioActual)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -8156,8 +8156,6 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaPSRemision(CveClasificacion As Integer, Objeto As ADServerControl.Dropdownlost)
|
Private Sub CargaPSRemision(CveClasificacion As Integer, Objeto As ADServerControl.Dropdownlost)
|
||||||
@@ -37440,7 +37438,6 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If DdlClienteSucursalCliente() > 0 Then
|
If DdlClienteSucursalCliente() > 0 Then
|
||||||
CveClienteOS = DdlClienteSucursalCliente()
|
CveClienteOS = DdlClienteSucursalCliente()
|
||||||
Else
|
Else
|
||||||
@@ -37502,6 +37499,7 @@ Partial Class Ventas
|
|||||||
DdlMedico.SelectedValueExist(DdlMedicoModal.SelectedValue)
|
DdlMedico.SelectedValueExist(DdlMedicoModal.SelectedValue)
|
||||||
DdlProcedimiento.SelectedValueExist(DdlProcedimientoModal.SelectedValue)
|
DdlProcedimiento.SelectedValueExist(DdlProcedimientoModal.SelectedValue)
|
||||||
|
|
||||||
|
Dim tCveAlmacenExistencia As Integer = -1
|
||||||
|
|
||||||
If RBLTipoVenta.SelectedValue.Contiene("2") Then 'si es pago directo es factura
|
If RBLTipoVenta.SelectedValue.Contiene("2") Then 'si es pago directo es factura
|
||||||
'DdlTipoComprobante.SelectedValueExist("Ing")
|
'DdlTipoComprobante.SelectedValueExist("Ing")
|
||||||
@@ -37547,20 +37545,17 @@ Partial Class Ventas
|
|||||||
TdFechaOS1.Visible = ChkRequiereTecnicoModal.Checked
|
TdFechaOS1.Visible = ChkRequiereTecnicoModal.Checked
|
||||||
TdFechaOS2.Visible = ChkRequiereTecnicoModal.Checked
|
TdFechaOS2.Visible = ChkRequiereTecnicoModal.Checked
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DdlTipoComprobante.Enabled = False
|
DdlTipoComprobante.Enabled = False
|
||||||
|
|
||||||
CargaCliente(CveCliente)
|
CargaCliente(CveCliente)
|
||||||
|
|
||||||
|
|
||||||
' Si es pago directo no asigna la sucurasl al dll
|
' Si es pago directo no asigna la sucurasl al dll
|
||||||
If RBLTipoVenta.SelectedValue.ToEntero <> 2 Then
|
If RBLTipoVenta.SelectedValue.ToEntero <> 2 Then
|
||||||
If DdlClienteSucursalSucursal() > 0 Then
|
Dim tcveclientesucursal As Integer = DdlClienteSucursalSucursal()
|
||||||
DdlSucursalCliente.SelectedValueExist(DdlClienteSucursalSucursal())
|
If tcveclientesucursal > 0 Then
|
||||||
|
DdlSucursalCliente.SelectedValueExist(tcveclientesucursal)
|
||||||
Else
|
Else
|
||||||
If DdlSucursalCliente.Items.Count >= 2 Then
|
If DdlSucursalCliente.Items.Count >= 2 Then
|
||||||
DdlSucursalCliente.SelectedIndex = 1
|
DdlSucursalCliente.SelectedIndex = 1
|
||||||
@@ -37568,8 +37563,8 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
DdlTipoComprobante_SelectedIndexChanged(sender, Nothing)
|
|
||||||
|
|
||||||
|
DdlTipoComprobante_SelectedIndexChanged(sender, Nothing)
|
||||||
|
|
||||||
Dim CountPsAgregados As Integer = 0
|
Dim CountPsAgregados As Integer = 0
|
||||||
|
|
||||||
@@ -37604,17 +37599,15 @@ Partial Class Ventas
|
|||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If RBLTipoVenta.SelectedValue.Contiene("5", "6") Then
|
If RBLTipoVenta.SelectedValue.Contiene("5", "6") Then ' 3.avista,4.consig,5.consig mat, 6. avista mat.
|
||||||
AsignaAlamacenWS()
|
AsignaAlmacenWS()
|
||||||
CargaPS(-1, DdlPS)
|
'CargaPS(-1, DdlPS)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
RegistraScript("$('#DvModalTipoVenta').modal('hide');")
|
RegistraScript("$('#DvModalTipoVenta').modal('hide');")
|
||||||
UpCliente.Update()
|
UpCliente.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Protected Sub GvProductosProcedimiento_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvProductosProcedimiento_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
If e.Row.DataKey("Precio").ToDecimal = 0 Then
|
If e.Row.DataKey("Precio").ToDecimal = 0 Then
|
||||||
@@ -37774,21 +37767,27 @@ Partial Class Ventas
|
|||||||
CargaProcedimientos(HdnCveProcedimientoNuevo.Value.ToEntero)
|
CargaProcedimientos(HdnCveProcedimientoNuevo.Value.ToEntero)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub AsignaAlamacenWS()
|
Private Sub AsignaAlmacenWS()
|
||||||
|
|
||||||
CveAlamcenFiltroDdl = -1
|
CveAlamcenFiltroDdl = -1
|
||||||
|
Dim tCveAlmacenExistencia As Integer = -1
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
||||||
If DdlSucursalCliente.SelectedValue.ToEntero > 0 Then
|
If DdlSucursalCliente.SelectedValue.ToEntero > 0 Then
|
||||||
Dim objclientes As New ClsClientes
|
Dim drr As DataRow = GlobalDTClientesSucursales(UsuarioActual.CveEmpresa, CveCliente).FiltroPrimero($"CveClienteSucursal={DdlSucursalCliente.SelectedValue}")
|
||||||
If objclientes.GetSucursales(CveCliente, -1) Then
|
If drr IsNot Nothing Then
|
||||||
CveAlamcenFiltroDdl = objclientes.DtResultados.FiltroPrimeroValor("CveAlmacenAsignado", $" CveClienteSucursal = {DdlSucursalCliente.SelectedValue.ToEntero}").ToEntero
|
If RBLTipoVenta.SelectedValue.Contiene("6") Then
|
||||||
|
tCveAlmacenExistencia = drr("CveAlmacenAlterno").ToString.ToEntero
|
||||||
|
Else
|
||||||
|
tCveAlmacenExistencia = drr("CveAlmacenAsignado").ToString.ToEntero
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
objclientes.Dispose()
|
|
||||||
End If
|
End If
|
||||||
If Not CveAlamcenFiltroDdl > 0 Then
|
If Not CveAlamcenFiltroDdl > 0 Then
|
||||||
CveAlamcenFiltroDdl = If(CveAlmacenAsignado > 0, CveAlmacenAsignado, -1)
|
CveAlamcenFiltroDdl = If(CveAlmacenAsignado > 0, CveAlmacenAsignado, -1)
|
||||||
End If
|
End If
|
||||||
|
DdlPS.ddlWS.Attributes.Remove("data-CveAlmacen")
|
||||||
|
DdlPS.ddlWS.Attributes.Add("data-CveAlmacen", tCveAlmacenExistencia.ToString)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user