-- cambios Estados.
This commit is contained in:
@@ -1022,22 +1022,22 @@ Public Class ClsClientes
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
Public Function GetEstados(Optional ClaveSATPais As String = "-1") As Boolean
|
'Public Function GetEstados(Optional ClaveSATPais As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
' Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ClientesEstadosGet")
|
' DataAdapter("PA_ClientesEstadosGet")
|
||||||
|
|
||||||
SqlAdapter.SelectCommand.Parameters.Add("@ClaveSATPais", SqlDbType.VarChar).Value = ClaveSATPais
|
' SqlAdapter.SelectCommand.Parameters.Add("@ClaveSATPais", SqlDbType.VarChar).Value = ClaveSATPais
|
||||||
|
|
||||||
Try
|
' Try
|
||||||
SqlAdapter.Fill(Data)
|
' SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
' Retorno = True
|
||||||
Catch ex As Exception
|
' Catch ex As Exception
|
||||||
OnError("Ocurrió un error al obtener el los estados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
' OnError("Ocurrió un error al obtener el los estados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
' End Try
|
||||||
|
|
||||||
Return Retorno
|
' Return Retorno
|
||||||
End Function
|
'End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1596,8 +1596,8 @@ Public Class ClsClientes
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AgregarClienteNoFrecuente(Nombre As String, Direccion As String, NoExt As String, NoInt As String, Colonia As String, Localidad As String, Ciudad As String, Estado As String,
|
Public Function AgregarClienteNoFrecuente(Nombre As String, Direccion As String, NoExt As String, NoInt As String, Colonia As String, Localidad As String, Ciudad As String, CveEstado As Integer,
|
||||||
Pais As String, RFC As String, CP As String, Telefono As String, Mail As String, CveSubProyecto As Integer, CveUsuario As Integer, CveEmpresa As Integer,
|
RFC As String, CP As String, Telefono As String, Mail As String, CveSubProyecto As Integer, CveUsuario As Integer, CveEmpresa As Integer,
|
||||||
NumCuentaPago As String, CveMetodoPago33 As Integer, CveFormaPago33 As Integer, Optional CvePrecioLista As Integer = -1) As Boolean
|
NumCuentaPago As String, CveMetodoPago33 As Integer, CveFormaPago33 As Integer, Optional CvePrecioLista As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_ClientesNoFrecuenteAdd")
|
DataAdapter("PA_ClientesNoFrecuenteAdd")
|
||||||
@@ -1610,8 +1610,8 @@ Public Class ClsClientes
|
|||||||
.Add("@Colonia", SqlDbType.VarChar).Value = Colonia
|
.Add("@Colonia", SqlDbType.VarChar).Value = Colonia
|
||||||
.Add("@Localidad", SqlDbType.VarChar).Value = Localidad
|
.Add("@Localidad", SqlDbType.VarChar).Value = Localidad
|
||||||
.Add("@Ciudad", SqlDbType.VarChar).Value = Ciudad
|
.Add("@Ciudad", SqlDbType.VarChar).Value = Ciudad
|
||||||
.Add("@Estado", SqlDbType.VarChar).Value = Estado
|
.Add("@CveEstado", SqlDbType.Int).Value = CveEstado
|
||||||
.Add("@Pais", SqlDbType.VarChar).Value = Pais
|
' .Add("@Pais", SqlDbType.VarChar).Value = Pais
|
||||||
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
||||||
.Add("@CP", SqlDbType.VarChar).Value = CP
|
.Add("@CP", SqlDbType.VarChar).Value = CP
|
||||||
.Add("@Telefono", SqlDbType.VarChar).Value = Telefono
|
.Add("@Telefono", SqlDbType.VarChar).Value = Telefono
|
||||||
|
|||||||
@@ -4468,11 +4468,11 @@ Public Class ClsVentas
|
|||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetOCRelacionadas(CveVentasDetalles As String) As Boolean
|
Public Function GetOCRelacionadas(CveVenta As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_OrdenCompraRelacionada", CommandType.StoredProcedure)
|
DataAdapter("PA_Vta_OrdenCompraRelacionada", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveVentasDetalles", SqlDbType.NVarChar).Value = CveVentasDetalles
|
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -1227,7 +1227,6 @@ Partial Class Compras_Compras
|
|||||||
ClavesBorradas = New ArrayList()
|
ClavesBorradas = New ArrayList()
|
||||||
TxtFecha.Text = Now.ToShortDateString
|
TxtFecha.Text = Now.ToShortDateString
|
||||||
TxtFechaEjecucion.Text = Now.ToShortDateString
|
TxtFechaEjecucion.Text = Now.ToShortDateString
|
||||||
ViewState("CveCompra") = "0"
|
|
||||||
ViewState("CveFactura") = "0"
|
ViewState("CveFactura") = "0"
|
||||||
ViewState("IdPoliza") = "0"
|
ViewState("IdPoliza") = "0"
|
||||||
ViewState("CveCompra") = -1
|
ViewState("CveCompra") = -1
|
||||||
@@ -10761,7 +10760,7 @@ Partial Class Compras_Compras
|
|||||||
e.Row.FCLinkButton("ImgD").Visible = False
|
e.Row.FCLinkButton("ImgD").Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.DBCampo("CvePS").ToEntero > 0 AndAlso e.Row.DBCampo("IEPSPSPorcentaje").ToDouble > 0 Then
|
If CveCompra <= 0 AndAlso e.Row.DBCampo("CvePS").ToEntero > 0 AndAlso e.Row.DBCampo("IEPSPSPorcentaje").ToDouble > 0 Then
|
||||||
If GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=e.Row.DBCampo("CvePS").ToEntero).Rows.Count > 0 Then
|
If GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=e.Row.DBCampo("CvePS").ToEntero).Rows.Count > 0 Then
|
||||||
Dim DrPS As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=e.Row.DBCampo("CvePS").ToEntero).Rows(0)
|
Dim DrPS As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=e.Row.DBCampo("CvePS").ToEntero).Rows(0)
|
||||||
If DrPS IsNot Nothing Then
|
If DrPS IsNot Nothing Then
|
||||||
@@ -10773,6 +10772,11 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If e.Row.DBCampo("CvePS").ToEntero > 0 AndAlso e.Row.DBCampo("NoDeducible") = "True" Then
|
||||||
|
e.Row.FCLabel("LblIVAPorcentaje").ToolTip = "IVA NO Deducible"
|
||||||
|
e.Row.FCLabel("LblIVAPorcentaje").ForeColor = Drawing.Color.Red
|
||||||
|
End If
|
||||||
|
|
||||||
'CargaPresupuestosEgresos
|
'CargaPresupuestosEgresos
|
||||||
If UsuarioActual.Empresa.UsaAC Then
|
If UsuarioActual.Empresa.UsaAC Then
|
||||||
e.Row.Cells(13).Visible = True
|
e.Row.Cells(13).Visible = True
|
||||||
|
|||||||
@@ -937,27 +937,12 @@ Partial Class Clientes
|
|||||||
Private Sub CargaEstados(Optional ClaveSATPais As String = "MEX")
|
Private Sub CargaEstados(Optional ClaveSATPais As String = "MEX")
|
||||||
|
|
||||||
DdlEstadoSAT.Items.Clear()
|
DdlEstadoSAT.Items.Clear()
|
||||||
|
DdlEstadoSAT.DataSource = GlobalDTEstado(ClaveSATPais)
|
||||||
Dim ObjCliente As New ClsClientes
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ObjCliente.GetEstados(ClaveSATPais) Then
|
|
||||||
DdlEstadoSAT.DataSource = ObjCliente.DtResultados.Copy
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ObjCliente.Dispose()
|
|
||||||
|
|
||||||
DdlEstadoSAT.DataBind()
|
DdlEstadoSAT.DataBind()
|
||||||
DdlEstadoSAT.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlEstadoSAT.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
'DdlEstadoSAT.SelectedValue = "-1"
|
|
||||||
|
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaResponsables()
|
Private Sub CargaResponsables()
|
||||||
|
|||||||
@@ -1297,6 +1297,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
<div id="DivOCRelacionadas" class="modal ADS fade" role="dialog" runat="server" visible="false">
|
||||||
|
<asp:GridView runat="server" ID="GvOCRelacionadas" Caption="Ordenes de Compra Relacionadas:" AutoGenerateColumns="False" DataKeyNames="CveOrdenCompra,Folio"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None" ShowHeader="False">
|
||||||
|
<Columns>
|
||||||
|
<asp:HyperLinkField DataTextField="Folio" DataNavigateUrlFields="CveOrdenCompra" DataNavigateUrlFormatString="/OC/OC.aspx?OC={0}" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 ">
|
<div class="col-md-6 ">
|
||||||
@@ -3294,19 +3302,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtCorreoNotificaciones" runat="server" Width="100%" CssClass="form-control"></asp:TextBox></td>
|
<asp:TextBox ID="TxtCorreoNotificaciones" runat="server" Width="100%" CssClass="form-control"></asp:TextBox></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="left" id="trOCRelacionadasLabel" runat="server" visible="false">
|
|
||||||
<td id="Td3" runat="server">Ordenes de Compra Relacionadas: </td>
|
|
||||||
</tr>
|
|
||||||
<tr align="left" id="trOCRelacionadas" runat="server" visible="false">
|
|
||||||
<td>
|
|
||||||
<asp:GridView runat="server" ID="GvOCRelacionadas" AutoGenerateColumns="False" DataKeyNames="CveOrdenCompra,Folio"
|
|
||||||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None" ShowHeader="False">
|
|
||||||
<Columns>
|
|
||||||
<asp:HyperLinkField DataTextField="Folio" DataNavigateUrlFields="CveOrdenCompra" DataNavigateUrlFormatString="/OC/OC.aspx?OC={0}" />
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr align="left" id="trPaqueteriOpcionesLabel" runat="server" visible="false">
|
<tr align="left" id="trPaqueteriOpcionesLabel" runat="server" visible="false">
|
||||||
<td id="Td2" runat="server">Tipo de Entrega: </td>
|
<td id="Td2" runat="server">Tipo de Entrega: </td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -6399,15 +6394,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="DivEstadoPaisCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
<div id="DivEstadoPaisCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
||||||
<asp:TextBox ID="TxtEstadoCliente" CssClass="form-control " runat="server" MaxLength="35" CausesValidation="true"></asp:TextBox>
|
<asp:DropDownList ID="DdlSATPais" runat="server" CssClass="form-control input-sm select2me" OnSelectedIndexChanged="DdlSATPais_SelectedIndexChanged" AutoPostBack="true">
|
||||||
<asp:RequiredFieldValidator ID="RFVEstadoC" runat="server" ControlToValidate="TxtEstadoCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<label for="<%= TxtEstadoCliente.ClientID.ToString()%>">Estado:</label>
|
<asp:ListItem Value="MEX" Text="México" Selected="True"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="USA" Text="USA"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="CAN" Text="Canada"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
|
||||||
|
<asp:RequiredFieldValidator ID="RFVSATPais" runat="server" InitialValue="-1" ControlToValidate="DdlSATPais" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Pais''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= DdlSATPais.ClientID.ToString()%>">Pais:</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
||||||
<asp:TextBox ID="TxtPaisCliente" CssClass="form-control " Text="Mexico" runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
<asp:DropDownList ID="DdlEstadoSAT" DataTextField="NombreEstado" DataValueField="CveSATEstado" runat="server" CssClass="form-control input-sm select2me">
|
||||||
<asp:RequiredFieldValidator ID="RFVPaisC" runat="server" ControlToValidate="TxtPaisCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''País''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<label for="<%= TxtPaisCliente.ClientID.ToString()%>">País:</label>
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvDdlEstadoSAT" runat="server" InitialValue="-1" ControlToValidate="DdlEstadoSAT" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= DdlEstadoSAT.ClientID.ToString()%>">Estado:</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="DivCorreoCuentaCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
<div id="DivCorreoCuentaCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
||||||
@@ -7667,8 +7671,8 @@
|
|||||||
$('#<%= TxtTelefonoCliente.ClientID %>').val('');
|
$('#<%= TxtTelefonoCliente.ClientID %>').val('');
|
||||||
$('#<%= TxtCiudadCliente.ClientID %>').val('');
|
$('#<%= TxtCiudadCliente.ClientID %>').val('');
|
||||||
$('#<%= TxtLocalidadCliente.ClientID %>').val('');
|
$('#<%= TxtLocalidadCliente.ClientID %>').val('');
|
||||||
$('#<%= TxtEstadoCliente.ClientID %>').val('');
|
$('#<%= DdlSATPais.ClientID %>').val('');
|
||||||
$('#<%= TxtPaisCliente.ClientID %>').val('');
|
$('#<%= DdlEstadoSAT.ClientID %>').val('');
|
||||||
$('#<%= TxtCorreoCliente.ClientID %>').val('');
|
$('#<%= TxtCorreoCliente.ClientID %>').val('');
|
||||||
|
|
||||||
$('#divAgregarCliente').modal();
|
$('#divAgregarCliente').modal();
|
||||||
|
|||||||
@@ -2049,7 +2049,7 @@ Partial Class Ventas
|
|||||||
DdlSubProyectoDatos.Enabled = False
|
DdlSubProyectoDatos.Enabled = False
|
||||||
BtnEmitirImprimir.Visible = False
|
BtnEmitirImprimir.Visible = False
|
||||||
BtnCrearApartirDe.Visible = True
|
BtnCrearApartirDe.Visible = True
|
||||||
BtnEditar.Visible = True
|
If UsuarioActual.TienePermisoProceso(302) Then BtnEditar.Visible = True
|
||||||
'DdlEstatus.Enabled = True
|
'DdlEstatus.Enabled = True
|
||||||
|
|
||||||
DivFechaAnticipoCliente.Visible = True
|
DivFechaAnticipoCliente.Visible = True
|
||||||
@@ -2107,8 +2107,7 @@ Partial Class Ventas
|
|||||||
DivDevAlm.Visible = True
|
DivDevAlm.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'CARGA GV DE OC RELACIONADAS
|
|
||||||
CargarOCRelacionadas()
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Request("CveOS") IsNot Nothing AndAlso IsNumeric(Request("CveOS")) AndAlso Request("CveOS").ToEntero() > 0 Then
|
If Request("CveOS") IsNot Nothing AndAlso IsNumeric(Request("CveOS")) AndAlso Request("CveOS").ToEntero() > 0 Then
|
||||||
@@ -3564,6 +3563,19 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaEstados(Optional ClaveSATPais As String = "MEX")
|
||||||
|
|
||||||
|
DdlEstadoSAT.Items.Clear()
|
||||||
|
DdlEstadoSAT.DataSource = GlobalDTEstado(ClaveSATPais)
|
||||||
|
|
||||||
|
DdlEstadoSAT.DataBind()
|
||||||
|
DdlEstadoSAT.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Protected Sub DdlSATPais_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
CargaEstados(DdlSATPais.SelectedValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Function CargaVenta() As Boolean
|
Private Function CargaVenta() As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
@@ -4477,12 +4489,22 @@ Partial Class Ventas
|
|||||||
|
|
||||||
DdlTipoRetencion.SelectedValueExist(DbRowVenta("CveTipoRetencion").ToString())
|
DdlTipoRetencion.SelectedValueExist(DbRowVenta("CveTipoRetencion").ToString())
|
||||||
|
|
||||||
CargaPS(-1, DdlPS)
|
CargaPS(-1, DdlPS)
|
||||||
|
|
||||||
UpPS.Update()
|
'CARGA GV DE OC RELACIONADAS
|
||||||
UpContado.Update()
|
If CveVenta > 0 AndAlso ObjVentas.GetOCRelacionadas(CveVenta) Then
|
||||||
UpEstatus.Update()
|
If ObjVentas.DtResultados.Rows.Count > 0 Then
|
||||||
Retorno = True
|
DivOCRelacionadas.Visible = True
|
||||||
|
GvOCRelacionadas.DataSource = ObjVentas.DtResultados
|
||||||
|
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
GvOCRelacionadas.DataBind()
|
||||||
|
|
||||||
|
UpPS.Update()
|
||||||
|
UpContado.Update()
|
||||||
|
UpEstatus.Update()
|
||||||
|
Retorno = True
|
||||||
|
|
||||||
Else
|
Else
|
||||||
ViewState("CveVenta") = -1
|
ViewState("CveVenta") = -1
|
||||||
@@ -18456,6 +18478,7 @@ Partial Class Ventas
|
|||||||
DivBotonesAgregarCliente.Visible = False
|
DivBotonesAgregarCliente.Visible = False
|
||||||
DivFormaCliente.Visible = False
|
DivFormaCliente.Visible = False
|
||||||
UpAgregarCliente.Update()
|
UpAgregarCliente.Update()
|
||||||
|
CargaEstados()
|
||||||
|
|
||||||
RegistraScript("showDivEC();")
|
RegistraScript("showDivEC();")
|
||||||
End Sub
|
End Sub
|
||||||
@@ -18478,8 +18501,8 @@ Partial Class Ventas
|
|||||||
RFVColoniaC.Visible = False
|
RFVColoniaC.Visible = False
|
||||||
RFVCiudadC.Visible = False
|
RFVCiudadC.Visible = False
|
||||||
RFVLocalidadC.Visible = False
|
RFVLocalidadC.Visible = False
|
||||||
RFVEstadoC.Visible = False
|
RfvDdlEstadoSAT.Visible = False
|
||||||
RFVPaisC.Visible = False
|
RFVSATPais.Visible = False
|
||||||
|
|
||||||
DdlMetodoCliente.SelectedValueExist(1)
|
DdlMetodoCliente.SelectedValueExist(1)
|
||||||
DdlFormaCliente.SelectedValueExist(1)
|
DdlFormaCliente.SelectedValueExist(1)
|
||||||
@@ -18511,8 +18534,8 @@ Partial Class Ventas
|
|||||||
RFVColoniaC.Visible = True
|
RFVColoniaC.Visible = True
|
||||||
RFVCiudadC.Visible = True
|
RFVCiudadC.Visible = True
|
||||||
RFVLocalidadC.Visible = True
|
RFVLocalidadC.Visible = True
|
||||||
RFVEstadoC.Visible = True
|
RfvDdlEstadoSAT.Visible = True
|
||||||
RFVPaisC.Visible = True
|
RFVSATPais.Visible = True
|
||||||
|
|
||||||
DdlMetodoCliente.SelectedValueExist(-1)
|
DdlMetodoCliente.SelectedValueExist(-1)
|
||||||
DdlFormaCliente.SelectedValueExist(-1)
|
DdlFormaCliente.SelectedValueExist(-1)
|
||||||
@@ -18535,8 +18558,8 @@ Partial Class Ventas
|
|||||||
Dim ObjCliente As New ClsClientes
|
Dim ObjCliente As New ClsClientes
|
||||||
|
|
||||||
If ObjCliente.AgregarClienteNoFrecuente(TxtNombreCliente.Text.Trim, TxtDireccionCliente.Text.Trim, TxtNumExtCliente.Text.Trim, TxtNumIntCliente.Text.Trim,
|
If ObjCliente.AgregarClienteNoFrecuente(TxtNombreCliente.Text.Trim, TxtDireccionCliente.Text.Trim, TxtNumExtCliente.Text.Trim, TxtNumIntCliente.Text.Trim,
|
||||||
TxtColoniaCliente.Text.Trim, TxtLocalidadCliente.Text.Trim, TxtCiudadCliente.Text.Trim, TxtEstadoCliente.Text.Trim,
|
TxtColoniaCliente.Text.Trim, TxtLocalidadCliente.Text.Trim, TxtCiudadCliente.Text.Trim, DdlEstadoSAT.SelectedValue.ToEntero,
|
||||||
TxtPaisCliente.Text.Trim, TxtRFCCliente.Text.Trim, TxtCPCliente.Text.Trim, TxtTelefonoCliente.Text.Trim, TxtCorreoCliente.Text.Trim,
|
TxtRFCCliente.Text.Trim, TxtCPCliente.Text.Trim, TxtTelefonoCliente.Text.Trim, TxtCorreoCliente.Text.Trim,
|
||||||
DdlSubProyectoDatos.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "", -1, -1, CvePrecioLista:=CvePrecioLista) Then
|
DdlSubProyectoDatos.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "", -1, -1, CvePrecioLista:=CvePrecioLista) Then
|
||||||
If ObjCliente.DtResultados.Rows.Count > 0 Then
|
If ObjCliente.DtResultados.Rows.Count > 0 Then
|
||||||
RegistraScript("hideDivEC();")
|
RegistraScript("hideDivEC();")
|
||||||
@@ -21273,6 +21296,11 @@ Partial Class Ventas
|
|||||||
Dim TempCliente As Integer = If(CveVenta <= 0, CveCliente, -1)
|
Dim TempCliente As Integer = If(CveVenta <= 0, CveCliente, -1)
|
||||||
Dim TipoDocumento As Integer = If(CveVenta <= 0, 14, -1)
|
Dim TipoDocumento As Integer = If(CveVenta <= 0, 14, -1)
|
||||||
|
|
||||||
|
If CveVenta <= 0 AndAlso TempCliente <= 0 Then
|
||||||
|
Dim a As String = "carga de docuemntacion del cleinte, masivo, corregir"
|
||||||
|
a.GuardaLog()
|
||||||
|
End If
|
||||||
|
|
||||||
If objRH.DocumentacionElectronicaGet(-1, TempCliente, -1, UsuarioActual.CveEmpresa, TipoDocumento, CveVenta) Then
|
If objRH.DocumentacionElectronicaGet(-1, TempCliente, -1, UsuarioActual.CveEmpresa, TipoDocumento, CveVenta) Then
|
||||||
DtDocumentacionCliente = objRH.DtResultados.FiltraParametros("CveDocumentacionElectronica > 0")
|
DtDocumentacionCliente = objRH.DtResultados.FiltraParametros("CveDocumentacionElectronica > 0")
|
||||||
DtDocumentacionCliente.Columns.Add("Accion", Type.GetType("System.String"))
|
DtDocumentacionCliente.Columns.Add("Accion", Type.GetType("System.String"))
|
||||||
@@ -25952,26 +25980,6 @@ Partial Class Ventas
|
|||||||
'MailCls = Nothing
|
'MailCls = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargarOCRelacionadas()
|
|
||||||
Dim GridViewPSAux As GridView = GvPS
|
|
||||||
Dim CveVentasDetalle As New StringBuilder()
|
|
||||||
For Each vd As GridViewRow In GridViewPSAux.Rows
|
|
||||||
Dim CveVentaDetalle As String = vd.DataKey("CveVentaDetalle")
|
|
||||||
CveVentasDetalle.AppendFormat("{0},", CveVentaDetalle)
|
|
||||||
Next
|
|
||||||
Dim ObjVentas As New ClsVentas()
|
|
||||||
If ObjVentas.GetOCRelacionadas(CveVentasDetalle.ToString) Then
|
|
||||||
Dim OC As DataTable = ObjVentas.DtResultados
|
|
||||||
If OC.Rows.Count > 0 Then
|
|
||||||
trOCRelacionadasLabel.Visible = True
|
|
||||||
trOCRelacionadas.Visible = True
|
|
||||||
GvOCRelacionadas.DataSource = OC
|
|
||||||
GvOCRelacionadas.DataBind()
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
ObjVentas.Dispose()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Protected Sub BtnEditar_Click() Handles BtnEditar.Click
|
Protected Sub BtnEditar_Click() Handles BtnEditar.Click
|
||||||
Dim Opcion As String = BtnEditar.Text
|
Dim Opcion As String = BtnEditar.Text
|
||||||
If Opcion = "Editar" Then
|
If Opcion = "Editar" Then
|
||||||
|
|||||||
Reference in New Issue
Block a user