Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -191,7 +191,7 @@ Public Class ClsCompras
|
|||||||
AplicaNotaCredito As Boolean, Observaciones As String, CveEstatusCompra As Integer, CvePrePoliza As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional IdPoliza As Integer = -1,
|
AplicaNotaCredito As Boolean, Observaciones As String, CveEstatusCompra As Integer, CvePrePoliza As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional IdPoliza As Integer = -1,
|
||||||
Optional CveOC As Integer = -1, Optional CveCajaChica As Integer = -1, Optional CvePersonal As Integer = -1, Optional NumeroReembolso As String = "-1", Optional CveProveedorSucursal As Integer = -1,
|
Optional CveOC As Integer = -1, Optional CveCajaChica As Integer = -1, Optional CvePersonal As Integer = -1, Optional NumeroReembolso As String = "-1", Optional CveProveedorSucursal As Integer = -1,
|
||||||
Optional AplicoPromocion As Boolean = False, Optional PorcentajeIVA As Double = 0, Optional CveMetodoPago As Integer = -1, Optional CveRetIVAConcepto As Integer = -1, Optional CveConceptoContableAlmacen As Integer = -1,
|
Optional AplicoPromocion As Boolean = False, Optional PorcentajeIVA As Double = 0, Optional CveMetodoPago As Integer = -1, Optional CveRetIVAConcepto As Integer = -1, Optional CveConceptoContableAlmacen As Integer = -1,
|
||||||
Optional CveRetISRConcepto As Integer = -1, Optional NoDeducible As Boolean = False, Optional CveTipoCompra As Integer = -1, Optional TotalOriginal As Double = 0) As Boolean
|
Optional CveRetISRConcepto As Integer = -1, Optional NoDeducible As Boolean = False, Optional CveTipoCompra As Integer = -1, Optional TotalOriginal As Double = 0, Optional CveConceptoContable As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -240,7 +240,7 @@ Public Class ClsCompras
|
|||||||
.Add("@NoDeducible", SqlDbType.Bit).Value = NoDeducible
|
.Add("@NoDeducible", SqlDbType.Bit).Value = NoDeducible
|
||||||
.Add("@CveTipoCompra", SqlDbType.Int).Value = CveTipoCompra
|
.Add("@CveTipoCompra", SqlDbType.Int).Value = CveTipoCompra
|
||||||
.Add("@TotalOriginal", SqlDbType.Money).Value = TotalOriginal
|
.Add("@TotalOriginal", SqlDbType.Money).Value = TotalOriginal
|
||||||
|
.Add("@CveTipoConcepto", SqlDbType.Int).Value = CveConceptoContable
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -1873,7 +1873,7 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddPromociones(Promocion As String, FechaInicio As Date, FechaFin As Date, CveVendedor As Integer, CveCliente As Integer, Estatus As Boolean, CveMoneda As Integer, CveUsuario As Integer, CveEmpresa As Integer, CveSubProyecto As Integer) As Integer
|
Public Function AddPromociones(Promocion As String, FechaInicio As Date, FechaFin As Date, CveVendedor As Integer, CveCliente As Integer, Estatus As Boolean, CveMoneda As Integer, CveUsuario As Integer, CveEmpresa As Integer, CveSubProyecto As Integer, TipoAplicacion As String) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno = -1
|
||||||
DataAdapter("PA_Vta_PromocionesAdd")
|
DataAdapter("PA_Vta_PromocionesAdd")
|
||||||
|
|
||||||
@@ -1889,6 +1889,7 @@ Public Class ClsVentas
|
|||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
|
.Add("@TipoAplicacion", SqlDbType.VarChar).Value = TipoAplicacion
|
||||||
.Add("@CvePromocion", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@CvePromocion", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|||||||
156
Ashx/SIGGPS.ashx
156
Ashx/SIGGPS.ashx
@@ -18,7 +18,9 @@ Public Class SIGGPS : Implements IHttpHandler, IRequiresSessionState
|
|||||||
Case "getimginstalacion"
|
Case "getimginstalacion"
|
||||||
GetImgInstalacion(context)
|
GetImgInstalacion(context)
|
||||||
Case "EjecutarNotificaciones"
|
Case "EjecutarNotificaciones"
|
||||||
EjecutarNotificaciones(context)
|
EjecutarNotificaciones(context)
|
||||||
|
Case "EjecutaTrayectos"
|
||||||
|
EnviarCorreoTrayectos(context, context.Request("CveTrayecto").ToString().ToEntero())
|
||||||
End Select
|
End Select
|
||||||
ElseIf context.Request.InputStream IsNot Nothing Then
|
ElseIf context.Request.InputStream IsNot Nothing Then
|
||||||
Using reader As New StreamReader(context.Request.InputStream)
|
Using reader As New StreamReader(context.Request.InputStream)
|
||||||
@@ -224,5 +226,155 @@ Public Class SIGGPS : Implements IHttpHandler, IRequiresSessionState
|
|||||||
)
|
)
|
||||||
|
|
||||||
Return Json
|
Return Json
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#Region "N O T F I C A C I O N - T R A Y E C T O S"
|
||||||
|
Private Sub EnviarCorreoTrayectos(ByVal context As HttpContext, CveTrayecto As Integer)
|
||||||
|
Dim Retorno As JObject = New JObject(New JProperty("EnvioCorreo", False), New JProperty("Mensaje", ""))
|
||||||
|
|
||||||
|
Dim DtInfoTrayecto As DataTable = Nothing
|
||||||
|
Dim DtTrayecto As DataTable = Nothing
|
||||||
|
|
||||||
|
Using ObjGPS As New ClsGPS
|
||||||
|
If ObjGPS.GetTrayectos(CveTrayecto, -1, -1) AndAlso ObjGPS.DtResultados.Rows.Count > 0 Then
|
||||||
|
DtTrayecto = ObjGPS.DtResultados.Copy()
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjGPS.GetTrayectosDatos(CveTrayecto) Then
|
||||||
|
DtInfoTrayecto = ObjGPS.DtSetResultados.Tables(0).Copy()
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If DtTrayecto IsNot Nothing AndAlso DtInfoTrayecto IsNot Nothing AndAlso DtInfoTrayecto.Rows.Count > 0 Then
|
||||||
|
Dim RowTrayecto As DataRow = DtTrayecto.Rows(0)
|
||||||
|
Dim RowInfo As DataRow = DtInfoTrayecto.Rows(0)
|
||||||
|
|
||||||
|
Dim EnviarLiga As Boolean = CBool(RowTrayecto("EnviarLiga").ToString())
|
||||||
|
|
||||||
|
Dim Asunto As String = "Estatus de Trayecto"
|
||||||
|
Dim Cuerpo As String = GeneraCorreo(CveTrayecto, EnviarLiga, RowInfo)
|
||||||
|
Dim Correos As String = RowTrayecto("CorreosNotificacion").ToString()
|
||||||
|
|
||||||
|
Dim ObjMail As New ClsSisMail
|
||||||
|
If ObjMail.SendMail(ClsPaginas.EmpresaNotificaciones, Correos, Asunto, Cuerpo) Then
|
||||||
|
Retorno("EnvioCorreo") = True
|
||||||
|
Retorno("Mensaje") = "El correo fue enviado correctamente"
|
||||||
|
Else
|
||||||
|
Retorno("EnvioCorreo") = False
|
||||||
|
Retorno("Mensaje") = "Ocurrió un error al enviar el correo"
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
context.Response.Write(Retorno.ToString())
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Function GeneraCorreo(CveTrayecto As Integer, EnviarLiga As Boolean, Row As DataRow) As String
|
||||||
|
Dim strBody As New StringBuilder
|
||||||
|
Try
|
||||||
|
strBody.Append("<html xmlns=""http://www.w3.org/1999/xhtml""> ")
|
||||||
|
strBody.Append("<head> ")
|
||||||
|
strBody.Append(" <style type=""text/css""> ")
|
||||||
|
strBody.Append(" body ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" margin:0px; ")
|
||||||
|
strBody.Append(" padding:0px 0px 0px 0px; ")
|
||||||
|
strBody.Append(" font-family: Verdana, Arial, Helvetica, sans-serif; ")
|
||||||
|
strBody.Append(" font-size: 10px; ")
|
||||||
|
strBody.Append(" background-color:#F0F0F0; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" a.Texto ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" font-size:11px; ")
|
||||||
|
strBody.Append(" background-color:#F7F6F3; ")
|
||||||
|
strBody.Append(" text-decoration:none; ")
|
||||||
|
strBody.Append(" font-weight:bold; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .Texto ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" background-color:#F7F6F3; color:Black; font-family:Verdana; font-size:10px; text-align:center; vertical-align:middle; height:20px;")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .TextoAlterno ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" background-color:White; color:Black; font-family:Verdana; font-size:10px; text-align:center; ")
|
||||||
|
strBody.Append(" vertical-align:middle; height:20px;")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .BarraIdentidad ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" color:#FFFFFF; ")
|
||||||
|
strBody.Append(" background:#F0F0F0; ")
|
||||||
|
strBody.Append(" font-weight:bold; ")
|
||||||
|
strBody.Append(" font-size:19px; ")
|
||||||
|
strBody.Append(" font-style:oblique; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .Titulos ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" background-color: Gray;")
|
||||||
|
strBody.Append(" color:White; ")
|
||||||
|
strBody.Append(" font-family:Verdana; font-size:12px; text-align:center; ")
|
||||||
|
strBody.Append(" vertical-align:middle; font-weight:bold; height:30px; ")
|
||||||
|
strBody.Append(" text-decoration:none; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .Verde {color: #00CC00;} ")
|
||||||
|
strBody.Append(" .Negro {color: #000000;} ")
|
||||||
|
strBody.Append(" .Rojo {color: #FF0000;} ")
|
||||||
|
strBody.Append(" </style> ")
|
||||||
|
strBody.Append("</head> ")
|
||||||
|
strBody.Append("<body> ")
|
||||||
|
strBody.Append(" <h5> ")
|
||||||
|
strBody.Append(" ")
|
||||||
|
strBody.Append(" </h5> ")
|
||||||
|
strBody.Append(" <div id=""C_divOC"" > ")
|
||||||
|
strBody.Append("<div><fieldset><legend><strong> Datos del Trayecto</strong></legend>")
|
||||||
|
strBody.Append("<table style=""width: 726.5px;"" border=""0"" cellspacing=""0"" cellpadding=""0"">")
|
||||||
|
strBody.Append("<tbody>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Trayecto:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 167px;"" colspan=""3""><strong> {0}</strong></td>", Row("Trayecto"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Vehículo:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 167px;"" colspan=""3""><strong> {0}strong></td>", Row("Vehiculo"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Estatus:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 167px;"" colspan=""3""><strong> {0}</strong></td>", Row("Estatus"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Latitud:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 167px;"" colspan=""3""><strong> {0}</strong></td>", Row("LatitudActual"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Longitud:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 167px;"" colspan=""3""><strong> {0}</strong></td>", Row("LongitudActual"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Posición:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 187px;"" colspan=""3""><strong> <a href=""https://www.google.com/maps/search/{0},{1}/\"" target=""_blank"" rel=""noopener"">Ver en google maps</a></strong></td>", Row("LatitudActual"), Row("LongitudActual"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
If EnviarLiga Then
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 36.5px;""> Rastreo:</td>")
|
||||||
|
strBody.AppendFormat("<td style=""width: 187px;"" colspan=""3""><strong> <a href=""http://gps.signalsgps.com/GPS/RastreoTrayectos.aspx?P={0}"" target=""_blank"" rel=""noopener"">Rastrear Vehículo</a></strong></td>", Encripta($"CveTrayecto={Row("CveTrayecto").ToString()}"))
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
End If
|
||||||
|
strBody.Append("<tr>")
|
||||||
|
strBody.Append("<td style=""width: 187px;"" colspan=""3""><img src=""https://maps.googleapis.com/maps/api/staticmap?size=700x340&zoom=14&center=20.5269,-100.868&path=&markers=icon:http://gps.signalsgps.com/Imagenes/rsz_11rsz_car.png|20.5269,-100.868&sensor=false&key=AIzaSyAF7s8wwhzCVXDUYopc9mXxqaWB33cDro4"" /></td>")
|
||||||
|
strBody.Append("</tr>")
|
||||||
|
strBody.Append("</tbody>")
|
||||||
|
strBody.Append("</table>")
|
||||||
|
strBody.Append("</fieldset></div>")
|
||||||
|
strBody.Append(" <h5> ")
|
||||||
|
strBody.Append(" ")
|
||||||
|
strBody.Append(" </h5> ")
|
||||||
|
strBody.Append(" </div> ")
|
||||||
|
strBody.Append("</body></html>")
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrio un error al general el correo.", ex)
|
||||||
|
End Try
|
||||||
|
Return strBody.ToString()
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -181,8 +181,8 @@
|
|||||||
<asp:ListItem Text="Deudor" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Deudor" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Acreedor" Value="3"></asp:ListItem>
|
<asp:ListItem Text="Acreedor" Value="3"></asp:ListItem>
|
||||||
</asp:DropDownList>--%>
|
</asp:DropDownList>--%>
|
||||||
|
<asp:LinkButton ID="LblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft" Style="text-decoration:none">Proveedor:</asp:LinkButton>
|
||||||
<asp:Label ID="Label9" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft">Proveedor:</asp:Label>
|
<%--<asp:Label ID="LblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft">Proveedor:</asp:Label>--%>
|
||||||
<%-- <asp:Label ID="lblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft">Proveedor:</asp:Label>--%>
|
<%-- <asp:Label ID="lblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft">Proveedor:</asp:Label>--%>
|
||||||
<div class="whitoutcol whitoutcol ">
|
<div class="whitoutcol whitoutcol ">
|
||||||
<asp:HyperLink ID="HplProveedor" CssClass="Texto" runat="server" Visible="false"></asp:HyperLink>
|
<asp:HyperLink ID="HplProveedor" CssClass="Texto" runat="server" Visible="false"></asp:HyperLink>
|
||||||
@@ -407,12 +407,14 @@
|
|||||||
<span class="whitoutcol linewhitsize proveedoreespes">Importe: </span>
|
<span class="whitoutcol linewhitsize proveedoreespes">Importe: </span>
|
||||||
<div class="whitoutcol whitoutcol">
|
<div class="whitoutcol whitoutcol">
|
||||||
<asp:HyperLink ID="HplImporte" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
<asp:HyperLink ID="HplImporte" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group proveedoreespes" id="trSaldo" runat="server" visible="False">
|
<div class="form-group proveedoreespes" id="trSaldo" runat="server" visible="False">
|
||||||
<span class="whitoutcol linewhitsize proveedoreespes">Saldo: </span>
|
<span class="whitoutcol linewhitsize proveedoreespes">Saldo: </span>
|
||||||
<div class="whitoutcol whitoutcol">
|
<div class="whitoutcol whitoutcol">
|
||||||
<asp:HyperLink ID="HplSaldoAuxiliar" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
<asp:HyperLink ID="HplSaldoAuxiliar" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group proveedoreespes" id="trContabilizada" runat="server" visible="true">
|
<div class="form-group proveedoreespes" id="trContabilizada" runat="server" visible="true">
|
||||||
@@ -589,7 +591,9 @@
|
|||||||
<th style="width: 45px">Cant</th>
|
<th style="width: 45px">Cant</th>
|
||||||
<th style="width: 70px">Unidad</th>
|
<th style="width: 70px">Unidad</th>
|
||||||
<th style="width: 222px">Clasificación
|
<th style="width: 222px">Clasificación
|
||||||
|
|
||||||
<asp:HyperLink ID="HplAddClasificacion" data-toggle="tooltip" data-placement="top" NavigateUrl="/Ventas/CatClasificaciones.aspx" CssClass="btn btn-default btn-circle btn-xs " ToolTip="Agregar Clasificacion" runat="server"><i class="fa fa-plus" style="color:black" aria-hidden="true"></i></asp:HyperLink>
|
<asp:HyperLink ID="HplAddClasificacion" data-toggle="tooltip" data-placement="top" NavigateUrl="/Ventas/CatClasificaciones.aspx" CssClass="btn btn-default btn-circle btn-xs " ToolTip="Agregar Clasificacion" runat="server"><i class="fa fa-plus" style="color:black" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
|
||||||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||||||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Reclasificar productos"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Reclasificar productos"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||||||
<asp:LinkButton ID="ImgClasificacion" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" ToolTip="Aplicar Clasificación a Productos" runat="server" Style="display: none;"><i class="fa fa-arrow-circle-down" style="color:green" aria-hidden="true"></i></asp:LinkButton>
|
<asp:LinkButton ID="ImgClasificacion" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" ToolTip="Aplicar Clasificación a Productos" runat="server" Style="display: none;"><i class="fa fa-arrow-circle-down" style="color:green" aria-hidden="true"></i></asp:LinkButton>
|
||||||
@@ -599,6 +603,7 @@
|
|||||||
<th style="width: 200px">Observación</th>
|
<th style="width: 200px">Observación</th>
|
||||||
<th style="width: 150px">
|
<th style="width: 150px">
|
||||||
<asp:Literal ID="LitHProyecto" runat="server" Text="Proyecto<br /> "></asp:Literal><asp:Label runat="server" ID="LblSubProyectoHeader" Text="SubProyecto"></asp:Label>
|
<asp:Literal ID="LitHProyecto" runat="server" Text="Proyecto<br /> "></asp:Literal><asp:Label runat="server" ID="LblSubProyectoHeader" Text="SubProyecto"></asp:Label>
|
||||||
|
|
||||||
<asp:LinkButton ID="ImgActualizarProyecto" CssClass="btn btn-default btn-circle" data-toggle="tooltip" data-placement="top" ToolTip="Actualizar Cambios" runat="server" Visible="False"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></asp:LinkButton>
|
<asp:LinkButton ID="ImgActualizarProyecto" CssClass="btn btn-default btn-circle" data-toggle="tooltip" data-placement="top" ToolTip="Actualizar Cambios" runat="server" Visible="False"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></asp:LinkButton>
|
||||||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||||||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar sucursal"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar sucursal"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||||||
@@ -606,6 +611,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
<th style="width: 80px">Tipo de Gasto
|
<th style="width: 80px">Tipo de Gasto
|
||||||
|
|
||||||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||||||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar tipo de gasto"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar tipo de gasto"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||||||
</span>
|
</span>
|
||||||
@@ -657,7 +663,7 @@
|
|||||||
<asp:GridView ID="GvPS" ShowHeader="false" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS,Cantidad,CveUM,UM,PU,Descuento,OtrosGastos,CvePresupuestoEgreso,PS,Clasificacion,CveClasificacion,CveOrdenCompraDetalle,IVA,IVAPorcentaje,RetIVAPorcentaje,RetISRPorcentaje,IEPSPSPorcentaje,Obs,Total,CveProyecto,CveSubProyecto,Proyecto,SubProyecto,Consec,CveTipoGasto,NoDeducible" GridLines="none" BorderWidth="0" EmptyDataText="Sin Productos o Servicios agregados" CssClass="table GvPS table-striped table-hover table-advance Widthall ScrollAD mysmallbtn">
|
<asp:GridView ID="GvPS" ShowHeader="false" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS,Cantidad,CveUM,UM,PU,Descuento,OtrosGastos,CvePresupuestoEgreso,PS,Clasificacion,CveClasificacion,CveOrdenCompraDetalle,IVA,IVAPorcentaje,RetIVAPorcentaje,RetISRPorcentaje,IEPSPSPorcentaje,Obs,Total,CveProyecto,CveSubProyecto,Proyecto,SubProyecto,Consec,CveTipoGasto,NoDeducible" GridLines="none" BorderWidth="0" EmptyDataText="Sin Productos o Servicios agregados" CssClass="table GvPS table-striped table-hover table-advance Widthall ScrollAD mysmallbtn">
|
||||||
<Columns>
|
<Columns>
|
||||||
<%-- 0 --%>
|
<%-- 0 --%>
|
||||||
<asp:TemplateField ItemStyle-Width="15px" >
|
<asp:TemplateField ItemStyle-Width="15px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<label data-toogle="tooltip" class=' <%# IIf(Eval("CvePS").ToString() = "0", "label label-sm label-danger manita", "")%>'>
|
<label data-toogle="tooltip" class=' <%# IIf(Eval("CvePS").ToString() = "0", "label label-sm label-danger manita", "")%>'>
|
||||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||||
@@ -773,6 +779,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -798,12 +805,14 @@
|
|||||||
<HeaderTemplate>Anticipo/NC</HeaderTemplate>
|
<HeaderTemplate>Anticipo/NC</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Mon</HeaderTemplate>
|
<HeaderTemplate>Mon</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField Visible="False">
|
<asp:TemplateField Visible="False">
|
||||||
@@ -883,6 +892,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td align="right"> 
|
<td align="right"> 
|
||||||
|
|
||||||
|
|
||||||
<asp:HyperLink ID="HLAplicaNCFact" NavigateUrl="#" Visible="false" data-toggle="modal" data-target="#FacturaNC" runat="server"><i title="Aplicar Notas de Credito" data-toggle="tooltip" class='fa fa-money font-green'></i></asp:HyperLink>
|
<asp:HyperLink ID="HLAplicaNCFact" NavigateUrl="#" Visible="false" data-toggle="modal" data-target="#FacturaNC" runat="server"><i title="Aplicar Notas de Credito" data-toggle="tooltip" class='fa fa-money font-green'></i></asp:HyperLink>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -907,9 +917,9 @@
|
|||||||
<td runat="server" id="tdT5" visible="false">
|
<td runat="server" id="tdT5" visible="false">
|
||||||
<asp:Label Text="" ID="LbIVAOriginal" runat="server" />
|
<asp:Label Text="" ID="LbIVAOriginal" runat="server" />
|
||||||
</td>
|
</td>
|
||||||
<td runat="server" id="tdIVA6" visible="false" class="label label-sm label-success" style="color:white!important" >
|
<td runat="server" id="tdIVA6" visible="false" class="label label-sm label-success" style="color: white!important">
|
||||||
|
|
||||||
<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click" style="color:white!important" >Deglose 6%</asp:LinkButton>
|
<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click" Style="color: white!important">Deglose 6%</asp:LinkButton>
|
||||||
<%--<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click"><i class="fa fa-usd" aria-hidden="true"></i></asp:LinkButton>--%>
|
<%--<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click"><i class="fa fa-usd" aria-hidden="true"></i></asp:LinkButton>--%>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@@ -920,7 +930,6 @@
|
|||||||
<asp:ListItem Value="1">0%</asp:ListItem>
|
<asp:ListItem Value="1">0%</asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</td>--%>
|
</td>--%>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="right" id="TrRetIVA" runat="server" visible="False">
|
<tr align="right" id="TrRetIVA" runat="server" visible="False">
|
||||||
<td><b>Ret. IVA:</b></td>
|
<td><b>Ret. IVA:</b></td>
|
||||||
@@ -1002,6 +1011,7 @@
|
|||||||
<asp:Label ID="LblTCO" runat="server" Text=""></asp:Label>
|
<asp:Label ID="LblTCO" runat="server" Text=""></asp:Label>
|
||||||
<div runat="server" id="DivTC" visible="false">
|
<div runat="server" id="DivTC" visible="false">
|
||||||
TC:
|
TC:
|
||||||
|
|
||||||
<asp:TextBox ID="TxtTC" Text="" Width="50px" runat="server" />
|
<asp:TextBox ID="TxtTC" Text="" Width="50px" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -1036,7 +1046,8 @@
|
|||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<ul class="list-inline" style="font-size: 14px;">
|
<ul class="list-inline" style="font-size: 14px;">
|
||||||
<li>Aplica consignación:
|
<li>Aplica consignación:
|
||||||
<asp:CheckBox Text="" ID="ChkConsignacion" OnCheckedChanged="ChkConsignacion_CheckedChanged" AutoPostBack="true" Enabled="false" runat="server" />
|
|
||||||
|
<asp:CheckBox Text="" ID="ChkConsignacion" OnCheckedChanged="ChkConsignacion_CheckedChanged" AutoPostBack="true" Enabled="false" runat="server" />
|
||||||
</li>
|
</li>
|
||||||
<br />
|
<br />
|
||||||
<li id="LiRecepcion" runat="server" visible="false">
|
<li id="LiRecepcion" runat="server" visible="false">
|
||||||
@@ -1046,7 +1057,8 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</li>
|
</li>
|
||||||
<li runat="server" id="LiConsignacion" visible="false">Consignación:
|
<li runat="server" id="LiConsignacion" visible="false">Consignación:
|
||||||
<asp:DropDownList runat="server" ID="DdlConsignacion" DataValueField="CveConsignacion" DataTextField="SerieFolioFecha" Width="180px"></asp:DropDownList>
|
|
||||||
|
<asp:DropDownList runat="server" ID="DdlConsignacion" DataValueField="CveConsignacion" DataTextField="SerieFolioFecha" Width="180px"></asp:DropDownList>
|
||||||
</li>
|
</li>
|
||||||
<%--<li>Folio Consignación:
|
<%--<li>Folio Consignación:
|
||||||
<asp:TextBox ID="TxtConsignacion" Width="70px" runat="server" ValidationGroup="GrpGetConsignacion" />
|
<asp:TextBox ID="TxtConsignacion" Width="70px" runat="server" ValidationGroup="GrpGetConsignacion" />
|
||||||
@@ -1308,7 +1320,8 @@
|
|||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<ul class="list-inline" style="font-size: 14px;">
|
<ul class="list-inline" style="font-size: 14px;">
|
||||||
<li>Tipo Cambio:
|
<li>Tipo Cambio:
|
||||||
<asp:TextBox ID="TxtTipoCambioOC" runat="server" align="right" MaxLength="12" Text="" Width="100px"></asp:TextBox>
|
|
||||||
|
<asp:TextBox ID="TxtTipoCambioOC" runat="server" align="right" MaxLength="12" Text="" Width="100px"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtTipoCambioOC" FilterType="Custom, Numbers" ValidChars="." />
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtTipoCambioOC" FilterType="Custom, Numbers" ValidChars="." />
|
||||||
<asp:RequiredFieldValidator ID="RFVTipoCambioOC" runat="server" ControlToValidate="TxtTipoCambioOC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Cambio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTipoCambioOC"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTipoCambioOC" runat="server" ControlToValidate="TxtTipoCambioOC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Cambio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTipoCambioOC"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCETipoCambioOC" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoCambioOC" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCETipoCambioOC" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoCambioOC" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -1707,8 +1720,10 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Clasificación
|
Clasificación
|
||||||
<br />
|
|
||||||
|
<br />
|
||||||
Producto/Servicio
|
Producto/Servicio
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="Producto/Servicio SAT" DataField="SATClaveProductoServicio" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Left" Visible="false" />
|
<asp:BoundField HeaderText="Producto/Servicio SAT" DataField="SATClaveProductoServicio" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Left" Visible="false" />
|
||||||
@@ -1932,6 +1947,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -2023,6 +2039,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -2116,6 +2133,7 @@
|
|||||||
<asp:Literal ID="LthProyectoP" runat="server" Text="Proyecto<br /> "></asp:Literal><asp:Label runat="server" ID="LblSubProyectoPHeader" Text="SubProyecto"></asp:Label>
|
<asp:Literal ID="LthProyectoP" runat="server" Text="Proyecto<br /> "></asp:Literal><asp:Label runat="server" ID="LblSubProyectoPHeader" Text="SubProyecto"></asp:Label>
|
||||||
</th>
|
</th>
|
||||||
<th style="width: 20%">Personal
|
<th style="width: 20%">Personal
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<asp:DropDownList ID="DdlPersonalHeader" runat="server" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" AppendDataBoundItems="true" Width="100%" CssClass="form-control input-sm select2me">
|
<asp:DropDownList ID="DdlPersonalHeader" runat="server" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" AppendDataBoundItems="true" Width="100%" CssClass="form-control input-sm select2me">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
@@ -2134,6 +2152,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -2259,7 +2278,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td align="left" >
|
<td align="left">
|
||||||
<asp:LinkButton runat="server" Visible="false" ID="LnkUpdateFechaPago" OnClick="LnkUpdateFechaPago_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea actualizar la fecha de pago de la compra?" data-btn-ok-label="si" Text="<i class='fa fa-check' style='color:green'></i>" CssClass="btn btn-default btn-circle btn-xs" ToolTip="Actualizar Fecha de Pago" />
|
<asp:LinkButton runat="server" Visible="false" ID="LnkUpdateFechaPago" OnClick="LnkUpdateFechaPago_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea actualizar la fecha de pago de la compra?" data-btn-ok-label="si" Text="<i class='fa fa-check' style='color:green'></i>" CssClass="btn btn-default btn-circle btn-xs" ToolTip="Actualizar Fecha de Pago" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -2299,6 +2318,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr id="TrRembolsoUpdate" runat="server" visible="False">
|
<tr id="TrRembolsoUpdate" runat="server" visible="False">
|
||||||
<td>Rembolso:
|
<td>Rembolso:
|
||||||
|
|
||||||
<asp:RadioButtonList ID="RblRembolso" OnSelectedIndexChanged="RblRembolso_SelectedIndexChanged" RepeatDirection="Horizontal" runat="server" AutoPostBack="True">
|
<asp:RadioButtonList ID="RblRembolso" OnSelectedIndexChanged="RblRembolso_SelectedIndexChanged" RepeatDirection="Horizontal" runat="server" AutoPostBack="True">
|
||||||
<asp:ListItem Value="1">Personal/Empleado</asp:ListItem>
|
<asp:ListItem Value="1">Personal/Empleado</asp:ListItem>
|
||||||
<asp:ListItem Value="2">Caja Chica</asp:ListItem>
|
<asp:ListItem Value="2">Caja Chica</asp:ListItem>
|
||||||
@@ -2568,6 +2588,7 @@
|
|||||||
<HeaderTemplate>Descripción</HeaderTemplate>
|
<HeaderTemplate>Descripción</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -2665,16 +2686,16 @@
|
|||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6" id="DivPagarConPesos" runat="server" Visible="false">
|
<div class="col-md-6" id="DivPagarConPesos" runat="server" visible="false">
|
||||||
<label class="col-md-6"><b>Pagar Con Pesos: </b></label>
|
<label class="col-md-6"><b>Pagar Con Pesos: </b></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:CheckBox ID="ChkPagarConPesos" runat="server" OnCheckedChanged="ChkPagarConPesos_CheckedChanged" AutoPostBack="true"/>
|
<asp:CheckBox ID="ChkPagarConPesos" runat="server" OnCheckedChanged="ChkPagarConPesos_CheckedChanged" AutoPostBack="true" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6" id="DivPagarConDolares" runat="server" Visible="false">
|
<div class="col-md-6" id="DivPagarConDolares" runat="server" visible="false">
|
||||||
<label class="col-md-6"><b>Pagar Con Dolares: </b></label>
|
<label class="col-md-6"><b>Pagar Con Dolares: </b></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:CheckBox ID="ChkPagarConDolares" runat="server" OnCheckedChanged="ChkPagarConDolares_CheckedChanged" AutoPostBack="true"/>
|
<asp:CheckBox ID="ChkPagarConDolares" runat="server" OnCheckedChanged="ChkPagarConDolares_CheckedChanged" AutoPostBack="true" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
@@ -2700,11 +2721,13 @@
|
|||||||
<asp:TemplateField HeaderText="Anticipo" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Anticipo" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Mon" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Mon" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Amort." ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Amort." ItemStyle-HorizontalAlign="Right">
|
||||||
@@ -2857,6 +2880,7 @@
|
|||||||
<tr class="Titulos">
|
<tr class="Titulos">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<h4>Enviar
|
<h4>Enviar
|
||||||
|
|
||||||
<asp:Label ID="lbPS" runat="server" ClientIDMode="Static"></asp:Label>
|
<asp:Label ID="lbPS" runat="server" ClientIDMode="Static"></asp:Label>
|
||||||
a otro Almacén </h4>
|
a otro Almacén </h4>
|
||||||
</td>
|
</td>
|
||||||
@@ -3573,6 +3597,7 @@
|
|||||||
<div class="col-md-2"></div>
|
<div class="col-md-2"></div>
|
||||||
<div class="col-md-3" style="text-align: right;">
|
<div class="col-md-3" style="text-align: right;">
|
||||||
Tipo Cambio:
|
Tipo Cambio:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtConvertirPesos" runat="server" Width="100px"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtConvertirPesos" runat="server" Width="100px"></asp:TextBox>
|
||||||
@@ -3813,6 +3838,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td runat="server" id="tdNumeroReembolso" visible="false">Número de Reembolso:
|
<td runat="server" id="tdNumeroReembolso" visible="false">Número de Reembolso:
|
||||||
|
|
||||||
<asp:TextBox ID="TxtNumeroReembolso" runat="server" Width="100px" />
|
<asp:TextBox ID="TxtNumeroReembolso" runat="server" Width="100px" />
|
||||||
<asp:RequiredFieldValidator ID="RFVNumeroReembolso" runat="server" ControlToValidate="TxtNumeroReembolso" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Numero de Reembolso''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVNumeroReembolso" runat="server" ControlToValidate="TxtNumeroReembolso" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Numero de Reembolso''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCENumeroReembolso" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumeroReembolso" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCENumeroReembolso" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumeroReembolso" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -4036,6 +4062,7 @@
|
|||||||
<HeaderTemplate>Saldo</HeaderTemplate>
|
<HeaderTemplate>Saldo</HeaderTemplate>
|
||||||
<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>
|
||||||
<ItemStyle HorizontalAlign="Right" />
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -4043,6 +4070,7 @@
|
|||||||
<HeaderTemplate>Fecha</HeaderTemplate>
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaDocumento", "{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaDocumento", "{0:d}") %>'></asp:Literal>
|
||||||
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Right" />
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -4104,13 +4132,15 @@
|
|||||||
<label class="col-md-2">Crédito:</label>
|
<label class="col-md-2">Crédito:</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<asp:DropDownList ID="DdlCredito" Width="300px" CssClass="form-control input-sm select2me" DataTextField="ReferenciaImporte" DataValueField="CveCredito" runat="server" AutoPostBack="True"></asp:DropDownList></td>
|
<asp:DropDownList ID="DdlCredito" Width="300px" CssClass="form-control input-sm select2me" DataTextField="ReferenciaImporte" DataValueField="CveCredito" runat="server" AutoPostBack="True"></asp:DropDownList></td>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" id="DivCreditoMensualidad" runat="server">
|
<div class="row" id="DivCreditoMensualidad" runat="server">
|
||||||
<label class="col-md-2">Mensualidad</label>
|
<label class="col-md-2">Mensualidad</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<asp:DropDownList ID="DdlCreditoDetalle" Width="300px" CssClass="form-control input-sm select2me" DataValueField="CveCreditoDetalle" DataTextField="PeriodoTexto" runat="server"></asp:DropDownList></td>
|
<asp:DropDownList ID="DdlCreditoDetalle" Width="300px" CssClass="form-control input-sm select2me" DataValueField="CveCreditoDetalle" DataTextField="PeriodoTexto" runat="server"></asp:DropDownList></td>
|
||||||
<asp:RequiredFieldValidator ID="RFVCreditoDetalle" runat="server" ControlToValidate="DdlCreditoDetalle" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Crédito''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
|
||||||
|
<asp:RequiredFieldValidator ID="RFVCreditoDetalle" runat="server" ControlToValidate="DdlCreditoDetalle" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Crédito''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCECreditoDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVCreditoDetalle" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCECreditoDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVCreditoDetalle" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -4240,7 +4270,8 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="ddlUM" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="100"></asp:DropDownList></td>
|
<asp:DropDownList ID="ddlUM" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="100"></asp:DropDownList></td>
|
||||||
<label for="<%= ddlUM.ClientID.ToString()%>">Unidad de Medida:</label>
|
|
||||||
|
<label for="<%= ddlUM.ClientID.ToString()%>">Unidad de Medida:</label>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<%-- <Triggers>
|
<%-- <Triggers>
|
||||||
@@ -4382,7 +4413,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<asp:Label ID="Label11" runat="server" Text="Total:"></asp:Label>  $
|
<asp:Label ID="Label11" runat="server" Text="Total:"></asp:Label>  $
|
||||||
<asp:Label ID="LblTotalPS" ClientIDMode="Static" runat="server" Text="0.00"></asp:Label>
|
|
||||||
|
<asp:Label ID="LblTotalPS" ClientIDMode="Static" runat="server" Text="0.00"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6" align="right" id="divagregrarotrops" runat="server">
|
<div class="col-md-6" align="right" id="divagregrarotrops" runat="server">
|
||||||
@@ -4530,6 +4562,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-3">
|
<label class="col-md-3">
|
||||||
1
|
1
|
||||||
|
|
||||||
<label id="LbUMActual" class="bold"></label>
|
<label id="LbUMActual" class="bold"></label>
|
||||||
Equivale:</label>
|
Equivale:</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@@ -4544,6 +4577,7 @@
|
|||||||
<div class="col-md-12 text-left">
|
<div class="col-md-12 text-left">
|
||||||
<button id="btnAgregarUM" onclick="MostrarAgregarUM()" type="button" class="btn btn-default btn-xs" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro de agregar como NUEVA Unidad de Medida?" data-btn-ok-label="si">
|
<button id="btnAgregarUM" onclick="MostrarAgregarUM()" type="button" class="btn btn-default btn-xs" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro de agregar como NUEVA Unidad de Medida?" data-btn-ok-label="si">
|
||||||
Agregar como nueva unidad de medida
|
Agregar como nueva unidad de medida
|
||||||
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -5256,7 +5290,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function chkAnt(t, txt, importe, TotalSaldo,CveMonedaAnticipo,TCAnticipo,CveMonedaOriginal) {
|
function chkAnt(t, txt, importe, TotalSaldo, CveMonedaAnticipo, TCAnticipo, CveMonedaOriginal) {
|
||||||
var Total = ToDouble($get('TxtTotal').value);
|
var Total = ToDouble($get('TxtTotal').value);
|
||||||
//TotalSaldo = Total;
|
//TotalSaldo = Total;
|
||||||
var txtvalue = ToDouble(txt.value);
|
var txtvalue = ToDouble(txt.value);
|
||||||
@@ -5271,7 +5305,7 @@
|
|||||||
|
|
||||||
//var SaldoCompra = parseFloat(parseFloat($get('HdnCompraSaldo').value).toFixed(2));
|
//var SaldoCompra = parseFloat(parseFloat($get('HdnCompraSaldo').value).toFixed(2));
|
||||||
var SaldoCompra = (TotalSaldo - FnSumaValoresAnt() + txtvalue).toFixed(2); // le agrego lo del valor actual para validarlo
|
var SaldoCompra = (TotalSaldo - FnSumaValoresAnt() + txtvalue).toFixed(2); // le agrego lo del valor actual para validarlo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (t.checked) {
|
if (t.checked) {
|
||||||
@@ -5600,9 +5634,9 @@
|
|||||||
function CalculaTotalOCEdit(PS, CantidadOriginal, TxtCantidad, TxtPU, TxtTotal, IEPSOriginal, HdnIEPS, IVAOriginal, HdnIVA, RetIVAOriginal, HdnRetIVA, RetISROriginal, HdnRetISR, IEPSIVAOriginal, HdnIEPSIVA, DescuentoOriginal, HdnDescuento, IVAPorcentaje, RetIVAPorcentaje, RetISRPorcentaje, IEPSPSPorcentaje, IEPSPSIVAPorcentaje) {
|
function CalculaTotalOCEdit(PS, CantidadOriginal, TxtCantidad, TxtPU, TxtTotal, IEPSOriginal, HdnIEPS, IVAOriginal, HdnIVA, RetIVAOriginal, HdnRetIVA, RetISROriginal, HdnRetISR, IEPSIVAOriginal, HdnIEPSIVA, DescuentoOriginal, HdnDescuento, IVAPorcentaje, RetIVAPorcentaje, RetISRPorcentaje, IEPSPSPorcentaje, IEPSPSIVAPorcentaje) {
|
||||||
//var Proporcional = ((ToDouble(TxtCantidad.value) * 100) / CantidadOriginal) / 100;
|
//var Proporcional = ((ToDouble(TxtCantidad.value) * 100) / CantidadOriginal) / 100;
|
||||||
|
|
||||||
|
|
||||||
var TotalGravado = ToDouble(TxtCantidad.value) * ToDouble(TxtPU.value);
|
var TotalGravado = ToDouble(TxtCantidad.value) * ToDouble(TxtPU.value);
|
||||||
var Total = ToDouble(TxtCantidad.value) * ToDouble(TxtPU.value);
|
var Total = ToDouble(TxtCantidad.value) * ToDouble(TxtPU.value);
|
||||||
|
|
||||||
HdnDescuento.value = ToDouble(DescuentoOriginal * ToDouble(TxtCantidad.value) / CantidadOriginal);
|
HdnDescuento.value = ToDouble(DescuentoOriginal * ToDouble(TxtCantidad.value) / CantidadOriginal);
|
||||||
if (true) {
|
if (true) {
|
||||||
@@ -5622,7 +5656,7 @@
|
|||||||
if (RetISROriginal > 0) {
|
if (RetISROriginal > 0) {
|
||||||
HdnRetISR.value = ToDouble(RetISRPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
HdnRetISR.value = ToDouble(RetISRPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
||||||
}
|
}
|
||||||
|
|
||||||
TxtTotal.value = FormatoNumero(Total - ToDouble(HdnDescuento.value), 2);
|
TxtTotal.value = FormatoNumero(Total - ToDouble(HdnDescuento.value), 2);
|
||||||
//RECALCULA IMPORTES GENERALES
|
//RECALCULA IMPORTES GENERALES
|
||||||
CalculaTotalesOC();
|
CalculaTotalesOC();
|
||||||
@@ -5638,7 +5672,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function CalculaTotalesOC() {
|
function CalculaTotalesOC() {
|
||||||
|
|
||||||
var SumaSubTotal = 0, SumaIEPS = 0, SumaIEPSIVA = 0, SumaIVA = 0, SumaRetIVA = 0, SumaRetISR = 0, SumaTotal = 0, SumaDescuento = 0, Amortizacion = 0;
|
var SumaSubTotal = 0, SumaIEPS = 0, SumaIEPSIVA = 0, SumaIVA = 0, SumaRetIVA = 0, SumaRetISR = 0, SumaTotal = 0, SumaDescuento = 0, Amortizacion = 0;
|
||||||
|
|
||||||
$('input[name*=TxtTotalOC1]').each(function () {
|
$('input[name*=TxtTotalOC1]').each(function () {
|
||||||
|
|||||||
@@ -1102,6 +1102,15 @@ Partial Class Compras_Compras
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property CveConceptoContable As Integer
|
||||||
|
Get
|
||||||
|
Return ViewState("CveConceptoContable").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveConceptoContable") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
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
|
||||||
'ImgBtnBuscarOC.Attributes.Add("data-toggle", "tooltip")
|
'ImgBtnBuscarOC.Attributes.Add("data-toggle", "tooltip")
|
||||||
@@ -1587,7 +1596,7 @@ Partial Class Compras_Compras
|
|||||||
HplAddClasificacion.Visible = False
|
HplAddClasificacion.Visible = False
|
||||||
ImgClasificacion.Visible = False
|
ImgClasificacion.Visible = False
|
||||||
End If
|
End If
|
||||||
|
CveConceptoContable = 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -4408,7 +4417,7 @@ Partial Class Compras_Compras
|
|||||||
TxtRedondeo.Text.ToDouble, TxtTotal.Text.ToDouble, TxtFecha.Text.Trim.ToDate, DdlMoneda.SelectedValue.ToEntero, TipoCambio, TxtFechaPago.Text.Trim.ToDate, ChkAplicaNotaCredito.Checked, TxtObsFact.Text.Trim, CveEstatusFactura,
|
TxtRedondeo.Text.ToDouble, TxtTotal.Text.ToDouble, TxtFecha.Text.Trim.ToDate, DdlMoneda.SelectedValue.ToEntero, TipoCambio, TxtFechaPago.Text.Trim.ToDate, ChkAplicaNotaCredito.Checked, TxtObsFact.Text.Trim, CveEstatusFactura,
|
||||||
CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, IdPoliza, CveCajaChica:=CveCajaChica, CvePersonal:=CvePersonal, NumeroReembolso:=NumeroReembolso, CveProveedorSucursal:=DdlProveedorSucursal.SelectedValue.ToEntero,
|
CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, IdPoliza, CveCajaChica:=CveCajaChica, CvePersonal:=CvePersonal, NumeroReembolso:=NumeroReembolso, CveProveedorSucursal:=DdlProveedorSucursal.SelectedValue.ToEntero,
|
||||||
AplicoPromocion:=ChkOCPromocion.Checked, PorcentajeIVA:=PorcentajeIVA, CveMetodoPago:=CveMetodoPago, CveRetIVAConcepto:=If(DdlRetIVAConcepto.Items.Count > 0, DdlRetIVAConcepto.SelectedValue.ToEntero, -1), CveConceptoContableAlmacen:=CveConceptoContableAlmacen,
|
AplicoPromocion:=ChkOCPromocion.Checked, PorcentajeIVA:=PorcentajeIVA, CveMetodoPago:=CveMetodoPago, CveRetIVAConcepto:=If(DdlRetIVAConcepto.Items.Count > 0, DdlRetIVAConcepto.SelectedValue.ToEntero, -1), CveConceptoContableAlmacen:=CveConceptoContableAlmacen,
|
||||||
CveRetISRConcepto:=If(DdlRetISRConcepto.Items.Count > 0, DdlRetISRConcepto.SelectedValue.ToEntero, -1), NoDeducible:=EsNoDeducible, CveTipoCompra:=DdlTipoCompra.SelectedValue.ToEntero, TotalOriginal:=TotalOriginal) Then
|
CveRetISRConcepto:=If(DdlRetISRConcepto.Items.Count > 0, DdlRetISRConcepto.SelectedValue.ToEntero, -1), NoDeducible:=EsNoDeducible, CveTipoCompra:=DdlTipoCompra.SelectedValue.ToEntero, TotalOriginal:=TotalOriginal, CveConceptoContable:=CveConceptoContable) Then
|
||||||
|
|
||||||
ViewState("CveCompra") = ObjCompras.CveCompra
|
ViewState("CveCompra") = ObjCompras.CveCompra
|
||||||
If ObjCompras.DtResultados.Rows.Count > 0 Then ViewState("CompraFolio") = ObjCompras.DtResultados.Rows(0)("vFolio").ToString
|
If ObjCompras.DtResultados.Rows.Count > 0 Then ViewState("CompraFolio") = ObjCompras.DtResultados.Rows(0)("vFolio").ToString
|
||||||
@@ -19353,4 +19362,14 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub LblProveedor_OnClick(sender As Object, e As EventArgs) Handles LblProveedor.Click
|
||||||
|
If LblProveedor.Text = "Proveedor:" Then
|
||||||
|
LblProveedor.Text = "Acreedor:"
|
||||||
|
CveConceptoContable = 305
|
||||||
|
Else
|
||||||
|
LblProveedor.Text = "Proveedor:"
|
||||||
|
CveConceptoContable = 5
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -13,6 +13,14 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
Inherits Page
|
Inherits Page
|
||||||
|
|
||||||
#Region "P R O P I E D A D E S"
|
#Region "P R O P I E D A D E S"
|
||||||
|
Private Property RastreoValido As Boolean
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("RastreoValido"), Boolean)
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
ViewState("RastreoValido") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Private Property TrazarLineaContinuo As Boolean
|
Private Property TrazarLineaContinuo As Boolean
|
||||||
Get
|
Get
|
||||||
Return CType(ViewState("TrazarLineaContinuo"), Boolean)
|
Return CType(ViewState("TrazarLineaContinuo"), Boolean)
|
||||||
@@ -87,12 +95,19 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
RegistraScript("$('#SideNav').click();initMap();")
|
RegistraScript("$('#SideNav').click();initMap();")
|
||||||
Me.CveTrayecto = 97
|
If Request("P") IsNot Nothing Then
|
||||||
|
Dim URLParametros = Parametros(Decripta((Request("P").ToString)))
|
||||||
CreaDTPosiciones()
|
Me.CveTrayecto = URLParametros("CVETRAYECTO").ToString().ToEntero()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
RastrearEquipos()
|
If RastreoValido Then
|
||||||
CargaTabla()
|
TrazarLineaContinuo = True
|
||||||
|
CreaDTCoordenadas()
|
||||||
|
CreaDTPosiciones()
|
||||||
|
RastrearEquipos()
|
||||||
|
CargaTabla()
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CreaDTPosiciones()
|
Private Sub CreaDTPosiciones()
|
||||||
@@ -123,16 +138,19 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
Using ObjGPS As New ClsGPS
|
Using ObjGPS As New ClsGPS
|
||||||
If ObjGPS.GetTrayectos(CveTrayecto, -1, -1) AndAlso ObjGPS.DtResultados.Rows.Count > 0 Then
|
If ObjGPS.GetTrayectos(CveTrayecto, -1, -1) AndAlso ObjGPS.DtResultados.Rows.Count > 0 Then
|
||||||
Dim Row As DataRow = ObjGPS.DtResultados.Rows(0)
|
Dim Row As DataRow = ObjGPS.DtResultados.Rows(0)
|
||||||
|
|
||||||
Me.CveDispositivo = Row("CveDispositivo").ToString().ToEntero()
|
Me.CveDispositivo = Row("CveDispositivo").ToString().ToEntero()
|
||||||
Me.CveCliente = Row("CveCliente").ToString().ToEntero()
|
Me.CveCliente = Row("CveCliente").ToString().ToEntero()
|
||||||
|
Me.RastreoValido = Not CBool(Row("EsFin"))
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
TrazarLineaContinuo = True
|
|
||||||
CreaDTCoordenadas()
|
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub TimmerRefresh_Tick(sender As Object, e As EventArgs)
|
Protected Sub TimmerRefresh_Tick(sender As Object, e As EventArgs)
|
||||||
DtPosiciones.Rows.Clear()
|
DtPosiciones.Rows.Clear()
|
||||||
RegistraScript("DeleteMarkers();")
|
RegistraScript("DeleteMarkers();")
|
||||||
|
|
||||||
|
|
||||||
Dim LastCoord As String = ""
|
Dim LastCoord As String = ""
|
||||||
Dim TmpDT As New DataTable
|
Dim TmpDT As New DataTable
|
||||||
Dim Info = ""
|
Dim Info = ""
|
||||||
@@ -143,6 +161,14 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
|
|
||||||
Dim ObjGPS As New ClsGPS
|
Dim ObjGPS As New ClsGPS
|
||||||
Try
|
Try
|
||||||
|
If ObjGPS.GetTrayectos(CveTrayecto, -1, -1) AndAlso ObjGPS.DtResultados.Rows.Count > 0 Then
|
||||||
|
Dim Row As DataRow = ObjGPS.DtResultados.Rows(0)
|
||||||
|
Me.RastreoValido = Not CBool(Row("EsFin"))
|
||||||
|
End If
|
||||||
|
If Not RastreoValido Then
|
||||||
|
Alert("El trayecto ha sido finalizado.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
Dim RowVehiculo As DataRow = GlobalDTDispositivos(CveCliente).FiltroPrimero($"CveDispositivo = {CveDispositivo}")
|
Dim RowVehiculo As DataRow = GlobalDTDispositivos(CveCliente).FiltroPrimero($"CveDispositivo = {CveDispositivo}")
|
||||||
|
|
||||||
If ObjGPS.UltimaPosicionEquipoGet(CveDispositivo, MinFecha, MaxFecha) Then
|
If ObjGPS.UltimaPosicionEquipoGet(CveDispositivo, MinFecha, MaxFecha) Then
|
||||||
@@ -178,7 +204,12 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
OnError("Ocurrió un error al rastrear equipo", ex)
|
OnError("Ocurrió un error al rastrear equipo", ex)
|
||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub RastrearEquipos()
|
Private Sub RastrearEquipos()
|
||||||
|
If Not RastreoValido Then
|
||||||
|
Alert("El trayecto ha sido finalizado.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
Dim LastCoord As String = ""
|
Dim LastCoord As String = ""
|
||||||
Dim TmpDT As New DataTable
|
Dim TmpDT As New DataTable
|
||||||
Dim Info = ""
|
Dim Info = ""
|
||||||
@@ -217,7 +248,6 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
End Try
|
End Try
|
||||||
ObjGPS.Dispose()
|
ObjGPS.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaTabla()
|
Private Sub CargaTabla()
|
||||||
If DtPosiciones IsNot Nothing Then
|
If DtPosiciones IsNot Nothing Then
|
||||||
GvBarra.DataSource = DtPosiciones
|
GvBarra.DataSource = DtPosiciones
|
||||||
@@ -229,7 +259,6 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
GvBarra.HeaderRow.Cells(4).Style.Add("display", "none !important")
|
GvBarra.HeaderRow.Cells(4).Style.Add("display", "none !important")
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub AddRowCoordenadasContinuas(Coord As String, CveDispositivo As Integer)
|
Private Sub AddRowCoordenadasContinuas(Coord As String, CveDispositivo As Integer)
|
||||||
Dim dr As DataRow = DtCoordenadasContinuas.NewRow()
|
Dim dr As DataRow = DtCoordenadasContinuas.NewRow()
|
||||||
dr("CveDispositivo") = CveDispositivo
|
dr("CveDispositivo") = CveDispositivo
|
||||||
@@ -333,8 +362,19 @@ Partial Class GPS_RastreoTrayectos
|
|||||||
|
|
||||||
RegistraScript("setTimeout(function(){OpcionesHistorico();},500);")
|
RegistraScript("setTimeout(function(){OpcionesHistorico();},500);")
|
||||||
End Sub
|
End Sub
|
||||||
|
Private Function Parametros(Cadena As String) As Hashtable
|
||||||
|
Dim P1() As String = Cadena.Split("&"c)
|
||||||
|
Dim Tmp As String
|
||||||
|
Dim P2() As String
|
||||||
|
|
||||||
|
Dim URLParametros As New Hashtable
|
||||||
|
|
||||||
|
For Each Tmp In P1
|
||||||
|
P2 = Tmp.Replace("%26%", "&").Split("="c)
|
||||||
|
URLParametros.Add(P2(0).ToString.ToUpper, P2(1))
|
||||||
|
Next
|
||||||
|
Return URLParametros
|
||||||
|
End Function
|
||||||
Public Sub RegistraScript(Script As String, Optional valuetick As String = "")
|
Public Sub RegistraScript(Script As String, Optional valuetick As String = "")
|
||||||
Dim Rdm As Random = New Random()
|
Dim Rdm As Random = New Random()
|
||||||
ScriptManager.RegisterStartupScript(Page, Me.GetType(), String.Format("{0}{1}{2}", (DateTime.Now.Ticks + 1), Rdm.Next(), valuetick), String.Format("<script type='text/javascript' language='javascript'>{0}</script>", Script), False)
|
ScriptManager.RegisterStartupScript(Page, Me.GetType(), String.Format("{0}{1}{2}", (DateTime.Now.Ticks + 1), Rdm.Next(), valuetick), String.Format("<script type='text/javascript' language='javascript'>{0}</script>", Script), False)
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ Imports Extensiones
|
|||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports Newtonsoft.Json.Linq
|
Imports Newtonsoft.Json.Linq
|
||||||
Imports System.Linq
|
Imports System.Linq
|
||||||
|
Imports System.Net.Http
|
||||||
|
|
||||||
Partial Class GPS_Trayectos
|
Partial Class GPS_Trayectos
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
#Region "P R O P I E D A D E S"
|
#Region "P R O P I E D A D E S"
|
||||||
Private Property DtGeocercasAgregar As DataTable
|
Private Property DtGeocercasAgregar As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -36,9 +37,9 @@ Partial Class GPS_Trayectos
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
ViewState("DtPosiciones") = value
|
ViewState("DtPosiciones") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
||||||
@@ -276,12 +277,12 @@ Partial Class GPS_Trayectos
|
|||||||
Private Sub LimpiaCampos()
|
Private Sub LimpiaCampos()
|
||||||
TxtNombre.Text = ""
|
TxtNombre.Text = ""
|
||||||
DdlDispositivo.SelectedIndex = 0
|
DdlDispositivo.SelectedIndex = 0
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "C O N S U L T A "
|
#Region "C O N S U L T A "
|
||||||
Protected Sub LnkConsultar_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkConsultar_Click(sender As Object, e As EventArgs)
|
||||||
CargaTrayectos()
|
CargaTrayectos()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
Protected Sub GvBarra_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvBarra_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -413,105 +414,29 @@ Partial Class GPS_Trayectos
|
|||||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
|
||||||
Dim CveTrayecto As Integer = GvRow.DataKey("CveTrayecto").ToEntero()
|
Dim CveTrayecto As Integer = GvRow.DataKey("CveTrayecto").ToEntero()
|
||||||
Dim EnviarLiga As Boolean = CBool(GvRow.DataKey("EnviarLiga"))
|
|
||||||
If CveTrayecto > 0 Then
|
If CveTrayecto > 0 Then
|
||||||
Dim DtInfoTrayecto As DataTable = Nothing
|
Dim Url = New Uri(String.Format("{0}/ashx/SIGGPS.ashx?metodo=EjecutaTrayectos&CveTrayecto={1}", "https://gps.signalsgps.com", CveTrayecto))
|
||||||
Using ObjGPS As New ClsGPS
|
Dim Retorno As String = "{}"
|
||||||
If ObjGPS.GetTrayectosDatos(CveTrayecto) Then
|
Try
|
||||||
DtInfoTrayecto = ObjGPS.DtSetResultados.Tables(0).Copy()
|
Using httpClient = New HttpClient()
|
||||||
|
httpClient.Timeout = New TimeSpan(0, 0, 15)
|
||||||
|
Using request = New HttpRequestMessage(HttpMethod.Get, Url)
|
||||||
|
Dim response = httpClient.SendAsync(request).Result
|
||||||
|
If response.StatusCode = Net.HttpStatusCode.OK Then
|
||||||
|
Retorno = response.Content.ReadAsStringAsync().Result
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
End Using
|
||||||
|
|
||||||
|
Dim Resp = JObject.Parse(Retorno)
|
||||||
|
If CBool(Resp("EnvioCorreo").ToString()) Then
|
||||||
|
Alert(Resp("Mensaje").ToString(), TipoMensaje.MsgInformacion)
|
||||||
|
Else
|
||||||
|
Alert(Resp("Mensaje").ToString(), TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
End Using
|
Catch ex As Exception
|
||||||
If DtInfoTrayecto IsNot Nothing AndAlso DtInfoTrayecto.Rows.Count > 0 Then
|
OnError("Ocurrió un error al descargar la factura", ex)
|
||||||
Dim Row As DataRow = DtInfoTrayecto.Rows(0)
|
End Try
|
||||||
GeneraCorreo(CveTrayecto, EnviarLiga, Row)
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Function GeneraCorreo(CveTrayecto As Integer, EnviarLiga As Boolean, Row As DataRow) As String
|
|
||||||
Dim strBody As New StringBuilder
|
|
||||||
Try
|
|
||||||
strBody.Append("<html xmlns=""http://www.w3.org/1999/xhtml""> ")
|
|
||||||
strBody.Append("<head> ")
|
|
||||||
strBody.Append(" <style type=""text/css""> ")
|
|
||||||
strBody.Append(" body ")
|
|
||||||
strBody.Append(" { ")
|
|
||||||
strBody.Append(" margin:0px; ")
|
|
||||||
strBody.Append(" padding:0px 0px 0px 0px; ")
|
|
||||||
strBody.Append(" font-family: Verdana, Arial, Helvetica, sans-serif; ")
|
|
||||||
strBody.Append(" font-size: 10px; ")
|
|
||||||
strBody.Append(" background-color:#F0F0F0; ")
|
|
||||||
strBody.Append(" } ")
|
|
||||||
strBody.Append(" a.Texto ")
|
|
||||||
strBody.Append(" { ")
|
|
||||||
strBody.Append(" font-size:11px; ")
|
|
||||||
strBody.Append(" background-color:#F7F6F3; ")
|
|
||||||
strBody.Append(" text-decoration:none; ")
|
|
||||||
strBody.Append(" font-weight:bold; ")
|
|
||||||
strBody.Append(" } ")
|
|
||||||
strBody.Append(" .Texto ")
|
|
||||||
strBody.Append(" { ")
|
|
||||||
strBody.Append(" background-color:#F7F6F3; color:Black; font-family:Verdana; font-size:10px; text-align:center; vertical-align:middle; height:20px;")
|
|
||||||
strBody.Append(" } ")
|
|
||||||
strBody.Append(" .TextoAlterno ")
|
|
||||||
strBody.Append(" { ")
|
|
||||||
strBody.Append(" background-color:White; color:Black; font-family:Verdana; font-size:10px; text-align:center; ")
|
|
||||||
strBody.Append(" vertical-align:middle; height:20px;")
|
|
||||||
strBody.Append(" } ")
|
|
||||||
strBody.Append(" .BarraIdentidad ")
|
|
||||||
strBody.Append(" { ")
|
|
||||||
strBody.Append(" color:#FFFFFF; ")
|
|
||||||
strBody.Append(" background:#F0F0F0; ")
|
|
||||||
strBody.Append(" font-weight:bold; ")
|
|
||||||
strBody.Append(" font-size:19px; ")
|
|
||||||
strBody.Append(" font-style:oblique; ")
|
|
||||||
strBody.Append(" } ")
|
|
||||||
strBody.Append(" .Titulos ")
|
|
||||||
strBody.Append(" { ")
|
|
||||||
strBody.Append(" background-color: Gray;")
|
|
||||||
strBody.Append(" color:White; ")
|
|
||||||
strBody.Append(" font-family:Verdana; font-size:12px; text-align:center; ")
|
|
||||||
strBody.Append(" vertical-align:middle; font-weight:bold; height:30px; ")
|
|
||||||
strBody.Append(" text-decoration:none; ")
|
|
||||||
strBody.Append(" } ")
|
|
||||||
strBody.Append(" .Verde {color: #00CC00;} ")
|
|
||||||
strBody.Append(" .Negro {color: #000000;} ")
|
|
||||||
strBody.Append(" .Rojo {color: #FF0000;} ")
|
|
||||||
strBody.Append(" </style> ")
|
|
||||||
strBody.Append("</head> ")
|
|
||||||
strBody.Append("<body> ")
|
|
||||||
strBody.Append(" <h5> ")
|
|
||||||
strBody.Append(" ")
|
|
||||||
strBody.Append(" </h5> ")
|
|
||||||
strBody.Append(" <div id=""C_divOC"" > <fieldset> <legend><b> Datos del Trayecto</b></legend> ")
|
|
||||||
strBody.Append(" <table border=""0"" cellpadding=""0"" cellspacing=""0"" width=""550px""> ")
|
|
||||||
strBody.Append(" <tr style=""height: 22px""> ")
|
|
||||||
strBody.AppendFormat(" <td> Trayecto:</td><td colspan=""3""><b>{0}</b></td> ", Row("Trayecto"))
|
|
||||||
strBody.Append(" </tr> ")
|
|
||||||
strBody.Append(" <tr style=""height: 22px""> ")
|
|
||||||
strBody.AppendFormat(" <td> Vehículo:</td><td colspan=""3""><b>{0}</b></td> ", Row("Vehiculo"))
|
|
||||||
strBody.Append(" </tr> ")
|
|
||||||
strBody.Append(" <tr style=""height: 22px""> ")
|
|
||||||
strBody.AppendFormat(" <td>Estatus:</td><td colspan='3'><b>{0}</b></td> ", Row("Estatus"))
|
|
||||||
strBody.Append(" </tr> ")
|
|
||||||
If EnviarLiga Then
|
|
||||||
strBody.Append(" <tr style=""height: 22px""> ")
|
|
||||||
strBody.AppendFormat(" <td>Rastrea Equipo:</td><td colspan='3'><b>{0}</b></td> ", String.Format("http://gps.signalsgps.com/GPS/RastreoTrayectos.aspx?P={0}", Encripta($"CveTrayecto={CveTrayecto}")))
|
|
||||||
strBody.Append(" </tr> ")
|
|
||||||
End If
|
|
||||||
strBody.Append(" <tr > ")
|
|
||||||
strBody.AppendFormat(" <td>Posición:</td><td colspan='3'><img src=""{0}""></td> ", Row("LigaImagen"))
|
|
||||||
strBody.Append(" </tr> ")
|
|
||||||
strBody.Append(" </table> ")
|
|
||||||
strBody.Append(" </fieldset> ")
|
|
||||||
strBody.Append(" <h5> ")
|
|
||||||
strBody.Append(" ")
|
|
||||||
strBody.Append(" </h5> ")
|
|
||||||
strBody.Append(" </div> ")
|
|
||||||
strBody.Append("</body></html>")
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Ocurrio un error al general el correo.", ex)
|
|
||||||
End Try
|
|
||||||
Return strBody.ToString()
|
|
||||||
End Function
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -128,6 +128,17 @@
|
|||||||
<asp:CheckBox ID="ChkEstatus" runat="server" />
|
<asp:CheckBox ID="ChkEstatus" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<label class="col-md-2 truncate">Tipo Aplicacion:</label>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<asp:DropDownList ID="DdlTipoAplicacion" DataTextField="Moneda" DataValueField="CveMoneda" CssClass="select2me" runat="server" Width="350px">
|
||||||
|
<asp:ListItem Value ="-1">Seleccione</asp:ListItem>
|
||||||
|
<asp:ListItem Value ="Descuento">Descuento</asp:ListItem>
|
||||||
|
<asp:ListItem Value ="PU">PU</asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -380,7 +380,9 @@ Partial Class Ventas_Promociones
|
|||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
Dim TieneError = False
|
Dim TieneError = False
|
||||||
ObjVentas.IniciaTransacSQL()
|
ObjVentas.IniciaTransacSQL()
|
||||||
CvePromocion = ObjVentas.AddPromociones(TxtPromocion.Text.Trim, If(IsDate(TxtFechaI.Text), TxtFechaI.Text.ToDate, MinFecha), If(IsDate(TxtFechaF.Text), TxtFechaF.Text.ToDate, MaxFecha), DdlVendedor.SelectedValue.ToEntero, DdlCliente.SelectedValue.ToEntero, ChkEstatus.Checked, DdlMoneda.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, DdlSubProyecto.SelectedValue.ToEntero)
|
CvePromocion = ObjVentas.AddPromociones(TxtPromocion.Text.Trim, If(IsDate(TxtFechaI.Text), TxtFechaI.Text.ToDate, MinFecha), If(IsDate(TxtFechaF.Text), TxtFechaF.Text.ToDate, MaxFecha),
|
||||||
|
DdlVendedor.SelectedValue.ToEntero, DdlCliente.SelectedValue.ToEntero, ChkEstatus.Checked, DdlMoneda.SelectedValue.ToEntero, UsuarioActual.CveUsuario,
|
||||||
|
UsuarioActual.CveEmpresa, DdlSubProyecto.SelectedValue.ToEntero, DdlTipoAplicacion.SelectedValue.ToString)
|
||||||
|
|
||||||
If CvePromocion > 0 Then
|
If CvePromocion > 0 Then
|
||||||
For Each Dr As DataRow In TempDT.Rows
|
For Each Dr As DataRow In TempDT.Rows
|
||||||
|
|||||||
@@ -5963,11 +5963,11 @@ Partial Class Ventas
|
|||||||
TmpDT.Rows(e.RowIndex)("TiempoEntrega") = GvPS.Rows(e.RowIndex).FCTextBox("TxtTiempoEntrega").Text.Trim
|
TmpDT.Rows(e.RowIndex)("TiempoEntrega") = GvPS.Rows(e.RowIndex).FCTextBox("TxtTiempoEntrega").Text.Trim
|
||||||
TmpDT.Rows(e.RowIndex)("PU") = PU
|
TmpDT.Rows(e.RowIndex)("PU") = PU
|
||||||
TmpDT.Rows(e.RowIndex)("Descuento") = Descuento
|
TmpDT.Rows(e.RowIndex)("Descuento") = Descuento
|
||||||
TmpDT.Rows(e.RowIndex)("TotalImporte") = Math.Round(Cantidad * PU, NumeroDecimales)
|
TmpDT.Rows(e.RowIndex)("TotalImporte") = (Cantidad * PU).RoundSQL(NumeroDecimales)
|
||||||
TmpDT.Rows(e.RowIndex)("ImporteIVA") = Math.Round(TmpDT.Rows(e.RowIndex)("PorcentajeIVA").ToString.ToDecimal * TotalCalculableImpuestosIVA, NumeroDecimales)
|
TmpDT.Rows(e.RowIndex)("ImporteIVA") = (TmpDT.Rows(e.RowIndex)("PorcentajeIVA").ToString.ToDecimal * TotalCalculableImpuestosIVA).RoundSQL(NumeroDecimales)
|
||||||
TmpDT.Rows(e.RowIndex)("ImporteIEPS") = Math.Round(TmpDT.Rows(e.RowIndex)("PorcentajeIEPS").ToString.ToDecimal * TotalCalculableImpuestos, NumeroDecimales)
|
TmpDT.Rows(e.RowIndex)("ImporteIEPS") = (TmpDT.Rows(e.RowIndex)("PorcentajeIEPS").ToString.ToDecimal * TotalCalculableImpuestos).RoundSQL(NumeroDecimales)
|
||||||
TmpDT.Rows(e.RowIndex)("ImporteRetIVA") = Math.Round(ClienteRetIVA * TotalCalculableImpuestos, NumeroDecimales)
|
TmpDT.Rows(e.RowIndex)("ImporteRetIVA") = (ClienteRetIVA * TotalCalculableImpuestos).RoundSQL(NumeroDecimales)
|
||||||
TmpDT.Rows(e.RowIndex)("ImporteRetISR") = Math.Round(ClienteRetISR * TotalCalculableImpuestos, NumeroDecimales)
|
TmpDT.Rows(e.RowIndex)("ImporteRetISR") = (ClienteRetISR * TotalCalculableImpuestos).RoundSQL(NumeroDecimales)
|
||||||
TmpDT.Rows(e.RowIndex)("PorcentajeRetIVA") = ClienteRetIVA
|
TmpDT.Rows(e.RowIndex)("PorcentajeRetIVA") = ClienteRetIVA
|
||||||
TmpDT.Rows(e.RowIndex)("PorcentajeRetISR") = ClienteRetISR
|
TmpDT.Rows(e.RowIndex)("PorcentajeRetISR") = ClienteRetISR
|
||||||
TmpDT.Rows(e.RowIndex)("CuentaPredial") = CuentaPredial
|
TmpDT.Rows(e.RowIndex)("CuentaPredial") = CuentaPredial
|
||||||
@@ -6387,8 +6387,7 @@ Partial Class Ventas
|
|||||||
Continue For
|
Continue For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then
|
||||||
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then ' si tiene relacionada una OC,
|
|
||||||
'VALIDA EXISTENCIA
|
'VALIDA EXISTENCIA
|
||||||
CveProducto = dr("CvePS").ToString.ToEntero
|
CveProducto = dr("CvePS").ToString.ToEntero
|
||||||
CveUnidad = dr("CveUM").ToString.ToEntero
|
CveUnidad = dr("CveUM").ToString.ToEntero
|
||||||
@@ -6499,7 +6498,7 @@ Partial Class Ventas
|
|||||||
'Valida si en caso de que el detalle tenga llantas o polizas se agreguén kilometraje/serie en la parte de observaciones(solo para el caso de empresas llanteras)
|
'Valida si en caso de que el detalle tenga llantas o polizas se agreguén kilometraje/serie en la parte de observaciones(solo para el caso de empresas llanteras)
|
||||||
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
||||||
|
|
||||||
If txtkilometraje.text.toentero = 0 Then
|
If TxtKilometraje.Text.ToEntero = 0 Then
|
||||||
'cuando es la clasificacion de llantas
|
'cuando es la clasificacion de llantas
|
||||||
Dim FaltaObservacion As Integer = TmpDT.FiltroPrimeroValor("CveClasificacion", "CveClasificacion = 20342").ToEntero
|
Dim FaltaObservacion As Integer = TmpDT.FiltroPrimeroValor("CveClasificacion", "CveClasificacion = 20342").ToEntero
|
||||||
If FaltaObservacion = 20342 Then
|
If FaltaObservacion = 20342 Then
|
||||||
@@ -6918,8 +6917,7 @@ Partial Class Ventas
|
|||||||
'ENVIAR POLIZA VIRTUAL
|
'ENVIAR POLIZA VIRTUAL
|
||||||
If ErrorList.Count = 0 Then
|
If ErrorList.Count = 0 Then
|
||||||
If UsuarioActual.Empresa.Funcionalidad(576) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(576) = "1" Then
|
||||||
Dim TipoPoliza As Integer = 1
|
GeneraPolizaVentaWS(ObjFactura)
|
||||||
GeneraPolizaVentaWS(ObjFactura, TipoPoliza)
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -9172,7 +9170,7 @@ Partial Class Ventas
|
|||||||
CveVentaRelacion:=(If(factura.CveVentaRelacion.ToEntero > 0, factura.CveVentaRelacion, -1)), ImporteRelacion:=(If(factura.ImporteRelacion <> Nothing, factura.ImporteRelacion, -1)),
|
CveVentaRelacion:=(If(factura.CveVentaRelacion.ToEntero > 0, factura.CveVentaRelacion, -1)), ImporteRelacion:=(If(factura.ImporteRelacion <> Nothing, factura.ImporteRelacion, -1)),
|
||||||
CveTipoAmortizacionAnticipo:=factura.CveTipoAmortizacionAnticipo, CveEmpresaCRM:=CveEmpresaCRM, EsInterno:=EsInterno, CveAcercamientoCRM:=CveAcercamientoCRM,
|
CveTipoAmortizacionAnticipo:=factura.CveTipoAmortizacionAnticipo, CveEmpresaCRM:=CveEmpresaCRM, EsInterno:=EsInterno, CveAcercamientoCRM:=CveAcercamientoCRM,
|
||||||
DiasCredito:=factura.DiasCredito, EsDiasCreditoFijo:=factura.EsDiasCreditoFijo, AnticipoEspecial:=If(TrAntEspecial.Visible, ChkAntEspecial.Checked, False),
|
DiasCredito:=factura.DiasCredito, EsDiasCreditoFijo:=factura.EsDiasCreditoFijo, AnticipoEspecial:=If(TrAntEspecial.Visible, ChkAntEspecial.Checked, False),
|
||||||
Kilometraje:=TxtKilometraje.Text.todouble) Then
|
Kilometraje:=TxtKilometraje.Text.ToDouble) Then
|
||||||
|
|
||||||
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
|
|
||||||
@@ -14281,18 +14279,19 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Row("IVA") = Row("PorcentajeIVA")
|
Row("IVA") = Row("PorcentajeIVA")
|
||||||
Row("ImporteIVA") = Math.Round(Row("PorcentajeIVA").ToString.ToDecimal * TotalCalculableImpuestosIVA, NumeroDecimales)
|
Row("ImporteIVA") = (Row("PorcentajeIVA").ToString.ToDecimal * TotalCalculableImpuestosIVA).RoundSQL(NumeroDecimales)
|
||||||
Row("ImporteRetIVA") = Math.Round(ClienteRetIVA * TotalCalculableImpuestos, NumeroDecimales)
|
Row("ImporteRetIVA") = (ClienteRetIVA * TotalCalculableImpuestos).RoundSQL(NumeroDecimales)
|
||||||
Row("ImporteRetISR") = Math.Round(ClienteRetISR * TotalCalculableImpuestos, NumeroDecimales)
|
Row("ImporteRetISR") = (ClienteRetISR * TotalCalculableImpuestos).RoundSQL(NumeroDecimales)
|
||||||
Row("PorcentajeRetIVA") = ClienteRetIVA
|
Row("PorcentajeRetIVA") = ClienteRetIVA
|
||||||
Row("PorcentajeRetISR") = ClienteRetISR
|
Row("PorcentajeRetISR") = ClienteRetISR
|
||||||
Row("PorcentajeIEPS") = DrPS("IEPSPorcentaje")
|
Row("PorcentajeIEPS") = DrPS("IEPSPorcentaje")
|
||||||
Row("ImporteIEPS") = Math.Round(DrPS("IEPSPorcentaje").ToString.ToDecimal * TotalCalculableImpuestos, NumeroDecimales)
|
Row("ImporteIEPS") = (DrPS("IEPSPorcentaje").ToString.ToDecimal * TotalCalculableImpuestos).RoundSQL(NumeroDecimales)
|
||||||
Row("IEPS") = Row("ImporteIEPS")
|
Row("IEPS") = Row("ImporteIEPS")
|
||||||
Row("Descuento") = Math.Round(Descuento, NumeroDecimales)
|
Row("Descuento") = (Descuento).RoundSQL(NumeroDecimales)
|
||||||
Row("TipoDescuento") = HdnTipoDescuento.Value
|
Row("TipoDescuento") = HdnTipoDescuento.Value
|
||||||
Row("Total") = (Cantidad * PU)
|
Row("Total") = (Cantidad * PU)
|
||||||
Row("TotalImporte") = Math.Round(Cantidad * PU, NumeroDecimales)
|
Row("TotalImporte") = (Cantidad * PU).RoundSQL(NumeroDecimales)
|
||||||
|
|
||||||
'Row("AsientoContableVentas") = DrPS("AsientoContableVentas")
|
'Row("AsientoContableVentas") = DrPS("AsientoContableVentas")
|
||||||
' Row("IdCtaContVentas") = IdCtaContable
|
' Row("IdCtaContVentas") = IdCtaContable
|
||||||
' Row("AplicaParaConcepto") = AplicaParaConcepto
|
' Row("AplicaParaConcepto") = AplicaParaConcepto
|
||||||
@@ -15486,7 +15485,7 @@ Partial Class Ventas
|
|||||||
If ConSalida AndAlso Not OcurrioError Then
|
If ConSalida AndAlso Not OcurrioError Then
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(573) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(573) = "1" Then
|
||||||
OcurrioError = GenerarMovimientoAlmacenVirtual(CveRemision, ObjInventario, ObjFactura)
|
OcurrioError = Not GenerarMovimientoAlmacenVirtual(CveRemision, ObjInventario, ObjFactura)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
@@ -15811,7 +15810,7 @@ Partial Class Ventas
|
|||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return OcurrioError
|
Return Not OcurrioError
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
Private Function SalidaAlmacenMateriales(ByRef ObjInventario As ClsInventarios, CveOS As Integer, ByRef ObjConta As ClsContabilidad, ConSalida As Boolean, ConceptoMovimiento As Integer) As Boolean
|
Private Function SalidaAlmacenMateriales(ByRef ObjInventario As ClsInventarios, CveOS As Integer, ByRef ObjConta As ClsContabilidad, ConSalida As Boolean, ConceptoMovimiento As Integer) As Boolean
|
||||||
@@ -23945,23 +23944,22 @@ Partial Class Ventas
|
|||||||
GvCodigosUnicos.DataBind()
|
GvCodigosUnicos.DataBind()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub GeneraPolizaVentaWS(ObjFactura As Modelos.Factura, TipoPoliza As Integer)
|
Protected Sub GeneraPolizaVentaWS(ObjFactura As Modelos.Factura)
|
||||||
'TipoPoliza: 01 Venta, 02 Ajuste, 03 Garantía
|
|
||||||
Try
|
Try
|
||||||
For Each Row As GridViewRow In GvCodigosUnicos.Rows
|
For Each Row As GridViewRow In GvCodigosUnicos.Rows
|
||||||
If Row.RowType = DataControlRowType.DataRow Then
|
If Row.RowType = DataControlRowType.DataRow Then
|
||||||
Dim obj As New Modelos.MPolizaVentaWS
|
Dim obj As New Modelos.MPolizaVentaWS
|
||||||
'DATOS DEL CLIENTE
|
'DATOS DEL CLIENTE
|
||||||
obj.customer_name = ObjFactura.Cliente.Nombre
|
obj.customer_name = ObjFactura.Cliente.Nombre
|
||||||
obj.customer_last_name1 = "."
|
obj.customer_last_name1 = ""
|
||||||
obj.customer_last_name2 = ""
|
obj.customer_last_name2 = ""
|
||||||
obj.customer_birthday = Nothing
|
obj.customer_birthday = Nothing
|
||||||
obj.customer_phone = ObjFactura.Cliente.Telefono
|
obj.customer_phone = ObjFactura.Cliente.Telefono
|
||||||
obj.customer_email = ObjFactura.Cliente.Mail
|
obj.customer_email = ObjFactura.Cliente.Mail
|
||||||
obj.customer_gender = "03" 'OTRO GENERO
|
obj.customer_gender = "03" 'OTRO GENERO
|
||||||
obj.customer_advertising = False
|
obj.customer_advertising = False
|
||||||
obj.customer_car_brand = "01"
|
obj.customer_car_brand = "00"
|
||||||
obj.customer_car_model = "01"
|
obj.customer_car_model = "00"
|
||||||
obj.customer_car_year = ObjFactura.Fecha.Year
|
obj.customer_car_year = ObjFactura.Fecha.Year
|
||||||
|
|
||||||
'DATOS DE VENTA
|
'DATOS DE VENTA
|
||||||
@@ -23971,12 +23969,12 @@ Partial Class Ventas
|
|||||||
obj.sale_type_service = "02" 'COMERCIAL
|
obj.sale_type_service = "02" 'COMERCIAL
|
||||||
obj.sale_total = ObjFactura.Total
|
obj.sale_total = ObjFactura.Total
|
||||||
obj.sale_discount = ObjFactura.Descuento
|
obj.sale_discount = ObjFactura.Descuento
|
||||||
obj.sale_id = ObjFactura.CveVenta.ToString
|
obj.sale_id = String.Format("{0}{1}{2}", ObjFactura.Serie, ObjFactura.Folio, ObjFactura.CveVenta)
|
||||||
|
|
||||||
'DATOS DEL PRODUCTO
|
'DATOS DEL PRODUCTO
|
||||||
obj.product_code = Row.DataKey("IdProductoPolizaVirtual").ToString()
|
obj.product_code = Row.DataKey("IdProductoPolizaVirtual").ToString()
|
||||||
obj.product_unique_code = Row.FCTextBox("TxtCodigoUnico").Text 'se indique el código único de la batería. (SERIE LOTE)
|
obj.product_unique_code = Row.FCTextBox("TxtCodigoUnico").Text 'se indique el código único de la batería. (SERIE LOTE)
|
||||||
obj.product_sale_type = "0" & TipoPoliza 'VENTA
|
obj.product_sale_type = "01 " 'VENTA
|
||||||
|
|
||||||
Dim FechaUsado As DateTime = Row.DataKey("FechaAjuste").ToString().ToDateTime()
|
Dim FechaUsado As DateTime = Row.DataKey("FechaAjuste").ToString().ToDateTime()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user