- retroalimentación de vencimientos de créditos
This commit is contained in:
@@ -4,6 +4,7 @@ Option Strict On
|
|||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports System.Data.SqlClient
|
Imports System.Data.SqlClient
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
|
Imports StackExchange.Redis
|
||||||
|
|
||||||
|
|
||||||
Public Class ClsClientes
|
Public Class ClsClientes
|
||||||
@@ -259,7 +260,7 @@ Public Class ClsClientes
|
|||||||
Public Function GetClientes(CveCliente As Integer, Nombre As String, Codigo As String, NombreCorto As String, RFC As String, Telefono As String, Mail As String, CveSubProyecto As Integer,
|
Public Function GetClientes(CveCliente As Integer, Nombre As String, Codigo As String, NombreCorto As String, RFC As String, Telefono As String, Mail As String, CveSubProyecto As Integer,
|
||||||
CveEmpresa As Integer, Optional Estatus As Integer = 1, Optional Notificar As String = "-1", Optional CvePrecioLista As Integer = -1, Optional CveClienteClasificacion As Integer = -1,
|
CveEmpresa As Integer, Optional Estatus As Integer = 1, Optional Notificar As String = "-1", Optional CvePrecioLista As Integer = -1, Optional CveClienteClasificacion As Integer = -1,
|
||||||
Optional TipoCliente As Integer = -1, Optional CveVendedor As Integer = -1, Optional PermiteCreditoFiltro As Integer = -1, Optional TopSelect As Integer = 10000, Optional CveUsuarioConsulta As Integer = -1,
|
Optional TipoCliente As Integer = -1, Optional CveVendedor As Integer = -1, Optional PermiteCreditoFiltro As Integer = -1, Optional TopSelect As Integer = 10000, Optional CveUsuarioConsulta As Integer = -1,
|
||||||
Optional Cuenta As String = "-1") As Boolean
|
Optional Cuenta As String = "-1", Optional EnQuebranto As Integer = -1, Optional EnDemanda As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ClientesGet")
|
DataAdapter("PA_ClientesGet")
|
||||||
@@ -283,6 +284,8 @@ Public Class ClsClientes
|
|||||||
.Add("@PermiteCredito", SqlDbType.Int).Value = PermiteCreditoFiltro
|
.Add("@PermiteCredito", SqlDbType.Int).Value = PermiteCreditoFiltro
|
||||||
.Add("@TopSelect", SqlDbType.Int).Value = TopSelect
|
.Add("@TopSelect", SqlDbType.Int).Value = TopSelect
|
||||||
.Add("@Cuenta", SqlDbType.VarChar).Value = Cuenta
|
.Add("@Cuenta", SqlDbType.VarChar).Value = Cuenta
|
||||||
|
.Add("@EnQuebranto", SqlDbType.Int).Value = EnQuebranto
|
||||||
|
.Add("@EnDemanda", SqlDbType.Int).Value = EnDemanda
|
||||||
|
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -108,17 +108,30 @@
|
|||||||
<div class="col-md-2 truncate" style="max-width: 283px!important">
|
<div class="col-md-2 truncate" style="max-width: 283px!important">
|
||||||
<asp:DropDownList ID="DdlVendedor" runat="server" DataTextField="Vendedor" DataValueField="CveVendedor" ValidationGroup="GrpFiltrar" CssClass=" form-control input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlVendedor" runat="server" DataTextField="Vendedor" DataValueField="CveVendedor" ValidationGroup="GrpFiltrar" CssClass=" form-control input-sm select2me" Width="100%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row" id="divfiltro2" runat="server" visible="false">
|
||||||
|
<div class="col-md-1 truncate" >En Demanda:</div>
|
||||||
|
<div class=" col-md-2 truncate" style="max-width: 283px!important">
|
||||||
|
<asp:DropDownList ID="DDlEnDemanda" runat="server" CssClass=" form-control input-sm select2me" ValidationGroup="GrpFiltrar" Width="100%">
|
||||||
|
<asp:ListItem Value="-1" Selected="True">Todos</asp:ListItem>
|
||||||
|
<asp:ListItem Value="1">Solo En Demanda</asp:ListItem>
|
||||||
|
<asp:ListItem Value="2">No en Demanda</asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1 truncate" >En Quebranto:</div>
|
||||||
|
<div class=" col-md-2 truncate" style="max-width: 283px!important">
|
||||||
|
<asp:DropDownList ID="DdlEnQuebranto" runat="server" CssClass=" form-control input-sm select2me" ValidationGroup="GrpFiltrar" Width="100%">
|
||||||
|
<asp:ListItem Value="-1" Selected="True">Todos</asp:ListItem>
|
||||||
|
<asp:ListItem Value="1">Solo En Quebranto</asp:ListItem>
|
||||||
|
<asp:ListItem Value="2">No En Quebranto</asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|||||||
@@ -25,24 +25,10 @@ Partial Class CatClientes
|
|||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
ViewState("Orden") = ""
|
ViewState("Orden") = ""
|
||||||
|
|
||||||
CargaNombreClientes()
|
Inicializa()
|
||||||
|
|
||||||
|
|
||||||
CargaSucursales()
|
CargaSucursales()
|
||||||
CargaClasificaciones()
|
CargaClasificaciones()
|
||||||
CargaVendedor()
|
CargaVendedor()
|
||||||
|
|
||||||
'CargaCorporativo()
|
|
||||||
|
|
||||||
'CargaDatos()
|
|
||||||
|
|
||||||
PanelContrato.Visible = True
|
|
||||||
MPContrato.Enabled = True
|
|
||||||
|
|
||||||
|
|
||||||
Me.Form.DefaultButton = LbFiltrar.UniqueID
|
|
||||||
|
|
||||||
|
|
||||||
CargaPersonalizacion()
|
CargaPersonalizacion()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -54,14 +40,14 @@ Partial Class CatClientes
|
|||||||
Dim Nombre, RFC As String
|
Dim Nombre, RFC As String
|
||||||
Nombre = "-1"
|
Nombre = "-1"
|
||||||
RFC = "-1"
|
RFC = "-1"
|
||||||
|
|
||||||
If TxtNombre.Text.Trim <> String.Empty Then Nombre = TxtNombre.Text.Trim
|
If TxtNombre.Text.Trim <> String.Empty Then Nombre = TxtNombre.Text.Trim
|
||||||
|
|
||||||
If TxtRFC.Text.Trim <> String.Empty Then RFC = TxtRFC.Text.Trim
|
If TxtRFC.Text.Trim <> String.Empty Then RFC = TxtRFC.Text.Trim
|
||||||
|
|
||||||
'If ObjClientes.GetClientes(-1, Nombre, "-1", "-1", RFC, "-1", "-1", DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, Estatus:=DdlEstatus.SelectedValue.ToEntero, CveClienteClasificacion:=DdlClasificaciones.SelectedValue.ToEntero, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero, CveVendedor:=DdlVendedor.SelectedValue.ToEntero, PermiteCreditoFiltro:=If(ChkPermiteCredito.Checked, 1, -1)) Then
|
'If ObjClientes.GetClientes(-1, Nombre, "-1", "-1", RFC, "-1", "-1", DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, Estatus:=DdlEstatus.SelectedValue.ToEntero, CveClienteClasificacion:=DdlClasificaciones.SelectedValue.ToEntero, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero, CveVendedor:=DdlVendedor.SelectedValue.ToEntero, PermiteCreditoFiltro:=If(ChkPermiteCredito.Checked, 1, -1)) Then
|
||||||
If ObjClientes.GetClientes(-1, Nombre, "-1", "-1", RFC, "-1", "-1", DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, Estatus:=DdlEstatus.SelectedValue.ToEntero, CveClienteClasificacion:=DdlClasificaciones.SelectedValue.ToEntero, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero, CveVendedor:=DdlVendedor.SelectedValue.ToEntero, PermiteCreditoFiltro:=DdlPermiteCredito.SelectedValue.ToEntero) Then
|
If ObjClientes.GetClientes(-1, Nombre, "-1", "-1", RFC, "-1", "-1", DdlSubProyecto.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, Estatus:=DdlEstatus.SelectedValue.ToEntero, CveClienteClasificacion:=DdlClasificaciones.SelectedValue.ToEntero, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero, CveVendedor:=DdlVendedor.SelectedValue.ToEntero,
|
||||||
|
PermiteCreditoFiltro:=DdlPermiteCredito.SelectedValue.ToEntero,
|
||||||
|
EnDemanda:=DDlEnDemanda.SelectedValue.ToEntero,
|
||||||
|
EnQuebranto:=DdlEnQuebranto.SelectedValue.ToEntero) Then
|
||||||
|
|
||||||
If ObjClientes.DtResultados.Rows.Count > 0 Then
|
If ObjClientes.DtResultados.Rows.Count > 0 Then
|
||||||
DTDatos = ObjClientes.DtResultados
|
DTDatos = ObjClientes.DtResultados
|
||||||
@@ -70,8 +56,6 @@ Partial Class CatClientes
|
|||||||
Alert("No se encontraron registros con los parametros solicitados.", Extensiones.TipoMensaje.MsgAdvertencia)
|
Alert("No se encontraron registros con los parametros solicitados.", Extensiones.TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
ObjClientes.Dispose()
|
ObjClientes.Dispose()
|
||||||
|
|
||||||
If ViewState("Orden").ToString() <> String.Empty Then
|
If ViewState("Orden").ToString() <> String.Empty Then
|
||||||
@@ -79,10 +63,8 @@ Partial Class CatClientes
|
|||||||
Else
|
Else
|
||||||
CargaGrid("")
|
CargaGrid("")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaSucursales()
|
Private Sub CargaSucursales()
|
||||||
@@ -96,27 +78,26 @@ Partial Class CatClientes
|
|||||||
DdlClasificaciones.DataBind()
|
DdlClasificaciones.DataBind()
|
||||||
DdlClasificaciones.Items.Insert(0, New ListItem("Todas", "-1"))
|
DdlClasificaciones.Items.Insert(0, New ListItem("Todas", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaNombreClientes()
|
Private Sub Inicializa()
|
||||||
|
PanelContrato.Visible = True
|
||||||
|
MPContrato.Enabled = True
|
||||||
|
Me.Form.DefaultButton = LbFiltrar.UniqueID
|
||||||
|
|
||||||
DdlClienteAUnificar.setEsWebService(True)
|
DdlClienteAUnificar.setEsWebService(True)
|
||||||
DdlClienteAUnificar.SelectedValue = "-1"
|
DdlClienteAUnificar.SelectedValue = "-1"
|
||||||
DdlClienteAUnificar.SelectedText = "Todos"
|
DdlClienteAUnificar.SelectedText = "Todos"
|
||||||
|
|
||||||
|
|
||||||
DdlClienteOriginal.setEsWebService(True)
|
DdlClienteOriginal.setEsWebService(True)
|
||||||
DdlClienteOriginal.SelectedValue = "-1"
|
DdlClienteOriginal.SelectedValue = "-1"
|
||||||
DdlClienteOriginal.SelectedText = "Todos"
|
DdlClienteOriginal.SelectedText = "Todos"
|
||||||
|
|
||||||
'DdlClienteAUnificar.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa)
|
If UsuarioActual.CveEmpresa = 119 Then
|
||||||
'DdlClienteAUnificar.DataBind()
|
divfiltro2.Visible = True
|
||||||
|
End If
|
||||||
'DdlClienteOriginal.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa)
|
|
||||||
'DdlClienteOriginal.DataBind()
|
|
||||||
|
|
||||||
UpBodyUnificar.Update()
|
UpBodyUnificar.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub CargaVendedor()
|
Private Sub CargaVendedor()
|
||||||
DdlVendedor.DataSource = GlobalDTVendedores(UsuarioActual.CveEmpresa)
|
DdlVendedor.DataSource = GlobalDTVendedores(UsuarioActual.CveEmpresa)
|
||||||
DdlVendedor.DataBind()
|
DdlVendedor.DataBind()
|
||||||
@@ -127,13 +108,8 @@ Partial Class CatClientes
|
|||||||
|
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
||||||
GvDatos.ExportToExcel("RepClientes_" & NowADS().ToShortDateString)
|
GvDatos.ExportToExcel("RepClientes_" & NowADS().ToShortDateString)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -261,7 +237,7 @@ Partial Class CatClientes
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ObjCliente.Dispose()
|
ObjCliente.Dispose()
|
||||||
CargaNombreClientes()
|
Inicializa()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
@@ -276,8 +252,7 @@ Partial Class CatClientes
|
|||||||
GuardaPersonalizacion()
|
GuardaPersonalizacion()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Personaliza()
|
Personaliza(True)
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -411,7 +386,6 @@ Partial Class CatClientes
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If objUsuario.AddUsuariosPersonalizaciones(UsuarioActual, "CatClientes.aspx", String.Join("|", ListPersonalizada)) Then
|
If objUsuario.AddUsuariosPersonalizaciones(UsuarioActual, "CatClientes.aspx", String.Join("|", ListPersonalizada)) Then
|
||||||
'Alert("Personalizacion guardada")
|
'Alert("Personalizacion guardada")
|
||||||
End If
|
End If
|
||||||
@@ -420,13 +394,12 @@ Partial Class CatClientes
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaPersonalizacion()
|
Private Sub CargaPersonalizacion(Optional RecargaDatos As Boolean = False)
|
||||||
|
|
||||||
Dim strBasePersonalizacion As String = UsuarioActual.Personalizaciones("CatClientes.aspx")
|
Dim strBasePersonalizacion As String = UsuarioActual.Personalizaciones("CatClientes.aspx")
|
||||||
|
|
||||||
If strBasePersonalizacion.Trim.Length > 0 Then
|
If strBasePersonalizacion.Trim.Length > 0 Then
|
||||||
|
|
||||||
|
|
||||||
ChkCodigo.Checked = False
|
ChkCodigo.Checked = False
|
||||||
ChkNombre.Checked = False
|
ChkNombre.Checked = False
|
||||||
ChkRFC.Checked = False
|
ChkRFC.Checked = False
|
||||||
@@ -564,7 +537,7 @@ Partial Class CatClientes
|
|||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Personaliza()
|
Personaliza(RecargaDatos)
|
||||||
|
|
||||||
Else
|
Else
|
||||||
PersonalizaDefault()
|
PersonalizaDefault()
|
||||||
@@ -577,7 +550,7 @@ Partial Class CatClientes
|
|||||||
Private Sub PersonalizaDefault()
|
Private Sub PersonalizaDefault()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub Personaliza()
|
Private Sub Personaliza(Optional RecargaDatos As Boolean = False)
|
||||||
|
|
||||||
|
|
||||||
GvDatos.Columns(0).Visible = ChkCodigo.Checked
|
GvDatos.Columns(0).Visible = ChkCodigo.Checked
|
||||||
@@ -614,8 +587,7 @@ Partial Class CatClientes
|
|||||||
GvDatos.Columns(28).Visible = ChkPermiteCredito.Checked
|
GvDatos.Columns(28).Visible = ChkPermiteCredito.Checked
|
||||||
GvDatos.Columns(29).Visible = chkFechaLimiteCredito.Checked
|
GvDatos.Columns(29).Visible = chkFechaLimiteCredito.Checked
|
||||||
|
|
||||||
|
If RecargaDatos Then CargaDatos()
|
||||||
CargaDatos()
|
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -1694,19 +1694,14 @@ Partial Class Clientes
|
|||||||
TxtObsDiasRevision.Text = ObjClientes.ObservacionRevision
|
TxtObsDiasRevision.Text = ObjClientes.ObservacionRevision
|
||||||
TxtReferenciaFiscal.Text = ObjClientes.ReferenciaFiscal
|
TxtReferenciaFiscal.Text = ObjClientes.ReferenciaFiscal
|
||||||
TxtCelular.Text = ObjClientes.Celular
|
TxtCelular.Text = ObjClientes.Celular
|
||||||
TxtExtOtro.Text = ObjClientes.ExtOtros
|
TxtExtOtro.Text = ObjClientes.ExtOtros
|
||||||
|
|
||||||
|
|
||||||
'If UsuarioActual.CveEmpresa.Contiene(4, 7, 11, 12, 122, 145) Then
|
|
||||||
' ActivarRegistroAutomatico()
|
|
||||||
'End If
|
|
||||||
|
|
||||||
ChkEnQuebranto.Checked = ObjClientes.EnQuebranto
|
ChkEnQuebranto.Checked = ObjClientes.EnQuebranto
|
||||||
ChkEnDemanda.Checked = ObjClientes.EnDemanda
|
ChkEnDemanda.Checked = ObjClientes.EnDemanda
|
||||||
TxtNombreFirmas.Text = ObjClientes.CreditoRegistroFirmas
|
TxtNombreFirmas.Text = ObjClientes.CreditoRegistroFirmas
|
||||||
|
|
||||||
If ObjClientes.EnQuebranto Then LblAlertaQuebranto.Text = "En Quebranto"
|
If ObjClientes.EnQuebranto Then LblAlertaQuebranto.Text = " En Quebranto "
|
||||||
If ObjClientes.EnDemanda Then LblAlertaQuebranto.Text &= "En Demanda"
|
If ObjClientes.EnDemanda Then LblAlertaQuebranto.Text &= " En Demanda "
|
||||||
|
|
||||||
'7eleven
|
'7eleven
|
||||||
TxtProveedor.Text = ObjClientes.SevenEleven_NumProveedor
|
TxtProveedor.Text = ObjClientes.SevenEleven_NumProveedor
|
||||||
|
|||||||
Reference in New Issue
Block a user