// // Page_Init // public void Page_Init() { Security = new cAdvancedSecurity(this); if (!Security.IsLoggedIn()) Security.AutoLogin(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } // Table Permission loading event Security.TablePermission_Loading(); Security.LoadCurrentUserLevel(TableName); // Table Permission loaded event Security.TablePermission_Loaded(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } if (!Security.CanAdd) { Security.SaveLastUrl(); Page_Terminate("RegistrosVehiculoslist.aspx"); } // UserID_Loading event Security.UserID_Loading(); if (Security.IsLoggedIn()) Security.LoadUserID(); // UserID_Loaded event Security.UserID_Loaded(); // Create form object ObjForm = new cFormObj(); // Global page loading event (in ewglobal*.cs) ParentPage.Page_Loading(); // Page load event, used in current page Page_Load(); }
// // Page_Init // public void Page_Init() { Security = new cAdvancedSecurity(this); if (!Security.IsLoggedIn()) Security.AutoLogin(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } // Table Permission loading event Security.TablePermission_Loading(); Security.LoadCurrentUserLevel(TableName); // Table Permission loaded event Security.TablePermission_Loaded(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } if (!Security.CanAdd) { Security.SaveLastUrl(); Page_Terminate("Usuarioslist.aspx"); } // UserID_Loading event Security.UserID_Loading(); if (Security.IsLoggedIn()) Security.LoadUserID(); // UserID_Loaded event Security.UserID_Loaded(); if (Security.IsLoggedIn() && ew_Empty(Security.CurrentUserID)) { ew_Session[EW_SESSION_FAILURE_MESSAGE] = Language.Phrase("NoPermission"); Page_Terminate("Usuarioslist.aspx"); } // Create form object ObjForm = new cFormObj(); // Global page loading event (in ewglobal*.cs) ParentPage.Page_Loading(); // Page load event, used in current page Page_Load(); }
// Set form object public void SetForm(cFormObj Obj) { m_FormObj = Obj; Index = Obj.Index; }
// // Page_Init // public void Page_Init() { Security = new cAdvancedSecurity(this); if (!Security.IsLoggedIn()) Security.AutoLogin(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } // Table Permission loading event Security.TablePermission_Loading(); Security.LoadCurrentUserLevel(TableName); // Table Permission loaded event Security.TablePermission_Loaded(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } if (!Security.CanList) { Security.SaveLastUrl(); Page_Terminate("login.aspx"); } // UserID_Loading event Security.UserID_Loading(); if (Security.IsLoggedIn()) Security.LoadUserID(); // UserID_Loaded event Security.UserID_Loaded(); // Create form object ObjForm = new cFormObj(); ObjForm.UseSession = (VehiculosPicoYPlacaHoras.CurrentAction != "F"); // Get grid add count int gridaddcnt = ew_ConvertToInt(ew_Get(EW_TABLE_GRID_ADD_ROW_COUNT)); if (gridaddcnt > 0) VehiculosPicoYPlacaHoras.GridAddRowCount = gridaddcnt; // Set up list options SetupListOptions(); // Global page loading event (in ewglobal*.cs) ParentPage.Page_Loading(); // Page load event, used in current page Page_Load(); }