diff --git a/AYA.FROPI/FOPI/webforms/FOR/wfrFormulario.aspx.cs b/AYA.FROPI/FOPI/webforms/FOR/wfrFormulario.aspx.cs
index 3a57173e7..9521d2569 100644
--- a/AYA.FROPI/FOPI/webforms/FOR/wfrFormulario.aspx.cs
+++ b/AYA.FROPI/FOPI/webforms/FOR/wfrFormulario.aspx.cs
@@ -25,6 +25,7 @@ using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
using AyADAL;
@@ -291,6 +292,26 @@ public partial class webforms_FOR_wfrFormulario : General
}
}
+ protected void grvEtapas_RowDataBound(object sender, GridViewRowEventArgs e) //M6
+ {
+ try
+ {
+ GridViewRow selectedRow = e.Row;
+
+
+ if (e.Row.RowType == DataControlRowType.DataRow)
+ {
+ HtmlInputCheckBox cb = (HtmlInputCheckBox)selectedRow.FindControl("chkItem");
+
+ if (e.Row.Cells[6].Text.Trim() == "1")
+ cb.Checked = true;
+ }
+ }
+ catch (Exception ex)
+ {
+ MensajeError("Error en R3M6", ex);
+ }
+ }
#endregion
#region Metodos Personalizados (R4)
@@ -511,12 +532,14 @@ public partial class webforms_FOR_wfrFormulario : General
GridViewBoundField bdfInicio = new GridViewBoundField("FECHAINICIOETAPA", "INICIA", false, true, true);
GridViewBoundField bdfConclusion = new GridViewBoundField("FECHAFINETAPA", "CONCLUYE", false, true, true);
GridViewBoundField bdfSituacion = new GridViewBoundField("SITUACION", "SITUACION ACTUAL", false, false, true);
+ GridViewBoundField bdfEtapaActual = new GridViewBoundField("ETAPAACTUAL", "ACTUAL", false, false, true);
grvEtapasTemp.Columns.Add(bdfPkEtapa);
grvEtapasTemp.Columns.Add(bdfEtapa);
grvEtapasTemp.Columns.Add(bdfInicio);
grvEtapasTemp.Columns.Add(bdfConclusion);
grvEtapasTemp.Columns.Add(bdfSituacion);
+ grvEtapasTemp.Columns.Add(bdfEtapaActual);
grvEtapasTemp.Columns[0].ItemStyle.Width = 25;
grvEtapasTemp.Columns[1].ItemStyle.Width = 25;
@@ -1879,4 +1902,5 @@ public partial class webforms_FOR_wfrFormulario : General
}
#endregion
+
}
\ No newline at end of file