Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -1676,7 +1676,8 @@ Public Class ClsClientes
|
|||||||
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, CveEstado As Integer,
|
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,
|
||||||
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, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False) As Boolean
|
NumCuentaPago As String, CveMetodoPago33 As Integer, CveFormaPago33 As Integer, Optional CvePrecioLista As Integer = -1, Optional RegimenSociedad As String = "-1",
|
||||||
|
Optional TipoPersona As Boolean = False, Optional CveRegimenFiscal As Integer = -1, Optional CveUsoCFDI As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_ClientesNoFrecuenteAdd")
|
DataAdapter("PA_ClientesNoFrecuenteAdd")
|
||||||
|
|
||||||
@@ -1703,6 +1704,8 @@ Public Class ClsClientes
|
|||||||
.Add("@CvePrecioLista", SqlDbType.Int).Value = CvePrecioLista
|
.Add("@CvePrecioLista", SqlDbType.Int).Value = CvePrecioLista
|
||||||
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
|
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
|
||||||
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
|
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
|
||||||
|
.Add("@CveRegimenFiscal", SqlDbType.Int).Value = CveRegimenFiscal
|
||||||
|
.Add("@CveUsoCFDI", SqlDbType.Int).Value = CveUsoCFDI
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|||||||
@@ -1770,6 +1770,11 @@ Public Class ClsProductosServicios
|
|||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch Ex1 As SqlException
|
Catch Ex1 As SqlException
|
||||||
|
|
||||||
|
If Ex1.Message.Contains("Producto princial no encontrado:") Or Ex1.Message.Contains("Producto unificado no encontrado:") Then
|
||||||
|
Alert(Ex1.Message, TipoMensaje.MsgAdvertencia)
|
||||||
|
End If
|
||||||
|
|
||||||
OnError("Ocurrió un error al intentar Unificar los Productos o Servicios.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al intentar Unificar los Productos o Servicios.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al intentar Unificar los Productos o Servicios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al intentar Unificar los Productos o Servicios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
|||||||
@@ -10371,6 +10371,8 @@ Namespace Modelos
|
|||||||
Telefono = ""
|
Telefono = ""
|
||||||
UTCOffsetVerano = -7
|
UTCOffsetVerano = -7
|
||||||
UTCOffsetInvierno = -7
|
UTCOffsetInvierno = -7
|
||||||
|
Acum_PortalUsuario = ""
|
||||||
|
Acum_PortalContrasena = ""
|
||||||
End Sub
|
End Sub
|
||||||
Public Sub New()
|
Public Sub New()
|
||||||
MyBase.New()
|
MyBase.New()
|
||||||
@@ -10409,6 +10411,8 @@ Namespace Modelos
|
|||||||
Public Property ImprimeNombre As String
|
Public Property ImprimeNombre As String
|
||||||
Public Property UTCOffsetVerano As Integer
|
Public Property UTCOffsetVerano As Integer
|
||||||
Public Property UTCOffsetInvierno As Integer
|
Public Property UTCOffsetInvierno As Integer
|
||||||
|
Public Property Acum_PortalUsuario As String
|
||||||
|
Public Property Acum_PortalContrasena As String
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -6584,7 +6584,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If RegistraConcepto225 Then
|
If RegistraConcepto225 Then
|
||||||
|
|
||||||
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) = 0 And ISNULL(AplicaCostoIndirecto,0) <> 1 And ISNULL(CveTipoPS,0) = 2").ToString.ToDecimal
|
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"ISNULL(TipoAF,0) <> 2 And ISNULL(AplicaCostoIndirecto,0) <> 1 And ISNULL(CveTipoPS,0) = 2").ToString.ToDecimal
|
||||||
importeMN = importeMovimiento * tipoCambioActual * Multiplicador
|
importeMN = importeMovimiento * tipoCambioActual * Multiplicador
|
||||||
|
|
||||||
'no es necesario, ya se está interpretandoe l usado como producto
|
'no es necesario, ya se está interpretandoe l usado como producto
|
||||||
@@ -6978,7 +6978,7 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, (importeMovimiento + OtrosGastosIngresos), Referencia, CveConceptoContableDeoudor, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=tCveProveedor, CveIE:=rw.DataKey("CveIE").ToString.ToEntero, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMNOtrosIngEgs, ImporteME:=If(tipoCambioActual = 1, 0, (importeMovimiento + OtrosGastosIngresos)), Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, If(TipoMovimiento, False, True), (importeMovimiento + OtrosGastosIngresos), Referencia, CveConceptoContableDeoudor, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=tCveProveedor, CveIE:=rw.DataKey("CveIE").ToString.ToEntero, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMNOtrosIngEgs, ImporteME:=If(tipoCambioActual = 1, 0, (importeMovimiento + OtrosGastosIngresos)), Contabilizable:=SeContabiliza) Then
|
||||||
ErrorPrepoliza = True : Exit For
|
ErrorPrepoliza = True : Exit For
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -6987,7 +6987,7 @@ Partial Class Compras_Compras
|
|||||||
.ImportePago = importeMovimiento,
|
.ImportePago = importeMovimiento,
|
||||||
.CveIE = CveIE,
|
.CveIE = CveIE,
|
||||||
.CveMonedaPago = rw.DataKey("CveMoneda").ToEntero,
|
.CveMonedaPago = rw.DataKey("CveMoneda").ToEntero,
|
||||||
.OtroGastoIngreso = OtrosGastosIngresos
|
.OtroGastoIngreso = -OtrosGastosIngresos 'Se manda en negativo para no afectar en prepoliza, en funcion AplicaPrePolizaPagoCompra se mete en positivo por default
|
||||||
}
|
}
|
||||||
AplicaPrePolizaPagoCompra(CompraActual, Pago, CvePrePoliza, ObjConta)
|
AplicaPrePolizaPagoCompra(CompraActual, Pago, CvePrePoliza, ObjConta)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -4274,7 +4274,12 @@ Partial Class PopUpVerFactura
|
|||||||
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
|
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString("dd/MM/yyyy")))
|
||||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
params.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
|
params.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
|
||||||
ImprimirPDF(String.Format("Empresas/Grales/Formatos/Traslado.rdlc", UsuarioActual.Empresa.Ruta), DtMovimientos, params, String.Format("Aviso de Traslado - {0}", Folio), RDSName:="DsInventarios")
|
If UsuarioActual.CveEmpresa.Contiene(172, 173) Then
|
||||||
|
ImprimirPDFStimulsoft(String.Format("Empresas/Grales/Formatos/Traslado.mrt", UsuarioActual.Empresa.Ruta), DtMovimientos, params, String.Format("Aviso de Traslado - {0}", Folio), RDSName:="DsInventarios")
|
||||||
|
Else
|
||||||
|
ImprimirPDF(String.Format("Empresas/Grales/Formatos/Traslado.rdlc", UsuarioActual.Empresa.Ruta), DtMovimientos, params, String.Format("Aviso de Traslado - {0}", Folio), RDSName:="DsInventarios")
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<div class="row text-size-12">
|
<div class="row text-size-12">
|
||||||
<div class="col-md-1"><span>Proveedor: </span></div>
|
<div class="col-md-1"><span>Proveedor: </span></div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<ADS:Dropdownlost ID="DdlProveedor" runat="server" CssStyle="width: 100%; selected2me" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor" ></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlProveedor" runat="server" CssStyle="width: 100%; selected2me" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor"></ADS:Dropdownlost>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1"><span>Clasificación:</span></div>
|
<div class="col-md-1"><span>Clasificación:</span></div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
@@ -226,13 +226,21 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-1"><span><asp:Label runat="server" ID="LblSubProyectofiltro"></asp:Label>:</span></div>
|
<asp:Label runat="server" class="col-md-1" ID="LblProyecto"></asp:Label>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList ID="DdlSubProyecto" runat="server" CssClass="select2me" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="100%">
|
<asp:DropDownList ID="DdlProyecto" runat="server" CssClass="select2me" DataTextField="Proyecto" DataValueField="CveProyecto" Width="100%" AutoPostBack="true">
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<asp:Label runat="server" class="col-md-1" ID="LblSubProyectofiltro"></asp:Label>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" CssClass="select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-1"><span>Tipo Docto:</span></div>
|
<div class="col-md-1"><span>Tipo Docto:</span></div>
|
||||||
<div class="col-md-2 " style="padding-bottom: 10px;">
|
<div class="col-md-2 " style="padding-bottom: 10px;">
|
||||||
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
||||||
@@ -243,33 +251,28 @@
|
|||||||
<asp:ListItem Selected="True" Value="DEV" Text="Devolución"></asp:ListItem>
|
<asp:ListItem Selected="True" Value="DEV" Text="Devolución"></asp:ListItem>
|
||||||
</asp:ListBox>
|
</asp:ListBox>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1"><span>Comprobación:</span></div>
|
|
||||||
<div class="col-md-1">
|
|
||||||
<asp:DropDownList ID="DdlComprobacion" runat="server" CssClass="select2me" AppendDataBoundItems="true" Width="100%">
|
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="DivEmpresasFiltro" runat="server" visible="false">
|
<div id="DivEmpresasFiltro" runat="server" visible="false">
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Empresas:
|
Empresas:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 " style="padding-bottom: 10px;">
|
<div class="col-md-2 " style="padding-bottom: 10px;">
|
||||||
<asp:ListBox ID="DdlEmpresas" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server" DataTextField="Empresa" DataValueField="CveEmpresa"></asp:ListBox>
|
<asp:ListBox ID="DdlEmpresas" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server" DataTextField="Empresa" DataValueField="CveEmpresa"></asp:ListBox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div runat="server" id="divAgruparMes" visible="false">
|
<div runat="server" id="divAgruparMes" visible="false">
|
||||||
<div class="col-md-1 truncate ">Ver por meses: </div>
|
<div class="col-md-1 truncate ">Ver por meses: </div>
|
||||||
<div class="col-md-1 truncate ">
|
<div class="col-md-1 truncate ">
|
||||||
<asp:CheckBox runat="server" ID="chkAgruparMes"/>
|
<asp:CheckBox runat="server" ID="chkAgruparMes" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate" title="Moneda:" data-toggle="tooltip" data-placement="top">
|
<div class="col-md-1 truncate" title="Moneda:" data-toggle="tooltip" data-placement="top">
|
||||||
Moneda:
|
Moneda:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
<asp:DropDownList ID="DdlMoneda" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<asp:DropDownList ID="DdlMoneda" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
@@ -278,6 +281,14 @@
|
|||||||
<asp:ListItem Text="Dolares" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Dolares" Value="2"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-1"><span>Comprobación:</span></div>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlComprobacion" runat="server" CssClass="select2me" AppendDataBoundItems="true" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -295,6 +306,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="7%">
|
<asp:TemplateField ItemStyle-Width="7%">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Saldo
|
Saldo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="HplSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="HplSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:HyperLink>
|
||||||
@@ -395,6 +407,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="7%">
|
<asp:TemplateField ItemStyle-Width="7%">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Total
|
Total
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="LtlPorVencer" runat="server" Text='<%# Eval("por_vencer", "{0:N2}") %>'></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="LtlPorVencer" runat="server" Text='<%# Eval("por_vencer", "{0:N2}") %>'></asp:HyperLink>
|
||||||
@@ -404,6 +417,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Ventas
|
Ventas
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="LtlVentas" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="LtlVentas" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:HyperLink>
|
||||||
@@ -412,6 +426,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Saldo
|
Saldo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="LtlSaldo1" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="LtlSaldo1" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:HyperLink>
|
||||||
@@ -420,6 +435,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Resta
|
Resta
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="LtlVentasRecuperado" runat="server"></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="LtlVentasRecuperado" runat="server"></asp:HyperLink>
|
||||||
@@ -428,6 +444,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
% Recup.
|
% Recup.
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="LtlPorRecuperado" runat="server"></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="LtlPorRecuperado" runat="server"></asp:HyperLink>
|
||||||
@@ -436,6 +453,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
% X Recup.
|
% X Recup.
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink CssClass="Texto" ID="LtlPorPorRecuperar" runat="server"></asp:HyperLink>
|
<asp:HyperLink CssClass="Texto" ID="LtlPorPorRecuperar" runat="server"></asp:HyperLink>
|
||||||
@@ -548,6 +566,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -585,7 +604,8 @@
|
|||||||
|
|
||||||
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
||||||
Especifico:
|
Especifico:
|
||||||
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
|
||||||
|
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -129,9 +129,9 @@ Partial Class Compras_RepCxP
|
|||||||
DdlUsuarioResponsable.DataSource = GlobalDTUsuarioResponsable.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa).FiltraParametros("ProveedoresResponsables > 0")
|
DdlUsuarioResponsable.DataSource = GlobalDTUsuarioResponsable.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa).FiltraParametros("ProveedoresResponsables > 0")
|
||||||
DdlUsuarioResponsable.DataBind()
|
DdlUsuarioResponsable.DataBind()
|
||||||
|
|
||||||
DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
'DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
||||||
DdlSubProyecto.DataBind()
|
'DdlSubProyecto.DataBind()
|
||||||
CargarCentrosDeCosto(Nothing, Nothing, Nothing, LblSubProyectofiltro)
|
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyecto, LblSubProyectofiltro)
|
||||||
|
|
||||||
DdlProveedoresClasificaciones.DataSource = GlobalDTProveedorClasificacion(UsuarioActual.CveEmpresa)
|
DdlProveedoresClasificaciones.DataSource = GlobalDTProveedorClasificacion(UsuarioActual.CveEmpresa)
|
||||||
DdlProveedoresClasificaciones.DataBind()
|
DdlProveedoresClasificaciones.DataBind()
|
||||||
@@ -168,6 +168,14 @@ Partial Class Compras_RepCxP
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlProyecto_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlProyecto.SelectedIndexChanged
|
||||||
|
DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, DdlProyecto.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, CveEstatus:=1)
|
||||||
|
DdlSubProyecto.DataBind()
|
||||||
|
DdlSubProyecto.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
UPFiltros.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
If RblTipoCambio.SelectedValue = 3 And TxtEspecifico.Text <> "" Then
|
If RblTipoCambio.SelectedValue = 3 And TxtEspecifico.Text <> "" Then
|
||||||
TCEspecifico = TxtEspecifico.Text
|
TCEspecifico = TxtEspecifico.Text
|
||||||
|
|||||||
@@ -216,9 +216,16 @@
|
|||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1"><span><asp:Label runat="server" ID="LblSubProyectofiltro"></asp:Label>:</span></div>
|
<asp:Label runat="server" class="col-md-1" ID="LblProyecto"></asp:Label>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList ID="DdlSubProyecto" runat="server" CssClass="select2me" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="100%">
|
<asp:DropDownList ID="DdlProyecto" runat="server" CssClass="select2me" DataTextField="Proyecto" DataValueField="CveProyecto" Width="100%" AutoPostBack="true">
|
||||||
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<asp:Label runat="server" class="col-md-1" ID="LblSubProyectofiltro"></asp:Label>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" CssClass="select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
@@ -230,14 +237,7 @@
|
|||||||
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="margin-left:20px"><span>Aplica NC:</span></div>
|
|
||||||
<div class="col-md-1">
|
|
||||||
<asp:DropDownList ID="DdlAplicaNC" runat="server" CssClass="select2me" AppendDataBoundItems="true" Width="100%">
|
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -246,7 +246,14 @@
|
|||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList ID="Ddlmoneda" runat="server" AppendDataBoundItems="true" CssClass="select2me" DataTextField="Moneda" DataValueField="CveMoneda" Width="100%" ></asp:DropDownList>
|
<asp:DropDownList ID="Ddlmoneda" runat="server" AppendDataBoundItems="true" CssClass="select2me" DataTextField="Moneda" DataValueField="CveMoneda" Width="100%" ></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-1" style="margin-left:20px"><span>Aplica NC:</span></div>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlAplicaNC" runat="server" CssClass="select2me" AppendDataBoundItems="true" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -268,11 +268,15 @@ Partial Class RepCxPDetalle
|
|||||||
|
|
||||||
|
|
||||||
Dim CveSucursal As Integer = IfNull(Request("CveSubProyecto"), -1).ToString.ToEntero
|
Dim CveSucursal As Integer = IfNull(Request("CveSubProyecto"), -1).ToString.ToEntero
|
||||||
DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
|
||||||
DdlSubProyecto.DataBind()
|
'DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
||||||
|
'DdlSubProyecto.DataBind()
|
||||||
|
'DdlSubProyecto.Items.Insert(1, New ListItem("Sin Sucursal", "0"))
|
||||||
|
'DdlSubProyecto.SelectedValueExist(CveSucursal)
|
||||||
|
|
||||||
|
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyecto, LblSubProyectofiltro)
|
||||||
DdlSubProyecto.Items.Insert(1, New ListItem("Sin Sucursal", "0"))
|
DdlSubProyecto.Items.Insert(1, New ListItem("Sin Sucursal", "0"))
|
||||||
DdlSubProyecto.SelectedValueExist(CveSucursal)
|
'CargarCentrosDeCosto(Nothing, Nothing, Nothing, LblSubProyectofiltro)
|
||||||
CargarCentrosDeCosto(Nothing, Nothing, Nothing, LblSubProyectofiltro)
|
|
||||||
|
|
||||||
Dim TipoMoneda As Integer = IfNull(Request("TipoMoneda"), 1).ToString.ToEntero
|
Dim TipoMoneda As Integer = IfNull(Request("TipoMoneda"), 1).ToString.ToEntero
|
||||||
RblTipoCambio.SelectedValue = TipoMoneda.ToString
|
RblTipoCambio.SelectedValue = TipoMoneda.ToString
|
||||||
@@ -346,6 +350,14 @@ Partial Class RepCxPDetalle
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlProyecto_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlProyecto.SelectedIndexChanged
|
||||||
|
DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, DdlProyecto.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, CveEstatus:=1)
|
||||||
|
DdlSubProyecto.DataBind()
|
||||||
|
DdlSubProyecto.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
UPFiltros.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Function CargaCuentasContables(DT As DataTable) As DataTable
|
Private Function CargaCuentasContables(DT As DataTable) As DataTable
|
||||||
|
|
||||||
Dim ObjConpaq As New ClsContPAQi(UsuarioActual.Empresa)
|
Dim ObjConpaq As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
|
|||||||
@@ -768,7 +768,7 @@
|
|||||||
<Top>0.22328cm</Top>
|
<Top>0.22328cm</Top>
|
||||||
<Left>13.63291cm</Left>
|
<Left>13.63291cm</Left>
|
||||||
<Height>0.89103cm</Height>
|
<Height>0.89103cm</Height>
|
||||||
<Width>4.09693cm</Width>
|
<Width>3.51794cm</Width>
|
||||||
<ZIndex>5</ZIndex>
|
<ZIndex>5</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
@@ -802,9 +802,9 @@
|
|||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox31</rd:DefaultName>
|
<rd:DefaultName>Textbox31</rd:DefaultName>
|
||||||
<Top>0.1905cm</Top>
|
<Top>0.1905cm</Top>
|
||||||
<Left>17.72984cm</Left>
|
<Left>17.15085cm</Left>
|
||||||
<Height>0.9263cm</Height>
|
<Height>0.9263cm</Height>
|
||||||
<Width>2.57165cm</Width>
|
<Width>3.15064cm</Width>
|
||||||
<ZIndex>6</ZIndex>
|
<ZIndex>6</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
|
|||||||
@@ -1703,7 +1703,7 @@ Partial Class General_SaldosIniciales
|
|||||||
If TipoDocto.Contiene("Ing", "Egs", "Rem") Then
|
If TipoDocto.Contiene("Ing", "Egs", "Rem") Then
|
||||||
GuardaLog(Serie & "-" & Folio)
|
GuardaLog(Serie & "-" & Folio)
|
||||||
If Not ObjVentas.AddVenta(TipoDocto, Folio, CveCliente.ToEntero, CveClienteSucursal, SubTotal, 0, Amortizacion, IVA, RetIVA, RetISR, Total, CveMoneda, TipoCambio.ToDouble,
|
If Not ObjVentas.AddVenta(TipoDocto, Folio, CveCliente.ToEntero, CveClienteSucursal, SubTotal, 0, Amortizacion, IVA, RetIVA, RetISR, Total, CveMoneda, TipoCambio.ToDouble,
|
||||||
0, 0, 0, FechaVencimiento, Fecha, "", "", Fecha, CveVendedor, Folio2, "", "", 0, 0, 0, "-1".ToDate, "-1".ToDate, "-1".ToDate, -1, -1, 0, CvePrePoliza,
|
0, 0, 0, FechaVencimiento, Fecha, "", "", Fecha, CveVendedor, Folio2, "", "", 0, 0, 0, "-1".ToDate, "-1".ToDate, "-1".ToDate, -1, 0, CvePrePoliza,
|
||||||
UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Serie:=Serie, CveSubProyecto:=Sucursal.ToEntero, CveSubProyectoEjecucion:=Sucursal.ToEntero,
|
UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Serie:=Serie, CveSubProyecto:=Sucursal.ToEntero, CveSubProyectoEjecucion:=Sucursal.ToEntero,
|
||||||
CveSubProyectoCobranza:=Sucursal.ToEntero, IEPS:=IEPS,
|
CveSubProyectoCobranza:=Sucursal.ToEntero, IEPS:=IEPS,
|
||||||
ObservacionesAlmacen:=Transaccion, Entrega:=CodCliente, ImpuestoLocal:=ImpuestoLocal, PedidoContrato:=PedidoContrato) Then
|
ObservacionesAlmacen:=Transaccion, Entrega:=CodCliente, ImpuestoLocal:=ImpuestoLocal, PedidoContrato:=PedidoContrato) Then
|
||||||
|
|||||||
@@ -2356,6 +2356,11 @@ Partial Class OC_OC
|
|||||||
Private Function ValidaGuardar() As Boolean
|
Private Function ValidaGuardar() As Boolean
|
||||||
Dim TieneError = False
|
Dim TieneError = False
|
||||||
|
|
||||||
|
If CboE.SelectedValue.ToEntero = 0 AndAlso TipoOC = "OC" Then
|
||||||
|
Alert("Las ordenes de compra no puede tener el estatus 'Pre Solicitud'. Debe ser una requisición", TipoMensaje.MsgAdvertencia)
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
|
||||||
'Entrega Directa requiere Cliente y Vendedor
|
'Entrega Directa requiere Cliente y Vendedor
|
||||||
If ChkEntregaDirecta.Checked And Ddlcliente.txtValue.Value.ToEntero <= 0 Then
|
If ChkEntregaDirecta.Checked And Ddlcliente.txtValue.Value.ToEntero <= 0 Then
|
||||||
Alert("Al ser una Entrega Directa es necesario seleccionar un cliente, por favor seleccione uno.")
|
Alert("Al ser una Entrega Directa es necesario seleccionar un cliente, por favor seleccione uno.")
|
||||||
|
|||||||
@@ -348,6 +348,7 @@
|
|||||||
<asp:BoundField DataField="EntregaDirectaFormat" HeaderText="Entrega Directa" />
|
<asp:BoundField DataField="EntregaDirectaFormat" HeaderText="Entrega Directa" />
|
||||||
<asp:BoundField DataField="Total" DataFormatString="{0:N2}" HeaderText="Total" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField DataField="Total" DataFormatString="{0:N2}" HeaderText="Total" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="MonAbreviatura" HeaderText="Mon" />
|
<asp:BoundField DataField="MonAbreviatura" HeaderText="Mon" />
|
||||||
|
<asp:BoundField DataField="PrioridadTexto" HeaderText="Prioridad" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
@@ -385,6 +386,7 @@
|
|||||||
<asp:BoundField DataField="EntregaDirectaFormat" HeaderText="Entrega Directa" />
|
<asp:BoundField DataField="EntregaDirectaFormat" HeaderText="Entrega Directa" />
|
||||||
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
||||||
<asp:BoundField DataField="MonAbreviatura" HeaderText="Mon" />
|
<asp:BoundField DataField="MonAbreviatura" HeaderText="Mon" />
|
||||||
|
<asp:BoundField DataField="PrioridadTexto" HeaderText="Prioridad" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -424,6 +426,7 @@
|
|||||||
<asp:BoundField DataField="EntregaDirectaFormat" HeaderText="Entrega Directa" />
|
<asp:BoundField DataField="EntregaDirectaFormat" HeaderText="Entrega Directa" />
|
||||||
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
||||||
<asp:BoundField DataField="MonAbreviatura" HeaderText="Mon" />
|
<asp:BoundField DataField="MonAbreviatura" HeaderText="Mon" />
|
||||||
|
<asp:BoundField DataField="PrioridadTexto" HeaderText="Prioridad" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
|
|||||||
@@ -212,12 +212,25 @@ Partial Class RepOC
|
|||||||
GvPorAtender.DataSource = DtPorAtender 'OC.DtResultados
|
GvPorAtender.DataSource = DtPorAtender 'OC.DtResultados
|
||||||
GvPorAtender.DataBind()
|
GvPorAtender.DataBind()
|
||||||
|
|
||||||
'If (GvPorAtender.Rows.Count > 0) Then
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
' GvPorAtender.UseAccessibleHeader = True
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"UsuarioAsignado"}).FiltroPrimeroValor("UsuarioAsignado") = "" Then
|
||||||
' GvPorAtender.HeaderRow.TableSection = TableRowSection.TableHeader
|
GvPorAtender.Columns(10).Visible = False
|
||||||
' RegistraScript("AddScrollGvPorAtender();")
|
End If
|
||||||
'End If
|
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"Cliente"}).FiltroPrimeroValor("Cliente") = "" Then
|
||||||
|
GvPorAtender.Columns(12).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"CodigoAF"}).FiltroPrimeroValor("CodigoAF") = "" Then
|
||||||
|
GvPorAtender.Columns(13).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"EntregaDirectaFormat"}).FiltroPrimeroValor("EntregaDirectaFormat") = "" Then
|
||||||
|
GvPorAtender.Columns(15).Visible = False
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If OC.GetOrdenesPendientes(DdlTipo.SelectedValue.ToString, 1, UsuarioActual.CveEmpresa, DdlProyectos.SelectedValue.ToEntero, DdlSubProyectos.SelectedValue.ToEntero,
|
If OC.GetOrdenesPendientes(DdlTipo.SelectedValue.ToString, 1, UsuarioActual.CveEmpresa, DdlProyectos.SelectedValue.ToEntero, DdlSubProyectos.SelectedValue.ToEntero,
|
||||||
@@ -226,13 +239,30 @@ Partial Class RepOC
|
|||||||
GvPendientes.DataSource = OC.DtResultados
|
GvPendientes.DataSource = OC.DtResultados
|
||||||
DtPendiente = OC.DtResultados
|
DtPendiente = OC.DtResultados
|
||||||
GvPendientes.DataBind()
|
GvPendientes.DataBind()
|
||||||
'If (GvPendientes.Rows.Count > 0) Then
|
|
||||||
' GvPendientes.UseAccessibleHeader = True
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
' GvPendientes.HeaderRow.TableSection = TableRowSection.TableHeader
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"UsuarioAsignado"}).FiltroPrimeroValor("UsuarioAsignado") = "" Then
|
||||||
' RegistraScript("AddScrollGvPendientes();")
|
GvPendientes.Columns(10).Visible = False
|
||||||
'End If
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"Cliente"}).FiltroPrimeroValor("Cliente") = "" Then
|
||||||
|
GvPendientes.Columns(12).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"CodigoAF"}).FiltroPrimeroValor("CodigoAF") = "" Then
|
||||||
|
GvPendientes.Columns(13).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"EntregaDirectaFormat"}).FiltroPrimeroValor("EntregaDirectaFormat") = "" Then
|
||||||
|
GvPendientes.Columns(15).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
OC.Dispose()
|
OC.Dispose()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub GVPendientes_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvPendientes.RowDataBound
|
Protected Sub GVPendientes_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvPendientes.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -350,6 +380,26 @@ Partial Class RepOC
|
|||||||
DivTotalOC.Visible = True
|
DivTotalOC.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"UsuarioAsignado"}).FiltroPrimeroValor("UsuarioAsignado") = "" Then
|
||||||
|
GvConsultar.Columns(10).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"Cliente"}).FiltroPrimeroValor("Cliente") = "" Then
|
||||||
|
GvConsultar.Columns(12).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"CodigoAF"}).FiltroPrimeroValor("CodigoAF") = "" Then
|
||||||
|
GvConsultar.Columns(13).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'SI NO TIENE DATOS, NO MOSTRAR LA COLUMNA
|
||||||
|
If OC.DtResultados.FiltraParametros("", DistinctColumns:={"EntregaDirectaFormat"}).FiltroPrimeroValor("EntregaDirectaFormat") = "" Then
|
||||||
|
GvConsultar.Columns(15).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
OC.Dispose()
|
OC.Dispose()
|
||||||
GvConsultar.DataBind()
|
GvConsultar.DataBind()
|
||||||
@@ -382,7 +432,7 @@ Partial Class RepOC
|
|||||||
Case "2" 'Rechazada
|
Case "2" 'Rechazada
|
||||||
e.Row.Cells(7).CssClass = "label label-sm label-danger" 'Rojo
|
e.Row.Cells(7).CssClass = "label label-sm label-danger" 'Rojo
|
||||||
Case "3" 'Solicitada
|
Case "3" 'Solicitada
|
||||||
e.Row.Cells(7).CssClass = "label label-sm label-Default" 'Gris
|
e.Row.Cells(7).CssClass = "label label-sm label-default" 'Gris
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If e.Row.DBCampo("Tipo") = "OC" Then
|
If e.Row.DBCampo("Tipo") = "OC" Then
|
||||||
|
|||||||
@@ -240,6 +240,7 @@
|
|||||||
<asp:Literal Text='<%# Eval("Proveedor").ToString %>' runat="server"></asp:Literal>
|
<asp:Literal Text='<%# Eval("Proveedor").ToString %>' runat="server"></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField DataField="PrioridadTexto" HeaderText="Prioridad" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2203,8 +2203,8 @@ Partial Class Clientes
|
|||||||
e.Row.FCLiteral("LtlMon").Text = e.Row.DBCampo("MonedaIE")
|
e.Row.FCLiteral("LtlMon").Text = e.Row.DBCampo("MonedaIE")
|
||||||
|
|
||||||
If e.Row.DBCampo("CveComplementoPago") <> "" Then
|
If e.Row.DBCampo("CveComplementoPago") <> "" Then
|
||||||
e.Row.FCHyperLink("HplXML").Visible = True : e.Row.FCHyperLink("HplXML").NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CompP&EXT=xml&CveComplementoPago={0}&SerieFolio={1}&CveIE={2}", e.Row.DBCampo("CveComplementoPago"), e.Row.DBCampo("SerieFolio").ToString(), e.Row.DBCampo("CveIE").ToString())))
|
e.Row.FCHyperLink("HplXML").Visible = True : e.Row.FCHyperLink("HplXML").NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CompP&EXT=xml&CveComplementoPago={0}&SerieFolio={1}&CveIE={2}", e.Row.DBCampo("CveComplementoPago"), e.Row.DBCampo("SerieFolioCP").ToString(), e.Row.DBCampo("CveIE").ToString())))
|
||||||
e.Row.FCHyperLink("HplPDF").Visible = True : e.Row.FCHyperLink("HplPDF").NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CompP&EXT=pdf&CveComplementoPago={0}&SerieFolio={1}&CveIE={2}", e.Row.DBCampo("CveComplementoPago"), e.Row.DBCampo("SerieFolio").ToString(), e.Row.DBCampo("CveIE").ToString())))
|
e.Row.FCHyperLink("HplPDF").Visible = True : e.Row.FCHyperLink("HplPDF").NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=CompP&EXT=pdf&CveComplementoPago={0}&SerieFolio={1}&CveIE={2}", e.Row.DBCampo("CveComplementoPago"), e.Row.DBCampo("SerieFolioCP").ToString(), e.Row.DBCampo("CveIE").ToString())))
|
||||||
|
|
||||||
e.Row.FCLinkButton("LnkSendMail").Visible = True
|
e.Row.FCLinkButton("LnkSendMail").Visible = True
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -2005,16 +2005,35 @@ Partial Class ProductosyServicios
|
|||||||
If DdlPsUnificar.SelectedValue.ToEntero() = CvePS Then
|
If DdlPsUnificar.SelectedValue.ToEntero() = CvePS Then
|
||||||
Alert("No se puede seleccionar el mismo producto y/o servicio", TipoMensaje.MsgAdvertencia)
|
Alert("No se puede seleccionar el mismo producto y/o servicio", TipoMensaje.MsgAdvertencia)
|
||||||
Else
|
Else
|
||||||
|
|
||||||
|
|
||||||
|
Dim ErrorUnificacion As Boolean = False
|
||||||
|
|
||||||
Dim ObjPS As New ClsProductosServicios
|
Dim ObjPS As New ClsProductosServicios
|
||||||
|
|
||||||
|
'ObjPS.IniciaTransacSQL()
|
||||||
|
|
||||||
If ObjPS.UnificarPS(CvePS, DdlPsUnificar.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjPS.UnificarPS(CvePS, DdlPsUnificar.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
Alert("Los productos y/o servicios han sido unificados", TipoMensaje.MsgInformacion)
|
Alert("Los productos y/o servicios han sido unificados", TipoMensaje.MsgInformacion)
|
||||||
Else
|
Else
|
||||||
Alert("Los productos y/o servicios no han podido ser unificados", TipoMensaje.MsgError)
|
Alert("Los productos y/o servicios no han podido ser unificados", TipoMensaje.MsgError)
|
||||||
|
ErrorUnificacion = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'If ErrorUnificacion Then
|
||||||
|
' ObjPS.RollBack()
|
||||||
|
'Else
|
||||||
|
' ObjPS.Commit()
|
||||||
|
'End If
|
||||||
|
|
||||||
ObjPS.Dispose()
|
ObjPS.Dispose()
|
||||||
RecargaGlobal()
|
|
||||||
RegistraScript("$('#DivUnificar').modal('hide');")
|
If Not ErrorUnificacion Then
|
||||||
UpDatos.Update()
|
RecargaGlobal()
|
||||||
|
RegistraScript("$('#DivUnificar').modal('hide');")
|
||||||
|
UpDatos.Update()
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Alert("Es necesario seleccionar un producto y/o servicio", TipoMensaje.MsgAdvertencia)
|
Alert("Es necesario seleccionar un producto y/o servicio", TipoMensaje.MsgAdvertencia)
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ Partial Class Ventas_RepProductosServicios
|
|||||||
DdlGrupo.Items.Insert(18, New ListItem("Tipo Cliente", "23"))
|
DdlGrupo.Items.Insert(18, New ListItem("Tipo Cliente", "23"))
|
||||||
DdlGrupo.Items.Insert(18, New ListItem("Marca", "24"))
|
DdlGrupo.Items.Insert(18, New ListItem("Marca", "24"))
|
||||||
DdlGrupo.Items.Insert(18, New ListItem("Cliente Sucursal", "26"))
|
DdlGrupo.Items.Insert(18, New ListItem("Cliente Sucursal", "26"))
|
||||||
|
DdlGrupo.Items.Insert(18, New ListItem("Giro", "27"))
|
||||||
|
|
||||||
DdlGrupo.DataBind()
|
DdlGrupo.DataBind()
|
||||||
DdlGrupo.SelectedValueExist("8")
|
DdlGrupo.SelectedValueExist("8")
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ Partial Class Ventas_RepProductosServiciosDetalle
|
|||||||
DdlClienteClasificacion.DataSource = GlobalDTClienteClasificaciones(UsuarioActual.CveEmpresa)
|
DdlClienteClasificacion.DataSource = GlobalDTClienteClasificaciones(UsuarioActual.CveEmpresa)
|
||||||
DdlClienteClasificacion.DataBind()
|
DdlClienteClasificacion.DataBind()
|
||||||
DdlClienteClasificacion.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlClienteClasificacion.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
DdlClienteClasificacion.Items.Insert(0, New ListItem("Sin Giro", "-2"))
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa.Contiene(141) Then
|
If UsuarioActual.CveEmpresa.Contiene(141) Then
|
||||||
DivDdlTipo.Visible = True
|
DivDdlTipo.Visible = True
|
||||||
@@ -363,7 +364,7 @@ Partial Class Ventas_RepProductosServiciosDetalle
|
|||||||
TipoDocto = If(Request("TipoDocto") IsNot Nothing AndAlso Request("TipoDocto").ToString() <> "-1", Request("TipoDocto").ToString(), "-1").ToString
|
TipoDocto = If(Request("TipoDocto") IsNot Nothing AndAlso Request("TipoDocto").ToString() <> "-1", Request("TipoDocto").ToString(), "-1").ToString
|
||||||
TipoCambio = If(Request("TipoCambio") IsNot Nothing AndAlso Request("TipoCambio").ToEntero() <> -1, Request("TipoCambio").ToEntero(), 1).ToEntero
|
TipoCambio = If(Request("TipoCambio") IsNot Nothing AndAlso Request("TipoCambio").ToEntero() <> -1, Request("TipoCambio").ToEntero(), 1).ToEntero
|
||||||
TCEspecifico = If(Request("TCEspecifico") IsNot Nothing AndAlso Request("TCEspecifico").ToDouble() <> 0, Request("TCEspecifico").ToDouble(), 0).ToString.ToDouble
|
TCEspecifico = If(Request("TCEspecifico") IsNot Nothing AndAlso Request("TCEspecifico").ToDouble() <> 0, Request("TCEspecifico").ToDouble(), 0).ToString.ToDouble
|
||||||
CveClienteClasificacion = If(Request("CveClienteClasificacion") IsNot Nothing AndAlso Request("CveClienteClasificacion").ToEntero() > 0, Request("CveClienteClasificacion").ToEntero(), -1).ToString
|
CveClienteClasificacion = If(Request("CveClienteClasificacion") IsNot Nothing, Request("CveClienteClasificacion").ToEntero(), -1).ToString
|
||||||
CveProveedorCompra = If(Request("CveProveedorCompra") IsNot Nothing AndAlso Request("CveProveedorCompra").ToEntero() > 0, Request("CveProveedorCompra").ToEntero(), -1).ToString.ToEntero
|
CveProveedorCompra = If(Request("CveProveedorCompra") IsNot Nothing AndAlso Request("CveProveedorCompra").ToEntero() > 0, Request("CveProveedorCompra").ToEntero(), -1).ToString.ToEntero
|
||||||
CveMarca = If(Request("CveMarca") IsNot Nothing AndAlso Request("CveMarca").ToEntero() > 0, Request("CveMarca").ToEntero(), -1).ToString.ToEntero
|
CveMarca = If(Request("CveMarca") IsNot Nothing AndAlso Request("CveMarca").ToEntero() > 0, Request("CveMarca").ToEntero(), -1).ToString.ToEntero
|
||||||
CveClasificacionDetalle = If(Request("CveClasificacionDetalle") IsNot Nothing AndAlso Request("CveClasificacionDetalle").ToEntero() > 0, Request("CveClasificacionDetalle").ToEntero(), -1).ToString.ToEntero
|
CveClasificacionDetalle = If(Request("CveClasificacionDetalle") IsNot Nothing AndAlso Request("CveClasificacionDetalle").ToEntero() > 0, Request("CveClasificacionDetalle").ToEntero(), -1).ToString.ToEntero
|
||||||
|
|||||||
@@ -137,6 +137,7 @@
|
|||||||
|
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Inicio:
|
Fecha Inicio:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -154,6 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Fin:
|
Fecha Fin:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -213,9 +215,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 ">Cliente:</label>
|
<label class="col-md-1 ">Cliente:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClientes" Width="100%" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;">
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClientes" Width="100%" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||||
</ADS:Dropdownlost>
|
<%-- <asp:DropDownList ID="DdlClientes" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
<%-- <asp:DropDownList ID="DdlClientes" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>--%>
|
</asp:DropDownList>--%>
|
||||||
</div>
|
</div>
|
||||||
@@ -279,9 +280,9 @@
|
|||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cli.:</label>
|
<label title="Giro del Cliente" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Giro Cli.:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="table-group-action-input form-control input-inline input-small input-sm select2me" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label title="Condiciones de Pago" data-toggle="tooltip" class="col-md-1 truncate">Condiciones Pago:</label>
|
<label title="Condiciones de Pago" data-toggle="tooltip" class="col-md-1 truncate">Condiciones Pago:</label>
|
||||||
@@ -293,7 +294,7 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label title="Tipo Cliente" data-toggle="tooltip" class="col-md-1 truncate">Tipo Cliente:</label>
|
<label title="Tipo Cliente" data-toggle="tooltip" class="col-md-1 truncate">Tipo Cliente:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlTipoCliente" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<asp:DropDownList ID="DdlTipoCliente" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
@@ -314,12 +315,12 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<asp:Label runat="server" ID="LblServicioDomicilioFiltro" class="col-md-1 truncate" Visible="false">Servicio Domicilio:</asp:Label>
|
<asp:Label runat="server" ID="LblServicioDomicilioFiltro" class="col-md-1 truncate" Visible="false">Servicio Domicilio:</asp:Label>
|
||||||
<div class="col-md-2" runat="server" id="DVServicioDomicilio">
|
<div class="col-md-2" runat="server" id="DVServicioDomicilio" visible="false">
|
||||||
<asp:DropDownList ID="DdlServicioDomicilio" CssClass=" form-control input-sm select2me" runat="server" Width="100%" >
|
<asp:DropDownList ID="DdlServicioDomicilio" CssClass=" form-control input-sm select2me" runat="server" Width="100%">
|
||||||
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
||||||
<asp:ListItem Value="1">Si</asp:ListItem>
|
<asp:ListItem Value="1">Si</asp:ListItem>
|
||||||
<asp:ListItem Value="0">No</asp:ListItem>
|
<asp:ListItem Value="0">No</asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -341,7 +342,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Folio" ItemStyle-Width="100px">
|
<asp:TemplateField HeaderText="Folio" ItemStyle-Width="100px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("SerieFolio") %>' ></asp:Literal>
|
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("SerieFolio") %>'></asp:Literal>
|
||||||
<asp:HiddenField ID="HdnFolio" runat="server" Value='<%# Eval("SerieFolio") %>' />
|
<asp:HiddenField ID="HdnFolio" runat="server" Value='<%# Eval("SerieFolio") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -380,7 +381,7 @@
|
|||||||
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="IEPS">
|
<asp:TemplateField HeaderText="IEPS">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlIEPS" runat="server" Text='<%# Eval("IEPS", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlIEPS" runat="server" Text='<%# Eval("IEPS", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -405,7 +406,7 @@
|
|||||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Mon">
|
<asp:TemplateField HeaderText="Mon">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMon" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
<asp:Literal ID="LtlMon" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -500,9 +501,9 @@
|
|||||||
<asp:Literal ID="LtlFacturaCotizacion" runat="server" Text='<%# Eval("FolioVenta") %>'></asp:Literal>
|
<asp:Literal ID="LtlFacturaCotizacion" runat="server" Text='<%# Eval("FolioVenta") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Saldo" Visible="false" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Saldo" Visible="false" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>' ></asp:Literal>
|
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
@@ -588,7 +589,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkDescuento" runat="server" Text="Descuento" Checked="true"/></td>
|
<asp:CheckBox ID="ChkDescuento" runat="server" Text="Descuento" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text="Motivo Descuento" /></td>
|
<asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text="Motivo Descuento" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -634,11 +635,11 @@
|
|||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text="Motivo Cancelacion" /></td>
|
<asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text="Motivo Cancelacion" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text="Se Timbró" /></td>
|
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text="Se Timbró" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text="Se envió Mail" /></td>
|
<asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text="Se envió Mail" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkCuentaContable" runat="server" Text="Cuenta Contable" /></td>
|
<asp:CheckBox ID="ChkCuentaContable" runat="server" Text="Cuenta Contable" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -656,7 +657,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkEstatusFacturacion" runat="server" Text="Estatus Facturación" /></td>
|
<asp:CheckBox ID="ChkEstatusFacturacion" runat="server" Text="Estatus Facturación" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFolioFacturacion" runat="server" Text="Factura Cotización" /></td>
|
<asp:CheckBox ID="ChkFolioFacturacion" runat="server" Text="Factura Cotización" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -674,10 +675,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkMoneda" runat="server" Text="Moneda" Checked ="true" /></td>
|
<asp:CheckBox ID="ChkMoneda" runat="server" Text="Moneda" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSaldo" runat="server" Text="Saldo" Checked ="false" /></td>
|
<asp:CheckBox ID="ChkSaldo" runat="server" Text="Saldo" Checked="false" /></td>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ Partial Class RepVentaDetalle
|
|||||||
'Dim CveSubProyecto As Integer
|
'Dim CveSubProyecto As Integer
|
||||||
Grupo = If(Request("GPO") IsNot Nothing AndAlso Request("GPO").ToEntero() > 0, Request("GPO").ToEntero(), -1).ToString
|
Grupo = If(Request("GPO") IsNot Nothing AndAlso Request("GPO").ToEntero() > 0, Request("GPO").ToEntero(), -1).ToString
|
||||||
CveCliente = If(Request("CveCliente") IsNot Nothing AndAlso Request("CveCliente").ToEntero() > 0, Request("CveCliente").ToEntero(), -1).ToString
|
CveCliente = If(Request("CveCliente") IsNot Nothing AndAlso Request("CveCliente").ToEntero() > 0, Request("CveCliente").ToEntero(), -1).ToString
|
||||||
CveClienteClasificacion = If(Request("CveClienteClasificacion") IsNot Nothing AndAlso Request("CveClienteClasificacion").ToEntero() > 0, Request("CveClienteClasificacion").ToEntero(), -1).ToString
|
CveClienteClasificacion = If(Request("CveClienteClasificacion") IsNot Nothing, Request("CveClienteClasificacion").ToEntero(), -1).ToString
|
||||||
CveSucursal = If(Request("CveSucursal") IsNot Nothing AndAlso Request("CveSucursal").ToEntero() > 0, Request("CveSucursal").ToEntero(), -1).ToString
|
CveSucursal = If(Request("CveSucursal") IsNot Nothing AndAlso Request("CveSucursal").ToEntero() > 0, Request("CveSucursal").ToEntero(), -1).ToString
|
||||||
CveSubProyectoEjecucion = If(Request("CveSubProyectoEjecucion") IsNot Nothing AndAlso Request("CveSubProyectoEjecucion").ToEntero() > 0, Request("CveSubProyectoEjecucion").ToEntero(), -1).ToString
|
CveSubProyectoEjecucion = If(Request("CveSubProyectoEjecucion") IsNot Nothing AndAlso Request("CveSubProyectoEjecucion").ToEntero() > 0, Request("CveSubProyectoEjecucion").ToEntero(), -1).ToString
|
||||||
|
|
||||||
@@ -407,6 +407,7 @@ Partial Class RepVentaDetalle
|
|||||||
DdlClienteClasificacion.DataSource = GlobalDTClienteClasificaciones(UsuarioActual.CveEmpresa)
|
DdlClienteClasificacion.DataSource = GlobalDTClienteClasificaciones(UsuarioActual.CveEmpresa)
|
||||||
DdlClienteClasificacion.DataBind()
|
DdlClienteClasificacion.DataBind()
|
||||||
DdlClienteClasificacion.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlClienteClasificacion.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
DdlClienteClasificacion.Items.Insert(0, New ListItem("Sin Giro", "-2"))
|
||||||
|
|
||||||
|
|
||||||
DdlTipoRelacion.DataSource = GlobalDTVtaTiposRelacion
|
DdlTipoRelacion.DataSource = GlobalDTVtaTiposRelacion
|
||||||
|
|||||||
@@ -328,7 +328,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<asp:Label runat="server" ID="LblServicioDomicilioFiltro" class="col-md-1 truncate" Visible="false">Servicio Domicilio:</asp:Label>
|
<asp:Label runat="server" ID="LblServicioDomicilioFiltro" class="col-md-1 truncate" Visible="false">Servicio Domicilio:</asp:Label>
|
||||||
<div class="col-md-2" runat="server" id="DVServicioDomicilio">
|
<div class="col-md-2" runat="server" id="DVServicioDomicilio" Visible="false">
|
||||||
<asp:DropDownList ID="DdlServicioDomicilio" CssClass=" form-control input-sm select2me" runat="server" Width="100%" >
|
<asp:DropDownList ID="DdlServicioDomicilio" CssClass=" form-control input-sm select2me" runat="server" Width="100%" >
|
||||||
<asp:ListItem Value ="-1">Todos</asp:ListItem>
|
<asp:ListItem Value ="-1">Todos</asp:ListItem>
|
||||||
<asp:ListItem Value="1">Si</asp:ListItem>
|
<asp:ListItem Value="1">Si</asp:ListItem>
|
||||||
|
|||||||
@@ -157,6 +157,7 @@ Partial Class Ventas_RepVentas
|
|||||||
DdlGrupo.Items.Insert(13, New ListItem("Fecha Ejec.", "14"))
|
DdlGrupo.Items.Insert(13, New ListItem("Fecha Ejec.", "14"))
|
||||||
DdlGrupo.Items.Insert(13, New ListItem("Tipo Cliente", "20"))
|
DdlGrupo.Items.Insert(13, New ListItem("Tipo Cliente", "20"))
|
||||||
DdlGrupo.Items.Insert(13, New ListItem("Vendedor/Cliente", "21"))
|
DdlGrupo.Items.Insert(13, New ListItem("Vendedor/Cliente", "21"))
|
||||||
|
DdlGrupo.Items.Insert(13, New ListItem("Giro", "22"))
|
||||||
DdlGrupo.DataBind()
|
DdlGrupo.DataBind()
|
||||||
DdlGrupo.SelectedValueExist("3")
|
DdlGrupo.SelectedValueExist("3")
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -7616,53 +7616,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row" style="padding-left: 16px;">
|
<div class="row" style="padding-left: 16px;">
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-9">
|
<div class="col-md-8">
|
||||||
<asp:TextBox ID="TxtRFCCliente" Style="text-transform: uppercase;" placeholder="Ingrese el RFC para su validación" runat="server" CssClass="form-control" MaxLength="13" CausesValidation="true"></asp:TextBox>
|
<div class="row">
|
||||||
<asp:RegularExpressionValidator ID="REVRFCCliente" runat="server" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RFC''</b> es incorrecto, por favor ingréselo." ValidationGroup="GrpGuardarCliente" ControlToValidate="TxtRFCCliente" ValidationExpression="^[a-zñA-ZÑ.)(/\\&-]{3,4}(\d{6})((\D|\d){2})((\D|\d){1})$"></asp:RegularExpressionValidator>
|
<div class="form-group form-md-line-input input-iconright col-xs-9">
|
||||||
<label for="<%= TxtRFCCliente.ClientID.ToString()%>">RFC:</label>
|
<asp:TextBox ID="TxtRFCCliente" Style="text-transform: uppercase;" placeholder="Ingrese el RFC para su validación" runat="server" CssClass="form-control" MaxLength="13" CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RegularExpressionValidator ID="REVRFCCliente" runat="server" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''RFC''</b> es incorrecto, por favor ingréselo." ValidationGroup="GrpGuardarCliente" ControlToValidate="TxtRFCCliente" ValidationExpression="^[a-zñA-ZÑ.)(/\\&-]{3,4}(\d{6})((\D|\d){2})((\D|\d){1})$"></asp:RegularExpressionValidator>
|
||||||
|
<label for="<%= TxtRFCCliente.ClientID.ToString()%>">RFC:</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
||||||
|
<asp:Button ID="BtnValidarRFC" runat="server" CssClass="btn btn-success" Text="Validar" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
<div class="col-md-4">
|
||||||
<asp:Button ID="BtnValidarRFC" runat="server" CssClass="btn btn-success" Text="Validar" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
|
|
||||||
<div runat="server" id="DivTipoPersona" visible="false" class="form-group form-md-line-input input-iconright">
|
<div runat="server" id="DivTipoPersona" visible="false" class="form-group form-md-line-input input-iconright">
|
||||||
|
|
||||||
<asp:RadioButtonList runat="server" ID="RdTipoPersona" RepeatDirection="Horizontal" OnSelectedIndexChanged="RdTipoPersona_SelectedIndexChanged" AutoPostBack="true" CssClass="form-control">
|
<asp:RadioButtonList runat="server" ID="RdTipoPersona" RepeatDirection="Horizontal" OnSelectedIndexChanged="RdTipoPersona_SelectedIndexChanged" AutoPostBack="true" CssClass="form-control">
|
||||||
<asp:ListItem Value="0">Física</asp:ListItem>
|
<asp:ListItem Value="0">Física</asp:ListItem>
|
||||||
<asp:ListItem Value="1">Moral</asp:ListItem>
|
<asp:ListItem Value="1">Moral</asp:ListItem>
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
|
|
||||||
<label for="<%= RdTipoPersona.ClientID.ToString()%>">Tipo Persona:</label>
|
<label for="<%= RdTipoPersona.ClientID.ToString()%>">Tipo Persona:</label>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<%--<div id="DivNombreCliente" runat="server" visible="false" class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtNombreCliente" CssClass="form-control " runat="server" MaxLength="150" CausesValidation="true"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVNombreCliente" runat="server" ControlToValidate="TxtNombreCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
||||||
<label for="<%= TxtNombreCliente.ClientID.ToString()%>">Razón Social:</label>
|
|
||||||
</div>--%>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12" runat="server" id="DivRazonSocial2">
|
<div class="col-md-12" runat="server" id="DivRazonSocial2">
|
||||||
<div id="DivNombreCliente" runat="server" visible="false" class="form-group form-md-line-input input-iconright">
|
<div id="DivNombreCliente" runat="server" visible="false" class="form-group form-md-line-input input-iconright">
|
||||||
@@ -7701,12 +7680,30 @@
|
|||||||
<label for="<%= TxtNumIntCliente.ClientID.ToString()%>">Número Interior:</label>
|
<label for="<%= TxtNumIntCliente.ClientID.ToString()%>">Número Interior:</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="DivColoniaTelefonoCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
<div id="DivCiudadLocalidadCliente" 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-4">
|
||||||
<asp:TextBox ID="TxtColoniaCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtColoniaCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVColoniaC" runat="server" ControlToValidate="TxtColoniaCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVColoniaC" runat="server" ControlToValidate="TxtColoniaCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
<label for="<%= TxtColoniaCliente.ClientID.ToString()%>">Colonia:</label>
|
<label for="<%= TxtColoniaCliente.ClientID.ToString()%>">Colonia:</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright col-xs-4">
|
||||||
|
<asp:TextBox ID="TxtCiudadCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVCiudadC" runat="server" ControlToValidate="TxtCiudadCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Ciudad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= TxtCiudadCliente.ClientID.ToString()%>">Ciudad:</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright col-xs-4">
|
||||||
|
<asp:TextBox ID="TxtLocalidadCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVLocalidadC" runat="server" ControlToValidate="TxtLocalidadCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Localidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= TxtLocalidadCliente.ClientID.ToString()%>">Localidad:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="DivCorreoCuentaCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
||||||
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
||||||
|
<asp:TextBox ID="TxtCorreoCliente" CssClass="form-control" runat="server" MaxLength="300" CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" CssClass="help-block errorimput" ValidationExpression="(([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*;\s*|\s*$))*" ControlToValidate="TxtCorreoCliente" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Email''</b> no es válido, por favor ingrése uno correcto." ValidationGroup="GrpGuardarCliente"></asp:RegularExpressionValidator>
|
||||||
|
<label for="<%= TxtCorreoCliente.ClientID.ToString()%>">Email: </label>
|
||||||
|
<i></i>
|
||||||
|
</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="TxtTelefonoCliente" CssClass="form-control " runat="server" MaxLength="10" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtTelefonoCliente" CssClass="form-control " runat="server" MaxLength="10" CausesValidation="true"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVTelefonoCliente" runat="server" ControlToValidate="TxtTelefonoCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Teléfono''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTelefonoCliente" runat="server" ControlToValidate="TxtTelefonoCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Teléfono''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
@@ -7714,18 +7711,6 @@
|
|||||||
<label for="<%= TxtTelefonoCliente.ClientID.ToString()%>">Teléfono:</label>
|
<label for="<%= TxtTelefonoCliente.ClientID.ToString()%>">Teléfono:</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="DivCiudadLocalidadCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
||||||
<asp:TextBox ID="TxtCiudadCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVCiudadC" runat="server" ControlToValidate="TxtCiudadCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Ciudad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
||||||
<label for="<%= TxtCiudadCliente.ClientID.ToString()%>">Ciudad:</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
||||||
<asp:TextBox ID="TxtLocalidadCliente" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVLocalidadC" runat="server" ControlToValidate="TxtLocalidadCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Localidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
|
||||||
<label for="<%= TxtLocalidadCliente.ClientID.ToString()%>">Localidad:</label>
|
|
||||||
</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">
|
||||||
@@ -7747,26 +7732,16 @@
|
|||||||
<label for="<%= DdlEstadoSAT.ClientID.ToString()%>">Estado:</label>
|
<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 class="form-group form-md-line-input input-iconright col-xs-6">
|
|
||||||
<asp:TextBox ID="TxtCorreoCliente" CssClass="form-control" runat="server" MaxLength="300" CausesValidation="true"></asp:TextBox>
|
|
||||||
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" CssClass="help-block errorimput" ValidationExpression="(([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*;\s*|\s*$))*" ControlToValidate="TxtCorreoCliente" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Email''</b> no es válido, por favor ingrése uno correcto." ValidationGroup="GrpGuardarCliente"></asp:RegularExpressionValidator>
|
|
||||||
<label for="<%= TxtCorreoCliente.ClientID.ToString()%>">Email: </label>
|
|
||||||
<i></i>
|
|
||||||
</div>
|
|
||||||
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="DivFormaCliente" runat="server" visible="false" class="row" style="padding-left: 16px;">
|
<div id="DivFormaCliente" 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:DropDownList ID="DdlMetodoCliente" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" CausesValidation="true" DataTextField="MetodoPagoSAT" DataValueField="CveMetodoPago" Width="200px">
|
<asp:DropDownList ID="DdlMetodoCliente" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" CausesValidation="true" DataTextField="MetodoPagoSAT" DataValueField="CveMetodoPago" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="DdlMetodoCliente" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="DdlMetodoCliente" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
<label for="<%= DdlMetodoCliente.ClientID.ToString()%>">Método Pago:</label>
|
<label for="<%= DdlMetodoCliente.ClientID.ToString()%>">Método Pago:</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:DropDownList ID="DdlFormaCliente" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="FormaPagoSAT" DataValueField="CveFormaPago" Width="200px">
|
<asp:DropDownList ID="DdlFormaCliente" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="FormaPagoSAT" DataValueField="CveFormaPago" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="DdlMetodoCliente" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Forma Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="DdlMetodoCliente" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Forma Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
@@ -7774,12 +7749,25 @@
|
|||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row" id="divRegimenCliente" runat="server" visible="false" style="padding-left: 16px;">
|
||||||
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
||||||
|
<asp:DropDownList ID="DdlRegimenFiscalCliente" AutoPostBack="true" OnSelectedIndexChanged="DdlRegimenFiscalCliente_SelectedIndexChanged" DataTextField="CodigoRegimenFiscalTexto" Width="100%" DataValueField="CveRegimenFiscal" runat="server" CssClass="form-control input-sm select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVRegimenFiscal" runat="server" InitialValue="-1" ControlToValidate="DdlRegimenFiscalCliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Regimen Fiscal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= DdlRegimenFiscalCliente.ClientID.ToString()%>">Régimen Fiscal:</label>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright col-xs-6">
|
||||||
|
<asp:DropDownList ID="DdlUsoCFDICliente" Width="100%" DataTextField="UsoCFDIDescripcion" DataValueField="CveUsoCFDI" runat="server" CssClass="form-control input-sm select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" InitialValue="-1" ControlToValidate="DdlUsoCFDICliente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Uso CFDi''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCliente"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= DdlUsoCFDICliente.ClientID.ToString()%>">Uso CFDi:</label>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="DivBotonesAgregarCliente" runat="server" visible="false" class="modal-footer">
|
<div id="DivBotonesAgregarCliente" runat="server" visible="false" class="modal-footer">
|
||||||
<asp:Button ID="BtnAgregarCliente" runat="server" CssClass="btn btn-primary" Text="Agregar" ValidationGroup="GrpGuardarCliente" />
|
<asp:Button ID="BtnAgregarCliente" runat="server" CssClass="btn btn-primary" Text="Agregar" ValidationGroup="GrpGuardarCliente" />
|
||||||
<button id="BtnCancelarCliente" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
<button id="BtnCancelarCliente" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Imports System.IO
|
|||||||
Imports System.Net.Http
|
Imports System.Net.Http
|
||||||
Imports System.Security.Cryptography.X509Certificates
|
Imports System.Security.Cryptography.X509Certificates
|
||||||
Imports System.Xml
|
Imports System.Xml
|
||||||
|
Imports ADSTimbrado
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports Newtonsoft.Json.Linq
|
Imports Newtonsoft.Json.Linq
|
||||||
@@ -2314,6 +2315,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
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 IfNull(Request("Opcionx"), "").ToString = "Saldar" And UsuarioActual.CveUsuario = 100 Then
|
If IfNull(Request("Opcionx"), "").ToString = "Saldar" And UsuarioActual.CveUsuario = 100 Then
|
||||||
@@ -3165,6 +3167,10 @@ Partial Class Ventas
|
|||||||
BrSubProyecto.Visible = DdlProyecto.Visible
|
BrSubProyecto.Visible = DdlProyecto.Visible
|
||||||
divProyectoPyME.Visible = DdlProyecto.Visible
|
divProyectoPyME.Visible = DdlProyecto.Visible
|
||||||
|
|
||||||
|
If UsuarioActual.CveEmpresa.Contiene(172, 173) Then
|
||||||
|
LnkAddVenta.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
'MOSTRAR LA OPCION DE AGREGAR PS EN BDH
|
'MOSTRAR LA OPCION DE AGREGAR PS EN BDH
|
||||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso CveVenta <= 0 Then
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso CveVenta <= 0 Then
|
||||||
ImgOtrosConceptos.Visible = False
|
ImgOtrosConceptos.Visible = False
|
||||||
@@ -7685,33 +7691,36 @@ Partial Class Ventas
|
|||||||
e.Row.FCTextBox("TxtDescuento").Enabled = False
|
e.Row.FCTextBox("TxtDescuento").Enabled = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Si es una devolucion
|
|
||||||
If NuevaFactura = 0 Then
|
|
||||||
e.Row.FCDropDownList("DdlUnidadMedida").Enabled = False
|
|
||||||
e.Row.FCDropDownList("DdlClasificacion").Enabled = False
|
|
||||||
e.Row.FCDropDownLost("DdlPS").Enabled = False
|
|
||||||
e.Row.FCDropDownList("DdlProyecto").Enabled = False
|
|
||||||
e.Row.FCDropDownList("DdlSubProyecto").Enabled = False
|
|
||||||
e.Row.FCTextBox("TxtPrecio").Enabled = False
|
|
||||||
ElseIf NuevaFactura = 1 Or CveContrato > 0 Then
|
|
||||||
e.Row.FCDropDownList("DdlUnidadMedida").Enabled = False
|
|
||||||
e.Row.FCDropDownList("DdlClasificacion").Enabled = False
|
|
||||||
e.Row.FCDropDownLost("DdlPS").Enabled = False
|
|
||||||
e.Row.FCTextBox("TxtCantidad").Enabled = False
|
|
||||||
e.Row.FCTextBox("TxtPrecio").Enabled = False
|
|
||||||
e.Row.FCTextBox("TxtDescuento").Enabled = False
|
|
||||||
|
|
||||||
If TieneAlmacen Then e.Row.FCLinkButton("imgD").Visible = False
|
If Not EsCreaApartirDe Then
|
||||||
|
'Si es una devolucion
|
||||||
|
If NuevaFactura = 0 Then
|
||||||
|
e.Row.FCDropDownList("DdlUnidadMedida").Enabled = False
|
||||||
|
e.Row.FCDropDownList("DdlClasificacion").Enabled = False
|
||||||
|
e.Row.FCDropDownLost("DdlPS").Enabled = False
|
||||||
|
e.Row.FCDropDownList("DdlProyecto").Enabled = False
|
||||||
|
e.Row.FCDropDownList("DdlSubProyecto").Enabled = False
|
||||||
|
e.Row.FCTextBox("TxtPrecio").Enabled = False
|
||||||
|
ElseIf NuevaFactura = 1 Or CveContrato > 0 Then
|
||||||
|
e.Row.FCDropDownList("DdlUnidadMedida").Enabled = False
|
||||||
|
e.Row.FCDropDownList("DdlClasificacion").Enabled = False
|
||||||
|
e.Row.FCDropDownLost("DdlPS").Enabled = False
|
||||||
|
e.Row.FCTextBox("TxtCantidad").Enabled = False
|
||||||
|
e.Row.FCTextBox("TxtPrecio").Enabled = False
|
||||||
|
e.Row.FCTextBox("TxtDescuento").Enabled = False
|
||||||
|
|
||||||
|
If TieneAlmacen Then e.Row.FCLinkButton("imgD").Visible = False
|
||||||
|
|
||||||
|
If UsuarioActual.TienePermisoProceso(222) Then
|
||||||
|
e.Row.FCDropDownList("DdlUnidadMedida").Enabled = True
|
||||||
|
e.Row.FCDropDownList("DdlClasificacion").Enabled = True
|
||||||
|
e.Row.FCDropDownLost("DdlPS").Enabled = True
|
||||||
|
e.Row.FCTextBox("TxtCantidad").Enabled = True
|
||||||
|
e.Row.FCTextBox("TxtPrecio").Enabled = True
|
||||||
|
e.Row.FCTextBox("TxtDescuento").Enabled = True
|
||||||
|
End If
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoProceso(222) Then
|
|
||||||
e.Row.FCDropDownList("DdlUnidadMedida").Enabled = True
|
|
||||||
e.Row.FCDropDownList("DdlClasificacion").Enabled = True
|
|
||||||
e.Row.FCDropDownLost("DdlPS").Enabled = True
|
|
||||||
e.Row.FCTextBox("TxtCantidad").Enabled = True
|
|
||||||
e.Row.FCTextBox("TxtPrecio").Enabled = True
|
|
||||||
e.Row.FCTextBox("TxtDescuento").Enabled = True
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Si es facturacion de OC o Contrato
|
'Si es facturacion de OC o Contrato
|
||||||
@@ -14866,7 +14875,7 @@ Partial Class Ventas
|
|||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If factura.TipoDocto.Contiene("Ing", "Dev") AndAlso DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then
|
If UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso factura.TipoDocto.Contiene("Ing", "Dev") AndAlso DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then
|
||||||
|
|
||||||
Dim Filtro As String = ""
|
Dim Filtro As String = ""
|
||||||
Select Case factura.TipoDocto
|
Select Case factura.TipoDocto
|
||||||
@@ -14994,7 +15003,7 @@ Partial Class Ventas
|
|||||||
TotalCosto = DtCostos.SUMD("Total").RoundSQL
|
TotalCosto = DtCostos.SUMD("Total").RoundSQL
|
||||||
Dim tmpCostos As DataTable = DtCostos.FiltraParametros("", "", {"CveClasificacion"})
|
Dim tmpCostos As DataTable = DtCostos.FiltraParametros("", "", {"CveClasificacion"})
|
||||||
Dim IdCtaContable As Integer = 0
|
Dim IdCtaContable As Integer = 0
|
||||||
Dim CveCuenta As Integer = 0
|
|
||||||
If tmpCostos.Rows.Count > 0 Then
|
If tmpCostos.Rows.Count > 0 Then
|
||||||
Dim TotalCostoAcumulado As Decimal = 0
|
Dim TotalCostoAcumulado As Decimal = 0
|
||||||
Dim cont As Integer = 1
|
Dim cont As Integer = 1
|
||||||
@@ -15007,23 +15016,19 @@ Partial Class Ventas
|
|||||||
If cont = tmpCostos.Rows.Count AndAlso TotalCosto <> TotalCostoAcumulado Then
|
If cont = tmpCostos.Rows.Count AndAlso TotalCosto <> TotalCostoAcumulado Then
|
||||||
ValorInventario = ValorInventario + (TotalCosto - TotalCostoAcumulado)
|
ValorInventario = ValorInventario + (TotalCosto - TotalCostoAcumulado)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Concepto = String.Format("{0} - {1}", Row2("Clasificacion").ToString(), Row2("SubProyecto").ToString())
|
|
||||||
IdCtaContable = GlobalDTClasificaciones(factura.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
IdCtaContable = GlobalDTClasificaciones(factura.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
||||||
'CveCuenta = GlobalDTClasificaciones(factura.CveEmpresa).FiltroPrimeroValor("IdCuentaGastoSIG", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
|
||||||
'If ValorInventario <> 0 Then
|
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(factura.CvePrePoliza, TipoMovto69, ValorInventario, factura.SerieFolio, 69, factura.SerieFolio, factura.Fecha, IdCtaContable, -1, CveVenta:=factura.CveVenta, CveCliente:=factura.CveCliente, CveSubProyecto:=factura.CveSubProyecto, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=ValorInventario, CveCuenta:=CveCuenta) Then
|
If Not ObjConta.AddPrePolizasDetalle(factura.CvePrePoliza, TipoMovto69, ValorInventario, factura.SerieFolio, 69, factura.SerieFolio, factura.Fecha, IdCtaContable, -1, CveVenta:=factura.CveVenta, CveCliente:=factura.CveCliente, CveSubProyecto:=factura.CveSubProyecto, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=ValorInventario) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
'End If
|
|
||||||
cont += 1
|
cont += 1
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacen)).ToEntero()
|
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacen)).ToEntero()
|
||||||
|
|
||||||
'If TotalCosto <> 0 Then
|
'If TotalCosto <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(factura.CvePrePoliza, TipoMovto68, TotalCosto, factura.SerieFolio, 68, factura.SerieFolio, factura.Fecha, IdCtaContable, -1, CveVenta:=factura.CveVenta, CveCliente:=factura.CveCliente, CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=TotalCosto, CveCuenta:=CveCuenta, CveSubProyecto:=factura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(factura.CvePrePoliza, TipoMovto68, TotalCosto, factura.SerieFolio, 68, factura.SerieFolio, factura.Fecha, IdCtaContable, -1, CveVenta:=factura.CveVenta, CveCliente:=factura.CveCliente, CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=TotalCosto, CveSubProyecto:=factura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
ErrorList.Add("Ocurrió un error al guardar movimiento de almacen.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al guardar movimiento de almacen.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
End If
|
End If
|
||||||
@@ -15051,6 +15056,73 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso factura.TipoDocto.Contiene("Rem") AndAlso DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then
|
||||||
|
|
||||||
|
Dim DebeGenerarMovimiento As Boolean = TmpDTDetalle.COUNT("CvePS", "CveTipoPS = 2") > 0
|
||||||
|
|
||||||
|
If DebeGenerarMovimiento Then
|
||||||
|
|
||||||
|
Dim CveAlmacenSalida As Integer = ddlAlmacen.SelectedValue.ToEntero()
|
||||||
|
Dim CveAlmacenExA As Integer = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveTipoAlmacen:=10).FiltroPrimeroValor("CveAlmacen", $"CveSubProyecto={DdlSubProyecto.SelectedValue}").ToEntero()
|
||||||
|
|
||||||
|
Dim CveRemision As Integer = factura.CveVenta
|
||||||
|
Dim CveMoneda As Integer = DdlMoneda.SelectedValue.ToEntero()
|
||||||
|
|
||||||
|
Dim DtProductos As DataTable = TmpDTDetalle.FiltraParametros("CveTipoPS = 2")
|
||||||
|
|
||||||
|
Dim MovDetalle As DataTable = New DataTable()
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("Cantidad", GetType(Integer)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("CveUM", GetType(Integer)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("CvePS", GetType(Integer)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("PU", GetType(Decimal)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("Serie", GetType(String)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("Lote", GetType(String)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("FechaCaducidad", GetType(DateTime)))
|
||||||
|
MovDetalle.Columns.Add(New DataColumn("CveVentaDetalle", GetType(Integer)))
|
||||||
|
|
||||||
|
For Each RowPS As DataRow In DtProductos.Rows
|
||||||
|
Dim RowInv = MovDetalle.NewRow
|
||||||
|
|
||||||
|
RowInv("Cantidad") = RowPS("Cantidad").ToString().ToDecimal()
|
||||||
|
RowInv("CveUM") = RowPS("CveUM").ToString().ToEntero()
|
||||||
|
RowInv("CvePS") = RowPS("CvePS").ToString().ToEntero()
|
||||||
|
RowInv("PU") = 0
|
||||||
|
RowInv("Serie") = ""
|
||||||
|
RowInv("Lote") = ""
|
||||||
|
RowInv("FechaCaducidad") = MinFecha
|
||||||
|
RowInv("CveVentaDetalle") = RowPS("CveVentaDetalle").ToString().ToEntero()
|
||||||
|
|
||||||
|
MovDetalle.Rows.Add(RowInv)
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Le damos salida de apartado por traspaso
|
||||||
|
Dim CveMovimientoSalidaPorTraspaso = GenerarMovimientoAlmacen(ObjInventario, MovDetalle, CveAlmacenSalida, 8, CveMoneda, CveRemision, AplicaMovimientoDetalleEntrada:=False, ObjConta:=ObjConta, CveAlmacenDestino:=CveAlmacenExA)
|
||||||
|
|
||||||
|
If Not CveMovimientoSalidaPorTraspaso > 0 Then
|
||||||
|
OcurrioError = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Le damos entrada al general por traspaso
|
||||||
|
If Not OcurrioError Then
|
||||||
|
Dim GeneroMovimientoAlmacen = GenerarMovimientoAlmacen(ObjInventario, MovDetalle, CveAlmacenExA, 9, CveMoneda, CveRemision, CveMovimientoRelacionado:=CveMovimientoSalidaPorTraspaso, AplicaMovimientoDetalleEntrada:=False, ObjConta:=ObjConta) > 0
|
||||||
|
|
||||||
|
If Not GeneroMovimientoAlmacen Then
|
||||||
|
OcurrioError = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'VERIFICA QUE SE REALIZO EL MOVIMIENTO DE ALMACEN
|
||||||
|
If Not OcurrioError AndAlso DebeGenerarMovimiento Then
|
||||||
|
If Not (ObjInventario.GetInv_Mov(factura.CveVenta, UsuarioActual.CveEmpresa) AndAlso ObjInventario.DtResultados.Rows.Count > 0) Then
|
||||||
|
OcurrioError = True
|
||||||
|
ErrorList.Add("Ocurrió un error al verificar inventario.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -19765,7 +19837,7 @@ Partial Class Ventas
|
|||||||
If TieneMovimientosContrato Then
|
If TieneMovimientosContrato Then
|
||||||
MovDetalle = CuadrarFacturaMovimientos(ObjVentas, CveRemision, DtMovimientosDetalles.FiltraParametros($"CveMovimiento = {dr("CveMovimiento")}"))
|
MovDetalle = CuadrarFacturaMovimientos(ObjVentas, CveRemision, DtMovimientosDetalles.FiltraParametros($"CveMovimiento = {dr("CveMovimiento")}"))
|
||||||
Else
|
Else
|
||||||
MovDetalle = CuadrarFacturaMovimientos(ObjVentas, CveRemision, DtMovimientosDetalles.FiltraParametros($"CveMovimiento = {dr("CveMovimiento")} AND (TieneSalidaxFactura IS NULL OR SaldoAlmacen > 0)"))
|
MovDetalle = CuadrarFacturaMovimientos(ObjVentas, CveRemision, DtMovimientosDetalles.FiltraParametros($"CveMovimiento = {dr("CveMovimiento")} AND (SaldoAlmacen > 0 AND CantidadDisponible > 0)"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -19980,7 +20052,8 @@ Partial Class Ventas
|
|||||||
Return Not OcurrioError
|
Return Not OcurrioError
|
||||||
End Function
|
End Function
|
||||||
Private Function GenerarMovimientoAlmacen(ByRef ObjInventario As ClsInventarios, DtMovDetalle As DataTable, CveAlmacen As Integer, ConceptoEntrada As Integer, CveMoneda As Integer, CveVenta As Integer, Optional MovimientoPrePoliza As Boolean = True,
|
Private Function GenerarMovimientoAlmacen(ByRef ObjInventario As ClsInventarios, DtMovDetalle As DataTable, CveAlmacen As Integer, ConceptoEntrada As Integer, CveMoneda As Integer, CveVenta As Integer, Optional MovimientoPrePoliza As Boolean = True,
|
||||||
Optional ByRef ObjConta As ClsContabilidad = Nothing, Optional CveMovimientoRelacionado As Integer = -1, Optional AplicaMovimientoDetalleEntrada As Boolean = False, Optional ObjContPaq As ClsContPAQi = Nothing) As Integer
|
Optional ByRef ObjConta As ClsContabilidad = Nothing, Optional CveMovimientoRelacionado As Integer = -1, Optional AplicaMovimientoDetalleEntrada As Boolean = False, Optional ObjContPaq As ClsContPAQi = Nothing,
|
||||||
|
Optional CveAlmacenDestino As Integer = -1) As Integer
|
||||||
Dim OcurrioError As Boolean = False
|
Dim OcurrioError As Boolean = False
|
||||||
Dim ContadorMovtosDetalles = 0
|
Dim ContadorMovtosDetalles = 0
|
||||||
|
|
||||||
@@ -19993,7 +20066,7 @@ Partial Class Ventas
|
|||||||
'Creamos el movimiento
|
'Creamos el movimiento
|
||||||
|
|
||||||
Dim CveMovimientoInventario As Integer = ObjInventario.AddMovimiento(CveAlmacen, ConceptoEntrada, CveMoneda, Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVenta, -1, -1,
|
Dim CveMovimientoInventario As Integer = ObjInventario.AddMovimiento(CveAlmacen, ConceptoEntrada, CveMoneda, Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVenta, -1, -1,
|
||||||
CveMovimientoRelacionado:=CveMovimientoRelacionado, Modulo:="Vta/E4")
|
CveMovimientoRelacionado:=CveMovimientoRelacionado, CveAlmacenDestino:=CveAlmacenDestino, Modulo:="Vta/E4")
|
||||||
|
|
||||||
If CveMovimientoInventario > 0 Then
|
If CveMovimientoInventario > 0 Then
|
||||||
|
|
||||||
@@ -20150,7 +20223,6 @@ Partial Class Ventas
|
|||||||
Dim DtCostos As DataTable = Nothing
|
Dim DtCostos As DataTable = Nothing
|
||||||
Dim DtCostosDistinct As DataTable = Nothing
|
Dim DtCostosDistinct As DataTable = Nothing
|
||||||
Dim IdCtaContable As Integer = 0
|
Dim IdCtaContable As Integer = 0
|
||||||
Dim CveCuenta As Integer = 0
|
|
||||||
Dim ValorInventario As Decimal = 0D
|
Dim ValorInventario As Decimal = 0D
|
||||||
Dim TotalCostoAcumulado As Decimal = 0D
|
Dim TotalCostoAcumulado As Decimal = 0D
|
||||||
Dim Cont As Integer = 1
|
Dim Cont As Integer = 1
|
||||||
@@ -20182,7 +20254,6 @@ Partial Class Ventas
|
|||||||
For Each RowInv As DataRow In DtCostosDistinct.Rows
|
For Each RowInv As DataRow In DtCostosDistinct.Rows
|
||||||
ValorInventario = DtCostos.SUMD("Total", String.Format("CveClasificacion = {0}", RowInv("CveClasificacion"))).RoundSQL
|
ValorInventario = DtCostos.SUMD("Total", String.Format("CveClasificacion = {0}", RowInv("CveClasificacion"))).RoundSQL
|
||||||
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
||||||
CveCuenta = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaGastoSIG", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
|
||||||
TotalCostoAcumulado += ValorInventario
|
TotalCostoAcumulado += ValorInventario
|
||||||
|
|
||||||
'cuando es el último movimiento y hay diferencias en los importes
|
'cuando es el último movimiento y hay diferencias en los importes
|
||||||
@@ -20192,7 +20263,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Try
|
Try
|
||||||
'If ValorInventario <> 0 Then
|
'If ValorInventario <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ValorInventario, ObjFactura.SerieFolio, 69, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=ValorInventario, CveCuenta:=CveCuenta, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ValorInventario, ObjFactura.SerieFolio, 69, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=ValorInventario, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -20206,7 +20277,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacen)).ToEntero()
|
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacen)).ToEntero()
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, TotalCosto, ObjFactura.SerieFolio, 68, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=TotalCosto, CveCuenta:=CveCuenta, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, TotalCosto, ObjFactura.SerieFolio, 68, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveMovimientoAlmacen:=CveMovimientoInventario, ImporteMX:=TotalCosto, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -20412,7 +20483,6 @@ Partial Class Ventas
|
|||||||
Dim DtCostos = ObjInventario.DtResultados.Copy
|
Dim DtCostos = ObjInventario.DtResultados.Copy
|
||||||
Dim DtCostosDistinct As DataTable = ObjInventario.DtResultados.FiltraParametros("", "", {"CveClasificacion"})
|
Dim DtCostosDistinct As DataTable = ObjInventario.DtResultados.FiltraParametros("", "", {"CveClasificacion"})
|
||||||
Dim IdCtaContable As Integer = 0
|
Dim IdCtaContable As Integer = 0
|
||||||
Dim CveCuenta As Integer = 0
|
|
||||||
Dim ValorInventario As Decimal
|
Dim ValorInventario As Decimal
|
||||||
Dim TotalCostoAcumulado As Decimal = 0D
|
Dim TotalCostoAcumulado As Decimal = 0D
|
||||||
Dim Cont As Integer = 1
|
Dim Cont As Integer = 1
|
||||||
@@ -20421,7 +20491,6 @@ Partial Class Ventas
|
|||||||
For Each RowInv As DataRow In DtCostosDistinct.Rows
|
For Each RowInv As DataRow In DtCostosDistinct.Rows
|
||||||
ValorInventario = DtCostos.SUMD("Total", String.Format("CveClasificacion = {0}", RowInv("CveClasificacion"))).RoundSQL
|
ValorInventario = DtCostos.SUMD("Total", String.Format("CveClasificacion = {0}", RowInv("CveClasificacion"))).RoundSQL
|
||||||
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
||||||
CveCuenta = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaGastoSIG", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
|
|
||||||
TotalCostoAcumulado += ValorInventario
|
TotalCostoAcumulado += ValorInventario
|
||||||
|
|
||||||
'cuando es el último movimiento y hay diferencias en los importes
|
'cuando es el último movimiento y hay diferencias en los importes
|
||||||
@@ -20431,7 +20500,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Try
|
Try
|
||||||
'If ValorInventario <> 0 Then
|
'If ValorInventario <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, ValorInventario, ObjFactura.SerieFolio, 69, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoVirtual, ImporteMX:=ValorInventario, CveCuenta:=CveCuenta, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, ValorInventario, ObjFactura.SerieFolio, 69, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero(), CveMovimientoAlmacen:=CveMovimientoVirtual, ImporteMX:=ValorInventario, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -20445,7 +20514,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacenVirtual)).ToEntero()
|
IdCtaContable = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", String.Format("CveAlmacen = {0}", CveAlmacenVirtual)).ToEntero()
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, TotalCosto, ObjFactura.SerieFolio, 68, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveMovimientoAlmacen:=CveMovimientoVirtual, ImporteMX:=TotalCosto, CveCuenta:=CveCuenta, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, TotalCosto, ObjFactura.SerieFolio, 68, ObjFactura.SerieFolio, ObjFactura.Fecha, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=ObjFactura.CveCliente, CveMovimientoAlmacen:=CveMovimientoVirtual, ImporteMX:=TotalCosto, CveSubProyecto:=ObjFactura.CveSubProyecto) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -21398,9 +21467,14 @@ Partial Class Ventas
|
|||||||
'REGENERAR EL PDF
|
'REGENERAR EL PDF
|
||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
Try
|
Try
|
||||||
|
Dim CveEmpresaPDF As Integer = UsuarioActual.CveEmpresa
|
||||||
|
Dim CveUsuarioPDF As Integer = UsuarioActual.CveUsuario
|
||||||
|
|
||||||
Dim strURLHOST = String.Format("{0}://{1}:{2}", HttpContext.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host, HttpContext.Current.Request.Url.Port)
|
Dim strURLHOST = String.Format("{0}://{1}:{2}", HttpContext.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host, HttpContext.Current.Request.Url.Port)
|
||||||
Dim Hilo As New System.Threading.Thread(Sub() RegenerarPDF(CveVenta, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario, strURLHOST))
|
RegenerarPDF(CveVenta, CveEmpresaPDF, CveUsuarioPDF, strURLHOST)
|
||||||
Hilo.Start()
|
'
|
||||||
|
'Dim Hilo As New System.Threading.Thread(Sub() )
|
||||||
|
'Hilo.Start()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al regenerar el PDF", ex)
|
OnError("Ocurrió un error al regenerar el PDF", ex)
|
||||||
End Try
|
End Try
|
||||||
@@ -22415,12 +22489,13 @@ Partial Class Ventas
|
|||||||
DivDireccionCliente.Visible = False
|
DivDireccionCliente.Visible = False
|
||||||
|
|
||||||
DivNumeroCPCliente.Visible = False
|
DivNumeroCPCliente.Visible = False
|
||||||
DivColoniaTelefonoCliente.Visible = False
|
'DivColoniaTelefonoCliente.Visible = False
|
||||||
DivCiudadLocalidadCliente.Visible = False
|
DivCiudadLocalidadCliente.Visible = False
|
||||||
DivEstadoPaisCliente.Visible = False
|
DivEstadoPaisCliente.Visible = False
|
||||||
DivCorreoCuentaCliente.Visible = False
|
DivCorreoCuentaCliente.Visible = False
|
||||||
DivBotonesAgregarCliente.Visible = False
|
DivBotonesAgregarCliente.Visible = False
|
||||||
DivFormaCliente.Visible = False
|
DivFormaCliente.Visible = False
|
||||||
|
divRegimenCliente.Visible = False
|
||||||
UpAgregarCliente.Update()
|
UpAgregarCliente.Update()
|
||||||
CargaEstados()
|
CargaEstados()
|
||||||
|
|
||||||
@@ -22434,7 +22509,7 @@ Partial Class Ventas
|
|||||||
DivTipoPersona.Visible = True
|
DivTipoPersona.Visible = True
|
||||||
DivDireccionCliente.Visible = True
|
DivDireccionCliente.Visible = True
|
||||||
DivNumeroCPCliente.Visible = True
|
DivNumeroCPCliente.Visible = True
|
||||||
DivColoniaTelefonoCliente.Visible = True
|
'DivColoniaTelefonoCliente.Visible = True
|
||||||
DivCiudadLocalidadCliente.Visible = True
|
DivCiudadLocalidadCliente.Visible = True
|
||||||
DivEstadoPaisCliente.Visible = True
|
DivEstadoPaisCliente.Visible = True
|
||||||
DivCorreoCuentaCliente.Visible = True
|
DivCorreoCuentaCliente.Visible = True
|
||||||
@@ -22447,9 +22522,16 @@ Partial Class Ventas
|
|||||||
RFVCiudadC.Visible = False
|
RFVCiudadC.Visible = False
|
||||||
RFVLocalidadC.Visible = False
|
RFVLocalidadC.Visible = False
|
||||||
RFVSATPais.Visible = False
|
RFVSATPais.Visible = False
|
||||||
|
divRegimenCliente.Visible = UsuarioActual.Empresa.Funcionalidad(350) = "1"
|
||||||
|
|
||||||
|
RdTipoPersona.SelectedValue = "0"
|
||||||
|
|
||||||
DdlMetodoCliente.SelectedValueExist(1)
|
DdlMetodoCliente.SelectedValueExist(1)
|
||||||
DdlFormaCliente.SelectedValueExist(1)
|
DdlFormaCliente.SelectedValueExist(1)
|
||||||
|
|
||||||
|
DdlRegimenFiscalCliente.DataSource = GlobalDTRegimenesFiscales().FiltraParametros("CveRegimenFiscal = 11")
|
||||||
|
DdlRegimenFiscalCliente.DataBind()
|
||||||
|
CargaComboCFDICliente()
|
||||||
Else
|
Else
|
||||||
Dim ObjCliente As New ClsClientes
|
Dim ObjCliente As New ClsClientes
|
||||||
If ObjCliente.ValidaClienteRFC(TxtRFCCliente.Text, UsuarioActual.CveEmpresa) Then
|
If ObjCliente.ValidaClienteRFC(TxtRFCCliente.Text, UsuarioActual.CveEmpresa) Then
|
||||||
@@ -22464,12 +22546,13 @@ Partial Class Ventas
|
|||||||
DivTipoPersona.Visible = True
|
DivTipoPersona.Visible = True
|
||||||
DivDireccionCliente.Visible = True
|
DivDireccionCliente.Visible = True
|
||||||
DivNumeroCPCliente.Visible = True
|
DivNumeroCPCliente.Visible = True
|
||||||
DivColoniaTelefonoCliente.Visible = True
|
'DivColoniaTelefonoCliente.Visible = True
|
||||||
DivCiudadLocalidadCliente.Visible = True
|
DivCiudadLocalidadCliente.Visible = True
|
||||||
DivEstadoPaisCliente.Visible = True
|
DivEstadoPaisCliente.Visible = True
|
||||||
DivCorreoCuentaCliente.Visible = True
|
DivCorreoCuentaCliente.Visible = True
|
||||||
DivBotonesAgregarCliente.Visible = True
|
DivBotonesAgregarCliente.Visible = True
|
||||||
DivFormaCliente.Visible = True
|
DivFormaCliente.Visible = True
|
||||||
|
divRegimenCliente.Visible = UsuarioActual.Empresa.Funcionalidad(350) = "1"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjCliente.Dispose()
|
ObjCliente.Dispose()
|
||||||
@@ -22484,12 +22567,54 @@ Partial Class Ventas
|
|||||||
DdlMetodoCliente.SelectedValueExist(-1)
|
DdlMetodoCliente.SelectedValueExist(-1)
|
||||||
DdlFormaCliente.SelectedValueExist(-1)
|
DdlFormaCliente.SelectedValueExist(-1)
|
||||||
|
|
||||||
|
DdlRegimenFiscalCliente.DataSource = GlobalDTRegimenesFiscales()
|
||||||
|
DdlRegimenFiscalCliente.DataBind()
|
||||||
|
CargaComboCFDICliente()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaComboCFDICliente()
|
||||||
|
If TxtRFCCliente.Text.ToUpper = "XAXX010101000" Then
|
||||||
|
DdlUsoCFDICliente.DataSource = GlobalDTSATUsosCFDI().FiltraParametros("CveUsoCFDI = 23")
|
||||||
|
DdlUsoCFDICliente.DataBind()
|
||||||
|
Else
|
||||||
|
Dim RegimenFiscalCliente = DdlRegimenFiscalCliente.SelectedValue.ToString()
|
||||||
|
If Not UsuarioActual.Empresa.Funcionalidad(350).Contiene("1", "2") Then
|
||||||
|
RegimenFiscalCliente = "-1"
|
||||||
|
End If
|
||||||
|
|
||||||
|
DdlUsoCFDICliente.Items.Clear()
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(350) = "1" Then
|
||||||
|
Dim EsPersonaMoral As Boolean = (RdTipoPersona.SelectedValue = "1")
|
||||||
|
DdlUsoCFDICliente.DataSource = GlobalDTSATUsosCFDI(If(Not EsPersonaMoral, 1, 0), RegimenFiscalReceptor:=RegimenFiscalCliente)
|
||||||
|
Else
|
||||||
|
DdlUsoCFDICliente.DataSource = GlobalDTSATUsosCFDI(UsuarioActual.Empresa.EsPersonaFisica, RegimenFiscalReceptor:=RegimenFiscalCliente)
|
||||||
|
End If
|
||||||
|
|
||||||
|
DdlUsoCFDICliente.DataBind()
|
||||||
|
DdlUsoCFDICliente.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
UpAgregarCliente.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlRegimenFiscalCliente_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
CargaComboCFDICliente()
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub BtnAgregarCliente_Click(sender As Object, e As EventArgs) Handles BtnAgregarCliente.Click
|
Private Sub BtnAgregarCliente_Click(sender As Object, e As EventArgs) Handles BtnAgregarCliente.Click
|
||||||
Dim CvePrecioLista As Integer = -1
|
Dim CvePrecioLista As Integer = -1
|
||||||
|
Dim CveRegimenFiscal As Integer = -1
|
||||||
|
Dim CveUsoCFDI As Integer = 3
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(350) = "1" Then
|
||||||
|
CveRegimenFiscal = DdlRegimenFiscalCliente.SelectedValue.ToEntero()
|
||||||
|
CveUsoCFDI = DdlUsoCFDICliente.SelectedValue.ToEntero()
|
||||||
|
End If
|
||||||
|
|
||||||
If DdlSubProyectoDatos.SelectedValue.ToEntero() > 0 Then
|
If DdlSubProyectoDatos.SelectedValue.ToEntero() > 0 Then
|
||||||
Dim Dr As DataRow = GlobalDTSubProyectos(-1, DdlSubProyectoDatos.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa).Rows(0)
|
Dim Dr As DataRow = GlobalDTSubProyectos(-1, DdlSubProyectoDatos.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa).Rows(0)
|
||||||
If Dr IsNot Nothing Then
|
If Dr IsNot Nothing Then
|
||||||
@@ -22507,7 +22632,7 @@ Partial Class Ventas
|
|||||||
TxtColoniaCliente.Text.Trim, TxtLocalidadCliente.Text.Trim, TxtCiudadCliente.Text.Trim, DdlEstadoSAT.SelectedValue.ToEntero,
|
TxtColoniaCliente.Text.Trim, TxtLocalidadCliente.Text.Trim, TxtCiudadCliente.Text.Trim, DdlEstadoSAT.SelectedValue.ToEntero,
|
||||||
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,
|
DdlSubProyectoDatos.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "", -1, -1, CvePrecioLista:=CvePrecioLista,
|
||||||
RegimenSociedad:=TxtRegimenSociedad.Text, TipoPersona:=TipoPersona) Then
|
RegimenSociedad:=TxtRegimenSociedad.Text, TipoPersona:=TipoPersona, CveRegimenFiscal:=CveRegimenFiscal, CveUsoCFDI:=CveUsoCFDI) Then
|
||||||
|
|
||||||
If ObjCliente.DtResultados.Rows.Count > 0 Then
|
If ObjCliente.DtResultados.Rows.Count > 0 Then
|
||||||
RegistraScript("hideDivEC();")
|
RegistraScript("hideDivEC();")
|
||||||
@@ -22679,6 +22804,10 @@ Partial Class Ventas
|
|||||||
LBAplicaDevolucion.Visible = False
|
LBAplicaDevolucion.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If DdlTipoComprobante.SelectedValue = "Dev" AndAlso VentaSaldoAlmacen <> 0 Then
|
||||||
|
LiDevolucionAlmacen.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpnTools.Update()
|
UpnTools.Update()
|
||||||
@@ -30827,25 +30956,6 @@ Partial Class Ventas
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'VERIFICA QUE LAS FACTURAS TENGAN EL MISMO ESTATUS EN ALMACEN (NO MEZCLAR REMISIONES 'SURTIDAS' CON 'NO SURTIDAS')
|
|
||||||
'If dtSeleccionadas.COUNT("Surtido", "Surtido = 'Si'") > 0 AndAlso dtSeleccionadas.COUNT("Surtido", "Surtido = 'No'") > 0 Then
|
|
||||||
' Dim SbRem As New StringBuilder
|
|
||||||
' SbRem.Append("Solo debe seleccionar remisiones con el mismo estatus de almacen. Por favor verifique y vuelva a intentar.</br>")
|
|
||||||
|
|
||||||
' SbRem.Append("<b>Remisiones Surtidas:</b></br>")
|
|
||||||
' For Each RowSurtida As DataRow In dtSeleccionadas.FiltraParametros("Surtido = 'Si'", DistinctColumns:={"Folio"}).Rows
|
|
||||||
' SbRem.AppendFormat("{0}</br>", RowSurtida("Folio"))
|
|
||||||
' Next
|
|
||||||
|
|
||||||
' SbRem.Append("<b>Remisiones No Surtidas:</b></br>")
|
|
||||||
' For Each RowSurtida As DataRow In dtSeleccionadas.FiltraParametros("Surtido = 'No'", DistinctColumns:={"Folio"}).Rows
|
|
||||||
' SbRem.AppendFormat("{0}</br>", RowSurtida("Folio"))
|
|
||||||
' Next
|
|
||||||
|
|
||||||
' Alert(SbRem.ToString(), TipoMensaje.MsgAdvertencia)
|
|
||||||
' Exit Sub
|
|
||||||
'End If
|
|
||||||
|
|
||||||
DdlMoneda.SelectedValue = GlobalDTMonedas.FiltroPrimeroValor("CveMoneda", $"Abreviatura = '{dtSeleccionadas.FiltroPrimeroValor("Abreviatura")}'")
|
DdlMoneda.SelectedValue = GlobalDTMonedas.FiltroPrimeroValor("CveMoneda", $"Abreviatura = '{dtSeleccionadas.FiltroPrimeroValor("Abreviatura")}'")
|
||||||
DdlMoneda.Enabled = False
|
DdlMoneda.Enabled = False
|
||||||
CambiaMoneda()
|
CambiaMoneda()
|
||||||
@@ -31066,6 +31176,11 @@ Partial Class Ventas
|
|||||||
BtnEmitirImprimir.Visible = False
|
BtnEmitirImprimir.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'SI HAY REMISIONES SURTIDAS, NO GENERAR EL MOVIMIENTO AUTOMATICO
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso dtSeleccionadas.COUNT("Surtido", "Surtido = 'Si'") > 0 Then
|
||||||
|
DivAlmacen.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
TxtFechaPago.Text = If(EsDiasCreditoFijo, Now.AddDays(DiasCredito).ToShortDateString, TxtFechaPago.Text)
|
TxtFechaPago.Text = If(EsDiasCreditoFijo, Now.AddDays(DiasCredito).ToShortDateString, TxtFechaPago.Text)
|
||||||
@@ -31076,8 +31191,9 @@ Partial Class Ventas
|
|||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
UPEstimaciones.Update()
|
UPEstimaciones.Update()
|
||||||
UPCondicionesPago.Update()
|
UPCondicionesPago.Update()
|
||||||
HuboCambioRemi = Not HuboCambioRemi
|
UpINV.Update()
|
||||||
|
|
||||||
|
HuboCambioRemi = Not HuboCambioRemi
|
||||||
|
|
||||||
RegistraScript("$('#DivRemisiones').modal('hide');", "DivRemisionesHide")
|
RegistraScript("$('#DivRemisiones').modal('hide');", "DivRemisionesHide")
|
||||||
End Sub
|
End Sub
|
||||||
@@ -33070,8 +33186,8 @@ Partial Class Ventas
|
|||||||
obj.used_sale_date = FechaUsado
|
obj.used_sale_date = FechaUsado
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
ObjFactura.SetSubProyecto()
|
||||||
EnviarPolizaVentaWS(obj, CvePolizaVirtual)
|
EnviarPolizaVentaWS(obj, CvePolizaVirtual, ObjFactura.SubProyecto.Acum_PortalUsuario, ObjFactura.SubProyecto.Acum_PortalContrasena)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -33082,16 +33198,16 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Function EnviarPolizaVentaWS(obj As Modelos.MPolizaVentaWS, CvePolizaVirtual As Integer) As Boolean
|
Protected Function EnviarPolizaVentaWS(obj As Modelos.MPolizaVentaWS, CvePolizaVirtual As Integer, Usuario As String, Contraseña As String) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
Dim Respuesta As String = "[]"
|
Dim Respuesta As String = "[]"
|
||||||
|
|
||||||
Dim User As String = ""
|
Dim User As String
|
||||||
Dim Password As String = ""
|
Dim Password As String
|
||||||
|
|
||||||
If UsuarioActual.Empresa.FacturaProduccion Then
|
If UsuarioActual.Empresa.FacturaProduccion Then
|
||||||
User = "cslth.2809@jcilink.com"
|
User = Usuario '"cslth.2809@jcilink.com"
|
||||||
Password = "ff31580a95f36b51ad27f970428b77a5a9245076"
|
Password = Contraseña ' "ff31580a95f36b51ad27f970428b77a5a9245076"
|
||||||
Else
|
Else
|
||||||
User = "cslth.7777@lth.com"
|
User = "cslth.7777@lth.com"
|
||||||
Password = "ff31580a95f36b51ad27f970428b77a5a9245076"
|
Password = "ff31580a95f36b51ad27f970428b77a5a9245076"
|
||||||
@@ -33146,19 +33262,14 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If resp(0)("Codigo").ToString().Contiene("500", "501", "502", "503", "504", "505", "506", "507", "508", "510") Then
|
If resp(0)("Codigo").ToString().Contiene("500", "501", "502", "503", "504", "505", "506", "507", "508", "510") Then
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Dim ObjAcum As New ClsAcumuladores
|
|
||||||
If ObjAcum.UpdateEnvioPolizaVirtual(CvePolizaVirtual, True, Now, obj.product_unique_code, resp(0)("Descripcion").ToString()) Then
|
|
||||||
Alert(Msg.ToString(), TipoMensaje.MsgInformacion)
|
|
||||||
End If
|
|
||||||
ObjAcum.Dispose()
|
|
||||||
Else
|
|
||||||
Dim ObjAcum As New ClsAcumuladores
|
|
||||||
If ObjAcum.UpdateEnvioPolizaVirtual(CvePolizaVirtual, False, Now, obj.product_unique_code, resp(0)("Descripcion").ToString()) Then
|
|
||||||
Alert(Msg.ToString(), TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
|
||||||
ObjAcum.Dispose()
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim ObjAcum As New ClsAcumuladores
|
||||||
|
If ObjAcum.UpdateEnvioPolizaVirtual(CvePolizaVirtual, Retorno, Now, obj.product_unique_code, resp(0)("Descripcion").ToString()) Then
|
||||||
|
Alert(Msg.ToString(), TipoMensaje.MsgInformacion)
|
||||||
|
End If
|
||||||
|
ObjAcum.Dispose()
|
||||||
|
|
||||||
Dim ObjEventos As New ClsOIEventos()
|
Dim ObjEventos As New ClsOIEventos()
|
||||||
If Not ObjEventos.AddEventoBitacora(Msg.ToString(), "-1", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=Me.CveVenta) Then
|
If Not ObjEventos.AddEventoBitacora(Msg.ToString(), "-1", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=Me.CveVenta) Then
|
||||||
ErrorList.Add("Ocurrió un error al agregar la bitacora de Póliza Virtual.")
|
ErrorList.Add("Ocurrió un error al agregar la bitacora de Póliza Virtual.")
|
||||||
@@ -33426,9 +33537,13 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'REGENERAR EL PDF
|
'REGENERAR EL PDF
|
||||||
Try
|
Try
|
||||||
|
Dim CveEmpresaPDF As Integer = UsuarioActual.CveEmpresa
|
||||||
|
Dim CveUsuarioPDF As Integer = UsuarioActual.CveUsuario
|
||||||
|
|
||||||
Dim strURLHOST = String.Format("{0}://{1}:{2}", HttpContext.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host, HttpContext.Current.Request.Url.Port)
|
Dim strURLHOST = String.Format("{0}://{1}:{2}", HttpContext.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host, HttpContext.Current.Request.Url.Port)
|
||||||
Dim Hilo As New System.Threading.Thread(Sub() RegenerarPDF(CveVenta, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario, strURLHOST))
|
RegenerarPDF(CveVenta, CveEmpresaPDF, CveUsuarioPDF, strURLHOST)
|
||||||
Hilo.Start()
|
'Dim Hilo As New System.Threading.Thread(Sub() )
|
||||||
|
'Hilo.Start()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al regenerar el PDF", ex)
|
OnError("Ocurrió un error al regenerar el PDF", ex)
|
||||||
End Try
|
End Try
|
||||||
@@ -34392,6 +34507,28 @@ Partial Class Ventas
|
|||||||
DivRazonSocial2.Attributes.Add("class", "col-md-8")
|
DivRazonSocial2.Attributes.Add("class", "col-md-8")
|
||||||
DVRegimenSociedad.Visible = True
|
DVRegimenSociedad.Visible = True
|
||||||
|
|
||||||
|
If TxtRFCCliente.Text.ToUpper = "XAXX010101000" Then
|
||||||
|
DdlRegimenFiscalCliente.DataSource = GlobalDTRegimenesFiscales().FiltraParametros("CveRegimenFiscal = 11")
|
||||||
|
DdlRegimenFiscalCliente.DataBind()
|
||||||
|
Else
|
||||||
|
Dim dt As DataTable = GlobalDTRegimenesFiscales(RdTipoPersona.SelectedValue.ToEntero).FiltraParametros("", "CodigoRegimenFiscal")
|
||||||
|
Dim Val As String
|
||||||
|
|
||||||
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
'verifico que sino existe el valor. lo limpie
|
||||||
|
Val = dt.FiltroPrimeroValor("CveRegimenFiscal", "CveRegimenFiscal = " & DdlRegimenFiscalCliente.SelectedValue)
|
||||||
|
If Val = "" Then 'sino encuentra valor, lo limpia
|
||||||
|
DdlRegimenFiscalCliente.Items.Clear()
|
||||||
|
DdlRegimenFiscalCliente.SelectedValue = Nothing
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
DdlRegimenFiscalCliente.DataSource = dt
|
||||||
|
DdlRegimenFiscalCliente.DataBind()
|
||||||
|
DdlRegimenFiscalCliente.SelectedValueExist(Val)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpAgregarCliente.Update()
|
UpAgregarCliente.Update()
|
||||||
|
|||||||
Reference in New Issue
Block a user