diff --git a/.gitignore b/.gitignore index 7462e83a5..609c288bd 100644 --- a/.gitignore +++ b/.gitignore @@ -273,3 +273,4 @@ __pycache__/ /Default.aspx.cs /App_WebReferences/WSRDLC /wwwSIGGIT.rar +/Front diff --git a/App_Code/WsSigfox.vb b/App_Code/WsSigfox.vb index 767dcf9e4..225d6c984 100644 --- a/App_Code/WsSigfox.vb +++ b/App_Code/WsSigfox.vb @@ -27,8 +27,8 @@ Namespace Sigfox 'respuesta.Datos = Datos Dim DevID As String = params.device - Dim Lat As Double = params.lat.ToDouble() - Dim Lng As Double = params.lng.ToDouble() + Dim Lat As Double = 90 'params.lat.ToDouble() + Dim Lng As Double = 90 'params.lng.ToDouble() Dim Fecha As DateTime = params.time.ToDouble().ConvertFromUnixTimestamp() Dim Velocidad As Double = 0 Dim MessageType As Integer = 0 @@ -68,12 +68,16 @@ Namespace Sigfox End Try Dim response As HttpResponseMessage - If datos.Length > 0 Then - Dim jsonString As String = $"{{""{params.device}"":{{""downlinkData"":""{datos}""}}}}" - response = Me.Request.CreateResponse(HttpStatusCode.OK) - response.Content = New StringContent(jsonString, Encoding.UTF8, "application/json") + If respuesta.Correcto Then + If datos.Length > 0 Then + response = Me.Request.CreateResponse(HttpStatusCode.OK) + response.Content = New StringContent($"{{""{params.device}"":{{""downlinkData"":""{datos}""}}}}", Encoding.UTF8, "application/json") + Else + response = Request.CreateResponse(HttpStatusCode.NoContent, "") + End If 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 Return response End Function diff --git a/Bin/Microsoft.Owin.Security.OAuth.dll b/Bin/Microsoft.Owin.Security.OAuth.dll index 8f95e3053..650eb379b 100644 Binary files a/Bin/Microsoft.Owin.Security.OAuth.dll and b/Bin/Microsoft.Owin.Security.OAuth.dll differ diff --git a/Bin/Microsoft.Owin.Security.dll b/Bin/Microsoft.Owin.Security.dll index 54901f282..44d45c92c 100644 Binary files a/Bin/Microsoft.Owin.Security.dll and b/Bin/Microsoft.Owin.Security.dll differ diff --git a/Bin/Microsoft.Owin.dll b/Bin/Microsoft.Owin.dll index 37dc69b0e..713f03dd2 100644 Binary files a/Bin/Microsoft.Owin.dll and b/Bin/Microsoft.Owin.dll differ diff --git a/Nomina/Nomina2.aspx.cs b/Nomina/Nomina2.aspx.cs index e60bfcbcf..753099b93 100644 --- a/Nomina/Nomina2.aspx.cs +++ b/Nomina/Nomina2.aspx.cs @@ -1425,6 +1425,93 @@ public partial class Nomina_Nomina2 : ClsPaginas } + private class NConcepto + { + public string NoConceptoP { get; set; } + public string ConceptoP { get; set; } + public string LabelValorP { get; set; } + public int CveConceptoP { get; set; } + public double ImporteP { get; set; } + public double ValorP { get; set; } + public int EstatusP { get; set; } + public bool isEditedP { get; set; } + public int isOnlyBisibleP { get; set; } + + + public string NoConceptoD { get; set; } + public string ConceptoD { get; set; } + public string LabelValorD { get; set; } + public int CveConceptoD { get; set; } + public double ImporteD { get; set; } + public double ValorD { get; set; } + public int EstatusD { get; set; } + public bool isEditedD { get; set; } + public int isOnlyBisibleD { get; set; } + } + + protected void GvConceptos_RowDataBound(object sender, GridViewRowEventArgs e) + { + + if (e.Row.RowType == DataControlRowType.DataRow) + { + // Datakeys + // Concepto,CveConcepto,Importe,Estatus,ConceptoD,CveConceptoD,ImporteD,EstatusD + int CveConcepto = e.Row.DataKey("CveConceptoP").ToEntero(); + int CveConceptoD = e.Row.DataKey("CveConceptoD").ToEntero(); + // Dim Importe As Decimal = e.Row.DataKey("Importe").ToDecimal() + // Dim ImporteD As Decimal = e.Row.DataKey("ImporteD").ToDecimal() + int Estatus = e.Row.DataKey("EstatusP").ToEntero(); + int EstatusD = e.Row.DataKey("EstatusD").ToEntero(); + int isOnlyBisibleP = e.Row.DataKey("isOnlyBisibleP").ToEntero(); + int isOnlyBisibleD = e.Row.DataKey("isOnlyBisibleD").ToEntero(); + + // Controles + Label LtlConcepto = e.Row.FCLabel("LtlConcepto"); + LinkButton LnkConcepto = e.Row.FCLinkButton("LnkConcepto"); + Label LtlConceptoD = e.Row.FCLabel("LtlConceptoD"); + LinkButton LnkConceptoD = e.Row.FCLinkButton("LnkConceptod"); + Label LtlImporte = e.Row.FCLabel("LtlImporte"); + LinkButton LnkImporte = e.Row.FCLinkButton("LnkImporte"); + Label LtlImporteD = e.Row.FCLabel("LtlImporteD"); + LinkButton LnkImporteD = e.Row.FCLinkButton("LnkImporteD"); + //isEditedD + if (isOnlyBisibleP == 1) + { + e.Row.CssClass = string.Format("{0} isOnlyBisibleP", e.Row.CssClass); + } + if (isOnlyBisibleD == 1) + { + e.Row.CssClass = string.Format("{0} isOnlyBisibleD", e.Row.CssClass); + } + + + if (Estatus < -1 | EstatusD < -1) + e.Row.CssClass = "ConceptosTotales"; + if (CveConcepto == 0 && (Estatus == 0 || Estatus == -1 || Estatus == -3)) + LtlImporte.Text = ""; + + if (CveConceptoD == 0 && (EstatusD == 0 || EstatusD == -1)) + LtlImporteD.Text = ""; + + if (Estatus == -1) + LtlConcepto.Visible = false; + else if (Estatus > 0) + LtlImporte.Visible = false; + + if (EstatusD == -1) + LtlConceptoD.Visible = false; + else if (EstatusD > 0) + LtlImporteD.Visible = false; + + + LnkConcepto.Visible = !LtlConcepto.Visible; + LnkConceptoD.Visible = !LtlConceptoD.Visible; + LnkImporte.Visible = !LtlImporte.Visible; + LnkImporteD.Visible = !LtlImporteD.Visible; + } + } + #endregion + protected void LnkFormatoTabular_Click(object sender, EventArgs e) { try @@ -1641,93 +1728,6 @@ public partial class Nomina_Nomina2 : ClsPaginas Alert("Ocurrio un error al generar el Formato de nominas" + ex.ToString()); } } - private class NConcepto - { - public string NoConceptoP { get; set; } - public string ConceptoP { get; set; } - public string LabelValorP { get; set; } - public int CveConceptoP { get; set; } - public double ImporteP { get; set; } - public double ValorP { get; set; } - public int EstatusP { get; set; } - public bool isEditedP { get; set; } - public int isOnlyBisibleP { get; set; } - - - public string NoConceptoD { get; set; } - public string ConceptoD { get; set; } - public string LabelValorD { get; set; } - public int CveConceptoD { get; set; } - public double ImporteD { get; set; } - public double ValorD { get; set; } - public int EstatusD { get; set; } - public bool isEditedD { get; set; } - public int isOnlyBisibleD { get; set; } - } - - protected void GvConceptos_RowDataBound(object sender, GridViewRowEventArgs e) - { - - if (e.Row.RowType == DataControlRowType.DataRow) - { - // Datakeys - // Concepto,CveConcepto,Importe,Estatus,ConceptoD,CveConceptoD,ImporteD,EstatusD - int CveConcepto = e.Row.DataKey("CveConceptoP").ToEntero(); - int CveConceptoD = e.Row.DataKey("CveConceptoD").ToEntero(); - // Dim Importe As Decimal = e.Row.DataKey("Importe").ToDecimal() - // Dim ImporteD As Decimal = e.Row.DataKey("ImporteD").ToDecimal() - int Estatus = e.Row.DataKey("EstatusP").ToEntero(); - int EstatusD = e.Row.DataKey("EstatusD").ToEntero(); - int isOnlyBisibleP = e.Row.DataKey("isOnlyBisibleP").ToEntero(); - int isOnlyBisibleD = e.Row.DataKey("isOnlyBisibleD").ToEntero(); - - // Controles - Label LtlConcepto = e.Row.FCLabel("LtlConcepto"); - LinkButton LnkConcepto = e.Row.FCLinkButton("LnkConcepto"); - Label LtlConceptoD = e.Row.FCLabel("LtlConceptoD"); - LinkButton LnkConceptoD = e.Row.FCLinkButton("LnkConceptod"); - Label LtlImporte = e.Row.FCLabel("LtlImporte"); - LinkButton LnkImporte = e.Row.FCLinkButton("LnkImporte"); - Label LtlImporteD = e.Row.FCLabel("LtlImporteD"); - LinkButton LnkImporteD = e.Row.FCLinkButton("LnkImporteD"); - //isEditedD - if (isOnlyBisibleP == 1) - { - e.Row.CssClass = string.Format("{0} isOnlyBisibleP", e.Row.CssClass); - } - if (isOnlyBisibleD == 1) - { - e.Row.CssClass = string.Format("{0} isOnlyBisibleD", e.Row.CssClass); - } - - - if (Estatus < -1 | EstatusD < -1) - e.Row.CssClass = "ConceptosTotales"; - if (CveConcepto == 0 && (Estatus == 0 || Estatus == -1 || Estatus == -3)) - LtlImporte.Text = ""; - - if (CveConceptoD == 0 && (EstatusD == 0 || EstatusD == -1)) - LtlImporteD.Text = ""; - - if (Estatus == -1) - LtlConcepto.Visible = false; - else if (Estatus > 0) - LtlImporte.Visible = false; - - if (EstatusD == -1) - LtlConceptoD.Visible = false; - else if (EstatusD > 0) - LtlImporteD.Visible = false; - - - LnkConcepto.Visible = !LtlConcepto.Visible; - LnkConceptoD.Visible = !LtlConceptoD.Visible; - LnkImporte.Visible = !LtlImporte.Visible; - LnkImporteD.Visible = !LtlImporteD.Visible; - } - } - #endregion - protected void LnkConcepto_Click(object sender, EventArgs e) { diff --git a/RH/ActualizacionMasiva.aspx b/RH/ActualizacionMasiva.aspx index e5223da2a..799f148ba 100644 --- a/RH/ActualizacionMasiva.aspx +++ b/RH/ActualizacionMasiva.aspx @@ -10,20 +10,26 @@ Cargas Masivas +
  • Carga Masiva
  • -
    +
    + + + +
    +
      -
    • Cliente: + <%--
    • Cliente:
    • + --%>
    • Proyecto: @@ -34,26 +40,21 @@
    • -
    -
    -
    - - - -
    -
    - +
    +
    @@ -61,55 +62,56 @@

    - - - - - - - - -
    + +
    -
    - +
    +
    + + Nombre - + Proyecto - + + <%----%> Sub Proyecto - + + <%----%> Turno - - + + <%----%> - + <%-- Supervisor + - - + --%> + SDD @@ -117,7 +119,7 @@ - + SDI @@ -125,9 +127,9 @@ - + - + SD IMSS @@ -140,11 +142,69 @@ -
    + + +