77 lines
No EOL
1.8 KiB
C#
77 lines
No EOL
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
public partial class Forms_Ayuda_frwAyuda : General
|
|
{
|
|
|
|
#region Inicializar Formulario (R0)
|
|
|
|
override protected void OnInit(EventArgs e) //M0
|
|
{
|
|
try
|
|
{
|
|
base.OnInit(e);
|
|
|
|
InicializarFormulario();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MensajeError("Error en R0M0", ex);
|
|
}
|
|
}
|
|
|
|
private void InicializarFormulario() //M1
|
|
{
|
|
try
|
|
{
|
|
Response.Cache.SetCacheability(HttpCacheability.NoCache);
|
|
|
|
//construirGridView();
|
|
|
|
|
|
Javascript.CheckAllGridViewItems(Page);
|
|
|
|
//cuwBusquedaList.Buscar += new _controlesusuario_Estandar_cuwBusquedaList.SearchEvent(Buscar);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MensajeError("Error en R0M1", ex);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Eventos Formulario (R2)
|
|
|
|
protected void Page_Load(object sender, EventArgs e) //M0
|
|
{
|
|
try
|
|
{
|
|
if ((!IsPostBack) && (Session.Count > 0))
|
|
{
|
|
Session["Pagina"] = "";
|
|
|
|
}
|
|
else
|
|
{
|
|
if (Session["Pagina"] == null)
|
|
{
|
|
Response.Redirect("../wfrLogin.aspx?sesion=expiro", false);
|
|
}
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MensajeError("Error en R2M0", ex);
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
} |