Cambio para seleccionar todos los chk
This commit is contained in:
@@ -77,6 +77,7 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
||||
CargaProveedor();
|
||||
CargaUsuarios();
|
||||
CargaDatos();
|
||||
|
||||
}
|
||||
|
||||
private void CargaSubProyectos()
|
||||
@@ -155,11 +156,20 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
||||
}
|
||||
protected void LnkCambiarFecha_Click(object sender, EventArgs e)
|
||||
{
|
||||
GvSolicitudes.Columns[0].Visible = true;
|
||||
LnkGuardar.Visible = true;
|
||||
LnkCambiarFecha.Visible = false;
|
||||
UPAcciones.Update();
|
||||
UPDatos.Update();
|
||||
if (GvSolicitudes.Rows.Count > 0)
|
||||
{
|
||||
GvSolicitudes.Columns[0].Visible = true;
|
||||
LnkGuardar.Visible = true;
|
||||
LnkCambiarFecha.Visible = false;
|
||||
GvSolicitudes.HeaderRow.FCCheckBox("ChkAll").Attributes.Add("onclick", "SeleccionarTodos(this);");
|
||||
UPAcciones.Update();
|
||||
UPDatos.Update();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert("No hay informacion cargada", TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
|
||||
}
|
||||
protected void LnkGuardar_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -284,4 +294,14 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
||||
ImprimirbytesPDF(all, "RepSolicitudesAnticipo");
|
||||
|
||||
}
|
||||
|
||||
protected void GvSolicitudes_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
e.Row.FCCheckBox("ChkOrdenCompra").Attributes.Add("Class", "ChkOrdenCompra");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user