diff --git a/RH/RepAusentismoLaboral.aspx b/RH/RepAusentismoLaboral.aspx index b9ae2e293..50c844186 100644 --- a/RH/RepAusentismoLaboral.aspx +++ b/RH/RepAusentismoLaboral.aspx @@ -106,18 +106,18 @@ - + - - - - + + + + - + - - + + diff --git a/RH/RepAusentismoLaboral.aspx.vb b/RH/RepAusentismoLaboral.aspx.vb index 3bdb52e05..9840d048b 100644 --- a/RH/RepAusentismoLaboral.aspx.vb +++ b/RH/RepAusentismoLaboral.aspx.vb @@ -64,9 +64,8 @@ Partial Class RH_RepAusentismoLaboral Dim FechaInicio As Date = Date.Now.AddDays(-30) Dim FechaFin As Date = Date.Now - Try - FechaInicio = Date.Parse(txtInicio.Text) + FechaInicio = Date.Parse(txtInicio.Text) FechaFin = Date.Parse(txtFin.Text) If DdlProyecto.SelectedIndex <> 0 Then @@ -88,9 +87,7 @@ Partial Class RH_RepAusentismoLaboral GVRegDatos.DataSource = dTable GVRegDatos.DataBind() - Catch ex As Exception - Dim exe As String = ex.Message - End Try + rh.Dispose() UpDatos.Update() @@ -106,25 +103,28 @@ Partial Class RH_RepAusentismoLaboral If e.Row.RowType = DataControlRowType.DataRow Then If Not (e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5) Then - Dim sPorcentaje As String = e.Row.DBCampo("AUSENTISMO").Trim - Dim porcentaje As Double = Convert.ToDouble(sPorcentaje) + Dim porcentaje As Decimal = e.Row.DBCampo("AUSENTISMO").ToDecimal e.Row.FCLabel("lblAusentismo").CssClass = "label label-danger" e.Row.FCLabel("lblAusentismo").Font.Bold = True e.Row.FCLabel("lblAusentismo").Attributes.Add("dir", "rtl") - e.Row.FCLabel("lblAusentismo").Text = sPorcentaje & "%" + e.Row.FCLabel("lblAusentismo").Text = porcentaje.RoundSQL & "%" If porcentaje <= 15.0 Then e.Row.FCLabel("lblAusentismo").CssClass = "label label-success" ElseIf (porcentaje > 15.0 And porcentaje <= 30.0) Then e.Row.FCLabel("lblAusentismo").CssClass = "label label-warning" End If - - - - End If + If e.Row.DBCampo("SubProyecto").ToString.Trim = "" Then + e.Row.CssClass = "SubTotales2" + Else + If e.Row.DBCampo("Turno").ToString.Trim = "" Then + e.Row.CssClass = "SubTotales" + End If + End If + End If diff --git a/RH/RepIndiceRotacionPersonal.aspx b/RH/RepIndiceRotacionPersonal.aspx index cf45a956a..6d01501ef 100644 --- a/RH/RepIndiceRotacionPersonal.aspx +++ b/RH/RepIndiceRotacionPersonal.aspx @@ -124,7 +124,7 @@ - + @@ -142,13 +142,13 @@ - + - + diff --git a/RH/RepIndiceRotacionPersonal.aspx.vb b/RH/RepIndiceRotacionPersonal.aspx.vb index edf2ac6fc..f2b71e8b7 100644 --- a/RH/RepIndiceRotacionPersonal.aspx.vb +++ b/RH/RepIndiceRotacionPersonal.aspx.vb @@ -76,11 +76,10 @@ Partial Class Ventas_RepIndiceRotacionPersonal Dim CveTurno As Integer = -1 Dim FechaInicio As Date = Date.Now.AddDays(-30) - Dim FechaFin As Date = Date.Now - - Try - - FechaInicio = Date.Parse(txtInicio.Text) + Dim FechaFin As Date = Date.Now + + + FechaInicio = Date.Parse(txtInicio.Text) FechaFin = Date.Parse(txtFin.Text) If DdlProyecto.SelectedIndex <> 0 Then @@ -100,16 +99,9 @@ Partial Class Ventas_RepIndiceRotacionPersonal End If DTGvDatos = dTable GVRegDatos.DataSource = dTable - GVRegDatos.DataBind() - - - - - - Catch ex As Exception - Dim exe As String = ex.Message - End Try - + GVRegDatos.DataBind() + + rh.Dispose() UpDatos.Update() @@ -124,28 +116,32 @@ Partial Class Ventas_RepIndiceRotacionPersonal If e.Row.RowType = DataControlRowType.DataRow Then - If Not (e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5) Then - - Dim sPorcentaje As String = e.Row.DBCampo("IRP").Trim - Dim porcentaje As Double = Convert.ToDouble(sPorcentaje) + If Not (e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5) Then + + Dim porcentaje As Decimal = e.Row.DBCampo("IRP").ToDecimal e.Row.FCLabel("LblIrp").CssClass = "label label-danger" e.Row.FCLabel("LblIrp").Font.Bold = True e.Row.FCLabel("lblIrp").Attributes.Add("dir", "rtl") - - e.Row.FCLabel("LblIrp").Text = sPorcentaje & "%" + e.Row.FCLabel("LblIrp").Text = porcentaje.ToString("0.00") & "%" If porcentaje <= 15.0 Then e.Row.FCLabel("LblIrp").CssClass = "label label-success" ElseIf (porcentaje > 15.0 And porcentaje <= 30.0) Then e.Row.FCLabel("LblIrp").CssClass = "label label-warning" End If - End If - If e.Row.DataKey("SubProyecto").ToString.Trim = "" Then - e.Row.CssClass = "SubTotales" - ' e.Row.Attributes.Add("class", "SubTotales") + If e.Row.DBCampo("SubProyecto").ToString.Trim = "" Then + e.Row.CssClass = "SubTotales2" + Else + If e.Row.DBCampo("Turno").ToString.Trim = "" Then + e.Row.CssClass = "SubTotales" + Else + If e.Row.DBCampo("Turno").ToString.Trim = "" Then + e.Row.CssClass = "SubTotales3" + End If + End If End If End If