This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -273,3 +273,4 @@ __pycache__/
|
|||||||
/Default.aspx.cs
|
/Default.aspx.cs
|
||||||
/App_WebReferences/WSRDLC
|
/App_WebReferences/WSRDLC
|
||||||
/wwwSIGGIT.rar
|
/wwwSIGGIT.rar
|
||||||
|
/Front
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ Namespace Sigfox
|
|||||||
'respuesta.Datos = Datos
|
'respuesta.Datos = Datos
|
||||||
|
|
||||||
Dim DevID As String = params.device
|
Dim DevID As String = params.device
|
||||||
Dim Lat As Double = params.lat.ToDouble()
|
Dim Lat As Double = 90 'params.lat.ToDouble()
|
||||||
Dim Lng As Double = params.lng.ToDouble()
|
Dim Lng As Double = 90 'params.lng.ToDouble()
|
||||||
Dim Fecha As DateTime = params.time.ToDouble().ConvertFromUnixTimestamp()
|
Dim Fecha As DateTime = params.time.ToDouble().ConvertFromUnixTimestamp()
|
||||||
Dim Velocidad As Double = 0
|
Dim Velocidad As Double = 0
|
||||||
Dim MessageType As Integer = 0
|
Dim MessageType As Integer = 0
|
||||||
@@ -68,12 +68,16 @@ Namespace Sigfox
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
Dim response As HttpResponseMessage
|
Dim response As HttpResponseMessage
|
||||||
If datos.Length > 0 Then
|
If respuesta.Correcto Then
|
||||||
Dim jsonString As String = $"{{""{params.device}"":{{""downlinkData"":""{datos}""}}}}"
|
If datos.Length > 0 Then
|
||||||
response = Me.Request.CreateResponse(HttpStatusCode.OK)
|
response = Me.Request.CreateResponse(HttpStatusCode.OK)
|
||||||
response.Content = New StringContent(jsonString, Encoding.UTF8, "application/json")
|
response.Content = New StringContent($"{{""{params.device}"":{{""downlinkData"":""{datos}""}}}}", Encoding.UTF8, "application/json")
|
||||||
|
Else
|
||||||
|
response = Request.CreateResponse(HttpStatusCode.NoContent, "")
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
response = Request.CreateResponse(HttpStatusCode.NoContent, "")
|
response = Me.Request.CreateResponse(HttpStatusCode.OK)
|
||||||
|
response.Content = New StringContent($"{{""Fail"":{{""Msg"":""Ocurrió un error al agregar la trama""}}}}", Encoding.UTF8, "application/json")
|
||||||
End If
|
End If
|
||||||
Return response
|
Return response
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1313,30 +1313,30 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiario" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiario" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Enabled ="false" Text="Salario Diario (SDD):"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Enabled ="false" Text="Salario Diario (SDD):"></asp:Label>
|
||||||
<asp:CompareValidator ID="CVSalarioDiario" runat="server" ControlToValidate="TxtSalarioDiario" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
<%--<asp:CompareValidator ID="CVSalarioDiario" runat="server" ControlToValidate="TxtSalarioDiario" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSDI" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSDI" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSDI" Text="Salario Diario Integrado (SDI):"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSDI" Text="Salario Diario Integrado (SDI):"></asp:Label>
|
||||||
<asp:CompareValidator ID="CVSDI" runat="server" ControlToValidate="TxtSDI" CssClass="help-block errorimput" ErrorMessage="El campo <b>''SDI''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
<%--<asp:CompareValidator ID="CVSDI" runat="server" ControlToValidate="TxtSDI" CssClass="help-block errorimput" ErrorMessage="El campo <b>''SDI''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright" style="display: none;">
|
<div class="form-group form-md-line-input input-iconright" style="display: none;">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiarioPago" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiarioPago" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioPago" Text="Salario Diario de Pago:"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioPago" Text="Salario Diario de Pago:"></asp:Label>
|
||||||
<asp:CompareValidator ID="CVSalario" runat="server" ControlToValidate="TxtSalarioDiarioPago" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario de Pago''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
<%--<asp:CompareValidator ID="CVSalario" runat="server" ControlToValidate="TxtSalarioDiarioPago" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario de Pago''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<asp:Panel runat="server" ID="pnlSalarioIMSS" CssClass="form-group form-md-line-input input-iconright">
|
<asp:Panel runat="server" ID="pnlSalarioIMSS" CssClass="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioCotizado" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSalarioCotizado" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioCotizado" Text="Salario Diario IMSS:"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioCotizado" Text="Salario Diario IMSS:"></asp:Label>
|
||||||
<asp:CompareValidator ID="CVSDT" runat="server" ControlToValidate="TxtSalarioCotizado" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario Cotizado''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
<%--<asp:CompareValidator ID="CVSDT" runat="server" ControlToValidate="TxtSalarioCotizado" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario Cotizado''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
|
|
||||||
<i></i>
|
<i></i>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|||||||
@@ -455,7 +455,7 @@ Partial Class Site
|
|||||||
If objgen.DtResultados.Rows.Count > 0 Then
|
If objgen.DtResultados.Rows.Count > 0 Then
|
||||||
For Each dtrow As DataRow In objgen.DtResultados.Rows
|
For Each dtrow As DataRow In objgen.DtResultados.Rows
|
||||||
If dtrow("Contador").ToString().ToEntero() > 0 Then
|
If dtrow("Contador").ToString().ToEntero() > 0 Then
|
||||||
Notificaciones.Append(ItemNotificaciones(String.Format("Se registro una solicitud de descarga del sat con {0} XML del SAT", dtrow("Contador")), Ico:="fa fa-tags", Tipo:="info", Link:=String.Format("javascript:$('#{0}').val({1});$('#{2}').click();", TxtCveNotisat.ClientID, dtrow("CveSolicitudSat").ToString().ToEntero(), btnoknotisat.ClientID), tonewpage:=False)) '
|
Notificaciones.Append(ItemNotificaciones(String.Format("Se registro una solicitud de descarga del SAT con {0} XML", dtrow("Contador")), Ico:="fa fa-tags", Tipo:="info", Link:=String.Format("javascript:$('#{0}').val({1});$('#{2}').click();", TxtCveNotisat.ClientID, dtrow("CveSolicitudSat").ToString().ToEntero(), btnoknotisat.ClientID), tonewpage:=False)) '
|
||||||
countNotificaciones = countNotificaciones + 1
|
countNotificaciones = countNotificaciones + 1
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -17,9 +17,14 @@
|
|||||||
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net40" />
|
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net40" />
|
||||||
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
|
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
|
||||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
|
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
|
||||||
<package id="Microsoft.Owin" version="3.0.1" targetFramework="net45" />
|
<package id="Microsoft.IdentityModel.JsonWebTokens" version="5.3.0" targetFramework="net45" />
|
||||||
|
<package id="Microsoft.IdentityModel.Logging" version="5.3.0" targetFramework="net45" />
|
||||||
|
<package id="Microsoft.IdentityModel.Tokens" version="5.3.0" targetFramework="net45" />
|
||||||
|
<package id="Microsoft.Owin" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net45" />
|
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net45" />
|
<package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net45" />
|
||||||
|
<package id="Microsoft.Owin.Security.Jwt" version="4.1.0" targetFramework="net45" />
|
||||||
|
<package id="Microsoft.Owin.Security.OAuth" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1358.0" targetFramework="net45" />
|
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1358.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportViewer.2015.Runtime" version="12.0.2.2402" targetFramework="net4" />
|
<package id="Microsoft.ReportViewer.2015.Runtime" version="12.0.2.2402" targetFramework="net4" />
|
||||||
<package id="Microsoft.ReportViewer.Common.v12" version="12.0.0.1" targetFramework="net45" />
|
<package id="Microsoft.ReportViewer.Common.v12" version="12.0.0.1" targetFramework="net45" />
|
||||||
@@ -28,8 +33,10 @@
|
|||||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net4" />
|
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net4" />
|
||||||
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net4" />
|
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net4" />
|
||||||
<package id="NC-OS-SessionStateProvider" version="4.4.0.0" targetFramework="net40" />
|
<package id="NC-OS-SessionStateProvider" version="4.4.0.0" targetFramework="net40" />
|
||||||
|
<package id="Newtonsoft.Json" version="10.0.1" targetFramework="net45" />
|
||||||
<package id="NuGet.Core" version="2.8.0" targetFramework="net4" />
|
<package id="NuGet.Core" version="2.8.0" targetFramework="net4" />
|
||||||
<package id="Owin" version="1.0" targetFramework="net45" />
|
<package id="Owin" version="1.0" targetFramework="net45" />
|
||||||
<package id="StackExchange.Redis.StrongName" version="1.0.488" targetFramework="net40" />
|
<package id="StackExchange.Redis.StrongName" version="1.0.488" targetFramework="net40" />
|
||||||
|
<package id="System.IdentityModel.Tokens.Jwt" version="5.3.0" targetFramework="net45" />
|
||||||
<package id="WebGrease" version="1.6.0" targetFramework="net40" />
|
<package id="WebGrease" version="1.6.0" targetFramework="net40" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -80,6 +80,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user